From 93b4d8ceb587fe7fc1c8cf7b111a247b39a6ea9f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 4 Aug 2022 22:48:47 +0000 Subject: [PATCH 1/2] feat: Add TextDetectionParams.advanced_ocr_options Advanced OCR options allow users to customize behavior for a specific OCR engine version. PiperOrigin-RevId: 465402148 Source-Link: https://github.com/googleapis/googleapis/commit/ad64930eaf928b006c55914d8319b84670eeaf67 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5d2c8b2b1cb0d15bf7243513a5543a9ec3ecd778 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWQyYzhiMmIxY2IwZDE1YmY3MjQzNTEzYTU1NDNhOWVjM2VjZDc3OCJ9 --- .../cloud/vision/v1/ImageAnnotatorClient.java | 6 +- .../vision/v1/ImageAnnotatorSettings.java | 7 +- .../cloud/vision/v1/ProductSearchClient.java | 254 +- .../vision/v1/ProductSearchSettings.java | 16 +- .../cloud/vision/v1/gapic_metadata.json | 0 .../google/cloud/vision/v1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../v1/stub/GrpcImageAnnotatorStub.java | 1 + .../GrpcProductSearchCallableFactory.java | 0 .../vision/v1/stub/GrpcProductSearchStub.java | 1 + ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../v1/stub/HttpJsonImageAnnotatorStub.java | 1 + .../HttpJsonProductSearchCallableFactory.java | 0 .../v1/stub/HttpJsonProductSearchStub.java | 1 + .../vision/v1/stub/ImageAnnotatorStub.java | 0 .../v1/stub/ImageAnnotatorStubSettings.java | 6 +- .../vision/v1/stub/ProductSearchStub.java | 0 .../v1/stub/ProductSearchStubSettings.java | 33 +- .../v1/ImageAnnotatorClientHttpJsonTest.java | 0 .../vision/v1/ImageAnnotatorClientTest.java | 0 .../cloud/vision/v1/MockImageAnnotator.java | 0 .../vision/v1/MockImageAnnotatorImpl.java | 0 .../cloud/vision/v1/MockProductSearch.java | 0 .../vision/v1/MockProductSearchImpl.java | 0 .../v1/ProductSearchClientHttpJsonTest.java | 0 .../vision/v1/ProductSearchClientTest.java | 0 .../cloud/vision/v1/ImageAnnotatorGrpc.java | 539 +-- .../cloud/vision/v1/ProductSearchGrpc.java | 1909 +++----- .../v1/AddProductToProductSetRequest.java | 449 +- ...ddProductToProductSetRequestOrBuilder.java | 57 + .../cloud/vision/v1/AnnotateFileRequest.java | 672 +-- .../v1/AnnotateFileRequestOrBuilder.java | 62 +- .../cloud/vision/v1/AnnotateFileResponse.java | 588 +-- .../v1/AnnotateFileResponseOrBuilder.java | 55 +- .../cloud/vision/v1/AnnotateImageRequest.java | 561 +-- .../v1/AnnotateImageRequestOrBuilder.java | 53 +- .../vision/v1/AnnotateImageResponse.java | 1973 +++------ .../v1/AnnotateImageResponseOrBuilder.java | 210 +- .../vision/v1/AsyncAnnotateFileRequest.java | 679 +-- .../v1/AsyncAnnotateFileRequestOrBuilder.java | 61 +- .../vision/v1/AsyncAnnotateFileResponse.java | 335 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../v1/AsyncBatchAnnotateFilesRequest.java | 543 +-- ...yncBatchAnnotateFilesRequestOrBuilder.java | 65 +- .../v1/AsyncBatchAnnotateFilesResponse.java | 373 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 36 +- .../v1/AsyncBatchAnnotateImagesRequest.java | 704 ++- ...ncBatchAnnotateImagesRequestOrBuilder.java | 85 +- .../v1/AsyncBatchAnnotateImagesResponse.java | 341 +- ...cBatchAnnotateImagesResponseOrBuilder.java | 26 +- .../vision/v1/BatchAnnotateFilesRequest.java | 553 +-- .../BatchAnnotateFilesRequestOrBuilder.java | 65 +- .../vision/v1/BatchAnnotateFilesResponse.java | 382 +- .../BatchAnnotateFilesResponseOrBuilder.java | 36 +- .../vision/v1/BatchAnnotateImagesRequest.java | 553 +-- .../BatchAnnotateImagesRequestOrBuilder.java | 65 +- .../v1/BatchAnnotateImagesResponse.java | 380 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../vision/v1/BatchOperationMetadata.java | 568 +-- .../v1/BatchOperationMetadataOrBuilder.java | 40 +- .../com/google/cloud/vision/v1/Block.java | 740 ++-- .../cloud/vision/v1/BlockOrBuilder.java | 61 +- .../google/cloud/vision/v1/BoundingPoly.java | 495 +-- .../vision/v1/BoundingPolyOrBuilder.java | 55 +- .../com/google/cloud/vision/v1/ColorInfo.java | 375 +- .../cloud/vision/v1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1/CreateProductRequest.java | 543 +-- .../v1/CreateProductRequestOrBuilder.java | 61 +- .../vision/v1/CreateProductSetRequest.java | 567 +-- .../v1/CreateProductSetRequestOrBuilder.java | 64 +- .../v1/CreateReferenceImageRequest.java | 567 +-- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../com/google/cloud/vision/v1/CropHint.java | 390 +- .../cloud/vision/v1/CropHintOrBuilder.java | 32 +- .../cloud/vision/v1/CropHintsAnnotation.java | 370 +- .../v1/CropHintsAnnotationOrBuilder.java | 36 +- .../cloud/vision/v1/CropHintsParams.java | 323 +- .../vision/v1/CropHintsParamsOrBuilder.java | 27 +- .../cloud/vision/v1/DeleteProductRequest.java | 332 +- .../v1/DeleteProductRequestOrBuilder.java | 33 + .../vision/v1/DeleteProductSetRequest.java | 339 +- .../v1/DeleteProductSetRequestOrBuilder.java | 33 + .../v1/DeleteReferenceImageRequest.java | 342 +- .../DeleteReferenceImageRequestOrBuilder.java | 33 + .../vision/v1/DominantColorsAnnotation.java | 380 +- .../v1/DominantColorsAnnotationOrBuilder.java | 37 +- .../cloud/vision/v1/EntityAnnotation.java | 993 ++--- .../vision/v1/EntityAnnotationOrBuilder.java | 105 +- .../cloud/vision/v1/FaceAnnotation.java | 1834 +++----- .../vision/v1/FaceAnnotationOrBuilder.java | 109 +- .../com/google/cloud/vision/v1/Feature.java | 518 +-- .../cloud/vision/v1/FeatureOrBuilder.java | 36 +- .../cloud/vision/v1/GcsDestination.java | 301 +- .../vision/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/vision/v1/GcsSource.java | 294 +- .../cloud/vision/v1/GcsSourceOrBuilder.java | 27 +- .../google/cloud/vision/v1/GeometryProto.java | 90 + .../cloud/vision/v1/GetProductRequest.java | 329 +- .../vision/v1/GetProductRequestOrBuilder.java | 33 + .../cloud/vision/v1/GetProductSetRequest.java | 332 +- .../v1/GetProductSetRequestOrBuilder.java | 33 + .../vision/v1/GetReferenceImageRequest.java | 339 +- .../v1/GetReferenceImageRequestOrBuilder.java | 33 + .../com/google/cloud/vision/v1/Image.java | 345 +- .../vision/v1/ImageAnnotationContext.java | 345 +- .../v1/ImageAnnotationContextOrBuilder.java | 30 +- .../cloud/vision/v1/ImageAnnotatorProto.java | 756 ++++ .../google/cloud/vision/v1/ImageContext.java | 840 ++-- .../vision/v1/ImageContextOrBuilder.java | 76 +- .../cloud/vision/v1/ImageOrBuilder.java | 29 +- .../cloud/vision/v1/ImageProperties.java | 329 +- .../vision/v1/ImagePropertiesOrBuilder.java | 26 +- .../google/cloud/vision/v1/ImageSource.java | 373 +- .../cloud/vision/v1/ImageSourceOrBuilder.java | 36 +- .../vision/v1/ImportProductSetsGcsSource.java | 314 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../v1/ImportProductSetsInputConfig.java | 386 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../vision/v1/ImportProductSetsRequest.java | 492 +-- .../v1/ImportProductSetsRequestOrBuilder.java | 58 + .../vision/v1/ImportProductSetsResponse.java | 525 +-- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../google/cloud/vision/v1/InputConfig.java | 433 +- .../cloud/vision/v1/InputConfigOrBuilder.java | 38 +- .../google/cloud/vision/v1/LatLongRect.java | 386 +- .../cloud/vision/v1/LatLongRectOrBuilder.java | 34 +- .../google/cloud/vision/v1/Likelihood.java | 103 +- .../vision/v1/ListProductSetsRequest.java | 452 +- .../v1/ListProductSetsRequestOrBuilder.java | 47 +- .../vision/v1/ListProductSetsResponse.java | 460 +- .../v1/ListProductSetsResponseOrBuilder.java | 45 +- .../v1/ListProductsInProductSetRequest.java | 458 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../v1/ListProductsInProductSetResponse.java | 465 +- ...ProductsInProductSetResponseOrBuilder.java | 46 +- .../cloud/vision/v1/ListProductsRequest.java | 442 +- .../v1/ListProductsRequestOrBuilder.java | 47 +- .../cloud/vision/v1/ListProductsResponse.java | 452 +- .../v1/ListProductsResponseOrBuilder.java | 46 +- .../vision/v1/ListReferenceImagesRequest.java | 455 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../v1/ListReferenceImagesResponse.java | 490 +-- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../vision/v1/LocalizedObjectAnnotation.java | 602 +-- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../google/cloud/vision/v1/LocationInfo.java | 307 +- .../vision/v1/LocationInfoOrBuilder.java | 26 +- .../google/cloud/vision/v1/LocationName.java | 0 .../cloud/vision/v1/NormalizedVertex.java | 303 +- .../vision/v1/NormalizedVertexOrBuilder.java | 29 + .../cloud/vision/v1/OperationMetadata.java | 560 +-- .../vision/v1/OperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1/OutputConfig.java | 354 +- .../vision/v1/OutputConfigOrBuilder.java | 29 +- .../java/com/google/cloud/vision/v1/Page.java | 568 +-- .../google/cloud/vision/v1/PageOrBuilder.java | 54 +- .../com/google/cloud/vision/v1/Paragraph.java | 605 +-- .../cloud/vision/v1/ParagraphOrBuilder.java | 56 +- .../com/google/cloud/vision/v1/Position.java | 335 +- .../cloud/vision/v1/PositionOrBuilder.java | 39 + .../com/google/cloud/vision/v1/Product.java | 1053 ++--- .../google/cloud/vision/v1/ProductName.java | 0 .../cloud/vision/v1/ProductOrBuilder.java | 72 +- .../cloud/vision/v1/ProductSearchParams.java | 591 +-- .../v1/ProductSearchParamsOrBuilder.java | 62 +- .../cloud/vision/v1/ProductSearchProto.java | 132 + .../cloud/vision/v1/ProductSearchResults.java | 2579 ++++------- .../v1/ProductSearchResultsOrBuilder.java | 82 +- .../vision/v1/ProductSearchServiceProto.java | 637 +++ .../google/cloud/vision/v1/ProductSet.java | 582 +-- .../cloud/vision/v1/ProductSetName.java | 0 .../cloud/vision/v1/ProductSetOrBuilder.java | 61 +- .../vision/v1/ProductSetPurgeConfig.java | 308 +- .../v1/ProductSetPurgeConfigOrBuilder.java | 27 +- .../com/google/cloud/vision/v1/Property.java | 410 +- .../cloud/vision/v1/PropertyOrBuilder.java | 39 +- .../cloud/vision/v1/PurgeProductsRequest.java | 583 +-- .../v1/PurgeProductsRequestOrBuilder.java | 52 +- .../cloud/vision/v1/ReferenceImage.java | 616 +-- .../cloud/vision/v1/ReferenceImageName.java | 0 .../vision/v1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 460 +- ...ProductFromProductSetRequestOrBuilder.java | 57 + .../cloud/vision/v1/SafeSearchAnnotation.java | 505 +-- .../v1/SafeSearchAnnotationOrBuilder.java | 48 +- .../com/google/cloud/vision/v1/Symbol.java | 531 +-- .../cloud/vision/v1/SymbolOrBuilder.java | 46 +- .../cloud/vision/v1/TextAnnotation.java | 1888 +++----- .../vision/v1/TextAnnotationOrBuilder.java | 46 +- .../cloud/vision/v1/TextAnnotationProto.java | 183 + .../cloud/vision/v1/TextDetectionParams.java | 510 ++- .../v1/TextDetectionParamsOrBuilder.java | 62 + .../cloud/vision/v1/UpdateProductRequest.java | 456 +- .../v1/UpdateProductRequestOrBuilder.java | 43 +- .../vision/v1/UpdateProductSetRequest.java | 480 +- .../v1/UpdateProductSetRequestOrBuilder.java | 46 +- .../com/google/cloud/vision/v1/Vertex.java | 286 +- .../cloud/vision/v1/VertexOrBuilder.java | 29 + .../google/cloud/vision/v1/WebDetection.java | 3368 +++++--------- .../vision/v1/WebDetectionOrBuilder.java | 159 +- .../cloud/vision/v1/WebDetectionParams.java | 262 +- .../v1/WebDetectionParamsOrBuilder.java | 19 + .../cloud/vision/v1/WebDetectionProto.java | 116 + .../java/com/google/cloud/vision/v1/Word.java | 593 +-- .../google/cloud/vision/v1/WordOrBuilder.java | 56 +- .../google/cloud/vision/v1/geometry.proto | 0 .../cloud/vision/v1/image_annotator.proto | 3 + .../cloud/vision/v1/product_search.proto | 0 .../vision/v1/product_search_service.proto | 0 .../cloud/vision/v1/text_annotation.proto | 0 .../cloud/vision/v1/web_detection.proto | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 6 +- .../AsyncAsyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateImagesLRO.java | 0 .../SyncAsyncBatchAnnotateImages.java | 0 ...sListannotateimagerequestOutputconfig.java | 6 +- .../AsyncBatchAnnotateFiles.java | 0 .../SyncBatchAnnotateFiles.java | 0 ...hAnnotateFilesListannotatefilerequest.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 3 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 1 + ...ToProductSetProductsetnameProductname.java | 7 +- ...oductToProductSetProductsetnameString.java | 1 + ...dProductToProductSetStringProductname.java | 1 + ...yncAddProductToProductSetStringString.java | 1 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 0 .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 3 +- ...reateProductSetStringProductsetString.java | 0 .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 6 +- ...erenceImageStringReferenceimageString.java | 6 +- .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 1 + .../SyncDeleteProductProductname.java | 1 + .../SyncDeleteProductString.java | 1 + .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 1 + .../SyncDeleteProductSetProductsetname.java | 1 + .../SyncDeleteProductSetString.java | 1 + .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 1 + ...eleteReferenceImageReferenceimagename.java | 1 + .../SyncDeleteReferenceImageString.java | 1 + .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 6 +- ...etsStringImportproductsetsinputconfig.java | 6 +- .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 0 .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../purgeproducts/AsyncPurgeProducts.java | 0 .../purgeproducts/AsyncPurgeProductsLRO.java | 0 .../purgeproducts/SyncPurgeProducts.java | 1 + .../SyncPurgeProductsLocationname.java | 1 + .../SyncPurgeProductsString.java | 1 + .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 1 + ...omProductSetProductsetnameProductname.java | 7 +- ...uctFromProductSetProductsetnameString.java | 7 +- ...roductFromProductSetStringProductname.java | 4 +- ...moveProductFromProductSetStringString.java | 1 + .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 .../v1p1beta1/ImageAnnotatorClient.java | 6 +- .../v1p1beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p1beta1/gapic_metadata.json | 0 .../cloud/vision/v1p1beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 0 .../v1p1beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p1beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p1beta1/MockImageAnnotator.java | 0 .../v1p1beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p1beta1/ImageAnnotatorGrpc.java | 235 +- .../v1p1beta1/AnnotateImageRequest.java | 581 +-- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p1beta1/AnnotateImageResponse.java | 1620 +++---- .../AnnotateImageResponseOrBuilder.java | 150 +- .../v1p1beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 53 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../google/cloud/vision/v1p1beta1/Block.java | 766 ++-- .../vision/v1p1beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p1beta1/BoundingPoly.java | 371 +- .../v1p1beta1/BoundingPolyOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/ColorInfo.java | 382 +- .../vision/v1p1beta1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1p1beta1/CropHint.java | 397 +- .../vision/v1p1beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p1beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p1beta1/CropHintsParams.java | 333 +- .../v1p1beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p1beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p1beta1/EntityAnnotation.java | 974 ++-- .../v1p1beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p1beta1/FaceAnnotation.java | 1856 +++----- .../v1p1beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p1beta1/Feature.java | 511 +-- .../vision/v1p1beta1/FeatureOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/GeometryProto.java | 77 + .../google/cloud/vision/v1p1beta1/Image.java | 353 +- .../vision/v1p1beta1/ImageAnnotatorProto.java | 475 ++ .../cloud/vision/v1p1beta1/ImageContext.java | 770 ++-- .../v1p1beta1/ImageContextOrBuilder.java | 68 +- .../vision/v1p1beta1/ImageOrBuilder.java | 29 +- .../vision/v1p1beta1/ImageProperties.java | 351 +- .../v1p1beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p1beta1/ImageSource.java | 380 +- .../v1p1beta1/ImageSourceOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/LatLongRect.java | 393 +- .../v1p1beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p1beta1/Likelihood.java | 107 +- .../cloud/vision/v1p1beta1/LocationInfo.java | 310 +- .../v1p1beta1/LocationInfoOrBuilder.java | 26 +- .../google/cloud/vision/v1p1beta1/Page.java | 585 +-- .../cloud/vision/v1p1beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p1beta1/Paragraph.java | 620 +-- .../vision/v1p1beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p1beta1/Position.java | 344 +- .../vision/v1p1beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p1beta1/Property.java | 417 +- .../vision/v1p1beta1/PropertyOrBuilder.java | 39 +- .../v1p1beta1/SafeSearchAnnotation.java | 515 +-- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p1beta1/Symbol.java | 548 +-- .../vision/v1p1beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p1beta1/TextAnnotation.java | 2019 ++++----- .../v1p1beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p1beta1/TextAnnotationProto.java | 190 + .../vision/v1p1beta1/TextDetectionParams.java | 523 ++- .../TextDetectionParamsOrBuilder.java | 62 + .../google/cloud/vision/v1p1beta1/Vertex.java | 290 +- .../vision/v1p1beta1/VertexOrBuilder.java | 29 + .../cloud/vision/v1p1beta1/WebDetection.java | 3914 ++++++----------- .../v1p1beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p1beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 19 + .../vision/v1p1beta1/WebDetectionProto.java | 121 + .../google/cloud/vision/v1p1beta1/Word.java | 614 +-- .../cloud/vision/v1p1beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p1beta1/geometry.proto | 0 .../vision/v1p1beta1/image_annotator.proto | 3 + .../vision/v1p1beta1/text_annotation.proto | 0 .../vision/v1p1beta1/web_detection.proto | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 .../v1p2beta1/ImageAnnotatorClient.java | 6 +- .../v1p2beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p2beta1/gapic_metadata.json | 0 .../cloud/vision/v1p2beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 + .../v1p2beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p2beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p2beta1/MockImageAnnotator.java | 0 .../v1p2beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p2beta1/ImageAnnotatorGrpc.java | 334 +- .../v1p2beta1/AnnotateFileResponse.java | 487 +- .../AnnotateFileResponseOrBuilder.java | 44 +- .../v1p2beta1/AnnotateImageRequest.java | 581 +-- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p2beta1/AnnotateImageResponse.java | 1719 +++----- .../AnnotateImageResponseOrBuilder.java | 158 +- .../v1p2beta1/AsyncAnnotateFileRequest.java | 680 +-- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p2beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 +-- ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../v1p2beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 53 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../google/cloud/vision/v1p2beta1/Block.java | 766 ++-- .../vision/v1p2beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p2beta1/BoundingPoly.java | 569 +-- .../v1p2beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p2beta1/ColorInfo.java | 382 +- .../vision/v1p2beta1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1p2beta1/CropHint.java | 397 +- .../vision/v1p2beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p2beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p2beta1/CropHintsParams.java | 333 +- .../v1p2beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p2beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p2beta1/EntityAnnotation.java | 974 ++-- .../v1p2beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p2beta1/FaceAnnotation.java | 1856 +++----- .../v1p2beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p2beta1/Feature.java | 511 +-- .../vision/v1p2beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p2beta1/GcsDestination.java | 308 +- .../v1p2beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/GcsSource.java | 301 +- .../vision/v1p2beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/GeometryProto.java | 91 + .../google/cloud/vision/v1p2beta1/Image.java | 353 +- .../v1p2beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p2beta1/ImageAnnotatorProto.java | 645 +++ .../cloud/vision/v1p2beta1/ImageContext.java | 770 ++-- .../v1p2beta1/ImageContextOrBuilder.java | 68 +- .../vision/v1p2beta1/ImageOrBuilder.java | 29 +- .../vision/v1p2beta1/ImageProperties.java | 351 +- .../v1p2beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p2beta1/ImageSource.java | 380 +- .../v1p2beta1/ImageSourceOrBuilder.java | 36 +- .../cloud/vision/v1p2beta1/InputConfig.java | 401 +- .../v1p2beta1/InputConfigOrBuilder.java | 35 +- .../cloud/vision/v1p2beta1/LatLongRect.java | 393 +- .../v1p2beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p2beta1/Likelihood.java | 107 +- .../cloud/vision/v1p2beta1/LocationInfo.java | 310 +- .../v1p2beta1/LocationInfoOrBuilder.java | 26 +- .../vision/v1p2beta1/NormalizedVertex.java | 313 +- .../v1p2beta1/NormalizedVertexOrBuilder.java | 29 + .../vision/v1p2beta1/OperationMetadata.java | 576 +-- .../v1p2beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p2beta1/OutputConfig.java | 357 +- .../v1p2beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p2beta1/Page.java | 585 +-- .../cloud/vision/v1p2beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p2beta1/Paragraph.java | 620 +-- .../vision/v1p2beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p2beta1/Position.java | 344 +- .../vision/v1p2beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/Property.java | 417 +- .../vision/v1p2beta1/PropertyOrBuilder.java | 39 +- .../v1p2beta1/SafeSearchAnnotation.java | 515 +-- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p2beta1/Symbol.java | 548 +-- .../vision/v1p2beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p2beta1/TextAnnotation.java | 2019 ++++----- .../v1p2beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p2beta1/TextAnnotationProto.java | 190 + .../vision/v1p2beta1/TextDetectionParams.java | 523 ++- .../TextDetectionParamsOrBuilder.java | 62 + .../google/cloud/vision/v1p2beta1/Vertex.java | 290 +- .../vision/v1p2beta1/VertexOrBuilder.java | 29 + .../cloud/vision/v1p2beta1/WebDetection.java | 3914 ++++++----------- .../v1p2beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p2beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 19 + .../vision/v1p2beta1/WebDetectionProto.java | 121 + .../google/cloud/vision/v1p2beta1/Word.java | 614 +-- .../cloud/vision/v1p2beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p2beta1/geometry.proto | 0 .../vision/v1p2beta1/image_annotator.proto | 3 + .../vision/v1p2beta1/text_annotation.proto | 0 .../vision/v1p2beta1/web_detection.proto | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 6 +- .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 .../v1p3beta1/ImageAnnotatorClient.java | 6 +- .../v1p3beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p3beta1/ProductSearchClient.java | 290 +- .../v1p3beta1/ProductSearchSettings.java | 16 +- .../vision/v1p3beta1/gapic_metadata.json | 0 .../cloud/vision/v1p3beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 .../GrpcProductSearchCallableFactory.java | 0 .../v1p3beta1/stub/GrpcProductSearchStub.java | 1 + ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 + .../HttpJsonProductSearchCallableFactory.java | 0 .../stub/HttpJsonProductSearchStub.java | 1 + .../v1p3beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p3beta1/stub/ProductSearchStub.java | 0 .../stub/ProductSearchStubSettings.java | 33 +- .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p3beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p3beta1/MockImageAnnotator.java | 0 .../v1p3beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p3beta1/MockProductSearch.java | 0 .../v1p3beta1/MockProductSearchImpl.java | 0 .../ProductSearchClientHttpJsonTest.java | 0 .../v1p3beta1/ProductSearchClientTest.java | 0 .../vision/v1p3beta1/ImageAnnotatorGrpc.java | 334 +- .../vision/v1p3beta1/ProductSearchGrpc.java | 1913 +++----- .../AddProductToProductSetRequest.java | 470 +- ...ddProductToProductSetRequestOrBuilder.java | 57 + .../v1p3beta1/AnnotateFileResponse.java | 487 +- .../AnnotateFileResponseOrBuilder.java | 44 +- .../v1p3beta1/AnnotateImageRequest.java | 581 +-- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p3beta1/AnnotateImageResponse.java | 2119 +++------ .../AnnotateImageResponseOrBuilder.java | 210 +- .../v1p3beta1/AsyncAnnotateFileRequest.java | 680 +-- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p3beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 +-- ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../v1p3beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 53 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../v1p3beta1/BatchOperationMetadata.java | 573 +-- .../BatchOperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1p3beta1/Block.java | 766 ++-- .../vision/v1p3beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p3beta1/BoundingPoly.java | 569 +-- .../v1p3beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p3beta1/ColorInfo.java | 382 +- .../vision/v1p3beta1/ColorInfoOrBuilder.java | 32 +- .../v1p3beta1/CreateProductRequest.java | 570 +-- .../CreateProductRequestOrBuilder.java | 64 +- .../v1p3beta1/CreateProductSetRequest.java | 567 +-- .../CreateProductSetRequestOrBuilder.java | 64 +- .../CreateReferenceImageRequest.java | 575 +-- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../cloud/vision/v1p3beta1/CropHint.java | 397 +- .../vision/v1p3beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p3beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p3beta1/CropHintsParams.java | 333 +- .../v1p3beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p3beta1/DeleteProductRequest.java | 342 +- .../DeleteProductRequestOrBuilder.java | 33 + .../v1p3beta1/DeleteProductSetRequest.java | 342 +- .../DeleteProductSetRequestOrBuilder.java | 33 + .../DeleteReferenceImageRequest.java | 350 +- .../DeleteReferenceImageRequestOrBuilder.java | 33 + .../v1p3beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p3beta1/EntityAnnotation.java | 974 ++-- .../v1p3beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p3beta1/FaceAnnotation.java | 1856 +++----- .../v1p3beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p3beta1/Feature.java | 525 +-- .../vision/v1p3beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p3beta1/GcsDestination.java | 308 +- .../v1p3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/GcsSource.java | 301 +- .../vision/v1p3beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/GeometryProto.java | 91 + .../vision/v1p3beta1/GetProductRequest.java | 339 +- .../v1p3beta1/GetProductRequestOrBuilder.java | 33 + .../v1p3beta1/GetProductSetRequest.java | 342 +- .../GetProductSetRequestOrBuilder.java | 33 + .../v1p3beta1/GetReferenceImageRequest.java | 342 +- .../GetReferenceImageRequestOrBuilder.java | 33 + .../google/cloud/vision/v1p3beta1/Image.java | 353 +- .../v1p3beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p3beta1/ImageAnnotatorProto.java | 671 +++ .../cloud/vision/v1p3beta1/ImageContext.java | 886 ++-- .../v1p3beta1/ImageContextOrBuilder.java | 76 +- .../vision/v1p3beta1/ImageOrBuilder.java | 29 +- .../vision/v1p3beta1/ImageProperties.java | 351 +- .../v1p3beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p3beta1/ImageSource.java | 380 +- .../v1p3beta1/ImageSourceOrBuilder.java | 36 +- .../v1p3beta1/ImportProductSetsGcsSource.java | 321 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../ImportProductSetsInputConfig.java | 428 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../v1p3beta1/ImportProductSetsRequest.java | 506 +-- .../ImportProductSetsRequestOrBuilder.java | 58 + .../v1p3beta1/ImportProductSetsResponse.java | 518 +-- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../cloud/vision/v1p3beta1/InputConfig.java | 401 +- .../v1p3beta1/InputConfigOrBuilder.java | 35 +- .../cloud/vision/v1p3beta1/LatLongRect.java | 393 +- .../v1p3beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p3beta1/Likelihood.java | 107 +- .../v1p3beta1/ListProductSetsRequest.java | 455 +- .../ListProductSetsRequestOrBuilder.java | 47 +- .../v1p3beta1/ListProductSetsResponse.java | 461 +- .../ListProductSetsResponseOrBuilder.java | 45 +- .../ListProductsInProductSetRequest.java | 487 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../ListProductsInProductSetResponse.java | 499 +-- ...ProductsInProductSetResponseOrBuilder.java | 45 +- .../vision/v1p3beta1/ListProductsRequest.java | 455 +- .../ListProductsRequestOrBuilder.java | 47 +- .../v1p3beta1/ListProductsResponse.java | 463 +- .../ListProductsResponseOrBuilder.java | 45 +- .../v1p3beta1/ListReferenceImagesRequest.java | 462 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../ListReferenceImagesResponse.java | 488 +- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../v1p3beta1/LocalizedObjectAnnotation.java | 605 +-- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../cloud/vision/v1p3beta1/LocationInfo.java | 310 +- .../v1p3beta1/LocationInfoOrBuilder.java | 26 +- .../cloud/vision/v1p3beta1/LocationName.java | 0 .../vision/v1p3beta1/NormalizedVertex.java | 313 +- .../v1p3beta1/NormalizedVertexOrBuilder.java | 29 + .../vision/v1p3beta1/OperationMetadata.java | 576 +-- .../v1p3beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p3beta1/OutputConfig.java | 357 +- .../v1p3beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p3beta1/Page.java | 585 +-- .../cloud/vision/v1p3beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p3beta1/Paragraph.java | 620 +-- .../vision/v1p3beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p3beta1/Position.java | 344 +- .../vision/v1p3beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/Product.java | 1063 ++--- .../cloud/vision/v1p3beta1/ProductName.java | 0 .../vision/v1p3beta1/ProductOrBuilder.java | 72 +- .../vision/v1p3beta1/ProductSearchParams.java | 604 +-- .../ProductSearchParamsOrBuilder.java | 62 +- .../vision/v1p3beta1/ProductSearchProto.java | 135 + .../v1p3beta1/ProductSearchResults.java | 2779 ++++-------- .../ProductSearchResultsOrBuilder.java | 83 +- .../v1p3beta1/ProductSearchServiceProto.java | 614 +++ .../cloud/vision/v1p3beta1/ProductSet.java | 586 +-- .../vision/v1p3beta1/ProductSetName.java | 0 .../vision/v1p3beta1/ProductSetOrBuilder.java | 61 +- .../cloud/vision/v1p3beta1/Property.java | 417 +- .../vision/v1p3beta1/PropertyOrBuilder.java | 39 +- .../vision/v1p3beta1/ReferenceImage.java | 606 +-- .../vision/v1p3beta1/ReferenceImageName.java | 0 .../v1p3beta1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 485 +- ...ProductFromProductSetRequestOrBuilder.java | 57 + .../v1p3beta1/SafeSearchAnnotation.java | 515 +-- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p3beta1/Symbol.java | 548 +-- .../vision/v1p3beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p3beta1/TextAnnotation.java | 2019 ++++----- .../v1p3beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p3beta1/TextAnnotationProto.java | 190 + .../vision/v1p3beta1/TextDetectionParams.java | 523 ++- .../TextDetectionParamsOrBuilder.java | 62 + .../v1p3beta1/UpdateProductRequest.java | 483 +- .../UpdateProductRequestOrBuilder.java | 46 +- .../v1p3beta1/UpdateProductSetRequest.java | 480 +- .../UpdateProductSetRequestOrBuilder.java | 46 +- .../google/cloud/vision/v1p3beta1/Vertex.java | 290 +- .../vision/v1p3beta1/VertexOrBuilder.java | 29 + .../cloud/vision/v1p3beta1/WebDetection.java | 3914 ++++++----------- .../v1p3beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p3beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 19 + .../vision/v1p3beta1/WebDetectionProto.java | 121 + .../google/cloud/vision/v1p3beta1/Word.java | 614 +-- .../cloud/vision/v1p3beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p3beta1/geometry.proto | 0 .../vision/v1p3beta1/image_annotator.proto | 3 + .../vision/v1p3beta1/product_search.proto | 0 .../v1p3beta1/product_search_service.proto | 0 .../vision/v1p3beta1/text_annotation.proto | 0 .../vision/v1p3beta1/web_detection.proto | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 6 +- .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 1 + ...ToProductSetProductsetnameProductname.java | 7 +- ...oductToProductSetProductsetnameString.java | 7 +- ...dProductToProductSetStringProductname.java | 7 +- ...yncAddProductToProductSetStringString.java | 1 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 3 +- .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 6 +- ...reateProductSetStringProductsetString.java | 3 +- .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 6 +- ...erenceImageStringReferenceimageString.java | 6 +- .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 1 + .../SyncDeleteProductProductname.java | 1 + .../SyncDeleteProductString.java | 1 + .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 1 + .../SyncDeleteProductSetProductsetname.java | 1 + .../SyncDeleteProductSetString.java | 1 + .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 1 + ...eleteReferenceImageReferenceimagename.java | 4 +- .../SyncDeleteReferenceImageString.java | 1 + .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 6 +- ...etsStringImportproductsetsinputconfig.java | 6 +- .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 3 +- .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 1 + ...omProductSetProductsetnameProductname.java | 7 +- ...uctFromProductSetProductsetnameString.java | 7 +- ...roductFromProductSetStringProductname.java | 7 +- ...moveProductFromProductSetStringString.java | 7 +- .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 .../v1p4beta1/ImageAnnotatorClient.java | 6 +- .../v1p4beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p4beta1/ProductSearchClient.java | 254 +- .../v1p4beta1/ProductSearchSettings.java | 16 +- .../vision/v1p4beta1/gapic_metadata.json | 0 .../cloud/vision/v1p4beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 .../GrpcProductSearchCallableFactory.java | 0 .../v1p4beta1/stub/GrpcProductSearchStub.java | 1 + ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 + .../HttpJsonProductSearchCallableFactory.java | 0 .../stub/HttpJsonProductSearchStub.java | 1 + .../v1p4beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p4beta1/stub/ProductSearchStub.java | 0 .../stub/ProductSearchStubSettings.java | 33 +- .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p4beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p4beta1/MockImageAnnotator.java | 0 .../v1p4beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p4beta1/MockProductSearch.java | 0 .../v1p4beta1/MockProductSearchImpl.java | 0 .../ProductSearchClientHttpJsonTest.java | 0 .../v1p4beta1/ProductSearchClientTest.java | 0 .../vision/v1p4beta1/ImageAnnotatorGrpc.java | 542 +-- .../vision/v1p4beta1/ProductSearchGrpc.java | 2002 +++------ .../AddProductToProductSetRequest.java | 470 +- ...ddProductToProductSetRequestOrBuilder.java | 57 + .../vision/v1p4beta1/AnnotateFileRequest.java | 683 ++- .../AnnotateFileRequestOrBuilder.java | 61 +- .../v1p4beta1/AnnotateFileResponse.java | 602 +-- .../AnnotateFileResponseOrBuilder.java | 55 +- .../v1p4beta1/AnnotateImageRequest.java | 581 +-- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p4beta1/AnnotateImageResponse.java | 2119 +++------ .../AnnotateImageResponseOrBuilder.java | 210 +- .../v1p4beta1/AsyncAnnotateFileRequest.java | 680 +-- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p4beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 +-- ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../AsyncBatchAnnotateImagesRequest.java | 649 +-- ...ncBatchAnnotateImagesRequestOrBuilder.java | 80 + .../AsyncBatchAnnotateImagesResponse.java | 374 +- ...cBatchAnnotateImagesResponseOrBuilder.java | 26 +- .../v1p4beta1/BatchAnnotateFilesRequest.java | 466 +- .../BatchAnnotateFilesRequestOrBuilder.java | 56 +- .../v1p4beta1/BatchAnnotateFilesResponse.java | 384 +- .../BatchAnnotateFilesResponseOrBuilder.java | 36 +- .../v1p4beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 53 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../v1p4beta1/BatchOperationMetadata.java | 573 +-- .../BatchOperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1p4beta1/Block.java | 766 ++-- .../vision/v1p4beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p4beta1/BoundingPoly.java | 569 +-- .../v1p4beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p4beta1/Celebrity.java | 459 +- .../vision/v1p4beta1/CelebrityOrBuilder.java | 45 +- .../vision/v1p4beta1/CelebrityProto.java | 84 + .../cloud/vision/v1p4beta1/ColorInfo.java | 382 +- .../vision/v1p4beta1/ColorInfoOrBuilder.java | 32 +- .../v1p4beta1/CreateProductRequest.java | 570 +-- .../CreateProductRequestOrBuilder.java | 64 +- .../v1p4beta1/CreateProductSetRequest.java | 567 +-- .../CreateProductSetRequestOrBuilder.java | 64 +- .../CreateReferenceImageRequest.java | 575 +-- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../cloud/vision/v1p4beta1/CropHint.java | 397 +- .../vision/v1p4beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p4beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p4beta1/CropHintsParams.java | 333 +- .../v1p4beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p4beta1/DeleteProductRequest.java | 342 +- .../DeleteProductRequestOrBuilder.java | 33 + .../v1p4beta1/DeleteProductSetRequest.java | 342 +- .../DeleteProductSetRequestOrBuilder.java | 33 + .../DeleteReferenceImageRequest.java | 350 +- .../DeleteReferenceImageRequestOrBuilder.java | 33 + .../v1p4beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p4beta1/EntityAnnotation.java | 1002 ++--- .../v1p4beta1/EntityAnnotationOrBuilder.java | 105 +- .../vision/v1p4beta1/FaceAnnotation.java | 2104 +++------ .../v1p4beta1/FaceAnnotationOrBuilder.java | 135 +- .../v1p4beta1/FaceRecognitionParams.java | 346 +- .../FaceRecognitionParamsOrBuilder.java | 36 +- .../v1p4beta1/FaceRecognitionResult.java | 373 +- .../FaceRecognitionResultOrBuilder.java | 29 +- .../cloud/vision/v1p4beta1/Feature.java | 525 +-- .../vision/v1p4beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p4beta1/GcsDestination.java | 308 +- .../v1p4beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/GcsSource.java | 301 +- .../vision/v1p4beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/GeometryProto.java | 93 + .../vision/v1p4beta1/GetProductRequest.java | 339 +- .../v1p4beta1/GetProductRequestOrBuilder.java | 33 + .../v1p4beta1/GetProductSetRequest.java | 342 +- .../GetProductSetRequestOrBuilder.java | 33 + .../v1p4beta1/GetReferenceImageRequest.java | 342 +- .../GetReferenceImageRequestOrBuilder.java | 33 + .../google/cloud/vision/v1p4beta1/Image.java | 353 +- .../v1p4beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p4beta1/ImageAnnotatorProto.java | 767 ++++ .../cloud/vision/v1p4beta1/ImageContext.java | 1031 ++--- .../v1p4beta1/ImageContextOrBuilder.java | 87 +- .../vision/v1p4beta1/ImageOrBuilder.java | 29 +- .../vision/v1p4beta1/ImageProperties.java | 351 +- .../v1p4beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p4beta1/ImageSource.java | 380 +- .../v1p4beta1/ImageSourceOrBuilder.java | 36 +- .../v1p4beta1/ImportProductSetsGcsSource.java | 321 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../ImportProductSetsInputConfig.java | 428 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../v1p4beta1/ImportProductSetsRequest.java | 506 +-- .../ImportProductSetsRequestOrBuilder.java | 58 + .../v1p4beta1/ImportProductSetsResponse.java | 518 +-- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../cloud/vision/v1p4beta1/InputConfig.java | 437 +- .../v1p4beta1/InputConfigOrBuilder.java | 38 +- .../cloud/vision/v1p4beta1/LatLongRect.java | 393 +- .../v1p4beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p4beta1/Likelihood.java | 107 +- .../v1p4beta1/ListProductSetsRequest.java | 455 +- .../ListProductSetsRequestOrBuilder.java | 47 +- .../v1p4beta1/ListProductSetsResponse.java | 461 +- .../ListProductSetsResponseOrBuilder.java | 45 +- .../ListProductsInProductSetRequest.java | 487 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../ListProductsInProductSetResponse.java | 499 +-- ...ProductsInProductSetResponseOrBuilder.java | 45 +- .../vision/v1p4beta1/ListProductsRequest.java | 455 +- .../ListProductsRequestOrBuilder.java | 47 +- .../v1p4beta1/ListProductsResponse.java | 463 +- .../ListProductsResponseOrBuilder.java | 45 +- .../v1p4beta1/ListReferenceImagesRequest.java | 462 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../ListReferenceImagesResponse.java | 488 +- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../v1p4beta1/LocalizedObjectAnnotation.java | 605 +-- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../cloud/vision/v1p4beta1/LocationInfo.java | 310 +- .../v1p4beta1/LocationInfoOrBuilder.java | 26 +- .../cloud/vision/v1p4beta1/LocationName.java | 0 .../vision/v1p4beta1/NormalizedVertex.java | 313 +- .../v1p4beta1/NormalizedVertexOrBuilder.java | 29 + .../vision/v1p4beta1/OperationMetadata.java | 576 +-- .../v1p4beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p4beta1/OutputConfig.java | 357 +- .../v1p4beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p4beta1/Page.java | 585 +-- .../cloud/vision/v1p4beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p4beta1/Paragraph.java | 620 +-- .../vision/v1p4beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p4beta1/Position.java | 344 +- .../vision/v1p4beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/Product.java | 1063 ++--- .../cloud/vision/v1p4beta1/ProductName.java | 0 .../vision/v1p4beta1/ProductOrBuilder.java | 72 +- .../vision/v1p4beta1/ProductSearchParams.java | 604 +-- .../ProductSearchParamsOrBuilder.java | 62 +- .../vision/v1p4beta1/ProductSearchProto.java | 137 + .../v1p4beta1/ProductSearchResults.java | 2779 ++++-------- .../ProductSearchResultsOrBuilder.java | 83 +- .../v1p4beta1/ProductSearchServiceProto.java | 649 +++ .../cloud/vision/v1p4beta1/ProductSet.java | 586 +-- .../vision/v1p4beta1/ProductSetName.java | 0 .../vision/v1p4beta1/ProductSetOrBuilder.java | 61 +- .../v1p4beta1/ProductSetPurgeConfig.java | 314 +- .../ProductSetPurgeConfigOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/Property.java | 417 +- .../vision/v1p4beta1/PropertyOrBuilder.java | 39 +- .../v1p4beta1/PurgeProductsRequest.java | 623 +-- .../PurgeProductsRequestOrBuilder.java | 55 +- .../vision/v1p4beta1/ReferenceImage.java | 606 +-- .../vision/v1p4beta1/ReferenceImageName.java | 0 .../v1p4beta1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 485 +- ...ProductFromProductSetRequestOrBuilder.java | 59 + .../v1p4beta1/SafeSearchAnnotation.java | 515 +-- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p4beta1/Symbol.java | 548 +-- .../vision/v1p4beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p4beta1/TextAnnotation.java | 2019 ++++----- .../v1p4beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p4beta1/TextAnnotationProto.java | 190 + .../vision/v1p4beta1/TextDetectionParams.java | 523 ++- .../TextDetectionParamsOrBuilder.java | 62 + .../v1p4beta1/UpdateProductRequest.java | 483 +- .../UpdateProductRequestOrBuilder.java | 46 +- .../v1p4beta1/UpdateProductSetRequest.java | 480 +- .../UpdateProductSetRequestOrBuilder.java | 46 +- .../google/cloud/vision/v1p4beta1/Vertex.java | 290 +- .../vision/v1p4beta1/VertexOrBuilder.java | 29 + .../cloud/vision/v1p4beta1/WebDetection.java | 3914 ++++++----------- .../v1p4beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p4beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 19 + .../vision/v1p4beta1/WebDetectionProto.java | 121 + .../google/cloud/vision/v1p4beta1/Word.java | 614 +-- .../cloud/vision/v1p4beta1/WordOrBuilder.java | 55 +- .../google/cloud/vision/v1p4beta1/face.proto | 0 .../cloud/vision/v1p4beta1/geometry.proto | 0 .../vision/v1p4beta1/image_annotator.proto | 3 + .../vision/v1p4beta1/product_search.proto | 0 .../v1p4beta1/product_search_service.proto | 0 .../vision/v1p4beta1/text_annotation.proto | 0 .../vision/v1p4beta1/web_detection.proto | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 6 +- .../AsyncAsyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateImagesLRO.java | 0 .../SyncAsyncBatchAnnotateImages.java | 0 ...sListannotateimagerequestOutputconfig.java | 6 +- .../AsyncBatchAnnotateFiles.java | 0 .../SyncBatchAnnotateFiles.java | 0 ...hAnnotateFilesListannotatefilerequest.java | 6 +- .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 1 + ...ToProductSetProductsetnameProductname.java | 7 +- ...oductToProductSetProductsetnameString.java | 7 +- ...dProductToProductSetStringProductname.java | 7 +- ...yncAddProductToProductSetStringString.java | 1 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 3 +- .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 6 +- ...reateProductSetStringProductsetString.java | 3 +- .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 6 +- ...erenceImageStringReferenceimageString.java | 6 +- .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 1 + .../SyncDeleteProductProductname.java | 1 + .../SyncDeleteProductString.java | 1 + .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 1 + .../SyncDeleteProductSetProductsetname.java | 1 + .../SyncDeleteProductSetString.java | 1 + .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 1 + ...eleteReferenceImageReferenceimagename.java | 4 +- .../SyncDeleteReferenceImageString.java | 1 + .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 6 +- ...etsStringImportproductsetsinputconfig.java | 6 +- .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 3 +- .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../purgeproducts/AsyncPurgeProducts.java | 0 .../purgeproducts/AsyncPurgeProductsLRO.java | 0 .../purgeproducts/SyncPurgeProducts.java | 1 + .../SyncPurgeProductsLocationname.java | 1 + .../SyncPurgeProductsString.java | 1 + .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 1 + ...omProductSetProductsetnameProductname.java | 7 +- ...uctFromProductSetProductsetnameString.java | 7 +- ...roductFromProductSetStringProductname.java | 7 +- ...moveProductFromProductSetStringString.java | 7 +- .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 ...ddProductToProductSetRequestOrBuilder.java | 91 - .../v1/DeleteProductRequestOrBuilder.java | 58 - .../v1/DeleteProductSetRequestOrBuilder.java | 58 - .../DeleteReferenceImageRequestOrBuilder.java | 58 - .../google/cloud/vision/v1/GeometryProto.java | 106 - .../vision/v1/GetProductRequestOrBuilder.java | 58 - .../v1/GetProductSetRequestOrBuilder.java | 58 - .../v1/GetReferenceImageRequestOrBuilder.java | 58 - .../cloud/vision/v1/ImageAnnotatorProto.java | 849 ---- .../v1/ImportProductSetsRequestOrBuilder.java | 97 - .../vision/v1/NormalizedVertexOrBuilder.java | 51 - .../cloud/vision/v1/PositionOrBuilder.java | 64 - .../cloud/vision/v1/ProductSearchProto.java | 157 - .../vision/v1/ProductSearchServiceProto.java | 683 --- ...ProductFromProductSetRequestOrBuilder.java | 91 - .../cloud/vision/v1/TextAnnotationProto.java | 206 - .../v1/TextDetectionParamsOrBuilder.java | 40 - .../cloud/vision/v1/VertexOrBuilder.java | 51 - .../v1/WebDetectionParamsOrBuilder.java | 38 - .../cloud/vision/v1/WebDetectionProto.java | 138 - .../BatchAnnotateImagesRequestOrBuilder.java | 87 - .../cloud/vision/v1p1beta1/GeometryProto.java | 92 - .../vision/v1p1beta1/ImageAnnotatorProto.java | 549 --- .../vision/v1p1beta1/TextAnnotationProto.java | 219 - .../TextDetectionParamsOrBuilder.java | 40 - .../vision/v1p1beta1/VertexOrBuilder.java | 51 - .../WebDetectionParamsOrBuilder.java | 38 - .../vision/v1p1beta1/WebDetectionProto.java | 153 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 - .../BatchAnnotateImagesRequestOrBuilder.java | 87 - .../cloud/vision/v1p2beta1/GeometryProto.java | 107 - .../vision/v1p2beta1/ImageAnnotatorProto.java | 731 --- .../v1p2beta1/NormalizedVertexOrBuilder.java | 51 - .../vision/v1p2beta1/TextAnnotationProto.java | 219 - .../TextDetectionParamsOrBuilder.java | 40 - .../vision/v1p2beta1/VertexOrBuilder.java | 51 - .../WebDetectionParamsOrBuilder.java | 38 - .../vision/v1p2beta1/WebDetectionProto.java | 153 - ...ddProductToProductSetRequestOrBuilder.java | 91 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 - .../BatchAnnotateImagesRequestOrBuilder.java | 87 - .../DeleteProductRequestOrBuilder.java | 58 - .../DeleteProductSetRequestOrBuilder.java | 58 - .../DeleteReferenceImageRequestOrBuilder.java | 58 - .../cloud/vision/v1p3beta1/GeometryProto.java | 107 - .../v1p3beta1/GetProductRequestOrBuilder.java | 58 - .../GetProductSetRequestOrBuilder.java | 58 - .../GetReferenceImageRequestOrBuilder.java | 58 - .../vision/v1p3beta1/ImageAnnotatorProto.java | 761 ---- .../ImportProductSetsRequestOrBuilder.java | 97 - .../v1p3beta1/NormalizedVertexOrBuilder.java | 51 - .../vision/v1p3beta1/ProductSearchProto.java | 160 - .../v1p3beta1/ProductSearchServiceProto.java | 658 --- ...ProductFromProductSetRequestOrBuilder.java | 91 - .../vision/v1p3beta1/TextAnnotationProto.java | 219 - .../TextDetectionParamsOrBuilder.java | 40 - .../vision/v1p3beta1/VertexOrBuilder.java | 51 - .../WebDetectionParamsOrBuilder.java | 38 - .../vision/v1p3beta1/WebDetectionProto.java | 153 - ...ddProductToProductSetRequestOrBuilder.java | 91 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 - ...ncBatchAnnotateImagesRequestOrBuilder.java | 128 - .../BatchAnnotateImagesRequestOrBuilder.java | 87 - .../vision/v1p4beta1/CelebrityProto.java | 101 - .../DeleteProductRequestOrBuilder.java | 58 - .../DeleteProductSetRequestOrBuilder.java | 58 - .../DeleteReferenceImageRequestOrBuilder.java | 58 - .../cloud/vision/v1p4beta1/GeometryProto.java | 111 - .../v1p4beta1/GetProductRequestOrBuilder.java | 58 - .../GetProductSetRequestOrBuilder.java | 58 - .../GetReferenceImageRequestOrBuilder.java | 58 - .../vision/v1p4beta1/ImageAnnotatorProto.java | 865 ---- .../ImportProductSetsRequestOrBuilder.java | 97 - .../v1p4beta1/NormalizedVertexOrBuilder.java | 51 - .../vision/v1p4beta1/ProductSearchProto.java | 162 - .../v1p4beta1/ProductSearchServiceProto.java | 695 --- ...ProductFromProductSetRequestOrBuilder.java | 93 - .../vision/v1p4beta1/TextAnnotationProto.java | 219 - .../TextDetectionParamsOrBuilder.java | 40 - .../vision/v1p4beta1/VertexOrBuilder.java | 51 - .../WebDetectionParamsOrBuilder.java | 38 - .../vision/v1p4beta1/WebDetectionProto.java | 153 - 1241 files changed, 89366 insertions(+), 153954 deletions(-) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java (98%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java (93%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/package-info.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java (100%) rename {grpc-google-cloud-vision-v1 => owl-bot-staging/v1/grpc-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java (52%) rename {grpc-google-cloud-vision-v1 => owl-bot-staging/v1/grpc-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java (53%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java (75%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java (83%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java (75%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java (80%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java (84%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java (79%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java (68%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java (61%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java (68%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java (58%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java (65%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java (58%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java (67%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java (61%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java (62%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java (67%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java (58%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Block.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java (85%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java (70%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ColorInfo.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java (63%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java (63%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java (66%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java (57%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java (67%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHint.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java (70%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java (60%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java (62%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java (78%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java (84%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java (89%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Feature.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java (65%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsDestination.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java (79%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsSource.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java (52%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Image.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageContext.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java (87%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageProperties.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java (62%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageSource.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java (79%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java (83%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java (89%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java (70%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java (66%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java (78%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/InputConfig.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LatLongRect.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java (65%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Likelihood.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java (68%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java (54%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java (68%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java (65%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java (64%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java (68%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationInfo.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java (55%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationName.java (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OutputConfig.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Page.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Paragraph.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java (82%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Position.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Product.java (80%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductName.java (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java (85%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java (78%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchResults.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSet.java (75%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetName.java (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java (79%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java (55%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Property.java (69%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java (56%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java (70%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java (70%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java (74%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java (81%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Symbol.java (75%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java (83%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java (71%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextDetectionParams.java (50%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java (72%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java (73%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java (67%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java (64%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Vertex.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetection.java (76%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java (81%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Word.java (77%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java (84%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/geometry.proto (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/image_annotator.proto (99%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/product_search.proto (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/product_search_service.proto (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/text_annotation.proto (100%) rename {proto-google-cloud-vision-v1 => owl-bot-staging/v1/proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/web_detection.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (94%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (94%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (86%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (92%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java (95%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p1beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java (100%) rename {grpc-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java (50%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java (73%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java (77%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java (88%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java (73%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java (77%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java (73%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java (62%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java (72%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java (72%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java (61%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java (74%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java (79%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java (77%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java (90%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java (74%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java (64%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java (73%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java (75%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java (87%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java (69%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java (76%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java (72%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java (71%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java (71%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java (74%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java (77%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java (68%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java (50%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java (70%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java (76%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java (75%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java (83%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java (70%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java (51%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java (69%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java (71%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java (69%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java (77%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto (100%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto (99%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto (100%) rename {proto-google-cloud-vision-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (87%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p1beta1/samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java (96%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p2beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java (100%) rename {grpc-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java (51%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java (89%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java (69%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java (61%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java (79%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java (90%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java (75%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java (70%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java (52%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java (70%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java (87%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java (69%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java (79%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java (67%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java (73%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java (75%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java (68%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java (50%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java (70%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java (76%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java (75%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java (83%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java (70%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java (51%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java (69%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java (71%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java (69%) create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java create mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java (77%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto (100%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto (99%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto (100%) rename {proto-google-cloud-vision-v1p2beta1 => owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (87%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (87%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p2beta1/samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java (96%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java (92%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p3beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java (100%) rename {grpc-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java (51%) rename {grpc-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java (51%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java (64%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java (69%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java (77%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java (57%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java (57%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java (61%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java (66%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java (66%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java (66%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java (79%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java (77%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java (90%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java (53%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java (67%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java (67%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java (67%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java (88%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java (69%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java (77%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java (79%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java (82%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java (88%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java (68%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java (63%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java (79%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java (78%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java (69%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java (69%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java (69%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java (67%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java (73%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java (77%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java (68%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java (50%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java (78%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java (78%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java (72%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java (78%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java (63%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java (76%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java (75%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java (83%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java (70%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java (51%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java (68%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java (68%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java (69%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java (71%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java (69%) create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java create mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java (77%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto (99%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto (100%) rename {proto-google-cloud-vision-v1p3beta1 => owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (87%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (87%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (98%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (98%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (94%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (88%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (94%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (87%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (88%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (98%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (98%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (91%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (97%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (87%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (88%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (93%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (98%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (85%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (86%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p3beta1/samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java (93%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java (97%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java (99%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java (98%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java (100%) rename {google-cloud-vision => owl-bot-staging/v1p4beta1/google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java (100%) rename {grpc-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java (51%) rename {grpc-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java (52%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java (64%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java (80%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java (62%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java (62%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java (67%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java (50%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java (77%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java (57%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java (57%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java (67%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java (61%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java (66%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java (66%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java (66%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java (78%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java (77%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java (90%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java (65%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java (78%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java (79%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java (53%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java (67%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java (67%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java (67%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java (88%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java (63%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java (77%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java (79%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java (83%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java (89%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java (63%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java (79%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java (78%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java (55%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java (66%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java (60%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java (67%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java (73%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java (76%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java (77%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java (84%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java (50%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java (80%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java (86%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java (78%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java (72%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java (76%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java (79%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java (56%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java (69%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java (72%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java (63%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java (76%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java (75%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java (83%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java (70%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java (51%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java (67%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java (64%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java (69%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java (71%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java (68%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java (69%) create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java create mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java (77%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java (85%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/face.proto (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto (99%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto (100%) rename {proto-google-cloud-vision-v1p4beta1 => owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (94%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (88%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (94%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (88%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (91%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (87%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (88%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (93%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java (97%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (98%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (85%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (86%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {samples => owl-bot-staging/v1p4beta1/samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java delete mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index d3cf2a5f5..4ca2f6fe2 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java index e70991ac9..6e5414053 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java similarity index 93% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index 2eb7f81a8..e7cf7e221 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -217,7 +217,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

* *

Sample code: @@ -260,7 +260,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

* *

Sample code: @@ -303,7 +303,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

* *

Sample code: @@ -336,7 +336,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

* *

Sample code: @@ -369,7 +369,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

* *

Sample code: @@ -404,7 +404,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

* *

Sample code: @@ -436,7 +436,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

* *

Sample code: @@ -471,7 +471,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

* *

Sample code: @@ -507,7 +507,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

* *

Sample code: @@ -550,7 +550,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

* *

Sample code: @@ -581,7 +581,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

* *

Sample code: @@ -611,7 +611,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

* *

Sample code: @@ -642,7 +642,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

* *

Sample code: @@ -673,8 +673,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

* @@ -712,8 +712,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

* @@ -746,8 +746,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

* @@ -890,9 +890,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

* *

Sample code: @@ -934,9 +934,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

* *

Sample code: @@ -978,9 +978,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

* *

Sample code: @@ -1013,9 +1013,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

* *

Sample code: @@ -1047,7 +1047,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

* *

Sample code: @@ -1082,7 +1082,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

* *

Sample code: @@ -1114,7 +1114,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

* *

Sample code: @@ -1149,7 +1149,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

* *

Sample code: @@ -1185,7 +1185,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

* *

Sample code: @@ -1226,7 +1226,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

* *

Sample code: @@ -1257,7 +1257,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

* *

Sample code: @@ -1287,7 +1287,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

* *

Sample code: @@ -1318,7 +1318,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

* *

Sample code: @@ -1352,12 +1352,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

* *

Sample code: @@ -1396,12 +1396,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

* *

Sample code: @@ -1437,12 +1437,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

* *

Sample code: @@ -1595,11 +1595,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

* *

Sample code: @@ -1652,11 +1652,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

* *

Sample code: @@ -1709,11 +1709,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

* *

Sample code: @@ -1754,11 +1754,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

* *

Sample code: @@ -1923,8 +1923,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

* *

Sample code: @@ -1959,8 +1959,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

* *

Sample code: @@ -1993,8 +1993,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

* *

Sample code: @@ -2030,8 +2030,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

* *

Sample code: @@ -2067,8 +2067,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

* *

Sample code: @@ -2111,7 +2111,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

* *

Sample code: @@ -2146,7 +2146,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

* *

Sample code: @@ -2179,7 +2179,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

* *

Sample code: @@ -2212,7 +2212,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

* *

Sample code: @@ -2248,7 +2248,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

* *

Sample code: @@ -2288,7 +2288,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

* *

Sample code: @@ -2328,7 +2328,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

* *

Sample code: @@ -2368,7 +2368,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

* *

Sample code: @@ -2405,7 +2405,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

* *

Sample code: @@ -2440,7 +2440,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

* *

Sample code: @@ -2648,7 +2648,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

* *

Sample code: @@ -2684,7 +2684,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

* *

Sample code: @@ -2718,7 +2718,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

* *

Sample code: @@ -2755,7 +2755,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

* *

Sample code: @@ -2792,7 +2792,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

* *

Sample code: @@ -3289,10 +3289,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3342,10 +3339,7 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3366,10 +3360,7 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3418,10 +3409,7 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3441,11 +3429,8 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3466,9 +3451,7 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3501,11 +3484,8 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3525,11 +3505,8 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3550,9 +3527,7 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3585,11 +3560,8 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java index 948e34eb5..9e4ae7f12 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1.stub.ProductSearchStubSettings; @@ -48,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -166,8 +167,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -381,8 +381,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -408,8 +407,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java index 69708118b..da274e8e8 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java @@ -38,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java index 9305da9b5..03a93cca4 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java @@ -63,6 +63,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java index c07ae59b7..3bff76f96 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java @@ -28,6 +28,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java index b5b127dfe..0d1451ecc 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java @@ -33,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java index 8daa7c798..9293b917b 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java rename to owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java index 7c1b0a742..6db0f736b 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java @@ -96,9 +96,9 @@ *

The default instance has everything set to sensible defaults: * *

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -159,8 +159,7 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -368,8 +367,7 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -386,13 +384,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -499,8 +495,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -685,8 +680,7 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -696,8 +690,7 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1117,8 +1110,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1144,8 +1136,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java b/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java rename to owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java diff --git a/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java similarity index 52% rename from grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java index aaf0a8757..4ed54f5f8 100644 --- a/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -37,272 +20,194 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
-            com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
-        getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
-              getBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.BatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.BatchAnnotateImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-                      .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
-          com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
-      getBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class,
       responseType = com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
-          com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
-      getBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
-            com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
-        getBatchAnnotateFilesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
     if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod =
-              getBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.BatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.BatchAnnotateFilesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
-                      .build();
+        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod = getBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getBatchAnnotateFilesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateImages",
       requestType = com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateImagesMethod;
-    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
+    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateImagesMethod =
-                ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod =
-              getAsyncBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
-                      .build();
+        if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod = getAsyncBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
-              getAsyncBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-                      .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorBlockingStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ImageAnnotatorFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorFutureStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { + public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -312,17 +217,12 @@ public void batchAnnotateImages(
      * extracted.
      * 
*/ - public void batchAnnotateFiles( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateFilesMethod(), responseObserver); + public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateFilesMethod(), responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -333,16 +233,12 @@ public void batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateImagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -352,87 +248,76 @@ public void asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.BatchAnnotateFilesRequest, - com.google.cloud.vision.v1.BatchAnnotateFilesResponse>( - this, METHODID_BATCH_ANNOTATE_FILES))) + getBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.BatchAnnotateFilesRequest, + com.google.cloud.vision.v1.BatchAnnotateFilesResponse>( + this, METHODID_BATCH_ANNOTATE_FILES))) .addMethod( - getAsyncBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) + getAsyncBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub - extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -442,19 +327,13 @@ public void batchAnnotateImages(
      * extracted.
      * 
*/ - public void batchAnnotateFiles( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -465,18 +344,13 @@ public void batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -486,28 +360,23 @@ public void asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -518,21 +387,16 @@ protected ImageAnnotatorBlockingStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -542,15 +406,12 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImage
      * extracted.
      * 
*/ - public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { + public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -561,15 +422,12 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateImages( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -579,25 +437,22 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -608,22 +463,17 @@ protected ImageAnnotatorFutureStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.BatchAnnotateImagesResponse> - batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -633,16 +483,13 @@ protected ImageAnnotatorFutureStub build(
      * extracted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.BatchAnnotateFilesResponse> - batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateFiles( + com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -653,16 +500,13 @@ protected ImageAnnotatorFutureStub build(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateImages( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateImages( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -672,8 +516,8 @@ protected ImageAnnotatorFutureStub build(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request); } @@ -684,11 +528,11 @@ protected ImageAnnotatorFutureStub build( private static final int METHODID_ASYNC_BATCH_ANNOTATE_IMAGES = 2; private static final int METHODID_ASYNC_BATCH_ANNOTATE_FILES = 3; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -702,25 +546,19 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages( - (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_ANNOTATE_FILES: - serviceImpl.batchAnnotateFiles( - (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.batchAnnotateFiles((com.google.cloud.vision.v1.BatchAnnotateFilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_IMAGES: - serviceImpl.asyncBatchAnnotateImages( - (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) request, + serviceImpl.asyncBatchAnnotateImages((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_FILES: - serviceImpl.asyncBatchAnnotateFiles( - (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) request, + serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -739,9 +577,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -783,15 +620,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .addMethod(getBatchAnnotateFilesMethod()) - .addMethod(getAsyncBatchAnnotateImagesMethod()) - .addMethod(getAsyncBatchAnnotateFilesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .addMethod(getBatchAnnotateFilesMethod()) + .addMethod(getAsyncBatchAnnotateImagesMethod()) + .addMethod(getAsyncBatchAnnotateFilesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java similarity index 53% rename from grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java index 1a984d58d..313f6ffa7 100644 --- a/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -44,900 +27,640 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.CreateProductSetRequest,
-            com.google.cloud.vision.v1.ProductSet>
-        getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod =
-              getCreateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.CreateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-                      .build();
+          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+              .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductSetsRequest,
-          com.google.cloud.vision.v1.ListProductSetsResponse>
-      getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductSetsRequest,
-          com.google.cloud.vision.v1.ListProductSetsResponse>
-      getListProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.ListProductSetsRequest,
-            com.google.cloud.vision.v1.ListProductSetsResponse>
-        getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
+    io.grpc.MethodDescriptor getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod =
-              getListProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductSetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-                      .build();
+          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+              .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getGetProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-        getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
+    io.grpc.MethodDescriptor getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod =
-              getGetProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-                      .build();
+          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+              .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.UpdateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.UpdateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
-      getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.UpdateProductSetRequest,
-            com.google.cloud.vision.v1.ProductSet>
-        getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod =
-              getUpdateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.UpdateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+              .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
-        getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod =
-              getDeleteProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.DeleteProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+              .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
-      getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
-      getCreateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
-        getCreateProductMethod;
+  public static io.grpc.MethodDescriptor getCreateProductMethod() {
+    io.grpc.MethodDescriptor getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod =
-              getCreateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-                      .build();
+          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+              .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductsRequest,
-          com.google.cloud.vision.v1.ListProductsResponse>
-      getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductsRequest,
-          com.google.cloud.vision.v1.ListProductsResponse>
-      getListProductsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.ListProductsRequest,
-            com.google.cloud.vision.v1.ListProductsResponse>
-        getListProductsMethod;
+  public static io.grpc.MethodDescriptor getListProductsMethod() {
+    io.grpc.MethodDescriptor getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod =
-              getListProductsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
-                      .build();
+          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
+              .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
-      getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
-      getGetProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
-        getGetProductMethod;
+  public static io.grpc.MethodDescriptor getGetProductMethod() {
+    io.grpc.MethodDescriptor getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod =
-              getGetProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.GetProductRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-                      .build();
+          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.GetProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+              .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
-      getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
-      getUpdateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
-        getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
+    io.grpc.MethodDescriptor getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod =
-              getUpdateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+              .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
-        getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
+    io.grpc.MethodDescriptor getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod =
-              getDeleteProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+              .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1.ReferenceImage>
-      getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1.ReferenceImage>
-      getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.CreateReferenceImageRequest,
-            com.google.cloud.vision.v1.ReferenceImage>
-        getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod =
-              getCreateReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.CreateReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-                      .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+              .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-        getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod =
-              getDeleteReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.DeleteReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-                      .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+              .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.ListReferenceImagesRequest,
-            com.google.cloud.vision.v1.ListReferenceImagesResponse>
-        getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
-            == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod =
-              getListReferenceImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListReferenceImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListReferenceImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-                      .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+              .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1.ReferenceImage>
-      getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1.ReferenceImage>
-      getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.GetReferenceImageRequest,
-            com.google.cloud.vision.v1.ReferenceImage>
-        getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod =
-              getGetReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.GetReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-                      .build();
+          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+              .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
-      getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
-      getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
-        getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod =
-              getAddProductToProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.AddProductToProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-                      .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+              .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.RemoveProductFromProductSetRequest,
-            com.google.protobuf.Empty>
-        getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod =
-            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod =
-                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
-              getRemoveProductFromProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.RemoveProductFromProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-                      .build();
+        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+              .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.ListProductsInProductSetRequest,
-            com.google.cloud.vision.v1.ListProductsInProductSetResponse>
-        getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod =
-                ProductSearchGrpc.getListProductsInProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod =
-              getListProductsInProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductsInProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ListProductsInProductSetResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-                      .build();
+        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+              .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
-      getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
-      getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
-        getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod =
-              getImportProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.ImportProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-                      .build();
+          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+              .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
-      getPurgeProductsMethod;
+  private static volatile io.grpc.MethodDescriptor getPurgeProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PurgeProducts",
       requestType = com.google.cloud.vision.v1.PurgeProductsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
-      getPurgeProductsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
-        getPurgeProductsMethod;
+  public static io.grpc.MethodDescriptor getPurgeProductsMethod() {
+    io.grpc.MethodDescriptor getPurgeProductsMethod;
     if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
-          ProductSearchGrpc.getPurgeProductsMethod =
-              getPurgeProductsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
-                      .build();
+          ProductSearchGrpc.getPurgeProductsMethod = getPurgeProductsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
+              .build();
         }
       }
     }
     return getPurgeProductsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchStub(channel, callOptions);
+        }
+      };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchBlockingStub(channel, callOptions);
+        }
+      };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ProductSearchFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchFutureStub(channel, callOptions);
+        }
+      };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -951,11 +674,9 @@ public ProductSearchFutureStub newStub(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public abstract static class ProductSearchImplBase implements io.grpc.BindableService { + public static abstract class ProductSearchImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -963,16 +684,12 @@ public abstract static class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1.CreateProductSetRequest request, + public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -980,33 +697,24 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductSetsMethod(), responseObserver); + public void listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1.GetProductSetRequest request, + public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1016,32 +724,24 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1.UpdateProductSetRequest request, + public void updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1051,48 +751,36 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsMethod(), responseObserver); + public void listProducts(com.google.cloud.vision.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1108,16 +796,12 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1125,16 +809,12 @@ public void updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1153,16 +833,12 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1.CreateReferenceImageRequest request, + public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1171,16 +847,12 @@ public void createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1189,33 +861,24 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1.GetReferenceImageRequest request, + public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1224,30 +887,22 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1256,17 +911,12 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1279,16 +929,12 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1311,143 +957,151 @@ public void importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts( - com.google.cloud.vision.v1.PurgeProductsRequest request, + public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPurgeProductsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeProductsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateProductSetRequest, - com.google.cloud.vision.v1.ProductSet>(this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateProductSetRequest, + com.google.cloud.vision.v1.ProductSet>( + this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductSetsRequest, - com.google.cloud.vision.v1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductSetsRequest, + com.google.cloud.vision.v1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetProductSetRequest, - com.google.cloud.vision.v1.ProductSet>(this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetProductSetRequest, + com.google.cloud.vision.v1.ProductSet>( + this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.UpdateProductSetRequest, - com.google.cloud.vision.v1.ProductSet>(this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.UpdateProductSetRequest, + com.google.cloud.vision.v1.ProductSet>( + this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateProductRequest, - com.google.cloud.vision.v1.Product>(this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateProductRequest, + com.google.cloud.vision.v1.Product>( + this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductsRequest, - com.google.cloud.vision.v1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductsRequest, + com.google.cloud.vision.v1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetProductRequest, - com.google.cloud.vision.v1.Product>(this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetProductRequest, + com.google.cloud.vision.v1.Product>( + this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.UpdateProductRequest, - com.google.cloud.vision.v1.Product>(this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.UpdateProductRequest, + com.google.cloud.vision.v1.Product>( + this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteProductRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateReferenceImageRequest, - com.google.cloud.vision.v1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateReferenceImageRequest, + com.google.cloud.vision.v1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListReferenceImagesRequest, - com.google.cloud.vision.v1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListReferenceImagesRequest, + com.google.cloud.vision.v1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetReferenceImageRequest, - com.google.cloud.vision.v1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetReferenceImageRequest, + com.google.cloud.vision.v1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AddProductToProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AddProductToProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ImportProductSetsRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ImportProductSetsRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_PRODUCT_SETS))) .addMethod( - getPurgeProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.PurgeProductsRequest, - com.google.longrunning.Operation>(this, METHODID_PURGE_PRODUCTS))) + getPurgeProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.PurgeProductsRequest, + com.google.longrunning.Operation>( + this, METHODID_PURGE_PRODUCTS))) .build(); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1461,20 +1115,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub - extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1482,18 +1135,13 @@ protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1.CreateProductSetRequest request, + public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1501,37 +1149,26 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1.GetProductSetRequest request, + public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1541,36 +1178,26 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1.UpdateProductSetRequest request, + public void updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1580,53 +1207,39 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProducts(com.google.cloud.vision.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1642,18 +1255,13 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1661,18 +1269,13 @@ public void updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1691,18 +1294,13 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1.CreateReferenceImageRequest request, + public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1711,18 +1309,13 @@ public void createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1731,37 +1324,26 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1.GetReferenceImageRequest request, + public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1770,34 +1352,24 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1806,19 +1378,13 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1831,18 +1397,13 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1865,19 +1426,14 @@ public void importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts( - com.google.cloud.vision.v1.PurgeProductsRequest request, + public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1891,9 +1447,9 @@ public void purgeProducts(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1904,8 +1460,6 @@ protected ProductSearchBlockingStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1913,15 +1467,12 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet createProductSet( - com.google.cloud.vision.v1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1929,30 +1480,24 @@ public com.google.cloud.vision.v1.ProductSet createProductSet(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet getProductSet( - com.google.cloud.vision.v1.GetProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1962,30 +1507,24 @@ public com.google.cloud.vision.v1.ProductSet getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet updateProductSet( - com.google.cloud.vision.v1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1995,45 +1534,36 @@ public com.google.protobuf.Empty deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1.Product createProduct( - com.google.cloud.vision.v1.CreateProductRequest request) { + public com.google.cloud.vision.v1.Product createProduct(com.google.cloud.vision.v1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductsResponse listProducts( - com.google.cloud.vision.v1.ListProductsRequest request) { + public com.google.cloud.vision.v1.ListProductsResponse listProducts(com.google.cloud.vision.v1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1.Product getProduct( - com.google.cloud.vision.v1.GetProductRequest request) { + public com.google.cloud.vision.v1.Product getProduct(com.google.cloud.vision.v1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -2049,15 +1579,12 @@ public com.google.cloud.vision.v1.Product getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1.Product updateProduct( - com.google.cloud.vision.v1.UpdateProductRequest request) { + public com.google.cloud.vision.v1.Product updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2065,15 +1592,12 @@ public com.google.cloud.vision.v1.Product updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2092,15 +1616,12 @@ public com.google.protobuf.Empty deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2109,15 +1630,12 @@ public com.google.cloud.vision.v1.ReferenceImage createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2126,30 +1644,24 @@ public com.google.protobuf.Empty deleteReferenceImage(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2158,28 +1670,22 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2188,15 +1694,12 @@ public com.google.protobuf.Empty removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsInProductSet( - com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2209,15 +1712,12 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsI
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2240,16 +1740,13 @@ public com.google.longrunning.Operation importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.longrunning.Operation purgeProducts( - com.google.cloud.vision.v1.PurgeProductsRequest request) { + public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -2263,9 +1760,9 @@ public com.google.longrunning.Operation purgeProducts(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2276,8 +1773,6 @@ protected ProductSearchFutureStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -2285,15 +1780,13 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProductSet( + com.google.cloud.vision.v1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -2301,31 +1794,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ListProductSetsResponse> - listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductSets( + com.google.cloud.vision.v1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProductSet( + com.google.cloud.vision.v1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -2335,30 +1823,26 @@ protected ProductSearchFutureStub build(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProductSet( + com.google.cloud.vision.v1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProductSet( + com.google.cloud.vision.v1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -2368,46 +1852,39 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createProduct(com.google.cloud.vision.v1.CreateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProduct( + com.google.cloud.vision.v1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ListProductsResponse> - listProducts(com.google.cloud.vision.v1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProducts( + com.google.cloud.vision.v1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getProduct(com.google.cloud.vision.v1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProduct( + com.google.cloud.vision.v1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -2423,15 +1900,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProduct( + com.google.cloud.vision.v1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2439,15 +1914,13 @@ protected ProductSearchFutureStub build(
      * until all related caches are refreshed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProduct( + com.google.cloud.vision.v1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2466,16 +1939,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ReferenceImage> - createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReferenceImage( + com.google.cloud.vision.v1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2484,15 +1954,13 @@ protected ProductSearchFutureStub build(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage( + com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2501,32 +1969,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ListReferenceImagesResponse> - listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listReferenceImages( + com.google.cloud.vision.v1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ReferenceImage> - getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture getReferenceImage( + com.google.cloud.vision.v1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2535,29 +1997,24 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture addProductToProductSet( + com.google.cloud.vision.v1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2566,17 +2023,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1.ListProductsInProductSetResponse> - listProductsInProductSet( - com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet( + com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2589,15 +2042,13 @@ protected ProductSearchFutureStub build(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture importProductSets( + com.google.cloud.vision.v1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2620,8 +2071,8 @@ protected ProductSearchFutureStub build(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture purgeProducts( + com.google.cloud.vision.v1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request); } @@ -2647,11 +2098,11 @@ protected ProductSearchFutureStub build( private static final int METHODID_IMPORT_PRODUCT_SETS = 17; private static final int METHODID_PURGE_PRODUCTS = 18; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ProductSearchImplBase serviceImpl; private final int methodId; @@ -2665,108 +2116,79 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_PRODUCT_SET: - serviceImpl.createProductSet( - (com.google.cloud.vision.v1.CreateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProductSet((com.google.cloud.vision.v1.CreateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCT_SETS: - serviceImpl.listProductSets( - (com.google.cloud.vision.v1.ListProductSetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listProductSets((com.google.cloud.vision.v1.ListProductSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT_SET: - serviceImpl.getProductSet( - (com.google.cloud.vision.v1.GetProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getProductSet((com.google.cloud.vision.v1.GetProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT_SET: - serviceImpl.updateProductSet( - (com.google.cloud.vision.v1.UpdateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProductSet((com.google.cloud.vision.v1.UpdateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT_SET: - serviceImpl.deleteProductSet( - (com.google.cloud.vision.v1.DeleteProductSetRequest) request, + serviceImpl.deleteProductSet((com.google.cloud.vision.v1.DeleteProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PRODUCT: - serviceImpl.createProduct( - (com.google.cloud.vision.v1.CreateProductRequest) request, + serviceImpl.createProduct((com.google.cloud.vision.v1.CreateProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS: - serviceImpl.listProducts( - (com.google.cloud.vision.v1.ListProductsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listProducts((com.google.cloud.vision.v1.ListProductsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT: - serviceImpl.getProduct( - (com.google.cloud.vision.v1.GetProductRequest) request, + serviceImpl.getProduct((com.google.cloud.vision.v1.GetProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT: - serviceImpl.updateProduct( - (com.google.cloud.vision.v1.UpdateProductRequest) request, + serviceImpl.updateProduct((com.google.cloud.vision.v1.UpdateProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT: - serviceImpl.deleteProduct( - (com.google.cloud.vision.v1.DeleteProductRequest) request, + serviceImpl.deleteProduct((com.google.cloud.vision.v1.DeleteProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_REFERENCE_IMAGE: - serviceImpl.createReferenceImage( - (com.google.cloud.vision.v1.CreateReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createReferenceImage((com.google.cloud.vision.v1.CreateReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_REFERENCE_IMAGE: - serviceImpl.deleteReferenceImage( - (com.google.cloud.vision.v1.DeleteReferenceImageRequest) request, + serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1.DeleteReferenceImageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_REFERENCE_IMAGES: - serviceImpl.listReferenceImages( - (com.google.cloud.vision.v1.ListReferenceImagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listReferenceImages((com.google.cloud.vision.v1.ListReferenceImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_REFERENCE_IMAGE: - serviceImpl.getReferenceImage( - (com.google.cloud.vision.v1.GetReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getReferenceImage((com.google.cloud.vision.v1.GetReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ADD_PRODUCT_TO_PRODUCT_SET: - serviceImpl.addProductToProductSet( - (com.google.cloud.vision.v1.AddProductToProductSetRequest) request, + serviceImpl.addProductToProductSet((com.google.cloud.vision.v1.AddProductToProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET: - serviceImpl.removeProductFromProductSet( - (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) request, + serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET: - serviceImpl.listProductsInProductSet( - (com.google.cloud.vision.v1.ListProductsInProductSetRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1.ListProductsInProductSetResponse>) - responseObserver); + serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1.ListProductsInProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_PRODUCT_SETS: - serviceImpl.importProductSets( - (com.google.cloud.vision.v1.ImportProductSetsRequest) request, + serviceImpl.importProductSets((com.google.cloud.vision.v1.ImportProductSetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PURGE_PRODUCTS: - serviceImpl.purgeProducts( - (com.google.cloud.vision.v1.PurgeProductsRequest) request, + serviceImpl.purgeProducts((com.google.cloud.vision.v1.PurgeProductsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -2785,9 +2207,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ProductSearchBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ProductSearchBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProductSearchBaseDescriptorSupplier() {} @java.lang.Override @@ -2829,30 +2250,28 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ProductSearchGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) - .addMethod(getCreateProductSetMethod()) - .addMethod(getListProductSetsMethod()) - .addMethod(getGetProductSetMethod()) - .addMethod(getUpdateProductSetMethod()) - .addMethod(getDeleteProductSetMethod()) - .addMethod(getCreateProductMethod()) - .addMethod(getListProductsMethod()) - .addMethod(getGetProductMethod()) - .addMethod(getUpdateProductMethod()) - .addMethod(getDeleteProductMethod()) - .addMethod(getCreateReferenceImageMethod()) - .addMethod(getDeleteReferenceImageMethod()) - .addMethod(getListReferenceImagesMethod()) - .addMethod(getGetReferenceImageMethod()) - .addMethod(getAddProductToProductSetMethod()) - .addMethod(getRemoveProductFromProductSetMethod()) - .addMethod(getListProductsInProductSetMethod()) - .addMethod(getImportProductSetsMethod()) - .addMethod(getPurgeProductsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) + .addMethod(getCreateProductSetMethod()) + .addMethod(getListProductSetsMethod()) + .addMethod(getGetProductSetMethod()) + .addMethod(getUpdateProductSetMethod()) + .addMethod(getDeleteProductSetMethod()) + .addMethod(getCreateProductMethod()) + .addMethod(getListProductsMethod()) + .addMethod(getGetProductMethod()) + .addMethod(getUpdateProductMethod()) + .addMethod(getDeleteProductMethod()) + .addMethod(getCreateReferenceImageMethod()) + .addMethod(getDeleteReferenceImageMethod()) + .addMethod(getListReferenceImagesMethod()) + .addMethod(getGetReferenceImageMethod()) + .addMethod(getAddProductToProductSetMethod()) + .addMethod(getRemoveProductFromProductSetMethod()) + .addMethod(getListProductsInProductSetMethod()) + .addMethod(getImportProductSetsMethod()) + .addMethod(getPurgeProductsMethod()) + .build(); } } } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java index b51bb1c73..a8a51a48f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AddProductToProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -44,15 +26,16 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,18 +153,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -201,33 +168,31 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -236,7 +201,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -278,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AddProductToProductSetRequest other = - (com.google.cloud.vision.v1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1.AddProductToProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.AddProductToProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AddProductToProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AddProductToProductSetRequest) com.google.cloud.vision.v1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AddProductToProductSetRequest.newBuilder() @@ -437,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override @@ -478,8 +435,7 @@ public com.google.cloud.vision.v1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1.AddProductToProductSetRequest result = - new com.google.cloud.vision.v1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -490,39 +446,38 @@ public com.google.cloud.vision.v1.AddProductToProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.AddProductToProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.AddProductToProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -530,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AddProductToProductSetRequest other) { - if (other == com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -559,8 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AddProductToProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AddProductToProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -572,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -598,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -624,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -698,24 +631,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -724,25 +653,22 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -750,80 +676,67 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -833,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AddProductToProductSetRequest) private static final com.google.cloud.vision.v1.AddProductToProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AddProductToProductSetRequest(); } @@ -847,16 +760,16 @@ public static com.google.cloud.vision.v1.AddProductToProductSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,4 +784,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.vision.v1.AddProductToProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..3ccc82663 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface AddProductToProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java similarity index 75% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java index 14091d5bc..82f59e618 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateFileRequest} */ -public final class AnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateFileRequest) AnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateFileRequest.newBuilder() to construct. private AnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateFileRequest() { features_ = java.util.Collections.emptyList(); pages_ = emptyIntList(); @@ -44,15 +26,16 @@ private AnnotateFileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private AnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); - break; + imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 32: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; } - case 32: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - pages_.addInt(input.readInt32()); - break; + pages_.addInt(input.readInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - pages_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + pages_.addInt(input.readInt32()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -152,7 +125,8 @@ private AnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -164,33 +138,27 @@ private AnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateFileRequest.class, - com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AnnotateFileRequest.class, com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -198,25 +166,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -231,8 +192,6 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -244,8 +203,6 @@ public java.util.List getFeaturesList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -253,13 +210,11 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -271,8 +226,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -284,8 +237,6 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -293,21 +244,19 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -315,25 +264,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -348,8 +290,6 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder public static final int PAGES_FIELD_NUMBER = 4; private com.google.protobuf.Internal.IntList pages_; /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -364,16 +304,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder
    * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ @java.lang.Override - public java.util.List getPagesList() { + public java.util.List + getPagesList() { return pages_; } /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -388,15 +326,12 @@ public java.util.List getPagesList() {
    * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -411,18 +346,15 @@ public int getPagesCount() {
    * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ public int getPages(int index) { return pages_.getInt(index); } - private int pagesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,7 +366,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); @@ -462,23 +395,28 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } { int dataSize = 0; for (int i = 0; i < pages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pages_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(pages_.getInt(i)); } size += dataSize; if (!getPagesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } pagesMemoizedSerializedSize = dataSize; } @@ -490,24 +428,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AnnotateFileRequest other = - (com.google.cloud.vision.v1.AnnotateFileRequest) obj; + com.google.cloud.vision.v1.AnnotateFileRequest other = (com.google.cloud.vision.v1.AnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } - if (!getPagesList().equals(other.getPagesList())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -540,127 +481,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateFileRequest) com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateFileRequest.class, - com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AnnotateFileRequest.class, com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AnnotateFileRequest.newBuilder() @@ -668,17 +600,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -706,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override @@ -727,8 +659,7 @@ public com.google.cloud.vision.v1.AnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1.AnnotateFileRequest result = - new com.google.cloud.vision.v1.AnnotateFileRequest(this); + com.google.cloud.vision.v1.AnnotateFileRequest result = new com.google.cloud.vision.v1.AnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -762,39 +693,38 @@ public com.google.cloud.vision.v1.AnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1.AnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1.AnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -824,10 +754,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileRequest other) { featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -874,52 +803,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -940,15 +855,14 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig( + com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -959,8 +873,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder bui return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -971,9 +883,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -985,8 +895,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1005,8 +913,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1014,13 +920,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1031,14 +935,11 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1046,41 +947,32 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1095,8 +987,6 @@ public java.util.List getFeaturesList() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1111,8 +1001,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1127,15 +1015,14 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1149,8 +1036,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1169,8 +1054,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1191,15 +1074,14 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1213,15 +1095,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1232,8 +1113,6 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderFor return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1252,8 +1131,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1264,7 +1141,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1272,8 +1150,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1291,8 +1167,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1310,44 +1184,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1355,8 +1224,6 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1364,47 +1231,42 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1412,47 +1274,34 @@ public java.util.List getFeaturesBui private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1473,8 +1322,6 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1493,8 +1340,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1505,9 +1350,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1519,8 +1362,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1539,8 +1380,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1548,13 +1387,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1565,14 +1402,11 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1580,33 +1414,27 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } private com.google.protobuf.Internal.IntList pages_ = emptyIntList(); - private void ensurePagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pages_ = mutableCopy(pages_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1621,17 +1449,14 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ - public java.util.List getPagesList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(pages_) - : pages_; + public java.util.List + getPagesList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(pages_) : pages_; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1646,15 +1471,12 @@ public java.util.List getPagesList() {
      * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1669,7 +1491,6 @@ public int getPagesCount() {
      * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ @@ -1677,8 +1498,6 @@ public int getPages(int index) { return pages_.getInt(index); } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1693,20 +1512,18 @@ public int getPages(int index) {
      * 
* * repeated int32 pages = 4; - * * @param index The index to set the value at. * @param value The pages to set. * @return This builder for chaining. */ - public Builder setPages(int index, int value) { + public Builder setPages( + int index, int value) { ensurePagesIsMutable(); pages_.setInt(index, value); onChanged(); return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1721,7 +1538,6 @@ public Builder setPages(int index, int value) {
      * 
* * repeated int32 pages = 4; - * * @param value The pages to add. * @return This builder for chaining. */ @@ -1732,8 +1548,6 @@ public Builder addPages(int value) { return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1748,19 +1562,18 @@ public Builder addPages(int value) {
      * 
* * repeated int32 pages = 4; - * * @param values The pages to add. * @return This builder for chaining. */ - public Builder addAllPages(java.lang.Iterable values) { + public Builder addAllPages( + java.lang.Iterable values) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1775,7 +1588,6 @@ public Builder addAllPages(java.lang.Iterable value
      * 
* * repeated int32 pages = 4; - * * @return This builder for chaining. */ public Builder clearPages() { @@ -1784,9 +1596,9 @@ public Builder clearPages() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1796,12 +1608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileRequest) private static final com.google.cloud.vision.v1.AnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateFileRequest(); } @@ -1810,16 +1622,16 @@ public static com.google.cloud.vision.v1.AnnotateFileRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1834,4 +1646,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java index 50f56dd11..f327adc50 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AnnotateFileRequestOrBuilder - extends +public interface AnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateFileRequestOrBuilder com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,53 +60,43 @@ public interface AnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesOrBuilderList(); + java.util.List + getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -145,8 +106,6 @@ public interface AnnotateFileRequestOrBuilder com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -161,13 +120,10 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ java.util.List getPagesList(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -182,13 +138,10 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ int getPagesCount(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -203,7 +156,6 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java similarity index 75% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java index 14ce7e716..72ca9f8c8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,61 +55,53 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null;
-              if (inputConfig_ != null) {
-                subBuilder = inputConfig_.toBuilder();
-              }
-              inputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputConfig_);
-                inputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null;
+            if (inputConfig_ != null) {
+              subBuilder = inputConfig_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                responses_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              responses_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1.AnnotateImageResponse.parser(),
-                      extensionRegistry));
-              break;
+            inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(inputConfig_);
+              inputConfig_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              totalPages_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              responses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 34:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
+            responses_.add(
+                input.readMessage(com.google.cloud.vision.v1.AnnotateImageResponse.parser(), extensionRegistry));
+            break;
+          }
+          case 24: {
 
-              break;
+            totalPages_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -134,7 +109,8 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -143,33 +119,27 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AnnotateFileResponse.class,
-            com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1.AnnotateFileResponse.class, com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1.InputConfig inputConfig_;
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -177,25 +147,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -210,8 +173,6 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** - * - * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -224,8 +185,6 @@ public java.util.List getRespo
     return responses_;
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -234,13 +193,11 @@ public java.util.List getRespo
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -253,8 +210,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -267,8 +222,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -285,14 +238,11 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
   public static final int TOTAL_PAGES_FIELD_NUMBER = 3;
   private int totalPages_;
   /**
-   *
-   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; - * * @return The totalPages. */ @java.lang.Override @@ -303,15 +253,12 @@ public int getTotalPages() { public static final int ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ @java.lang.Override @@ -319,15 +266,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return The error. */ @java.lang.Override @@ -335,8 +279,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
@@ -350,7 +292,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -362,7 +303,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (inputConfig_ != null) {
       output.writeMessage(1, getInputConfig());
     }
@@ -385,16 +327,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getInputConfig());
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, responses_.get(i));
     }
     if (totalPages_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, totalPages_);
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -404,23 +350,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AnnotateFileResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AnnotateFileResponse other =
-        (com.google.cloud.vision.v1.AnnotateFileResponse) obj;
+    com.google.cloud.vision.v1.AnnotateFileResponse other = (com.google.cloud.vision.v1.AnnotateFileResponse) obj;
 
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig().equals(other.getInputConfig())) return false;
+      if (!getInputConfig()
+          .equals(other.getInputConfig())) return false;
     }
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
-    if (getTotalPages() != other.getTotalPages()) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -452,104 +401,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateFileResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -557,23 +499,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.AnnotateFileResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateFileResponse)
       com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AnnotateFileResponse.class,
-              com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1.AnnotateFileResponse.class, com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AnnotateFileResponse.newBuilder()
@@ -581,17 +521,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -619,9 +559,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -640,8 +580,7 @@ public com.google.cloud.vision.v1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1.AnnotateFileResponse result =
-          new com.google.cloud.vision.v1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1.AnnotateFileResponse result = new com.google.cloud.vision.v1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -671,39 +610,38 @@ public com.google.cloud.vision.v1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1.AnnotateFileResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1.AnnotateFileResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -711,8 +649,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance()) return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -734,10 +671,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileResponse other)
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResponsesFieldBuilder()
-                    : null;
+            responsesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResponsesFieldBuilder() : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -777,52 +713,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.InputConfig,
-            com.google.cloud.vision.v1.InputConfig.Builder,
-            com.google.cloud.vision.v1.InputConfigOrBuilder>
-        inputConfigBuilder_;
+        com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_;
     /**
-     *
-     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -843,15 +765,14 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig( + com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -862,8 +783,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder bui return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -874,9 +793,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -888,8 +805,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -908,8 +823,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -917,13 +830,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -934,14 +845,11 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -949,42 +857,32 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1000,8 +898,6 @@ public java.util.List getRespo
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1017,8 +913,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1034,8 +928,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1043,7 +935,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
+    public Builder setResponses(
+        int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1057,8 +950,6 @@ public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageR
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1078,8 +969,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1101,8 +990,6 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1110,7 +997,8 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
+    public Builder addResponses(
+        int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1124,8 +1012,6 @@ public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageR
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1145,8 +1031,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1166,8 +1050,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1179,7 +1061,8 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -1187,8 +1070,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1207,8 +1088,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1227,8 +1106,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1236,12 +1113,11 @@ public Builder removeResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(int index) {
+    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(
+        int index) {
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1252,14 +1128,11 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuil
     public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1267,8 +1140,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1276,8 +1149,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1286,12 +1157,10 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
     public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1299,13 +1168,12 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuil
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(
+        int index) {
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1313,38 +1181,32 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuil
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AnnotateImageResponse,
-            com.google.cloud.vision.v1.AnnotateImageResponse.Builder,
-            com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>
+        com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.AnnotateImageResponse,
-                com.google.cloud.vision.v1.AnnotateImageResponse.Builder,
-                com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
 
-    private int totalPages_;
+    private int totalPages_ ;
     /**
-     *
-     *
      * 
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @return The totalPages. */ @java.lang.Override @@ -1352,36 +1214,30 @@ public int getTotalPages() { return totalPages_; } /** - * - * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(int value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0; onChanged(); return this; @@ -1389,33 +1245,26 @@ public Builder clearTotalPages() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1426,8 +1275,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1449,8 +1296,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1458,7 +1303,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 4;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1469,8 +1315,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1481,7 +1325,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1493,8 +1338,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1514,8 +1357,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1524,13 +1365,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 4;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1542,12 +1381,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1556,21 +1394,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1580,12 +1418,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateFileResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileResponse)
   private static final com.google.cloud.vision.v1.AnnotateFileResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateFileResponse();
   }
@@ -1594,16 +1432,16 @@ public static com.google.cloud.vision.v1.AnnotateFileResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateFileResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateFileResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateFileResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateFileResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1618,4 +1456,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.AnnotateFileResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
similarity index 80%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
index a5dd43cea..1ddb75d72 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AnnotateFileResponseOrBuilder
-    extends
+public interface AnnotateFileResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateFileResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -59,8 +35,6 @@ public interface AnnotateFileResponseOrBuilder com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -68,10 +42,9 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -81,8 +54,6 @@ public interface AnnotateFileResponseOrBuilder
    */
   com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -92,8 +63,6 @@ public interface AnnotateFileResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -101,11 +70,9 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -113,50 +80,40 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index);
+  com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; - * * @return The totalPages. */ int getTotalPages(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
similarity index 73%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
index 805ac701f..ea56a6e59 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features, and with context information.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateImageRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,55 +55,48 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1.Image.Builder subBuilder = null;
-              if (image_ != null) {
-                subBuilder = image_.toBuilder();
-              }
-              image_ =
-                  input.readMessage(com.google.cloud.vision.v1.Image.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(image_);
-                image_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1.Image.Builder subBuilder = null;
+            if (image_ != null) {
+              subBuilder = image_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1.Feature.parser(), extensionRegistry));
-              break;
+            image_ = input.readMessage(com.google.cloud.vision.v1.Image.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(image_);
+              image_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null;
-              if (imageContext_ != null) {
-                subBuilder = imageContext_.toBuilder();
-              }
-              imageContext_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(imageContext_);
-                imageContext_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null;
+            if (imageContext_ != null) {
+              subBuilder = imageContext_.toBuilder();
+            }
+            imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(imageContext_);
+              imageContext_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -128,7 +104,8 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -137,33 +114,27 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AnnotateImageRequest.class,
-            com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1.AnnotateImageRequest.class, com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1.Image image_;
   /**
-   *
-   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -171,14 +142,11 @@ public boolean hasImage() { return image_ != null; } /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -186,8 +154,6 @@ public com.google.cloud.vision.v1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; } /** - * - * *
    * The image to be processed.
    * 
@@ -202,8 +168,6 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Requested features.
    * 
@@ -215,8 +179,6 @@ public java.util.List getFeaturesList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -224,13 +186,11 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -242,8 +202,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Requested features.
    * 
@@ -255,8 +213,6 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Requested features.
    * 
@@ -264,21 +220,19 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -286,25 +240,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image.
    * 
@@ -317,7 +264,6 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -349,13 +296,16 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -365,22 +315,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AnnotateImageRequest other = - (com.google.cloud.vision.v1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1.AnnotateImageRequest other = (com.google.cloud.vision.v1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -410,104 +362,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features, and with context information.
@@ -515,23 +460,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.AnnotateImageRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateImageRequest)
       com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AnnotateImageRequest.class,
-              com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1.AnnotateImageRequest.class, com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AnnotateImageRequest.newBuilder()
@@ -539,17 +482,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -575,9 +518,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -596,8 +539,7 @@ public com.google.cloud.vision.v1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1.AnnotateImageRequest result =
-          new com.google.cloud.vision.v1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1.AnnotateImageRequest result = new com.google.cloud.vision.v1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -626,39 +568,38 @@ public com.google.cloud.vision.v1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1.AnnotateImageRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1.AnnotateImageRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -666,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()) return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -689,10 +629,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageRequest other)
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -729,38 +668,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.Image,
-            com.google.cloud.vision.v1.Image.Builder,
-            com.google.cloud.vision.v1.ImageOrBuilder>
-        imageBuilder_;
+        com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder> imageBuilder_;
     /**
-     *
-     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return The image. */ public com.google.cloud.vision.v1.Image getImage() { @@ -771,8 +700,6 @@ public com.google.cloud.vision.v1.Image getImage() { } } /** - * - * *
      * The image to be processed.
      * 
@@ -793,15 +720,14 @@ public Builder setImage(com.google.cloud.vision.v1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; */ - public Builder setImage(com.google.cloud.vision.v1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.vision.v1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -812,8 +738,6 @@ public Builder setImage(com.google.cloud.vision.v1.Image.Builder builderForValue return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -824,7 +748,7 @@ public Builder mergeImage(com.google.cloud.vision.v1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -836,8 +760,6 @@ public Builder mergeImage(com.google.cloud.vision.v1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -856,8 +778,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -865,13 +785,11 @@ public Builder clearImage() { * .google.cloud.vision.v1.Image image = 1; */ public com.google.cloud.vision.v1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * The image to be processed.
      * 
@@ -882,12 +800,11 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; + return image_ == null ? + com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; } } /** - * - * *
      * The image to be processed.
      * 
@@ -895,41 +812,32 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Image, - com.google.cloud.vision.v1.Image.Builder, - com.google.cloud.vision.v1.ImageOrBuilder> + com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Image, - com.google.cloud.vision.v1.Image.Builder, - com.google.cloud.vision.v1.ImageOrBuilder>( - getImage(), getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Requested features.
      * 
@@ -944,8 +852,6 @@ public java.util.List getFeaturesList() { } } /** - * - * *
      * Requested features.
      * 
@@ -960,8 +866,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Requested features.
      * 
@@ -976,15 +880,14 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -998,8 +901,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Requested features.
      * 
@@ -1018,8 +919,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1040,15 +939,14 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1062,15 +960,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1081,8 +978,6 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderFor return this; } /** - * - * *
      * Requested features.
      * 
@@ -1101,8 +996,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1113,7 +1006,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1121,8 +1015,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1140,8 +1032,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Requested features.
      * 
@@ -1159,44 +1049,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1204,8 +1089,6 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde } } /** - * - * *
      * Requested features.
      * 
@@ -1213,47 +1096,42 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1261,47 +1139,34 @@ public java.util.List getFeaturesBui private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1322,8 +1187,6 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1342,8 +1205,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1354,9 +1215,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1368,8 +1227,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1388,8 +1245,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1397,13 +1252,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1414,14 +1267,11 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1429,24 +1279,21 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1456,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageRequest) private static final com.google.cloud.vision.v1.AnnotateImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateImageRequest(); } @@ -1470,16 +1317,16 @@ public static com.google.cloud.vision.v1.AnnotateImageRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,4 +1341,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java index f2bd241bb..7b911ccf5 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AnnotateImageRequestOrBuilder - extends +public interface AnnotateImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; - * * @return The image. */ com.google.cloud.vision.v1.Image getImage(); /** - * - * *
    * The image to be processed.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateImageRequestOrBuilder com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateImageRequestOrBuilder */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** - * - * *
    * Requested features.
    * 
@@ -89,53 +60,43 @@ public interface AnnotateImageRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesOrBuilderList(); + java.util.List + getFeaturesOrBuilderList(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java similarity index 76% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java index 174d7690c..4a705032f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateImageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,213 +59,171 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - faceAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.FaceAnnotation.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; + faceAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.FaceAnnotation.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; + labelAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - labelAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; + textAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.vision.v1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - textAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; + safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); - } - safeSearchAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.vision.v1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); } - case 66: - { - com.google.cloud.vision.v1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); - } - - break; + imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); } - case 74: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - break; + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.vision.v1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 90: { + com.google.cloud.vision.v1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.vision.v1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 98: { + com.google.cloud.vision.v1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); } - case 106: - { - com.google.cloud.vision.v1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = - input.readMessage( - com.google.cloud.vision.v1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.vision.v1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = input.readMessage(com.google.cloud.vision.v1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); } - case 114: - { - com.google.cloud.vision.v1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = - input.readMessage( - com.google.cloud.vision.v1.ProductSearchResults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); - } - break; + break; + } + case 114: { + com.google.cloud.vision.v1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); } - case 170: - { - com.google.cloud.vision.v1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = - input.readMessage( - com.google.cloud.vision.v1.ImageAnnotationContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - break; + break; + } + case 170: { + com.google.cloud.vision.v1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); } - case 178: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - localizedObjectAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.parser(), - extensionRegistry)); - break; + context_ = input.readMessage(com.google.cloud.vision.v1.ImageAnnotationContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 178: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1.LocalizedObjectAnnotation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -290,7 +231,8 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -308,34 +250,28 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateImageResponse.class, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1.AnnotateImageResponse.class, com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -347,8 +283,6 @@ public java.util.List getFaceAnnotati return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -356,13 +290,11 @@ public java.util.List getFaceAnnotati * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -374,8 +306,6 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -387,8 +317,6 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { return faceAnnotations_.get(index); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -396,15 +324,14 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index) { return faceAnnotations_.get(index); } public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -416,8 +343,6 @@ public java.util.List getLandmarkAn return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -425,13 +350,11 @@ public java.util.List getLandmarkAn * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -443,8 +366,6 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -456,8 +377,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int in return landmarkAnnotations_.get(index); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -473,8 +392,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -486,8 +403,6 @@ public java.util.List getLogoAnnota return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -495,13 +410,11 @@ public java.util.List getLogoAnnota * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -513,8 +426,6 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -526,8 +437,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index) return logoAnnotations_.get(index); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -543,8 +452,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -556,8 +463,6 @@ public java.util.List getLabelAnnot return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -565,13 +470,11 @@ public java.util.List getLabelAnnot * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -583,8 +486,6 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -596,8 +497,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index return labelAnnotations_.get(index); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -611,98 +510,73 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List - localizedObjectAnnotations_; + private java.util.List localizedObjectAnnotations_; /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List + public java.util.List getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { return localizedObjectAnnotations_.get(index); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -714,8 +588,6 @@ public java.util.List getTextAnnota return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -723,13 +595,11 @@ public java.util.List getTextAnnota * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -741,8 +611,6 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -754,8 +622,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index) return textAnnotations_.get(index); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -771,8 +637,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1.TextAnnotation fullTextAnnotation_; /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -781,7 +645,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -789,8 +652,6 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -799,18 +660,13 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -828,14 +684,11 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -843,25 +696,18 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -869,22 +715,18 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1.ImageProperties imagePropertiesAnnotation_; /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -892,25 +734,18 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -918,22 +753,18 @@ public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1.CropHintsAnnotation cropHintsAnnotation_; /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -941,25 +772,18 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -974,14 +798,11 @@ public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnot public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1.WebDetection webDetection_; /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -989,25 +810,18 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection getWebDetection() { - return webDetection_ == null - ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -1022,14 +836,11 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1.ProductSearchResults productSearchResults_; /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -1037,25 +848,18 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null - ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } /** - * - * *
    * If present, product search has completed successfully.
    * 
@@ -1063,16 +867,13 @@ public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1080,7 +881,6 @@ public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults()
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1088,8 +888,6 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1097,7 +895,6 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ @java.lang.Override @@ -1105,8 +902,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1123,15 +918,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1.ImageAnnotationContext context_;
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ @java.lang.Override @@ -1139,26 +931,19 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1.ImageAnnotationContext getContext() { - return context_ == null - ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -1172,7 +957,6 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1184,7 +968,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1237,54 +1022,60 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getImagePropertiesAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              22, localizedObjectAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1294,53 +1085,64 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AnnotateImageResponse other =
-        (com.google.cloud.vision.v1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
-      return false;
-    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1.AnnotateImageResponse other = (com.google.cloud.vision.v1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList()
+        .equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList()
+        .equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList()
+        .equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList()
+        .equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList()
+        .equals(other.getLocalizedObjectAnnotationsList())) return false;
+    if (!getTextAnnotationsList()
+        .equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation()
+          .equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation()
+          .equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
-        return false;
+      if (!getImagePropertiesAnnotation()
+          .equals(other.getImagePropertiesAnnotation())) return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation()
+          .equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection().equals(other.getWebDetection())) return false;
+      if (!getWebDetection()
+          .equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults()
+          .equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext().equals(other.getContext())) return false;
+      if (!getContext()
+          .equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1414,127 +1216,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateImageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateImageResponse) com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateImageResponse.class, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1.AnnotateImageResponse.class, com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AnnotateImageResponse.newBuilder() @@ -1542,13 +1335,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1557,7 +1351,6 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1649,9 +1442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1670,8 +1463,7 @@ public com.google.cloud.vision.v1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1.AnnotateImageResponse result = - new com.google.cloud.vision.v1.AnnotateImageResponse(this); + com.google.cloud.vision.v1.AnnotateImageResponse result = new com.google.cloud.vision.v1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1711,8 +1503,7 @@ public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1776,39 +1567,38 @@ public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1.AnnotateImageResponse) other); + return mergeFrom((com.google.cloud.vision.v1.AnnotateImageResponse)other); } else { super.mergeFrom(other); return this; @@ -1816,8 +1606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()) return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1836,10 +1625,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFaceAnnotationsFieldBuilder() : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1863,10 +1651,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarkAnnotationsFieldBuilder() - : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarkAnnotationsFieldBuilder() : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1890,10 +1677,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogoAnnotationsFieldBuilder() - : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogoAnnotationsFieldBuilder() : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1917,10 +1703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1944,10 +1729,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocalizedObjectAnnotationsFieldBuilder() - : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocalizedObjectAnnotationsFieldBuilder() : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1971,10 +1755,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTextAnnotationsFieldBuilder() - : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -2032,29 +1815,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, - com.google.cloud.vision.v1.FaceAnnotation.Builder, - com.google.cloud.vision.v1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; + com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2069,8 +1844,6 @@ public java.util.List getFaceAnnotati } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2085,8 +1858,6 @@ public int getFaceAnnotationsCount() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2101,15 +1872,14 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public Builder setFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnnotation value) { + public Builder setFaceAnnotations( + int index, com.google.cloud.vision.v1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2123,8 +1893,6 @@ public Builder setFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnno return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2143,8 +1911,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2165,15 +1931,14 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1.FaceAnnotation valu return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public Builder addFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnnotation value) { + public Builder addFaceAnnotations( + int index, com.google.cloud.vision.v1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2187,8 +1952,6 @@ public Builder addFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnno return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2207,8 +1970,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2227,8 +1988,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2239,7 +1998,8 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2247,8 +2007,6 @@ public Builder addAllFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2266,8 +2024,6 @@ public Builder clearFaceAnnotations() { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2285,20 +2041,17 @@ public Builder removeFaceAnnotations(int index) { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuilder( + int index) { return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2308,22 +2061,19 @@ public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuild public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); - } else { + return faceAnnotations_.get(index); } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2331,8 +2081,6 @@ public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2340,47 +2088,38 @@ public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder(int index) { - return getFaceAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder( + int index) { + return getFaceAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, - com.google.cloud.vision.v1.FaceAnnotation.Builder, - com.google.cloud.vision.v1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, - com.google.cloud.vision.v1.FaceAnnotation.Builder, - com.google.cloud.vision.v1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2391,34 +2130,25 @@ public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuild } private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList( - landmarkAnnotations_); + landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> - landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2426,8 +2156,6 @@ private void ensureLandmarkAnnotationsIsMutable() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2442,8 +2170,6 @@ public int getLandmarkAnnotationsCount() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2458,8 +2184,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int in } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2481,8 +2205,6 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2501,8 +2223,6 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2523,8 +2243,6 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1.EntityAnnotatio return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2546,8 +2264,6 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2566,8 +2282,6 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2586,8 +2300,6 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2598,7 +2310,8 @@ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2606,8 +2319,6 @@ public Builder addAllLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2625,8 +2336,6 @@ public Builder clearLandmarkAnnotations() { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2644,8 +2353,6 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2657,8 +2364,6 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLandmarkAnnotation return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2668,22 +2373,19 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLandmarkAnnotation public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); - } else { + return landmarkAnnotations_.get(index); } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2691,8 +2393,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2700,12 +2400,10 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2714,34 +2412,26 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotation */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2752,25 +2442,18 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotation } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> - logoAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2785,8 +2468,6 @@ public java.util.List getLogoAnnota } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2801,8 +2482,6 @@ public int getLogoAnnotationsCount() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2817,8 +2496,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index) } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2840,8 +2517,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2860,8 +2535,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2882,8 +2555,6 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1.EntityAnnotation va return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2905,8 +2576,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2925,8 +2594,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2945,8 +2612,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2957,7 +2622,8 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2965,8 +2631,6 @@ public Builder addAllLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2984,8 +2648,6 @@ public Builder clearLogoAnnotations() { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3003,8 +2665,6 @@ public Builder removeLogoAnnotations(int index) { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3016,8 +2676,6 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLogoAnnotationsBui return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3027,22 +2685,19 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLogoAnnotationsBui public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); - } else { + return logoAnnotations_.get(index); } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3050,8 +2705,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3059,12 +2712,10 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3073,34 +2724,26 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBui */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3111,25 +2754,18 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBui } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> - labelAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3144,8 +2780,6 @@ public java.util.List getLabelAnnot } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3160,8 +2794,6 @@ public int getLabelAnnotationsCount() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3176,8 +2808,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3199,8 +2829,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3219,8 +2847,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3241,8 +2867,6 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1.EntityAnnotation v return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3264,8 +2888,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3284,8 +2906,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3304,8 +2924,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3316,7 +2934,8 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -3324,8 +2943,6 @@ public Builder addAllLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3343,8 +2960,6 @@ public Builder clearLabelAnnotations() { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3362,8 +2977,6 @@ public Builder removeLabelAnnotations(int index) { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3375,8 +2988,6 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLabelAnnotationsBu return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3386,22 +2997,19 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLabelAnnotationsBu public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); - } else { + return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3409,8 +3017,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3418,12 +3024,10 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3432,34 +3036,26 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBu */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3469,38 +3065,27 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBu return labelAnnotationsBuilder_; } - private java.util.List - localizedObjectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List localizedObjectAnnotations_ = + java.util.Collections.emptyList(); private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList( - localizedObjectAnnotations_); + localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> - localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3508,16 +3093,12 @@ private void ensureLocalizedObjectAnnotationsIsMutable() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3527,19 +3108,14 @@ public int getLocalizedObjectAnnotationsCount() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3547,16 +3123,12 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAn } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { @@ -3573,16 +3145,12 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3596,19 +3164,14 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public Builder addLocalizedObjectAnnotations( - com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3622,16 +3185,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { @@ -3648,16 +3207,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3671,16 +3226,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3694,22 +3245,19 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addAllLocalizedObjectAnnotations( java.lang.Iterable values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3717,16 +3265,12 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3739,16 +3283,12 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3761,55 +3301,42 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder - getLocalizedObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( + int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); - } else { + return localizedObjectAnnotations_.get(index); } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3817,68 +3344,48 @@ public Builder removeLocalizedObjectAnnotations(int index) { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder(int index) { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( + int index) { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3889,25 +3396,18 @@ public Builder removeLocalizedObjectAnnotations(int index) { } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList(textAnnotations_); + textAnnotations_ = new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> - textAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3922,8 +3422,6 @@ public java.util.List getTextAnnota } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3938,8 +3436,6 @@ public int getTextAnnotationsCount() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3954,8 +3450,6 @@ public com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index) } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3977,8 +3471,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3997,8 +3489,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4019,8 +3509,6 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1.EntityAnnotation va return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4042,8 +3530,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4062,8 +3548,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4082,8 +3566,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4094,7 +3576,8 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -4102,8 +3585,6 @@ public Builder addAllTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4121,8 +3602,6 @@ public Builder clearTextAnnotations() { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4140,8 +3619,6 @@ public Builder removeTextAnnotations(int index) { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4153,8 +3630,6 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getTextAnnotationsBui return getTextAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4164,22 +3639,19 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getTextAnnotationsBui public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); - } else { + return textAnnotations_.get(index); } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4187,8 +3659,6 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4196,12 +3666,10 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4210,34 +3678,26 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, - com.google.cloud.vision.v1.EntityAnnotation.Builder, - com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -4249,13 +3709,8 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui private com.google.cloud.vision.v1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation, - com.google.cloud.vision.v1.TextAnnotation.Builder, - com.google.cloud.vision.v1.TextAnnotationOrBuilder> - fullTextAnnotationBuilder_; + com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4264,15 +3719,12 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui
      * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4281,21 +3733,16 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4319,8 +3766,6 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation v
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4342,8 +3787,6 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4357,9 +3800,7 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-              com.google.cloud.vision.v1.TextAnnotation.newBuilder(fullTextAnnotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -4371,8 +3812,6 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4394,8 +3833,6 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4406,13 +3843,11 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-
+      
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4426,14 +3861,11 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null
-            ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance()
-            : fullTextAnnotation_;
+        return fullTextAnnotation_ == null ?
+            com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4444,17 +3876,14 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
      * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.TextAnnotation,
-            com.google.cloud.vision.v1.TextAnnotation.Builder,
-            com.google.cloud.vision.v1.TextAnnotationOrBuilder>
+        com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder> 
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.TextAnnotation,
-                com.google.cloud.vision.v1.TextAnnotation.Builder,
-                com.google.cloud.vision.v1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(), getParentForChildren(), isClean());
+        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(),
+                getParentForChildren(),
+                isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -4462,47 +3891,34 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
 
     private com.google.cloud.vision.v1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.SafeSearchAnnotation,
-            com.google.cloud.vision.v1.SafeSearchAnnotation.Builder,
-            com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>
-        safeSearchAnnotationBuilder_;
+        com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
     /**
-     *
-     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4523,8 +3939,6 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1.SafeSearchAnno return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4543,22 +3957,17 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation( - com.google.cloud.vision.v1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -4570,8 +3979,6 @@ public Builder mergeSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4590,42 +3997,33 @@ public Builder clearSafeSearchAnnotation() { return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1.SafeSearchAnnotation.Builder - getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? + com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4633,17 +4031,14 @@ public Builder clearSafeSearchAnnotation() { * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.SafeSearchAnnotation, - com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.SafeSearchAnnotation, - com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), getParentForChildren(), isClean()); + safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), + getParentForChildren(), + isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4651,47 +4046,34 @@ public Builder clearSafeSearchAnnotation() { private com.google.cloud.vision.v1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, - com.google.cloud.vision.v1.ImageProperties.Builder, - com.google.cloud.vision.v1.ImagePropertiesOrBuilder> - imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4712,8 +4094,6 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1.ImageProp return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4732,22 +4112,17 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation( - com.google.cloud.vision.v1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1.ImageProperties.newBuilder(imagePropertiesAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4759,8 +4134,6 @@ public Builder mergeImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4779,42 +4152,33 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1.ImageProperties.Builder - getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? + com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4822,17 +4186,14 @@ public Builder clearImagePropertiesAnnotation() { * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, - com.google.cloud.vision.v1.ImageProperties.Builder, - com.google.cloud.vision.v1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, - com.google.cloud.vision.v1.ImageProperties.Builder, - com.google.cloud.vision.v1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), getParentForChildren(), isClean()); + imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), + getParentForChildren(), + isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4840,47 +4201,34 @@ public Builder clearImagePropertiesAnnotation() { private com.google.cloud.vision.v1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, - com.google.cloud.vision.v1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> - cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4901,8 +4249,6 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnnota return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4921,8 +4267,6 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4933,9 +4277,7 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnno if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4947,8 +4289,6 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnno return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4967,8 +4307,6 @@ public Builder clearCropHintsAnnotation() { return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4976,32 +4314,26 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ public com.google.cloud.vision.v1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? + com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -5009,17 +4341,14 @@ public com.google.cloud.vision.v1.CropHintsAnnotation.Builder getCropHintsAnnota * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, - com.google.cloud.vision.v1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, - com.google.cloud.vision.v1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), getParentForChildren(), isClean()); + cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), + getParentForChildren(), + isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -5027,47 +4356,34 @@ public com.google.cloud.vision.v1.CropHintsAnnotation.Builder getCropHintsAnnota private com.google.cloud.vision.v1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, - com.google.cloud.vision.v1.WebDetection.Builder, - com.google.cloud.vision.v1.WebDetectionOrBuilder> - webDetectionBuilder_; + com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder> webDetectionBuilder_; /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return The webDetection. */ public com.google.cloud.vision.v1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null - ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5088,8 +4404,6 @@ public Builder setWebDetection(com.google.cloud.vision.v1.WebDetection value) { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5108,8 +4422,6 @@ public Builder setWebDetection( return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5120,9 +4432,7 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1.WebDetection value) if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1.WebDetection.newBuilder(webDetection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); } else { webDetection_ = value; } @@ -5134,8 +4444,6 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1.WebDetection value) return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5154,8 +4462,6 @@ public Builder clearWebDetection() { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5163,13 +4469,11 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5180,14 +4484,11 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null - ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? + com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5195,17 +4496,14 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder * .google.cloud.vision.v1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, - com.google.cloud.vision.v1.WebDetection.Builder, - com.google.cloud.vision.v1.WebDetectionOrBuilder> + com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, - com.google.cloud.vision.v1.WebDetection.Builder, - com.google.cloud.vision.v1.WebDetectionOrBuilder>( - getWebDetection(), getParentForChildren(), isClean()); + webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder>( + getWebDetection(), + getParentForChildren(), + isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -5213,47 +4511,34 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder private com.google.cloud.vision.v1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, - com.google.cloud.vision.v1.ProductSearchResults.Builder, - com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> - productSearchResultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null - ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5274,8 +4559,6 @@ public Builder setProductSearchResults(com.google.cloud.vision.v1.ProductSearchR return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5294,22 +4577,17 @@ public Builder setProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults( - com.google.cloud.vision.v1.ProductSearchResults value) { + public Builder mergeProductSearchResults(com.google.cloud.vision.v1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1.ProductSearchResults.newBuilder(productSearchResults_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); } else { productSearchResults_ = value; } @@ -5321,8 +4599,6 @@ public Builder mergeProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5341,42 +4617,33 @@ public Builder clearProductSearchResults() { return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1.ProductSearchResults.Builder - getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1.ProductSearchResults.Builder getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null - ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? + com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5384,17 +4651,14 @@ public Builder clearProductSearchResults() { * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, - com.google.cloud.vision.v1.ProductSearchResults.Builder, - com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, - com.google.cloud.vision.v1.ProductSearchResults.Builder, - com.google.cloud.vision.v1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), getParentForChildren(), isClean()); + productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), + getParentForChildren(), + isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -5402,11 +4666,8 @@ public Builder clearProductSearchResults() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5414,15 +4675,12 @@ public Builder clearProductSearchResults() {
      * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5430,7 +4688,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -5441,8 +4698,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5465,8 +4720,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5475,7 +4728,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -5486,8 +4740,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5499,7 +4751,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -5511,8 +4764,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5533,8 +4784,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5544,13 +4793,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5563,12 +4810,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5578,14 +4824,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -5593,49 +4839,36 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImageAnnotationContext,
-            com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>
-        contextBuilder_;
+        com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder> contextBuilder_;
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return The context. */ public com.google.cloud.vision.v1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5657,8 +4890,6 @@ public Builder setContext(com.google.cloud.vision.v1.ImageAnnotationContext valu
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5678,8 +4909,6 @@ public Builder setContext(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5691,9 +4920,7 @@ public Builder mergeContext(com.google.cloud.vision.v1.ImageAnnotationContext va
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-              com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder(context_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -5705,8 +4932,6 @@ public Builder mergeContext(com.google.cloud.vision.v1.ImageAnnotationContext va
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5726,8 +4951,6 @@ public Builder clearContext() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5736,13 +4959,11 @@ public Builder clearContext() {
      * .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1.ImageAnnotationContext.Builder getContextBuilder() {
-
+      
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5754,14 +4975,11 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null
-            ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()
-            : context_;
+        return context_ == null ?
+            com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5770,24 +4988,21 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
      * .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImageAnnotationContext,
-            com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>
+        com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder> 
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.ImageAnnotationContext,
-                com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
-                com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>(
-                getContext(), getParentForChildren(), isClean());
+        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>(
+                getContext(),
+                getParentForChildren(),
+                isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5797,12 +5012,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1.AnnotateImageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateImageResponse();
   }
@@ -5811,16 +5026,16 @@ public static com.google.cloud.vision.v1.AnnotateImageResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateImageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateImageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateImageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateImageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5835,4 +5050,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
similarity index 84%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
index 5f5279e8c..bb7b499d1 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AnnotateImageResponseOrBuilder
-    extends
+public interface AnnotateImageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - java.util.List getFaceAnnotationsList(); + java.util.List + getFaceAnnotationsList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -44,8 +25,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -54,40 +33,34 @@ public interface AnnotateImageResponseOrBuilder */ int getFaceAnnotationsCount(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - java.util.List getLandmarkAnnotationsList(); + java.util.List + getLandmarkAnnotationsList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,8 +69,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -106,40 +77,34 @@ public interface AnnotateImageResponseOrBuilder */ int getLandmarkAnnotationsCount(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - java.util.List getLogoAnnotationsList(); + java.util.List + getLogoAnnotationsList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -148,8 +113,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -158,40 +121,34 @@ public interface AnnotateImageResponseOrBuilder */ int getLogoAnnotationsCount(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - java.util.List getLabelAnnotationsList(); + java.util.List + getLabelAnnotationsList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -200,8 +157,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -210,109 +165,83 @@ public interface AnnotateImageResponseOrBuilder */ int getLabelAnnotationsCount(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ int getLocalizedObjectAnnotationsCount(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - java.util.List getTextAnnotationsList(); + java.util.List + getTextAnnotationsList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -321,8 +250,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -331,30 +258,25 @@ public interface AnnotateImageResponseOrBuilder */ int getTextAnnotationsCount(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -363,13 +285,10 @@ public interface AnnotateImageResponseOrBuilder
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -378,13 +297,10 @@ public interface AnnotateImageResponseOrBuilder
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -397,32 +313,24 @@ public interface AnnotateImageResponseOrBuilder
   com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -432,32 +340,24 @@ public interface AnnotateImageResponseOrBuilder com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -467,32 +367,24 @@ public interface AnnotateImageResponseOrBuilder com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -502,32 +394,24 @@ public interface AnnotateImageResponseOrBuilder com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; - * * @return The webDetection. */ com.google.cloud.vision.v1.WebDetection getWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -537,32 +421,24 @@ public interface AnnotateImageResponseOrBuilder com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
@@ -572,8 +448,6 @@ public interface AnnotateImageResponseOrBuilder com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -581,13 +455,10 @@ public interface AnnotateImageResponseOrBuilder
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -595,13 +466,10 @@ public interface AnnotateImageResponseOrBuilder
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -613,34 +481,26 @@ public interface AnnotateImageResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; - * * @return The context. */ com.google.cloud.vision.v1.ImageAnnotationContext getContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
similarity index 72%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
index fa901f0e8..56dd08ed0 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,61 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +116,8 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -153,33 +126,27 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -187,25 +154,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -220,8 +180,6 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -233,8 +191,6 @@ public java.util.List getFeaturesList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -242,13 +198,11 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -260,8 +214,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -273,8 +225,6 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -282,21 +232,19 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -304,25 +252,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -337,14 +278,11 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -352,25 +290,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -383,7 +314,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -418,16 +349,20 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,26 +372,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncAnnotateFileRequest other = - (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -491,126 +429,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncAnnotateFileRequest.newBuilder() @@ -618,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -681,8 +610,7 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1.AsyncAnnotateFileRequest result = - new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -716,39 +644,38 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -756,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -779,10 +705,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileRequest oth featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -813,8 +738,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -823,52 +747,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -889,15 +799,14 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig( + com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -908,8 +817,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder bui return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -920,9 +827,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -934,8 +839,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -954,8 +857,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -963,13 +864,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -980,14 +879,11 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -995,41 +891,32 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, - com.google.cloud.vision.v1.InputConfig.Builder, - com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1044,8 +931,6 @@ public java.util.List getFeaturesList() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1060,8 +945,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1076,15 +959,14 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1098,8 +980,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1118,8 +998,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1140,15 +1018,14 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,15 +1039,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1181,8 +1057,6 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderFor return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1201,8 +1075,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1213,7 +1085,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1221,8 +1094,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1240,8 +1111,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1259,44 +1128,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1304,8 +1168,6 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1313,47 +1175,42 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int inde * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, - com.google.cloud.vision.v1.Feature.Builder, - com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1361,47 +1218,34 @@ public java.util.List getFeaturesBui private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1422,8 +1266,6 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1442,8 +1284,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1454,9 +1294,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1468,8 +1306,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1488,8 +1324,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1497,13 +1331,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1514,14 +1346,11 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1529,17 +1358,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, - com.google.cloud.vision.v1.ImageContext.Builder, - com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1547,47 +1373,34 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1608,8 +1421,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1628,8 +1439,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1640,9 +1449,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1654,8 +1461,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1674,8 +1479,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1683,13 +1486,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1700,14 +1501,11 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1715,24 +1513,21 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1742,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(); } @@ -1756,16 +1551,16 @@ public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1780,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java index d3bff79b7..ef0dcf234 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncAnnotateFileRequestOrBuilder - extends +public interface AsyncAnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AsyncAnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,53 +60,43 @@ public interface AsyncAnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List getFeaturesOrBuilderList(); + java.util.List + getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -145,32 +106,24 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; - * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java index a1b826d68..012a4e6bf 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncAnnotateFileResponse() {} + private AsyncAnnotateFileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncAnnotateFileResponse other = - (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncAnnotateFileResponse.newBuilder() @@ -365,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -408,8 +370,7 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1.AsyncAnnotateFileResponse result = - new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -423,39 +384,38 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileResponse) other); + return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileResponse)other); } else { super.mergeFrom(other); return this; @@ -463,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -487,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -500,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -561,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -581,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -593,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -607,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -627,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -636,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -653,14 +586,11 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -668,24 +598,21 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -695,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(); } @@ -709,16 +636,16 @@ public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -733,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java index 7d2befb51..4fd2be490 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncAnnotateFileResponseOrBuilder - extends +public interface AsyncAnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java index 1bf6d656f..c4b7a415f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsyncBatchAnnotateFilesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
     parent_ = "";
@@ -46,15 +27,16 @@ private AsyncBatchAnnotateFilesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,33 +56,28 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requests_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              requests_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1.AsyncAnnotateFileRequest.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              requests_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            requests_.add(
+                input.readMessage(com.google.cloud.vision.v1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            parent_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,7 +85,8 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -117,95 +95,72 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
-            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
-   *
-   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -216,8 +171,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -230,7 +183,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -239,15 +191,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -260,15 +211,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -277,7 +229,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -306,7 +258,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -319,16 +272,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,104 +306,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -457,23 +403,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
-              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -481,17 +425,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -507,9 +451,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -528,8 +472,7 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest result =
-          new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -549,39 +492,38 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +531,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other) {
-      if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -609,10 +550,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesReque
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRequestsFieldBuilder()
-                    : null;
+            requestsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRequestsFieldBuilder() : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -641,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -651,36 +590,26 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List requests_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ =
-            new java.util.ArrayList(requests_);
+        requests_ = new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AsyncAnnotateFileRequest,
-            com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder,
-            com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>
-        requestsBuilder_;
+        com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -690,15 +619,11 @@ public java.util.List getRe } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -708,15 +633,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -726,15 +647,11 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -751,15 +668,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -773,15 +686,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -797,15 +706,11 @@ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest v return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -822,15 +727,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -844,15 +745,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -866,21 +763,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -888,15 +782,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -909,15 +799,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -930,52 +816,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -983,65 +856,49 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; @@ -1049,8 +906,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1063,13 +918,13 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu
      * 
* * string parent = 4; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1078,8 +933,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1092,14 +945,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1107,8 +961,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1121,22 +973,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 4; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1149,18 +999,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1173,23 +1020,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1199,12 +1046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(); } @@ -1213,16 +1060,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1084,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java index 82784defc..983e9da91 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -1,93 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateFilesRequestOrBuilder - extends +public interface AsyncBatchAnnotateFilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getRequestsList(); + java.util.List + getRequestsList(); /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index); /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getRequestsCount(); /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); + com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -100,13 +64,10 @@ public interface AsyncBatchAnnotateFilesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -119,8 +80,8 @@ public interface AsyncBatchAnnotateFilesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java index 2b8054678..4ec8298c6 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,26 +54,22 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -141,8 +115,6 @@ public java.util.List getR
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -151,13 +123,11 @@ public java.util.List getR
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -170,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -184,8 +152,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int ind
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -200,7 +166,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -226,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -266,127 +233,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.newBuilder() @@ -394,17 +351,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override @@ -439,8 +396,7 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -459,39 +415,38 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; @@ -499,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -519,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRespo responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -547,8 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,30 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileResponse, - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, - com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -596,8 +539,6 @@ public java.util.List getR
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -613,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -630,8 +569,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -654,8 +591,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -675,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -698,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1.AsyncAnnotateFileResponse
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -722,8 +653,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -743,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -764,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -777,7 +702,8 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -785,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -805,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -825,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -839,8 +759,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder getResponses
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -851,14 +769,11 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder getResponses
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -866,8 +781,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
      *
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -875,8 +790,6 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -885,12 +798,10 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -900,13 +811,10 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponses
      */
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -914,30 +822,27 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponses
      *
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AsyncAnnotateFileResponse,
-            com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.AsyncAnnotateFileResponse,
-                com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -947,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
   private static final com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse();
   }
@@ -961,16 +866,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -985,4 +890,6 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 69%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 2c62ae25c..29a290145 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder
-    extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -78,5 +53,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
+  com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
similarity index 65%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
index c018a07dc..f72dad167 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
@@ -1,43 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Request for async image annotation for a list of images.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest} */ -public final class AsyncBatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesRequest.newBuilder() to construct. - private AsyncBatchAnnotateImagesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -45,15 +26,16 @@ private AsyncBatchAnnotateImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,48 +55,41 @@ private AsyncBatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -122,7 +97,8 @@ private AsyncBatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -131,114 +107,87 @@ private AsyncBatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index) { return requests_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -246,34 +195,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -283,8 +221,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -297,7 +233,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -306,15 +241,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -327,15 +261,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -344,7 +279,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,7 +290,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -376,10 +311,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -392,20 +329,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -433,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for async image annotation for a list of images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.newBuilder() @@ -561,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override @@ -614,8 +543,7 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest result = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -640,39 +568,38 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -680,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -700,10 +626,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequ requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -735,8 +660,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,36 +669,26 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -784,15 +698,11 @@ public java.util.List getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -802,15 +712,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -820,17 +726,14 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder setRequests( + int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -844,15 +747,11 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -866,15 +765,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -890,17 +785,14 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder addRequests( + int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -914,15 +806,11 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -936,15 +824,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -958,21 +842,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -980,15 +861,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -1001,15 +878,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -1022,51 +895,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder( + int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -1074,63 +935,49 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { - return getRequestsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; @@ -1138,58 +985,39 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1205,15 +1033,11 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.vision.v1.OutputConfig.Builder builderForValue) { @@ -1227,23 +1051,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1255,15 +1073,11 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1277,64 +1091,48 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1342,8 +1140,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1356,13 +1152,13 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder
      * 
* * string parent = 4; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1371,8 +1167,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1385,14 +1179,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1400,8 +1195,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1414,22 +1207,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 4; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1442,18 +1233,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1466,23 +1254,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1492,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(); } @@ -1506,16 +1294,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1530,4 +1318,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java index e5a854c14..0fa4ae93f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -1,134 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateImagesRequestOrBuilder - extends +public interface AsyncBatchAnnotateImagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getRequestsList(); + java.util.List + getRequestsList(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getRequestsCount(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -141,13 +91,10 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -160,8 +107,8 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java similarity index 67% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java index 42baf70da..68726c318 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response to an async batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse} */ -public final class AsyncBatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesResponse.newBuilder() to construct. - private AsyncBatchAnnotateImagesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncBatchAnnotateImagesResponse() {} + private AsyncBatchAnnotateImagesResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,29 +52,26 @@ private AsyncBatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private AsyncBatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
@@ -170,7 +138,6 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -196,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -239,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to an async batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.newBuilder() @@ -367,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override @@ -410,8 +370,7 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse result = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -465,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -489,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -563,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -583,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -595,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -609,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -629,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -638,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -655,14 +586,11 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -670,24 +598,21 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, - com.google.cloud.vision.v1.OutputConfig.Builder, - com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -697,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(); } @@ -711,16 +636,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -735,4 +660,6 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java index 84a8df822..7398872f2 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateImagesResponseOrBuilder - extends +public interface AsyncBatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java index 7b4419806..6d3f945fc 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * A list of requests to annotate files using the BatchAnnotateFiles API.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesRequest} */ -public final class BatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateFilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateFilesRequest) BatchAnnotateFilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesRequest.newBuilder() to construct. private BatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateFilesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -44,15 +26,16 @@ private BatchAnnotateFilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateFilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateFilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private BatchAnnotateFilesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1.AnnotateFileRequest.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + requests_.add( + input.readMessage(com.google.cloud.vision.v1.AnnotateFileRequest.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private BatchAnnotateFilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -114,111 +94,87 @@ private BatchAnnotateFilesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index) { return requests_.get(index); } public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -231,7 +187,6 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil
    * 
* * string parent = 3; - * * @return The parent. */ @java.lang.Override @@ -240,15 +195,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -261,15 +215,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 3; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -278,7 +233,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,7 +244,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -307,7 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); @@ -320,16 +276,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1.BatchAnnotateFilesRequest other = (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -353,126 +310,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A list of requests to annotate files using the BatchAnnotateFiles API.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateFilesRequest) com.google.cloud.vision.v1.BatchAnnotateFilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateFilesRequest.newBuilder() @@ -480,17 +428,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override @@ -527,8 +475,7 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateFilesRequest buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateFilesRequest result = - new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(this); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest result = new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -548,39 +495,38 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateFilesRequest) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesRequest) other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesRequest)other); } else { super.mergeFrom(other); return this; @@ -588,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesRequest other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -608,10 +553,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesRequest ot requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -640,8 +584,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -650,37 +593,27 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, - com.google.cloud.vision.v1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -690,16 +623,12 @@ public java.util.List getRequest } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -709,16 +638,12 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -728,18 +653,15 @@ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { + public Builder setRequests( + int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,16 +675,12 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateFileReq return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -776,16 +694,12 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -801,18 +715,15 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { + public Builder addRequests( + int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -826,16 +737,12 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateFileReq return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -849,16 +756,12 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -872,22 +775,19 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -895,16 +795,12 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -917,16 +813,12 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -939,53 +831,42 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder( + int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -993,66 +874,52 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder(int index) { - return getRequestsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, - com.google.cloud.vision.v1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, - com.google.cloud.vision.v1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; @@ -1060,8 +927,6 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1074,13 +939,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder
      * 
* * string parent = 3; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1089,8 +954,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1103,14 +966,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 3; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1118,8 +982,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1132,22 +994,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 3; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1160,18 +1020,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 3; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1184,23 +1041,23 @@ public Builder clearParent() {
      * 
* * string parent = 3; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1210,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1.BatchAnnotateFilesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(); } @@ -1224,16 +1081,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,4 +1105,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.BatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java index 59b062994..9d124d4cc 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java @@ -1,98 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateFilesRequestOrBuilder - extends +public interface BatchAnnotateFilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getRequestsList(); + java.util.List + getRequestsList(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getRequestsCount(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); + com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -105,13 +69,10 @@ public interface BatchAnnotateFilesRequestOrBuilder
    * 
* * string parent = 3; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -124,8 +85,8 @@ public interface BatchAnnotateFilesRequestOrBuilder
    * 
* * string parent = 3; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java index 23c6ff1ed..3a17d52d3 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * A list of file annotation responses.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesResponse} */ -public final class BatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateFilesResponse) BatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesResponse.newBuilder() to construct. private BatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +54,22 @@ private BatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1.AnnotateFileResponse.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1.AnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +77,8 @@ private BatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -106,27 +87,22 @@ private BatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -139,8 +115,6 @@ public java.util.List getRespon
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -149,13 +123,11 @@ public java.util.List getRespon
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -168,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -182,8 +152,6 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -192,12 +160,12 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index) {
+  public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
+      int index) {
     return responses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -223,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -233,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.BatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1.BatchAnnotateFilesResponse other = (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,127 +233,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1.BatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A list of file annotation responses.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateFilesResponse) com.google.cloud.vision.v1.BatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateFilesResponse.newBuilder() @@ -391,17 +351,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override @@ -436,8 +396,7 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1.BatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse result = new com.google.cloud.vision.v1.BatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +415,38 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; @@ -496,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -516,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesResponse o responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -544,8 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,29 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileResponse, - com.google.cloud.vision.v1.AnnotateFileResponse.Builder, - com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -592,8 +539,6 @@ public java.util.List getRespon
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -609,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -626,8 +569,6 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -635,7 +576,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
+    public Builder setResponses(
+        int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -649,8 +591,6 @@ public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateFileRe
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -670,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -693,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateFileResponse valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -702,7 +638,8 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateFileResponse valu
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
+    public Builder addResponses(
+        int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -716,8 +653,6 @@ public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateFileRe
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -737,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -758,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -771,7 +702,8 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -779,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -799,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -819,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -828,12 +754,11 @@ public Builder removeResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuilder(int index) {
+    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuilder(
+        int index) {
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -844,14 +769,11 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuild
     public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -859,8 +781,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -868,8 +790,6 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -878,12 +798,10 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -891,13 +809,12 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuild
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder(int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder(
+        int index) {
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -905,30 +822,27 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuild
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AnnotateFileResponse,
-            com.google.cloud.vision.v1.AnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.AnnotateFileResponse,
-                com.google.cloud.vision.v1.AnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -938,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesResponse)
   private static final com.google.cloud.vision.v1.BatchAnnotateFilesResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateFilesResponse();
   }
@@ -952,16 +866,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -976,4 +890,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1.BatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
index 68d7a4738..e83b9af3a 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface BatchAnnotateFilesResponseOrBuilder
-    extends
+public interface BatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -78,5 +53,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
+  com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
similarity index 67%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
index 94160397f..8716b59a3 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -44,15 +26,16 @@ private BatchAnnotateImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + requests_.add( + input.readMessage(com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -114,106 +94,82 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index) { return requests_.get(index); } public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -226,7 +182,6 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -235,15 +190,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -256,15 +210,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -273,7 +228,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +239,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -302,7 +257,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -315,16 +271,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,127 +305,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateImagesRequest.newBuilder() @@ -476,17 +423,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override @@ -523,8 +470,7 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -544,39 +490,38 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -584,8 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -604,10 +548,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesRequest o requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -636,8 +579,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,36 +588,26 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -685,15 +617,11 @@ public java.util.List getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -703,15 +631,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -721,17 +645,14 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder setRequests( + int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -745,15 +666,11 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -767,15 +684,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -791,17 +704,14 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder addRequests( + int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,15 +725,11 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -837,15 +743,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -859,21 +761,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -881,15 +780,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -902,15 +797,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -923,51 +814,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder( + int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -975,63 +854,49 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { - return getRequestsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, - com.google.cloud.vision.v1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; @@ -1039,8 +904,6 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1053,13 +916,13 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde
      * 
* * string parent = 4; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1068,8 +931,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1082,14 +943,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1097,8 +959,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1111,22 +971,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 4; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1139,18 +997,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1163,23 +1018,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1189,12 +1044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesRequest) private static final com.google.cloud.vision.v1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(); } @@ -1203,16 +1058,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1227,4 +1082,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java index 30eceb32d..0ccea9647 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java @@ -1,93 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateImagesRequestOrBuilder - extends +public interface BatchAnnotateImagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateImagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getRequestsList(); + java.util.List + getRequestsList(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getRequestsCount(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -100,13 +64,10 @@ public interface BatchAnnotateImagesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -119,8 +80,8 @@ public interface BatchAnnotateImagesRequestOrBuilder
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java index c6c272c8f..c161fe325 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,26 +54,22 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1.AnnotateImageResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1.AnnotateImageResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,7 +77,8 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -107,27 +87,22 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -139,8 +114,6 @@ public java.util.List getRespo return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,13 +121,11 @@ public java.util.List getRespo * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -166,8 +137,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -179,8 +148,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index) return responses_.get(index); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -194,7 +161,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.BatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateImagesResponse.newBuilder() @@ -388,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override @@ -433,8 +391,7 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -453,39 +410,38 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -493,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -513,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesResponse responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -541,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList(responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -588,8 +533,6 @@ public java.util.List getRespo } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -604,8 +547,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,15 +561,14 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index) } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { + public Builder setResponses( + int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -642,8 +582,6 @@ public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageR return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -662,8 +600,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -684,15 +620,14 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { + public Builder addResponses( + int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -706,8 +641,6 @@ public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageR return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -726,8 +659,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -746,8 +677,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -758,7 +687,8 @@ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -766,8 +696,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -785,8 +713,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -804,20 +730,17 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(int index) { + public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder( + int index) { return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -827,22 +750,19 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuil public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -850,8 +770,6 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -859,55 +777,49 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(int index) { - return getResponsesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder( + int index) { + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, - com.google.cloud.vision.v1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesResponse) private static final com.google.cloud.vision.v1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(); } @@ -931,16 +843,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,4 +867,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java index 60ac4e878..fc2c037c2 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateImagesResponseOrBuilder - extends +public interface BatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -44,8 +25,6 @@ public interface BatchAnnotateImagesResponseOrBuilder */ com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -54,24 +33,21 @@ public interface BatchAnnotateImagesResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java index b2a27b2a9..4eda62dc0 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchOperationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,50 +55,45 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
+            }
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,41 +101,36 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.BatchOperationMetadata.class,
-            com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1.BatchOperationMetadata.class, com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.BatchOperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -166,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is actively being processed.
      * 
@@ -176,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROCESSING(1), /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -187,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCESSFUL(2),
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -197,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -212,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -222,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is actively being processed.
      * 
@@ -232,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROCESSING_VALUE = 1; /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -243,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -253,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -265,6 +220,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -289,55 +245,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return PROCESSING;
-        case 2:
-          return SUCCESSFUL;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return PROCESSING;
+        case 2: return SUCCESSFUL;
+        case 3: return FAILED;
+        case 4: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.vision.v1.BatchOperationMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -357,52 +309,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.BatchOperationMetadata.State result = com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -410,14 +348,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -425,8 +360,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -441,15 +374,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -457,15 +387,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -473,8 +400,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -488,7 +413,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -500,9 +424,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (state_
-        != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (state_ != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -520,15 +444,17 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_
-        != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+    if (state_ != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -538,22 +464,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.BatchOperationMetadata other =
-        (com.google.cloud.vision.v1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1.BatchOperationMetadata other = (com.google.cloud.vision.v1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -582,103 +509,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -687,23 +607,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchOperationMetadata)
       com.google.cloud.vision.v1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.BatchOperationMetadata.class,
-              com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1.BatchOperationMetadata.class, com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.BatchOperationMetadata.newBuilder()
@@ -711,15 +629,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -741,9 +660,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -762,8 +681,7 @@ public com.google.cloud.vision.v1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1.BatchOperationMetadata result =
-          new com.google.cloud.vision.v1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1.BatchOperationMetadata result = new com.google.cloud.vision.v1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -783,39 +701,38 @@ public com.google.cloud.vision.v1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1.BatchOperationMetadata) other);
+        return mergeFrom((com.google.cloud.vision.v1.BatchOperationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -823,8 +740,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -853,8 +769,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -866,67 +781,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.BatchOperationMetadata.State result = com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -934,24 +833,21 @@ public Builder setState(com.google.cloud.vision.v1.BatchOperationMetadata.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -959,47 +855,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1020,15 +903,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1039,8 +921,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1051,7 +931,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1063,8 +943,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1083,8 +961,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1092,13 +968,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1109,14 +983,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1124,17 +995,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1142,35 +1010,26 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1181,8 +1040,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1204,8 +1061,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1213,7 +1068,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1224,8 +1080,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1237,7 +1091,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1249,8 +1103,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1270,8 +1122,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1280,13 +1130,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1298,12 +1146,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1312,24 +1159,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1339,12 +1183,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1.BatchOperationMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchOperationMetadata();
   }
@@ -1353,16 +1197,16 @@ public static com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchOperationMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchOperationMetadata(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchOperationMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchOperationMetadata(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1377,4 +1221,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
index bfe82e512..9b32e315c 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
@@ -1,80 +1,50 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface BatchOperationMetadataOrBuilder
-    extends
+public interface BatchOperationMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1.BatchOperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -84,34 +54,26 @@ public interface BatchOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
similarity index 77%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
index ddcae533b..cf6fccb4a 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/text_annotation.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Block} */ -public final class Block extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Block extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Block) BlockOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -44,15 +26,16 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,69 +55,59 @@ private Block( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paragraphs_.add( - input.readMessage( - com.google.cloud.vision.v1.Paragraph.parser(), extensionRegistry)); - break; + property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - blockType_ = rawValue; - break; + break; + } + case 18: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 45: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + paragraphs_.add( + input.readMessage(com.google.cloud.vision.v1.Paragraph.parser(), extensionRegistry)); + break; + } + case 32: { + int rawValue = input.readEnum(); + + blockType_ = rawValue; + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -142,7 +115,8 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -151,34 +125,29 @@ private Block( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Block_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Block.class, com.google.cloud.vision.v1.Block.Builder.class); } /** - * - * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.Block.BlockType} */ - public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown block type.
      * 
@@ -187,8 +156,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Regular text block.
      * 
@@ -197,8 +164,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(1), /** - * - * *
      * Table block.
      * 
@@ -207,8 +172,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(2), /** - * - * *
      * Image block.
      * 
@@ -217,8 +180,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ PICTURE(3), /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -227,8 +188,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ RULER(4), /** - * - * *
      * Barcode block.
      * 
@@ -240,8 +199,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown block type.
      * 
@@ -250,8 +207,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Regular text block.
      * 
@@ -260,8 +215,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 1; /** - * - * *
      * Table block.
      * 
@@ -270,8 +223,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 2; /** - * - * *
      * Image block.
      * 
@@ -280,8 +231,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PICTURE_VALUE = 3; /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -290,8 +239,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RULER_VALUE = 4; /** - * - * *
      * Barcode block.
      * 
@@ -300,6 +247,7 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BARCODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,55 +272,52 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return TEXT; - case 2: - return TABLE; - case 3: - return PICTURE; - case 4: - return RULER; - case 5: - return BARCODE; - default: - return null; + case 0: return UNKNOWN; + case 1: return TEXT; + case 2: return TABLE; + case 3: return PICTURE; + case 4: return RULER; + case 5: return BARCODE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlockType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -392,14 +337,11 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -407,25 +349,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the block.
    * 
@@ -440,8 +375,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -461,7 +394,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -469,8 +401,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -490,18 +420,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -530,8 +455,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -543,8 +466,6 @@ public java.util.List getParagraphsList() return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -552,13 +473,11 @@ public java.util.List getParagraphsList() * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -570,8 +489,6 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -583,8 +500,6 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -592,57 +507,46 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The blockType. */ - @java.lang.Override - public com.google.cloud.vision.v1.Block.BlockType getBlockType() { + @java.lang.Override public com.google.cloud.vision.v1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Block.BlockType result = - com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1.Block.BlockType result = com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -651,7 +555,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -663,7 +566,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -689,19 +593,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -711,7 +620,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Block)) { return super.equals(obj); @@ -720,16 +629,20 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getParagraphsList().equals(other.getParagraphsList())) return false; + if (!getParagraphsList() + .equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -756,132 +669,125 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Block parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Block parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Block parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Block parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Block parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Block parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Block parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Block} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Block) com.google.cloud.vision.v1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Block_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Block.class, - com.google.cloud.vision.v1.Block.Builder.class); + com.google.cloud.vision.v1.Block.class, com.google.cloud.vision.v1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1.Block.newBuilder() @@ -889,17 +795,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -929,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override @@ -981,39 +887,38 @@ public com.google.cloud.vision.v1.Block buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Block) { - return mergeFrom((com.google.cloud.vision.v1.Block) other); + return mergeFrom((com.google.cloud.vision.v1.Block)other); } else { super.mergeFrom(other); return this; @@ -1046,10 +951,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParagraphsFieldBuilder() - : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParagraphsFieldBuilder() : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -1089,52 +993,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1155,8 +1045,6 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1175,8 +1063,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1187,9 +1073,7 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1201,8 +1085,6 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1221,8 +1103,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1230,13 +1110,11 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1247,14 +1125,11 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1262,17 +1137,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1280,13 +1152,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1306,15 +1173,12 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1334,21 +1198,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1383,8 +1242,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1405,7 +1262,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(
+        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1416,8 +1274,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1442,9 +1298,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1456,8 +1310,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1490,8 +1342,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1513,13 +1363,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1544,14 +1392,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1573,41 +1418,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Paragraph,
-            com.google.cloud.vision.v1.Paragraph.Builder,
-            com.google.cloud.vision.v1.ParagraphOrBuilder>
-        paragraphsBuilder_;
+        com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder> paragraphsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1622,8 +1458,6 @@ public java.util.List getParagraphsList() } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,8 +1472,6 @@ public int getParagraphsCount() { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1654,15 +1486,14 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder setParagraphs(int index, com.google.cloud.vision.v1.Paragraph value) { + public Builder setParagraphs( + int index, com.google.cloud.vision.v1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1676,8 +1507,6 @@ public Builder setParagraphs(int index, com.google.cloud.vision.v1.Paragraph val return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1696,8 +1525,6 @@ public Builder setParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1718,15 +1545,14 @@ public Builder addParagraphs(com.google.cloud.vision.v1.Paragraph value) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(int index, com.google.cloud.vision.v1.Paragraph value) { + public Builder addParagraphs( + int index, com.google.cloud.vision.v1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1740,15 +1566,14 @@ public Builder addParagraphs(int index, com.google.cloud.vision.v1.Paragraph val return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(com.google.cloud.vision.v1.Paragraph.Builder builderForValue) { + public Builder addParagraphs( + com.google.cloud.vision.v1.Paragraph.Builder builderForValue) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); paragraphs_.add(builderForValue.build()); @@ -1759,8 +1584,6 @@ public Builder addParagraphs(com.google.cloud.vision.v1.Paragraph.Builder builde return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1779,8 +1602,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1791,7 +1612,8 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1799,8 +1621,6 @@ public Builder addAllParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1818,8 +1638,6 @@ public Builder clearParagraphs() { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1837,44 +1655,39 @@ public Builder removeParagraphs(int index) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.Paragraph.Builder getParagraphsBuilder(int index) { + public com.google.cloud.vision.v1.Paragraph.Builder getParagraphsBuilder( + int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); - } else { + return paragraphs_.get(index); } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1882,8 +1695,6 @@ public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1891,47 +1702,42 @@ public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder(int index) { - return getParagraphsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder( + int index) { + return getParagraphsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public java.util.List getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Paragraph, - com.google.cloud.vision.v1.Paragraph.Builder, - com.google.cloud.vision.v1.ParagraphOrBuilder> + com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Paragraph, - com.google.cloud.vision.v1.Paragraph.Builder, - com.google.cloud.vision.v1.ParagraphOrBuilder>( - paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder>( + paragraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1939,65 +1745,51 @@ public java.util.List getParagraph private int blockType_ = 0; /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Block.BlockType result = - com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1.Block.BlockType result = com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1.Block.BlockType.UNRECOGNIZED : result; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @param value The blockType to set. * @return This builder for chaining. */ @@ -2005,39 +1797,33 @@ public Builder setBlockType(com.google.cloud.vision.v1.Block.BlockType value) { if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -2045,43 +1831,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2091,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Block) private static final com.google.cloud.vision.v1.Block DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Block(); } @@ -2105,16 +1885,16 @@ public static com.google.cloud.vision.v1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2129,4 +1909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java index da8346e93..69204f1d9 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface BlockOrBuilder - extends +public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Block) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
@@ -59,8 +35,6 @@ public interface BlockOrBuilder com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface BlockOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - java.util.List getParagraphsList(); + java.util.List + getParagraphsList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -156,8 +121,6 @@ public interface BlockOrBuilder */ com.google.cloud.vision.v1.Paragraph getParagraphs(int index); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -166,61 +129,49 @@ public interface BlockOrBuilder */ int getParagraphsCount(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index); + com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( + int index); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; - * * @return The blockType. */ com.google.cloud.vision.v1.Block.BlockType getBlockType(); /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java similarity index 77% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java index ebb1b6928..bec9a6aca 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BoundingPoly} */ -public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BoundingPoly) BoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,35 +55,31 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.vision.v1.NormalizedVertex.parser(), extensionRegistry)); - break; + vertices_.add( + input.readMessage(com.google.cloud.vision.v1.Vertex.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + normalizedVertices_.add( + input.readMessage(com.google.cloud.vision.v1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +87,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -120,27 +100,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.GeometryProto - .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.GeometryProto - .internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BoundingPoly.class, - com.google.cloud.vision.v1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1.BoundingPoly.class, com.google.cloud.vision.v1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -152,8 +127,6 @@ public java.util.List getVerticesList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -161,13 +134,11 @@ public java.util.List getVerticesList() { * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -179,8 +150,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -192,8 +161,6 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -201,15 +168,14 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -221,8 +187,6 @@ public java.util.List getNormalized return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -230,13 +194,11 @@ public java.util.List getNormalized * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -248,8 +210,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -261,8 +221,6 @@ public com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int ind return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -276,7 +234,6 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -305,11 +263,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -319,15 +278,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BoundingPoly)) { return super.equals(obj); } com.google.cloud.vision.v1.BoundingPoly other = (com.google.cloud.vision.v1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,127 +313,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BoundingPoly) com.google.cloud.vision.v1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.GeometryProto - .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.GeometryProto - .internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BoundingPoly.class, - com.google.cloud.vision.v1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1.BoundingPoly.class, com.google.cloud.vision.v1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1.BoundingPoly.newBuilder() @@ -480,18 +432,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -511,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.GeometryProto - .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override @@ -532,8 +484,7 @@ public com.google.cloud.vision.v1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1.BoundingPoly result = - new com.google.cloud.vision.v1.BoundingPoly(this); + com.google.cloud.vision.v1.BoundingPoly result = new com.google.cloud.vision.v1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -561,39 +512,38 @@ public com.google.cloud.vision.v1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1.BoundingPoly) other); + return mergeFrom((com.google.cloud.vision.v1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -620,10 +570,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -647,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNormalizedVerticesFieldBuilder() - : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNormalizedVerticesFieldBuilder() : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -684,28 +632,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, - com.google.cloud.vision.v1.Vertex.Builder, - com.google.cloud.vision.v1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -720,8 +661,6 @@ public java.util.List getVerticesList() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -736,8 +675,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -752,15 +689,14 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.vision.v1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.vision.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -774,8 +710,6 @@ public Builder setVertices(int index, com.google.cloud.vision.v1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -794,8 +728,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -816,15 +748,14 @@ public Builder addVertices(com.google.cloud.vision.v1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.vision.v1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.vision.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -838,15 +769,14 @@ public Builder addVertices(int index, com.google.cloud.vision.v1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.vision.v1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.vision.v1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -857,8 +787,6 @@ public Builder addVertices(com.google.cloud.vision.v1.Vertex.Builder builderForV return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -877,8 +805,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -889,7 +815,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -897,8 +824,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -916,8 +841,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -935,44 +858,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.vision.v1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -980,8 +898,6 @@ public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -989,73 +905,60 @@ public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public java.util.List getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, - com.google.cloud.vision.v1.Vertex.Builder, - com.google.cloud.vision.v1.VertexOrBuilder> + com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, - com.google.cloud.vision.v1.Vertex.Builder, - com.google.cloud.vision.v1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList( - normalizedVertices_); + normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, - com.google.cloud.vision.v1.NormalizedVertex.Builder, - com.google.cloud.vision.v1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1070,8 +973,6 @@ public java.util.List getNormalized } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1086,8 +987,6 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1102,8 +1001,6 @@ public com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int ind } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1125,8 +1022,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1145,8 +1040,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1167,8 +1060,6 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1.NormalizedVertex return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1190,8 +1081,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1210,8 +1099,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1230,8 +1117,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1242,7 +1127,8 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1250,8 +1136,6 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1269,8 +1153,6 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1288,8 +1170,6 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1301,8 +1181,6 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder getNormalizedVertices return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1312,22 +1190,19 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder getNormalizedVertices public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1335,8 +1210,6 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1344,12 +1217,10 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1358,34 +1229,26 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVertices */ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, - com.google.cloud.vision.v1.NormalizedVertex.Builder, - com.google.cloud.vision.v1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, - com.google.cloud.vision.v1.NormalizedVertex.Builder, - com.google.cloud.vision.v1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1394,9 +1257,9 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVertices } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1406,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BoundingPoly) private static final com.google.cloud.vision.v1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BoundingPoly(); } @@ -1420,16 +1283,16 @@ public static com.google.cloud.vision.v1.BoundingPoly getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1444,4 +1307,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java similarity index 70% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java index eec17e137..ddae3582c 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,39 +33,34 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - java.util.List getVerticesOrBuilderList(); + java.util.List + getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( + int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List getNormalizedVerticesList(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -95,8 +69,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -105,24 +77,21 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index); + com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java index 2820bdf75..87f32f0b4 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ColorInfo}
  */
-public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ColorInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ColorInfo)
     ColorInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ColorInfo() {}
+  private ColorInfo() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,37 +53,36 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Color.Builder subBuilder = null;
-              if (color_ != null) {
-                subBuilder = color_.toBuilder();
-              }
-              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(color_);
-                color_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 21:
-            {
-              score_ = input.readFloat();
-              break;
+          case 10: {
+            com.google.type.Color.Builder subBuilder = null;
+            if (color_ != null) {
+              subBuilder = color_.toBuilder();
             }
-          case 29:
-            {
-              pixelFraction_ = input.readFloat();
-              break;
+            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(color_);
+              color_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 21: {
+
+            score_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            pixelFraction_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,39 +90,34 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ColorInfo.class,
-            com.google.cloud.vision.v1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1.ColorInfo.class, com.google.cloud.vision.v1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
-   *
-   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ @java.lang.Override @@ -147,14 +125,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
    * RGB components of the color.
    * 
@@ -178,14 +151,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -196,15 +166,12 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -213,7 +180,6 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -245,13 +212,16 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,7 +231,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ColorInfo)) { return super.equals(obj); @@ -270,12 +240,15 @@ public boolean equals(final java.lang.Object obj) { if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,111 +265,107 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.ColorInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ColorInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ColorInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.ColorInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ColorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -404,23 +373,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ColorInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ColorInfo)
       com.google.cloud.vision.v1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ColorInfo.class,
-              com.google.cloud.vision.v1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1.ColorInfo.class, com.google.cloud.vision.v1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ColorInfo.newBuilder()
@@ -428,15 +395,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -491,39 +459,38 @@ public com.google.cloud.vision.v1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1.ColorInfo) other);
+        return mergeFrom((com.google.cloud.vision.v1.ColorInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,31 +539,24 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
-        colorBuilder_;
+        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
     /**
-     *
-     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return The color. */ public com.google.type.Color getColor() { @@ -607,8 +567,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
      * RGB components of the color.
      * 
@@ -629,15 +587,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor(com.google.type.Color.Builder builderForValue) { + public Builder setColor( + com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -648,8 +605,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -659,7 +614,8 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = + com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -671,8 +627,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -691,8 +645,6 @@ public Builder clearColor() { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -700,13 +652,11 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
      * RGB components of the color.
      * 
@@ -717,12 +667,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? + com.google.type.Color.getDefaultInstance() : color_; } } /** - * - * *
      * RGB components of the color.
      * 
@@ -730,29 +679,26 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); + colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getColor(), + getParentForChildren(), + isClean()); color_ = null; } return colorBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -760,52 +706,43 @@ public float getScore() { return score_; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_; + private float pixelFraction_ ; /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -813,45 +750,39 @@ public float getPixelFraction() { return pixelFraction_; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ColorInfo) private static final com.google.cloud.vision.v1.ColorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ColorInfo(); } @@ -875,16 +806,16 @@ public static com.google.cloud.vision.v1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java index 054dac776..307618578 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ColorInfoOrBuilder - extends +public interface ColorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
    * RGB components of the color.
    * 
@@ -59,28 +35,22 @@ public interface ColorInfoOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java index e078fe39b..200a6be7b 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductRequest} */ -public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateProductRequest) CreateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -44,15 +26,16 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private CreateProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +93,36 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductRequest.class, - com.google.cloud.vision.v1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductRequest.class, com.google.cloud.vision.v1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,15 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.Product product_; /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -212,15 +178,11 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override @@ -228,14 +190,11 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { @@ -245,8 +204,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -255,7 +212,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
    * 
* * string product_id = 3; - * * @return The productId. */ @java.lang.Override @@ -264,15 +220,14 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -281,15 +236,16 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -298,7 +254,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -333,7 +289,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -346,20 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateProductRequest other = - (com.google.cloud.vision.v1.CreateProductRequest) obj; + com.google.cloud.vision.v1.CreateProductRequest other = (com.google.cloud.vision.v1.CreateProductRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } - if (!getProductId().equals(other.getProductId())) return false; + if (!getProductId() + .equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,127 +343,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateProductRequest) com.google.cloud.vision.v1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductRequest.class, - com.google.cloud.vision.v1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductRequest.class, com.google.cloud.vision.v1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateProductRequest.newBuilder() @@ -512,15 +462,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override @@ -559,8 +510,7 @@ public com.google.cloud.vision.v1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1.CreateProductRequest result = - new com.google.cloud.vision.v1.CreateProductRequest(this); + com.google.cloud.vision.v1.CreateProductRequest result = new com.google.cloud.vision.v1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -576,39 +526,38 @@ public com.google.cloud.vision.v1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1.CreateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -616,8 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -660,24 +608,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -686,25 +630,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -712,73 +653,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -786,55 +714,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -850,16 +762,14 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -870,22 +780,17 @@ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForV return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -897,14 +802,11 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -918,61 +820,48 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -980,8 +869,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { private java.lang.Object productId_ = ""; /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -990,13 +877,13 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
      * 
* * string product_id = 3; - * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -1005,8 +892,6 @@ public java.lang.String getProductId() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1015,14 +900,15 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; - * * @return The bytes for productId. */ - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -1030,8 +916,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1040,22 +924,20 @@ public com.google.protobuf.ByteString getProductIdBytes() {
      * 
* * string product_id = 3; - * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId(java.lang.String value) { + public Builder setProductId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1064,18 +946,15 @@ public Builder setProductId(java.lang.String value) {
      * 
* * string product_id = 3; - * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1084,23 +963,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; - * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1110,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateProductRequest) private static final com.google.cloud.vision.v1.CreateProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateProductRequest(); } @@ -1124,16 +1003,16 @@ public static com.google.cloud.vision.v1.CreateProductRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java index ef2a2018e..3b68aa72e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java @@ -1,102 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateProductRequestOrBuilder - extends +public interface CreateProductRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -105,13 +67,10 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The productId. */ java.lang.String getProductId(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -120,8 +79,8 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ - com.google.protobuf.ByteString getProductIdBytes(); + com.google.protobuf.ByteString + getProductIdBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java index a2ca2dc44..64fffbb88 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -44,15 +26,16 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + productSet_ = input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productSetId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductSetRequest.class, - com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductSetRequest.class, com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -259,7 +210,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -285,15 +234,16 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateProductSetRequest other = - (com.google.cloud.vision.v1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1.CreateProductSetRequest other = (com.google.cloud.vision.v1.CreateProductSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductSet() + .equals(other.getProductSet())) return false; } - if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!getProductSetId() + .equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,126 +342,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateProductSetRequest) com.google.cloud.vision.v1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductSetRequest.class, - com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductSetRequest.class, com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateProductSetRequest.newBuilder() @@ -516,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -563,8 +508,7 @@ public com.google.cloud.vision.v1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1.CreateProductSetRequest result = - new com.google.cloud.vision.v1.CreateProductSetRequest(this); + com.google.cloud.vision.v1.CreateProductSetRequest result = new com.google.cloud.vision.v1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -580,39 +524,38 @@ public com.google.cloud.vision.v1.CreateProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.CreateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -620,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -652,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -690,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -715,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -786,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -853,17 +755,14 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder setProductSet( + com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { productSet_ = builderForValue.build(); onChanged(); @@ -874,23 +773,17 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder build return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -902,15 +795,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -924,64 +813,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -989,8 +862,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { private java.lang.Object productSetId_ = ""; /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -999,13 +870,13 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
      * 
* * string product_set_id = 3; - * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -1014,8 +885,6 @@ public java.lang.String getProductSetId() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1024,14 +893,15 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -1039,8 +909,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1049,22 +917,20 @@ public com.google.protobuf.ByteString getProductSetIdBytes() {
      * 
* * string product_set_id = 3; - * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId(java.lang.String value) { + public Builder setProductSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1073,18 +939,15 @@ public Builder setProductSetId(java.lang.String value) {
      * 
* * string product_set_id = 3; - * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1093,23 +956,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; - * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1119,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateProductSetRequest) private static final com.google.cloud.vision.v1.CreateProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateProductSetRequest(); } @@ -1133,16 +996,16 @@ public static com.google.cloud.vision.v1.CreateProductSetRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java index 7b110fbee..ecea0a627 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateProductSetRequestOrBuilder - extends +public interface CreateProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -106,13 +65,10 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ java.lang.String getProductSetId(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -121,8 +77,8 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString getProductSetIdBytes(); + com.google.protobuf.ByteString + getProductSetIdBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java similarity index 67% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java index 70185e762..4f1050b14 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -44,15 +26,16 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = - input.readMessage( - com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); - } - - break; + referenceImage_ = input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceImageId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,43 +93,36 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,17 +166,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ReferenceImage referenceImage_; /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -215,36 +179,25 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { - return referenceImage_ == null - ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -254,8 +207,6 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -264,7 +215,6 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ @java.lang.Override @@ -273,15 +223,14 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -290,15 +239,16 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -307,7 +257,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +292,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -355,20 +306,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateReferenceImageRequest other = - (com.google.cloud.vision.v1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1.CreateReferenceImageRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage().equals(other.getReferenceImage())) return false; + if (!getReferenceImage() + .equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId() + .equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -394,127 +347,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.CreateReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateReferenceImageRequest) com.google.cloud.vision.v1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateReferenceImageRequest.newBuilder() @@ -522,15 +465,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override @@ -569,8 +513,7 @@ public com.google.cloud.vision.v1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.CreateReferenceImageRequest result = - new com.google.cloud.vision.v1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -586,39 +529,38 @@ public com.google.cloud.vision.v1.CreateReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1.CreateReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -626,8 +568,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -658,8 +599,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.CreateReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.CreateReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -671,24 +611,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -697,25 +633,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -723,73 +656,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -797,61 +717,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder> - referenceImageBuilder_; + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImageBuilder_; /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null - ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -867,16 +768,12 @@ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage( com.google.cloud.vision.v1.ReferenceImage.Builder builderForValue) { @@ -890,24 +787,18 @@ public Builder setReferenceImage( return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1.ReferenceImage.newBuilder(referenceImage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); } else { referenceImage_ = value; } @@ -919,16 +810,12 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage val return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -942,67 +829,51 @@ public Builder clearReferenceImage() { return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null - ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? + com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder>( - getReferenceImage(), getParentForChildren(), isClean()); + referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + getReferenceImage(), + getParentForChildren(), + isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -1010,8 +881,6 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui private java.lang.Object referenceImageId_ = ""; /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1020,13 +889,13 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui
      * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -1035,8 +904,6 @@ public java.lang.String getReferenceImageId() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1045,14 +912,15 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -1060,8 +928,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1070,22 +936,20 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() {
      * 
* * string reference_image_id = 3; - * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId(java.lang.String value) { + public Builder setReferenceImageId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1094,18 +958,15 @@ public Builder setReferenceImageId(java.lang.String value) {
      * 
* * string reference_image_id = 3; - * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1114,23 +975,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1140,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateReferenceImageRequest) private static final com.google.cloud.vision.v1.CreateReferenceImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateReferenceImageRequest(); } @@ -1154,16 +1015,16 @@ public static com.google.cloud.vision.v1.CreateReferenceImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1178,4 +1039,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java index ba511f47d..89ce28a96 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java @@ -1,108 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateReferenceImageRequestOrBuilder - extends +public interface CreateReferenceImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ com.google.cloud.vision.v1.ReferenceImage getReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -111,13 +70,10 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -126,8 +82,8 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString getReferenceImageIdBytes(); + com.google.protobuf.ByteString + getReferenceImageIdBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java index 9a3c0b616..1be5f6fa8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHint} */ -public final class CropHint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHint) CropHintOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CropHint() {} + private CropHint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,39 +52,36 @@ private CropHint( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; + case 10: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 29: - { - importanceFraction_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 29: { + + importanceFraction_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +89,35 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHint.class, - com.google.cloud.vision.v1.CropHint.Builder.class); + com.google.cloud.vision.v1.CropHint.class, com.google.cloud.vision.v1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -149,26 +125,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -184,14 +153,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -202,15 +168,12 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -219,7 +182,6 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -251,13 +214,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,7 +233,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHint)) { return super.equals(obj); @@ -276,12 +242,15 @@ public boolean equals(final java.lang.Object obj) { if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,134 +267,128 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.CropHint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.CropHint parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.CropHint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHint) com.google.cloud.vision.v1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHint.class, - com.google.cloud.vision.v1.CropHint.Builder.class); + com.google.cloud.vision.v1.CropHint.class, com.google.cloud.vision.v1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHint.newBuilder() @@ -433,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override @@ -496,39 +460,38 @@ public com.google.cloud.vision.v1.CropHint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1.CropHint) other); + return mergeFrom((com.google.cloud.vision.v1.CropHint)other); } else { super.mergeFrom(other); return this; @@ -577,49 +540,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -641,8 +591,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -662,8 +610,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -675,9 +621,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -689,8 +633,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -710,8 +652,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -720,13 +660,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -738,14 +676,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -754,32 +689,26 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -787,52 +716,43 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_; + private float importanceFraction_ ; /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -840,45 +760,39 @@ public float getImportanceFraction() { return importanceFraction_; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHint) private static final com.google.cloud.vision.v1.CropHint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHint(); } @@ -902,16 +816,16 @@ public static com.google.cloud.vision.v1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java similarity index 70% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java index ae11f6caa..7498b0f96 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintOrBuilder - extends +public interface CropHintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -62,28 +38,22 @@ public interface CropHintOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java index 8250f23bf..8cad055c6 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cropHints_.add( - input.readMessage( - com.google.cloud.vision.v1.CropHint.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cropHints_.add( + input.readMessage(com.google.cloud.vision.v1.CropHint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -105,27 +87,22 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsAnnotation.class, - com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1.CropHintsAnnotation.class, com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** - * - * *
    * Crop hint results.
    * 
@@ -137,8 +114,6 @@ public java.util.List getCropHintsList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -146,13 +121,11 @@ public java.util.List getCropHintsList() { * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -164,8 +137,6 @@ public int getCropHintsCount() { return cropHints_.size(); } /** - * - * *
    * Crop hint results.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** - * - * *
    * Crop hint results.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.CropHintsAnnotation other = - (com.google.cloud.vision.v1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1.CropHintsAnnotation other = (com.google.cloud.vision.v1.CropHintsAnnotation) obj; - if (!getCropHintsList().equals(other.getCropHintsList())) return false; + if (!getCropHintsList() + .equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,127 +227,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHintsAnnotation) com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsAnnotation.class, - com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1.CropHintsAnnotation.class, com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder() @@ -384,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -429,8 +391,7 @@ public com.google.cloud.vision.v1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1.CropHintsAnnotation result = - new com.google.cloud.vision.v1.CropHintsAnnotation(this); + com.google.cloud.vision.v1.CropHintsAnnotation result = new com.google.cloud.vision.v1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -449,39 +410,38 @@ public com.google.cloud.vision.v1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.CropHintsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.CropHintsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -508,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.CropHintsAnnotation other) { cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCropHintsFieldBuilder() - : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCropHintsFieldBuilder() : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -545,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, - com.google.cloud.vision.v1.CropHint.Builder, - com.google.cloud.vision.v1.CropHintOrBuilder> - cropHintsBuilder_; + com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder> cropHintsBuilder_; /** - * - * *
      * Crop hint results.
      * 
@@ -581,8 +533,6 @@ public java.util.List getCropHintsList() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -597,8 +547,6 @@ public int getCropHintsCount() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -613,15 +561,14 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder setCropHints(int index, com.google.cloud.vision.v1.CropHint value) { + public Builder setCropHints( + int index, com.google.cloud.vision.v1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,8 +582,6 @@ public Builder setCropHints(int index, com.google.cloud.vision.v1.CropHint value return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -655,8 +600,6 @@ public Builder setCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -677,15 +620,14 @@ public Builder addCropHints(com.google.cloud.vision.v1.CropHint value) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder addCropHints(int index, com.google.cloud.vision.v1.CropHint value) { + public Builder addCropHints( + int index, com.google.cloud.vision.v1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,15 +641,14 @@ public Builder addCropHints(int index, com.google.cloud.vision.v1.CropHint value return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder addCropHints(com.google.cloud.vision.v1.CropHint.Builder builderForValue) { + public Builder addCropHints( + com.google.cloud.vision.v1.CropHint.Builder builderForValue) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); cropHints_.add(builderForValue.build()); @@ -718,8 +659,6 @@ public Builder addCropHints(com.google.cloud.vision.v1.CropHint.Builder builderF return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -738,8 +677,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -750,7 +687,8 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -758,8 +696,6 @@ public Builder addAllCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -777,8 +713,6 @@ public Builder clearCropHints() { return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -796,44 +730,39 @@ public Builder removeCropHints(int index) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHint.Builder getCropHintsBuilder(int index) { + public com.google.cloud.vision.v1.CropHint.Builder getCropHintsBuilder( + int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); - } else { + return cropHints_.get(index); } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -841,8 +770,6 @@ public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int in } } /** - * - * *
      * Crop hint results.
      * 
@@ -850,54 +777,49 @@ public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int in * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder(int index) { - return getCropHintsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder( + int index) { + return getCropHintsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public java.util.List getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, - com.google.cloud.vision.v1.CropHint.Builder, - com.google.cloud.vision.v1.CropHintOrBuilder> + com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, - com.google.cloud.vision.v1.CropHint.Builder, - com.google.cloud.vision.v1.CropHintOrBuilder>( - cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder>( + cropHints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cropHints_ = null; } return cropHintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -907,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHintsAnnotation) private static final com.google.cloud.vision.v1.CropHintsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHintsAnnotation(); } @@ -921,16 +843,16 @@ public static com.google.cloud.vision.v1.CropHintsAnnotation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java index da17a0a14..68a189369 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintsAnnotationOrBuilder - extends +public interface CropHintsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - java.util.List getCropHintsList(); + java.util.List + getCropHintsList(); /** - * - * *
    * Crop hint results.
    * 
@@ -44,8 +25,6 @@ public interface CropHintsAnnotationOrBuilder */ com.google.cloud.vision.v1.CropHint getCropHints(int index); /** - * - * *
    * Crop hint results.
    * 
@@ -54,24 +33,21 @@ public interface CropHintsAnnotationOrBuilder */ int getCropHintsCount(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index); + com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java index 04132934b..cbfd884f6 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsParams} */ -public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHintsParams) CropHintsParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +54,34 @@ private CropHintsParams( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - aspectRatios_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + aspectRatios_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -117,27 +99,22 @@ private CropHintsParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsParams.class, - com.google.cloud.vision.v1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1.CropHintsParams.class, com.google.cloud.vision.v1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -148,16 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List getAspectRatiosList() { + public java.util.List + getAspectRatiosList() { return aspectRatios_; } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -168,15 +143,12 @@ public java.util.List getAspectRatiosList() {
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -187,18 +159,15 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } - private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -234,7 +204,8 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -246,15 +217,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.CropHintsParams other = - (com.google.cloud.vision.v1.CropHintsParams) obj; + com.google.cloud.vision.v1.CropHintsParams other = (com.google.cloud.vision.v1.CropHintsParams) obj; - if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList() + .equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,127 +246,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHintsParams) com.google.cloud.vision.v1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsParams.class, - com.google.cloud.vision.v1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1.CropHintsParams.class, com.google.cloud.vision.v1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHintsParams.newBuilder() @@ -403,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override @@ -442,8 +405,7 @@ public com.google.cloud.vision.v1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1.CropHintsParams result = - new com.google.cloud.vision.v1.CropHintsParams(this); + com.google.cloud.vision.v1.CropHintsParams result = new com.google.cloud.vision.v1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -458,39 +420,38 @@ public com.google.cloud.vision.v1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1.CropHintsParams) other); + return mergeFrom((com.google.cloud.vision.v1.CropHintsParams)other); } else { super.mergeFrom(other); return this; @@ -537,20 +498,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); - private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -561,17 +518,14 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ - public java.util.List getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(aspectRatios_) - : aspectRatios_; + public java.util.List + getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -582,15 +536,12 @@ public java.util.List getAspectRatiosList() {
      * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -601,7 +552,6 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -609,8 +559,6 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -621,20 +569,18 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios(int index, float value) { + public Builder setAspectRatios( + int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -645,7 +591,6 @@ public Builder setAspectRatios(int index, float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -656,8 +601,6 @@ public Builder addAspectRatios(float value) { return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -668,19 +611,18 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios(java.lang.Iterable values) { + public Builder addAllAspectRatios( + java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aspectRatios_); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -691,7 +633,6 @@ public Builder addAllAspectRatios(java.lang.Iterable
      * 
* * repeated float aspect_ratios = 1; - * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -700,9 +641,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -712,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHintsParams) private static final com.google.cloud.vision.v1.CropHintsParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHintsParams(); } @@ -726,16 +667,16 @@ public static com.google.cloud.vision.v1.CropHintsParams getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -750,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java index 678a3e597..0ca2ba5cd 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintsParamsOrBuilder - extends +public interface CropHintsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -36,13 +18,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -53,13 +32,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -70,7 +46,6 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java similarity index 67% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java index d1fa91dfb..477067b58 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductRequest} */ -public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteProductRequest) DeleteProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductRequest.class, - com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductRequest.class, com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteProductRequest other = - (com.google.cloud.vision.v1.DeleteProductRequest) obj; + com.google.cloud.vision.v1.DeleteProductRequest other = (com.google.cloud.vision.v1.DeleteProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteProductRequest) com.google.cloud.vision.v1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductRequest.class, - com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductRequest.class, com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteProductRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1.DeleteProductRequest result = - new com.google.cloud.vision.v1.DeleteProductRequest(this); + com.google.cloud.vision.v1.DeleteProductRequest result = new com.google.cloud.vision.v1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1.DeleteProductRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -489,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteProductRequest) private static final com.google.cloud.vision.v1.DeleteProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteProductRequest(); } @@ -638,16 +580,16 @@ public static com.google.cloud.vision.v1.DeleteProductRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..852ae7f4f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java index b31ba64ad..6afc08ad8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductSetRequest.class, com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteProductSetRequest other = - (com.google.cloud.vision.v1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1.DeleteProductSetRequest other = (com.google.cloud.vision.v1.DeleteProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteProductSetRequest) com.google.cloud.vision.v1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductSetRequest.class, com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteProductSetRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1.DeleteProductSetRequest result = - new com.google.cloud.vision.v1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1.DeleteProductSetRequest result = new com.google.cloud.vision.v1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1.DeleteProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.DeleteProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1.DeleteProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteProductSetRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.vision.v1.DeleteProductSetRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..92d118085 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java index f2e748267..81bd8ca3e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteReferenceImageRequest other = - (com.google.cloud.vision.v1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1.DeleteReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.DeleteReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteReferenceImageRequest) com.google.cloud.vision.v1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteReferenceImageRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.DeleteReferenceImageRequest result = - new com.google.cloud.vision.v1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1.DeleteReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1.DeleteReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteReferenceImageRequest) private static final com.google.cloud.vision.v1.DeleteReferenceImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteReferenceImageRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1.DeleteReferenceImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..4c96122ea --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java index 14ec8f64c..8e7857644 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DominantColorsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - colors_.add( - input.readMessage( - com.google.cloud.vision.v1.ColorInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + colors_.add( + input.readMessage(com.google.cloud.vision.v1.ColorInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -105,27 +87,22 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1.DominantColorsAnnotation.class, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,8 +114,6 @@ public java.util.List getColorsList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -146,13 +121,11 @@ public java.util.List getColorsList() { * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -164,8 +137,6 @@ public int getColorsCount() { return colors_.size(); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { return colors_.get(index); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.DominantColorsAnnotation other = - (com.google.cloud.vision.v1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1.DominantColorsAnnotation other = (com.google.cloud.vision.v1.DominantColorsAnnotation) obj; - if (!getColorsList().equals(other.getColorsList())) return false; + if (!getColorsList() + .equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,126 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DominantColorsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DominantColorsAnnotation) com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1.DominantColorsAnnotation.class, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder() @@ -384,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -429,8 +391,7 @@ public com.google.cloud.vision.v1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1.DominantColorsAnnotation result = - new com.google.cloud.vision.v1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1.DominantColorsAnnotation result = new com.google.cloud.vision.v1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -449,39 +410,38 @@ public com.google.cloud.vision.v1.DominantColorsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.DominantColorsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.DominantColorsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -489,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance()) return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -509,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.DominantColorsAnnotation oth colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColorsFieldBuilder() - : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -537,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, - com.google.cloud.vision.v1.ColorInfo.Builder, - com.google.cloud.vision.v1.ColorInfoOrBuilder> - colorsBuilder_; + com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder> colorsBuilder_; /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -583,8 +533,6 @@ public java.util.List getColorsList() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -599,8 +547,6 @@ public int getColorsCount() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -615,15 +561,14 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder setColors(int index, com.google.cloud.vision.v1.ColorInfo value) { + public Builder setColors( + int index, com.google.cloud.vision.v1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -637,8 +582,6 @@ public Builder setColors(int index, com.google.cloud.vision.v1.ColorInfo value) return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -657,8 +600,6 @@ public Builder setColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -679,15 +620,14 @@ public Builder addColors(com.google.cloud.vision.v1.ColorInfo value) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder addColors(int index, com.google.cloud.vision.v1.ColorInfo value) { + public Builder addColors( + int index, com.google.cloud.vision.v1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -701,15 +641,14 @@ public Builder addColors(int index, com.google.cloud.vision.v1.ColorInfo value) return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder addColors(com.google.cloud.vision.v1.ColorInfo.Builder builderForValue) { + public Builder addColors( + com.google.cloud.vision.v1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -720,8 +659,6 @@ public Builder addColors(com.google.cloud.vision.v1.ColorInfo.Builder builderFor return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -740,8 +677,6 @@ public Builder addColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -752,7 +687,8 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -760,8 +696,6 @@ public Builder addAllColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -779,8 +713,6 @@ public Builder clearColors() { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -798,44 +730,39 @@ public Builder removeColors(int index) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfo.Builder getColorsBuilder(int index) { + public com.google.cloud.vision.v1.ColorInfo.Builder getColorsBuilder( + int index) { return getColorsFieldBuilder().getBuilder(index); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { if (colorsBuilder_ == null) { - return colors_.get(index); - } else { + return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -843,8 +770,6 @@ public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int inde } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -852,54 +777,49 @@ public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int inde * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder(int index) { - return getColorsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public java.util.List getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, - com.google.cloud.vision.v1.ColorInfo.Builder, - com.google.cloud.vision.v1.ColorInfoOrBuilder> + com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, - com.google.cloud.vision.v1.ColorInfo.Builder, - com.google.cloud.vision.v1.ColorInfoOrBuilder>( - colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder>( + colors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); colors_ = null; } return colorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1.DominantColorsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DominantColorsAnnotation(); } @@ -923,16 +843,16 @@ public static com.google.cloud.vision.v1.DominantColorsAnnotation getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java index ad1278286..751580bfc 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface DominantColorsAnnotationOrBuilder - extends +public interface DominantColorsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - java.util.List getColorsList(); + java.util.List + getColorsList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -44,8 +25,6 @@ public interface DominantColorsAnnotationOrBuilder */ com.google.cloud.vision.v1.ColorInfo getColors(int index); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -54,23 +33,21 @@ public interface DominantColorsAnnotationOrBuilder */ int getColorsCount(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - java.util.List getColorsOrBuilderList(); + java.util.List + getColorsOrBuilderList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index); + com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java similarity index 78% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java index d699fcc13..428b46900 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1.EntityAnnotation} */ -public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.EntityAnnotation) EntityAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -47,15 +29,16 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,87 +58,77 @@ private EntityAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + locale_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; - } - case 53: - { - topicality_ = input.readFloat(); - break; + description_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + case 53: { + + topicality_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 58: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.vision.v1.LocationInfo.parser(), extensionRegistry)); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - properties_.add( - input.readMessage( - com.google.cloud.vision.v1.Property.parser(), extensionRegistry)); - break; + locations_.add( + input.readMessage(com.google.cloud.vision.v1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + properties_.add( + input.readMessage(com.google.cloud.vision.v1.Property.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -163,7 +136,8 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -175,27 +149,22 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.EntityAnnotation.class, - com.google.cloud.vision.v1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1.EntityAnnotation.class, com.google.cloud.vision.v1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -203,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -212,15 +180,14 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -228,15 +195,16 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -247,15 +215,12 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ @java.lang.Override @@ -264,30 +229,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -298,14 +263,11 @@ public com.google.protobuf.ByteString getLocaleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -314,29 +276,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -347,14 +309,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -365,8 +324,6 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -376,22 +333,18 @@ public float getScore() {
    * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1/image_annotator.proto;l=505 + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated - public float getConfidence() { + @java.lang.Deprecated public float getConfidence() { return confidence_; } public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -401,7 +354,6 @@ public float getConfidence() {
    * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -412,15 +364,12 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -428,26 +377,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -463,8 +405,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -480,8 +420,6 @@ public java.util.List getLocationsList(
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -493,13 +431,11 @@ public java.util.List getLocationsList(
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -515,8 +451,6 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -532,8 +466,6 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -545,15 +477,14 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+  public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -566,8 +497,6 @@ public java.util.List getPropertiesList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -576,13 +505,11 @@ public java.util.List getPropertiesList() {
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -595,8 +522,6 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -609,8 +534,6 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -619,12 +542,12 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+  public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -636,7 +559,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -683,22 +607,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -708,29 +638,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.EntityAnnotation other =
-        (com.google.cloud.vision.v1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1.EntityAnnotation other = (com.google.cloud.vision.v1.EntityAnnotation) obj;
 
-    if (!getMid().equals(other.getMid())) return false;
-    if (!getLocale().equals(other.getLocale())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getMid()
+        .equals(other.getMid())) return false;
+    if (!getLocale()
+        .equals(other.getLocale())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly()
+          .equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList().equals(other.getLocationsList())) return false;
-    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
+    if (!getLocationsList()
+        .equals(other.getLocationsList())) return false;
+    if (!getPropertiesList()
+        .equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -749,11 +687,14 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -771,127 +712,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1.EntityAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.EntityAnnotation) com.google.cloud.vision.v1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.EntityAnnotation.class, - com.google.cloud.vision.v1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1.EntityAnnotation.class, com.google.cloud.vision.v1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.EntityAnnotation.newBuilder() @@ -899,18 +831,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -948,9 +880,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override @@ -969,8 +901,7 @@ public com.google.cloud.vision.v1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1.EntityAnnotation result = - new com.google.cloud.vision.v1.EntityAnnotation(this); + com.google.cloud.vision.v1.EntityAnnotation result = new com.google.cloud.vision.v1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -1009,39 +940,38 @@ public com.google.cloud.vision.v1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.EntityAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.EntityAnnotation)other); } else { super.mergeFrom(other); return this; @@ -1092,10 +1022,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.EntityAnnotation other) { locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1119,10 +1048,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.EntityAnnotation other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1156,13 +1084,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mid_ = ""; /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1170,13 +1095,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1185,8 +1110,6 @@ public java.lang.String getMid() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1194,14 +1117,15 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1209,8 +1133,6 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1218,22 +1140,20 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1241,18 +1161,15 @@ public Builder setMid(java.lang.String value) {
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1260,16 +1177,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1277,21 +1194,19 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object locale_ = ""; /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1300,22 +1215,21 @@ public java.lang.String getLocale() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The bytes for locale. */ - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -1323,64 +1237,57 @@ public com.google.protobuf.ByteString getLocaleBytes() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale(java.lang.String value) { + public Builder setLocale( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes(com.google.protobuf.ByteString value) { + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1388,20 +1295,18 @@ public Builder setLocaleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1410,21 +1315,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1432,76 +1336,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1509,45 +1403,37 @@ public float getScore() { return score_; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1557,19 +1443,15 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1/image_annotator.proto;l=505 + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated - public float getConfidence() { + @java.lang.Deprecated public float getConfidence() { return confidence_; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1579,22 +1461,18 @@ public float getConfidence() {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1/image_annotator.proto;l=505 + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1/image_annotator.proto;l=505 * @param value The confidence to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setConfidence(float value) { - + @java.lang.Deprecated public Builder setConfidence(float value) { + confidence_ = value; onChanged(); return this; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1604,23 +1482,19 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1/image_annotator.proto;l=505 + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1/image_annotator.proto;l=505 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearConfidence() { - + @java.lang.Deprecated public Builder clearConfidence() { + confidence_ = 0F; onChanged(); return this; } - private float topicality_; + private float topicality_ ; /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1630,7 +1504,6 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -1638,8 +1511,6 @@ public float getTopicality() { return topicality_; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1649,19 +1520,16 @@ public float getTopicality() {
      * 
* * float topicality = 6; - * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1671,11 +1539,10 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; - * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1683,49 +1550,36 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1747,8 +1601,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1768,8 +1620,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1781,9 +1631,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1795,8 +1643,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1816,8 +1662,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1826,13 +1670,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1844,14 +1686,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1860,41 +1699,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.LocationInfo,
-            com.google.cloud.vision.v1.LocationInfo.Builder,
-            com.google.cloud.vision.v1.LocationInfoOrBuilder>
-        locationsBuilder_;
+        com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder> locationsBuilder_;
 
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1913,8 +1743,6 @@ public java.util.List getLocationsList(
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1933,8 +1761,6 @@ public int getLocationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1953,8 +1779,6 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1965,7 +1789,8 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder setLocations(int index, com.google.cloud.vision.v1.LocationInfo value) {
+    public Builder setLocations(
+        int index, com.google.cloud.vision.v1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1979,8 +1804,6 @@ public Builder setLocations(int index, com.google.cloud.vision.v1.LocationInfo v
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2003,8 +1826,6 @@ public Builder setLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2029,8 +1850,6 @@ public Builder addLocations(com.google.cloud.vision.v1.LocationInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2041,7 +1860,8 @@ public Builder addLocations(com.google.cloud.vision.v1.LocationInfo value) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder addLocations(int index, com.google.cloud.vision.v1.LocationInfo value) {
+    public Builder addLocations(
+        int index, com.google.cloud.vision.v1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2055,8 +1875,6 @@ public Builder addLocations(int index, com.google.cloud.vision.v1.LocationInfo v
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2067,7 +1885,8 @@ public Builder addLocations(int index, com.google.cloud.vision.v1.LocationInfo v
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder addLocations(com.google.cloud.vision.v1.LocationInfo.Builder builderForValue) {
+    public Builder addLocations(
+        com.google.cloud.vision.v1.LocationInfo.Builder builderForValue) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
         locations_.add(builderForValue.build());
@@ -2078,8 +1897,6 @@ public Builder addLocations(com.google.cloud.vision.v1.LocationInfo.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2102,8 +1919,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2118,7 +1933,8 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -2126,8 +1942,6 @@ public Builder addAllLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2149,8 +1963,6 @@ public Builder clearLocations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2172,8 +1984,6 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2184,12 +1994,11 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(int index) {
+    public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(
+        int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2200,16 +2009,14 @@ public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(int i
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+    public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
+        int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);
-      } else {
+        return locations_.get(index);  } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2220,8 +2027,8 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(in
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsOrBuilderList() {
+    public java.util.List 
+         getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2229,8 +2036,6 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2242,12 +2047,10 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(in
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2258,13 +2061,12 @@ public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder() {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(int index) {
-      return getLocationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(
+        int index) {
+      return getLocationsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2275,47 +2077,38 @@ public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(int i
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsBuilderList() {
+    public java.util.List 
+         getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.LocationInfo,
-            com.google.cloud.vision.v1.LocationInfo.Builder,
-            com.google.cloud.vision.v1.LocationInfoOrBuilder>
+        com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder> 
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.LocationInfo,
-                com.google.cloud.vision.v1.LocationInfo.Builder,
-                com.google.cloud.vision.v1.LocationInfoOrBuilder>(
-                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder>(
+                locations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Property,
-            com.google.cloud.vision.v1.Property.Builder,
-            com.google.cloud.vision.v1.PropertyOrBuilder>
-        propertiesBuilder_;
+        com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder> propertiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2331,8 +2124,6 @@ public java.util.List getPropertiesList() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2348,8 +2139,6 @@ public int getPropertiesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2365,8 +2154,6 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2374,7 +2161,8 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder setProperties(int index, com.google.cloud.vision.v1.Property value) {
+    public Builder setProperties(
+        int index, com.google.cloud.vision.v1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2388,8 +2176,6 @@ public Builder setProperties(int index, com.google.cloud.vision.v1.Property valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2409,8 +2195,6 @@ public Builder setProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2432,8 +2216,6 @@ public Builder addProperties(com.google.cloud.vision.v1.Property value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2441,7 +2223,8 @@ public Builder addProperties(com.google.cloud.vision.v1.Property value) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder addProperties(int index, com.google.cloud.vision.v1.Property value) {
+    public Builder addProperties(
+        int index, com.google.cloud.vision.v1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2455,8 +2238,6 @@ public Builder addProperties(int index, com.google.cloud.vision.v1.Property valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2464,7 +2245,8 @@ public Builder addProperties(int index, com.google.cloud.vision.v1.Property valu
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder addProperties(com.google.cloud.vision.v1.Property.Builder builderForValue) {
+    public Builder addProperties(
+        com.google.cloud.vision.v1.Property.Builder builderForValue) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
         properties_.add(builderForValue.build());
@@ -2475,8 +2257,6 @@ public Builder addProperties(com.google.cloud.vision.v1.Property.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2496,8 +2276,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2509,7 +2287,8 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2517,8 +2296,6 @@ public Builder addAllProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2537,8 +2314,6 @@ public Builder clearProperties() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2557,8 +2332,6 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2566,12 +2339,11 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(int index) {
+    public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(
+        int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2579,16 +2351,14 @@ public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(int inde
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+    public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
+        int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);
-      } else {
+        return properties_.get(index);  } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2596,8 +2366,8 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int i
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesOrBuilderList() {
+    public java.util.List 
+         getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2605,8 +2375,6 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int i
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2615,12 +2383,10 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int i
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
     public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2628,13 +2394,12 @@ public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder() {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(int index) {
-      return getPropertiesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(
+        int index) {
+      return getPropertiesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2642,29 +2407,27 @@ public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(int inde
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public java.util.List getPropertiesBuilderList() {
+    public java.util.List 
+         getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Property,
-            com.google.cloud.vision.v1.Property.Builder,
-            com.google.cloud.vision.v1.PropertyOrBuilder>
+        com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder> 
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.Property,
-                com.google.cloud.vision.v1.Property.Builder,
-                com.google.cloud.vision.v1.PropertyOrBuilder>(
-                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder>(
+                properties_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2674,12 +2437,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.EntityAnnotation)
   private static final com.google.cloud.vision.v1.EntityAnnotation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.EntityAnnotation();
   }
@@ -2688,16 +2451,16 @@ public static com.google.cloud.vision.v1.EntityAnnotation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public EntityAnnotation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new EntityAnnotation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntityAnnotation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new EntityAnnotation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2712,4 +2475,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
similarity index 84%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
index 979005b27..037aeac07 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface EntityAnnotationOrBuilder
-    extends
+public interface EntityAnnotationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -33,13 +15,10 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -47,79 +26,64 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ java.lang.String getLocale(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ - com.google.protobuf.ByteString getLocaleBytes(); + com.google.protobuf.ByteString + getLocaleBytes(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -129,17 +93,13 @@ public interface EntityAnnotationOrBuilder
    * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1/image_annotator.proto;l=505 + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ - @java.lang.Deprecated - float getConfidence(); + @java.lang.Deprecated float getConfidence(); /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -149,40 +109,31 @@ public interface EntityAnnotationOrBuilder
    * 
* * float topicality = 6; - * * @return The topicality. */ float getTopicality(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -193,8 +144,6 @@ public interface EntityAnnotationOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -205,10 +154,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  java.util.List getLocationsList();
+  java.util.List 
+      getLocationsList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -221,8 +169,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1.LocationInfo getLocations(int index);
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -235,8 +181,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getLocationsCount();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -247,11 +191,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  java.util.List
+  java.util.List 
       getLocationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -262,11 +204,10 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
+  com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -274,10 +215,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  java.util.List getPropertiesList();
+  java.util.List 
+      getPropertiesList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -287,8 +227,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1.Property getProperties(int index);
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -298,8 +236,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -307,11 +243,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  java.util.List
+  java.util.List 
       getPropertiesOrBuilderList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -319,5 +253,6 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index);
+  com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
similarity index 77%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
index d4a112f43..2781f2b24 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation} */ -public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.FaceAnnotation) FaceAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -50,15 +32,16 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,132 +61,115 @@ private FaceAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); - } - fdBoundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - landmarks_.add( - input.readMessage( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.parser(), - extensionRegistry)); - break; - } - case 37: - { - rollAngle_ = input.readFloat(); - break; - } - case 45: - { - panAngle_ = input.readFloat(); - break; - } - case 53: - { - tiltAngle_ = input.readFloat(); - break; - } - case 61: - { - detectionConfidence_ = input.readFloat(); - break; + + break; + } + case 18: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); } - case 69: - { - landmarkingConfidence_ = input.readFloat(); - break; + fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); } - case 72: - { - int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + landmarks_.add( + input.readMessage(com.google.cloud.vision.v1.FaceAnnotation.Landmark.parser(), extensionRegistry)); + break; + } + case 37: { - sorrowLikelihood_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + rollAngle_ = input.readFloat(); + break; + } + case 45: { - angerLikelihood_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + panAngle_ = input.readFloat(); + break; + } + case 53: { - surpriseLikelihood_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); + tiltAngle_ = input.readFloat(); + break; + } + case 61: { - underExposedLikelihood_ = rawValue; - break; - } - case 112: - { - int rawValue = input.readEnum(); + detectionConfidence_ = input.readFloat(); + break; + } + case 69: { - blurredLikelihood_ = rawValue; - break; - } - case 120: - { - int rawValue = input.readEnum(); + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + joyLikelihood_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); + + sorrowLikelihood_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + angerLikelihood_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + surpriseLikelihood_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + underExposedLikelihood_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + blurredLikelihood_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + headwearLikelihood_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -211,7 +177,8 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -220,79 +187,61 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.class, - com.google.cloud.vision.v1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.class, com.google.cloud.vision.v1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder - extends + public interface LandmarkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return The position. */ com.google.cloud.vision.v1.Position getPosition(); /** - * - * *
      * Face landmark position.
      * 
@@ -302,39 +251,37 @@ public interface LandmarkOrBuilder com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation.Landmark} */ - public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Landmark extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -353,36 +300,32 @@ private Landmark( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.vision.v1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = - input.readMessage( - com.google.cloud.vision.v1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; + position_ = input.readMessage(com.google.cloud.vision.v1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -390,31 +333,27 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); } /** - * - * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -424,10 +363,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.vision.v1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -436,8 +374,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_LANDMARK(0), /** - * - * *
        * Left eye.
        * 
@@ -446,8 +382,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE(1), /** - * - * *
        * Right eye.
        * 
@@ -456,8 +390,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE(2), /** - * - * *
        * Left of left eyebrow.
        * 
@@ -466,8 +398,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_LEFT_EYEBROW(3), /** - * - * *
        * Right of left eyebrow.
        * 
@@ -476,8 +406,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_LEFT_EYEBROW(4), /** - * - * *
        * Left of right eyebrow.
        * 
@@ -486,8 +414,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_RIGHT_EYEBROW(5), /** - * - * *
        * Right of right eyebrow.
        * 
@@ -496,8 +422,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_RIGHT_EYEBROW(6), /** - * - * *
        * Midpoint between eyes.
        * 
@@ -506,8 +430,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MIDPOINT_BETWEEN_EYES(7), /** - * - * *
        * Nose tip.
        * 
@@ -516,8 +438,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_TIP(8), /** - * - * *
        * Upper lip.
        * 
@@ -526,8 +446,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UPPER_LIP(9), /** - * - * *
        * Lower lip.
        * 
@@ -536,8 +454,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOWER_LIP(10), /** - * - * *
        * Mouth left.
        * 
@@ -546,8 +462,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_LEFT(11), /** - * - * *
        * Mouth right.
        * 
@@ -556,8 +470,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_RIGHT(12), /** - * - * *
        * Mouth center.
        * 
@@ -566,8 +478,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_CENTER(13), /** - * - * *
        * Nose, bottom right.
        * 
@@ -576,8 +486,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_RIGHT(14), /** - * - * *
        * Nose, bottom left.
        * 
@@ -586,8 +494,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_LEFT(15), /** - * - * *
        * Nose, bottom center.
        * 
@@ -596,8 +502,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_CENTER(16), /** - * - * *
        * Left eye, top boundary.
        * 
@@ -606,8 +510,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_TOP_BOUNDARY(17), /** - * - * *
        * Left eye, right corner.
        * 
@@ -616,8 +518,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_RIGHT_CORNER(18), /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -626,8 +526,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** - * - * *
        * Left eye, left corner.
        * 
@@ -636,8 +534,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_LEFT_CORNER(20), /** - * - * *
        * Right eye, top boundary.
        * 
@@ -646,8 +542,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_TOP_BOUNDARY(21), /** - * - * *
        * Right eye, right corner.
        * 
@@ -656,8 +550,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_RIGHT_CORNER(22), /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -666,8 +558,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** - * - * *
        * Right eye, left corner.
        * 
@@ -676,8 +566,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_LEFT_CORNER(24), /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -686,8 +574,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -696,8 +582,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** - * - * *
        * Left ear tragion.
        * 
@@ -706,8 +590,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EAR_TRAGION(27), /** - * - * *
        * Right ear tragion.
        * 
@@ -716,8 +598,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EAR_TRAGION(28), /** - * - * *
        * Left eye pupil.
        * 
@@ -726,8 +606,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_PUPIL(29), /** - * - * *
        * Right eye pupil.
        * 
@@ -736,8 +614,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_PUPIL(30), /** - * - * *
        * Forehead glabella.
        * 
@@ -746,8 +622,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FOREHEAD_GLABELLA(31), /** - * - * *
        * Chin gnathion.
        * 
@@ -756,8 +630,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_GNATHION(32), /** - * - * *
        * Chin left gonion.
        * 
@@ -766,8 +638,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_LEFT_GONION(33), /** - * - * *
        * Chin right gonion.
        * 
@@ -776,8 +646,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_RIGHT_GONION(34), /** - * - * *
        * Left cheek center.
        * 
@@ -786,8 +654,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_CHEEK_CENTER(35), /** - * - * *
        * Right cheek center.
        * 
@@ -799,8 +665,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -809,8 +673,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** - * - * *
        * Left eye.
        * 
@@ -819,8 +681,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_VALUE = 1; /** - * - * *
        * Right eye.
        * 
@@ -829,8 +689,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_VALUE = 2; /** - * - * *
        * Left of left eyebrow.
        * 
@@ -839,8 +697,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** - * - * *
        * Right of left eyebrow.
        * 
@@ -849,8 +705,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** - * - * *
        * Left of right eyebrow.
        * 
@@ -859,8 +713,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** - * - * *
        * Right of right eyebrow.
        * 
@@ -869,8 +721,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** - * - * *
        * Midpoint between eyes.
        * 
@@ -879,8 +729,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** - * - * *
        * Nose tip.
        * 
@@ -889,8 +737,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_TIP_VALUE = 8; /** - * - * *
        * Upper lip.
        * 
@@ -899,8 +745,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPPER_LIP_VALUE = 9; /** - * - * *
        * Lower lip.
        * 
@@ -909,8 +753,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOWER_LIP_VALUE = 10; /** - * - * *
        * Mouth left.
        * 
@@ -919,8 +761,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_LEFT_VALUE = 11; /** - * - * *
        * Mouth right.
        * 
@@ -929,8 +769,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_RIGHT_VALUE = 12; /** - * - * *
        * Mouth center.
        * 
@@ -939,8 +777,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_CENTER_VALUE = 13; /** - * - * *
        * Nose, bottom right.
        * 
@@ -949,8 +785,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** - * - * *
        * Nose, bottom left.
        * 
@@ -959,8 +793,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** - * - * *
        * Nose, bottom center.
        * 
@@ -969,8 +801,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** - * - * *
        * Left eye, top boundary.
        * 
@@ -979,8 +809,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** - * - * *
        * Left eye, right corner.
        * 
@@ -989,8 +817,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -999,8 +825,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** - * - * *
        * Left eye, left corner.
        * 
@@ -1009,8 +833,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** - * - * *
        * Right eye, top boundary.
        * 
@@ -1019,8 +841,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** - * - * *
        * Right eye, right corner.
        * 
@@ -1029,8 +849,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -1039,8 +857,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** - * - * *
        * Right eye, left corner.
        * 
@@ -1049,8 +865,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -1059,8 +873,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -1069,8 +881,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** - * - * *
        * Left ear tragion.
        * 
@@ -1079,8 +889,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** - * - * *
        * Right ear tragion.
        * 
@@ -1089,8 +897,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** - * - * *
        * Left eye pupil.
        * 
@@ -1099,8 +905,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** - * - * *
        * Right eye pupil.
        * 
@@ -1109,8 +913,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** - * - * *
        * Forehead glabella.
        * 
@@ -1119,8 +921,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** - * - * *
        * Chin gnathion.
        * 
@@ -1129,8 +929,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_GNATHION_VALUE = 32; /** - * - * *
        * Chin left gonion.
        * 
@@ -1139,8 +937,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** - * - * *
        * Chin right gonion.
        * 
@@ -1149,8 +945,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_RIGHT_GONION_VALUE = 34; /** - * - * *
        * Left cheek center.
        * 
@@ -1159,8 +953,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_CHEEK_CENTER_VALUE = 35; /** - * - * *
        * Right cheek center.
        * 
@@ -1169,6 +961,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_CHEEK_CENTER_VALUE = 36; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1193,119 +986,83 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return UNKNOWN_LANDMARK; - case 1: - return LEFT_EYE; - case 2: - return RIGHT_EYE; - case 3: - return LEFT_OF_LEFT_EYEBROW; - case 4: - return RIGHT_OF_LEFT_EYEBROW; - case 5: - return LEFT_OF_RIGHT_EYEBROW; - case 6: - return RIGHT_OF_RIGHT_EYEBROW; - case 7: - return MIDPOINT_BETWEEN_EYES; - case 8: - return NOSE_TIP; - case 9: - return UPPER_LIP; - case 10: - return LOWER_LIP; - case 11: - return MOUTH_LEFT; - case 12: - return MOUTH_RIGHT; - case 13: - return MOUTH_CENTER; - case 14: - return NOSE_BOTTOM_RIGHT; - case 15: - return NOSE_BOTTOM_LEFT; - case 16: - return NOSE_BOTTOM_CENTER; - case 17: - return LEFT_EYE_TOP_BOUNDARY; - case 18: - return LEFT_EYE_RIGHT_CORNER; - case 19: - return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: - return LEFT_EYE_LEFT_CORNER; - case 21: - return RIGHT_EYE_TOP_BOUNDARY; - case 22: - return RIGHT_EYE_RIGHT_CORNER; - case 23: - return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: - return RIGHT_EYE_LEFT_CORNER; - case 25: - return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: - return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: - return LEFT_EAR_TRAGION; - case 28: - return RIGHT_EAR_TRAGION; - case 29: - return LEFT_EYE_PUPIL; - case 30: - return RIGHT_EYE_PUPIL; - case 31: - return FOREHEAD_GLABELLA; - case 32: - return CHIN_GNATHION; - case 33: - return CHIN_LEFT_GONION; - case 34: - return CHIN_RIGHT_GONION; - case 35: - return LEFT_CHEEK_CENTER; - case 36: - return RIGHT_CHEEK_CENTER; - default: - return null; + case 0: return UNKNOWN_LANDMARK; + case 1: return LEFT_EYE; + case 2: return RIGHT_EYE; + case 3: return LEFT_OF_LEFT_EYEBROW; + case 4: return RIGHT_OF_LEFT_EYEBROW; + case 5: return LEFT_OF_RIGHT_EYEBROW; + case 6: return RIGHT_OF_RIGHT_EYEBROW; + case 7: return MIDPOINT_BETWEEN_EYES; + case 8: return NOSE_TIP; + case 9: return UPPER_LIP; + case 10: return LOWER_LIP; + case 11: return MOUTH_LEFT; + case 12: return MOUTH_RIGHT; + case 13: return MOUTH_CENTER; + case 14: return NOSE_BOTTOM_RIGHT; + case 15: return NOSE_BOTTOM_LEFT; + case 16: return NOSE_BOTTOM_CENTER; + case 17: return LEFT_EYE_TOP_BOUNDARY; + case 18: return LEFT_EYE_RIGHT_CORNER; + case 19: return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: return LEFT_EYE_LEFT_CORNER; + case 21: return RIGHT_EYE_TOP_BOUNDARY; + case 22: return RIGHT_EYE_RIGHT_CORNER; + case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: return RIGHT_EYE_LEFT_CORNER; + case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: return LEFT_EAR_TRAGION; + case 28: return RIGHT_EAR_TRAGION; + case 29: return LEFT_EYE_PUPIL; + case 30: return RIGHT_EYE_PUPIL; + case 31: return FOREHEAD_GLABELLA; + case 32: return CHIN_GNATHION; + case 33: return CHIN_LEFT_GONION; + case 34: return CHIN_RIGHT_GONION; + case 35: return LEFT_CHEEK_CENTER; + case 36: return RIGHT_CHEEK_CENTER; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1325,52 +1082,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.Position position_; /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return Whether the position field is set. */ @java.lang.Override @@ -1378,25 +1121,18 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1.Position getPosition() { - return position_ == null - ? com.google.cloud.vision.v1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; } /** - * - * *
      * Face landmark position.
      * 
@@ -1409,7 +1145,6 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1421,9 +1156,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1438,12 +1173,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1453,18 +1189,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1.FaceAnnotation.Landmark other = - (com.google.cloud.vision.v1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1489,93 +1225,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1585,32 +1315,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation.Landmark} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.FaceAnnotation.Landmark) com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1.FaceAnnotation.Landmark.newBuilder() @@ -1618,15 +1343,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1642,9 +1368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1663,8 +1389,7 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1.FaceAnnotation.Landmark result = - new com.google.cloud.vision.v1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1679,41 +1404,38 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation.Landmark) other); + return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation.Landmark)other); } else { super.mergeFrom(other); return this; @@ -1721,8 +1443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1748,8 +1469,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1761,67 +1481,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1829,24 +1533,21 @@ public Builder setType(com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type v if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1854,47 +1555,34 @@ public Builder clearType() { private com.google.cloud.vision.v1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, - com.google.cloud.vision.v1.Position.Builder, - com.google.cloud.vision.v1.PositionOrBuilder> - positionBuilder_; + com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder> positionBuilder_; /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; - * * @return The position. */ public com.google.cloud.vision.v1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.vision.v1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** - * - * *
        * Face landmark position.
        * 
@@ -1915,15 +1603,14 @@ public Builder setPosition(com.google.cloud.vision.v1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; */ - public Builder setPosition(com.google.cloud.vision.v1.Position.Builder builderForValue) { + public Builder setPosition( + com.google.cloud.vision.v1.Position.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); onChanged(); @@ -1934,8 +1621,6 @@ public Builder setPosition(com.google.cloud.vision.v1.Position.Builder builderFo return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1946,9 +1631,7 @@ public Builder mergePosition(com.google.cloud.vision.v1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1.Position.newBuilder(position_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } @@ -1960,8 +1643,6 @@ public Builder mergePosition(com.google.cloud.vision.v1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1980,8 +1661,6 @@ public Builder clearPosition() { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1989,13 +1668,11 @@ public Builder clearPosition() { * .google.cloud.vision.v1.Position position = 4; */ public com.google.cloud.vision.v1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Face landmark position.
        * 
@@ -2006,14 +1683,11 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.vision.v1.Position.getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; } } /** - * - * *
        * Face landmark position.
        * 
@@ -2021,22 +1695,18 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { * .google.cloud.vision.v1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, - com.google.cloud.vision.v1.Position.Builder, - com.google.cloud.vision.v1.PositionOrBuilder> + com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, - com.google.cloud.vision.v1.Position.Builder, - com.google.cloud.vision.v1.PositionOrBuilder>( - getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2049,12 +1719,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1.FaceAnnotation.Landmark DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.FaceAnnotation.Landmark(); } @@ -2063,16 +1733,16 @@ public static com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2087,13 +1757,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2105,7 +1774,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInstanceForT
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2113,8 +1781,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2126,18 +1792,13 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2158,8 +1819,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1.BoundingPoly fdBoundingPoly_;
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2170,7 +1829,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -2178,8 +1836,6 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2190,18 +1846,13 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2221,8 +1872,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
@@ -2234,8 +1883,6 @@ public java.util.List getLan return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2243,13 +1890,11 @@ public java.util.List getLan * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2261,8 +1906,6 @@ public int getLandmarksCount() { return landmarks_.size(); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2274,8 +1917,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index return landmarks_.get(index); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2291,8 +1932,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -2300,7 +1939,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -2311,8 +1949,6 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -2320,7 +1956,6 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -2331,15 +1966,12 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -2350,14 +1982,11 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -2368,14 +1997,11 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2386,257 +2012,193 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2648,7 +2210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2704,49 +2267,64 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, surpriseLikelihood_); } if (underExposedLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2756,33 +2334,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.FaceAnnotation other = - (com.google.cloud.vision.v1.FaceAnnotation) obj; + com.google.cloud.vision.v1.FaceAnnotation other = (com.google.cloud.vision.v1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly() + .equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getLandmarksList() + .equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2814,15 +2399,20 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2842,127 +2432,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.FaceAnnotation) com.google.cloud.vision.v1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.class, - com.google.cloud.vision.v1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.class, com.google.cloud.vision.v1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.FaceAnnotation.newBuilder() @@ -2970,17 +2551,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3030,9 +2611,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override @@ -3051,8 +2632,7 @@ public com.google.cloud.vision.v1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1.FaceAnnotation result = - new com.google.cloud.vision.v1.FaceAnnotation(this); + com.google.cloud.vision.v1.FaceAnnotation result = new com.google.cloud.vision.v1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -3093,39 +2673,38 @@ public com.google.cloud.vision.v1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation)other); } else { super.mergeFrom(other); return this; @@ -3158,10 +2737,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.FaceAnnotation other) { landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarksFieldBuilder() - : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarksFieldBuilder() : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -3231,18 +2809,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3254,15 +2826,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3274,21 +2843,16 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3315,8 +2879,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3341,8 +2903,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3359,9 +2919,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3373,8 +2931,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3399,8 +2955,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3414,13 +2968,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3437,14 +2989,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3458,17 +3007,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3476,13 +3022,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
     private com.google.cloud.vision.v1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
-        fdBoundingPolyBuilder_;
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3493,15 +3034,12 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3512,21 +3050,16 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3552,8 +3085,6 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3577,8 +3108,6 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3594,9 +3123,7 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(fdBoundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3608,8 +3135,6 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3633,8 +3158,6 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3647,13 +3170,11 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-
+      
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3669,14 +3190,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : fdBoundingPoly_;
+        return fdBoundingPoly_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3689,42 +3207,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
      * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(), getParentForChildren(), isClean());
+        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ =
-            new java.util.ArrayList(landmarks_);
+        landmarks_ = new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.FaceAnnotation.Landmark,
-            com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder,
-            com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>
-        landmarksBuilder_;
+        com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
 
     /**
-     *
-     *
      * 
      * Detected face landmarks.
      * 
@@ -3739,8 +3247,6 @@ public java.util.List getLan } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3755,8 +3261,6 @@ public int getLandmarksCount() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3771,8 +3275,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3794,8 +3296,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3814,8 +3314,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3836,8 +3334,6 @@ public Builder addLandmarks(com.google.cloud.vision.v1.FaceAnnotation.Landmark v return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3859,8 +3355,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3879,8 +3373,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3899,8 +3391,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3911,7 +3401,8 @@ public Builder addAllLandmarks( java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3919,8 +3410,6 @@ public Builder addAllLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3938,8 +3427,6 @@ public Builder clearLandmarks() { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3957,8 +3444,6 @@ public Builder removeLandmarks(int index) { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3970,8 +3455,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder getLandmarksBu return getLandmarksFieldBuilder().getBuilder(index); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3981,22 +3464,19 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder getLandmarksBu public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); - } else { + return landmarks_.get(index); } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -4004,8 +3484,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4013,12 +3491,10 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4027,45 +3503,37 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBu */ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_; + private float rollAngle_ ; /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4073,7 +3541,6 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBu
      * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -4081,8 +3548,6 @@ public float getRollAngle() { return rollAngle_; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4090,19 +3555,16 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; - * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4110,20 +3572,17 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; - * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_; + private float panAngle_ ; /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4131,7 +3590,6 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -4139,8 +3597,6 @@ public float getPanAngle() { return panAngle_; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4148,19 +3604,16 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; - * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4168,27 +3621,23 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; - * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_; + private float tiltAngle_ ; /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -4196,53 +3645,44 @@ public float getTiltAngle() { return tiltAngle_; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_; + private float detectionConfidence_ ; /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -4250,51 +3690,42 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_; + private float landmarkingConfidence_ ; /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -4302,36 +3733,30 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -4339,65 +3764,51 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -4405,24 +3816,21 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -4430,65 +3838,51 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4496,24 +3890,21 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1.Likelihood value) if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4521,65 +3912,51 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4587,24 +3964,21 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4612,65 +3986,51 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4678,24 +4038,21 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1.Likelihood value if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4703,65 +4060,51 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4769,24 +4112,21 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1.Likelihood v if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4794,65 +4134,51 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4860,24 +4186,21 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1.Likelihood value) if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4885,65 +4208,51 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4951,31 +4260,28 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1.Likelihood value if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4985,12 +4291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.FaceAnnotation) private static final com.google.cloud.vision.v1.FaceAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.FaceAnnotation(); } @@ -4999,16 +4305,16 @@ public static com.google.cloud.vision.v1.FaceAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5023,4 +4329,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java similarity index 89% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java index 3ee6a1b1b..dc8aa6f0a 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface FaceAnnotationOrBuilder - extends +public interface FaceAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -37,13 +19,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -55,13 +34,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -77,8 +53,6 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -89,13 +63,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -106,13 +77,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -127,18 +95,15 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List getLandmarksList(); + java.util.List + getLandmarksList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -147,8 +112,6 @@ public interface FaceAnnotationOrBuilder */ com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index); /** - * - * *
    * Detected face landmarks.
    * 
@@ -157,30 +120,25 @@ public interface FaceAnnotationOrBuilder */ int getLandmarksCount(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index); + com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( + int index); /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -188,14 +146,11 @@ public interface FaceAnnotationOrBuilder
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ float getRollAngle(); /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -203,222 +158,170 @@ public interface FaceAnnotationOrBuilder
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ float getPanAngle(); /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ float getTiltAngle(); /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ float getDetectionConfidence(); /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ com.google.cloud.vision.v1.Likelihood getJoyLikelihood(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1.Likelihood getSorrowLikelihood(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ com.google.cloud.vision.v1.Likelihood getAngerLikelihood(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ com.google.cloud.vision.v1.Likelihood getBlurredLikelihood(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java index 18d6f3fc7..554fe33ec 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Feature}
  */
-public final class Feature extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Feature extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Feature)
     FeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -46,15 +28,16 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,30 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              maxResults_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              model_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maxResults_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,41 +87,36 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_Feature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Feature.class,
-            com.google.cloud.vision.v1.Feature.Builder.class);
+            com.google.cloud.vision.v1.Feature.class, com.google.cloud.vision.v1.Feature.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified feature type.
      * 
@@ -149,8 +125,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Run face detection.
      * 
@@ -159,8 +133,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FACE_DETECTION(1), /** - * - * *
      * Run landmark detection.
      * 
@@ -169,8 +141,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LANDMARK_DETECTION(2), /** - * - * *
      * Run logo detection.
      * 
@@ -179,8 +149,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOGO_DETECTION(3), /** - * - * *
      * Run label detection.
      * 
@@ -189,8 +157,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LABEL_DETECTION(4), /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -201,8 +167,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     TEXT_DETECTION(5),
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -212,8 +176,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -223,8 +185,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     SAFE_SEARCH_DETECTION(6),
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -234,8 +194,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     IMAGE_PROPERTIES(7),
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -244,8 +202,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CROP_HINTS(9), /** - * - * *
      * Run web detection.
      * 
@@ -254,8 +210,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ WEB_DETECTION(10), /** - * - * *
      * Run Product Search.
      * 
@@ -264,8 +218,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PRODUCT_SEARCH(12), /** - * - * *
      * Run localizer for object detection.
      * 
@@ -277,8 +229,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified feature type.
      * 
@@ -287,8 +237,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Run face detection.
      * 
@@ -297,8 +245,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACE_DETECTION_VALUE = 1; /** - * - * *
      * Run landmark detection.
      * 
@@ -307,8 +253,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LANDMARK_DETECTION_VALUE = 2; /** - * - * *
      * Run logo detection.
      * 
@@ -317,8 +261,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOGO_DETECTION_VALUE = 3; /** - * - * *
      * Run label detection.
      * 
@@ -327,8 +269,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LABEL_DETECTION_VALUE = 4; /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -339,8 +279,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -350,8 +288,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -361,8 +297,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -372,8 +306,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -382,8 +314,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CROP_HINTS_VALUE = 9; /** - * - * *
      * Run web detection.
      * 
@@ -392,8 +322,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEB_DETECTION_VALUE = 10; /** - * - * *
      * Run Product Search.
      * 
@@ -402,8 +330,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_SEARCH_VALUE = 12; /** - * - * *
      * Run localizer for object detection.
      * 
@@ -412,6 +338,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBJECT_LOCALIZATION_VALUE = 19; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,69 +363,59 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return FACE_DETECTION; - case 2: - return LANDMARK_DETECTION; - case 3: - return LOGO_DETECTION; - case 4: - return LABEL_DETECTION; - case 5: - return TEXT_DETECTION; - case 11: - return DOCUMENT_TEXT_DETECTION; - case 6: - return SAFE_SEARCH_DETECTION; - case 7: - return IMAGE_PROPERTIES; - case 9: - return CROP_HINTS; - case 10: - return WEB_DETECTION; - case 12: - return PRODUCT_SEARCH; - case 19: - return OBJECT_LOCALIZATION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return FACE_DETECTION; + case 2: return LANDMARK_DETECTION; + case 3: return LOGO_DETECTION; + case 4: return LABEL_DETECTION; + case 5: return TEXT_DETECTION; + case 11: return DOCUMENT_TEXT_DETECTION; + case 6: return SAFE_SEARCH_DETECTION; + case 7: return IMAGE_PROPERTIES; + case 9: return CROP_HINTS; + case 10: return WEB_DETECTION; + case 12: return PRODUCT_SEARCH; + case 19: return OBJECT_LOCALIZATION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -518,51 +435,39 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1.Feature.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Feature.Type result = - com.google.cloud.vision.v1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1.Feature.Type result = com.google.cloud.vision.v1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -573,8 +478,6 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -582,7 +485,6 @@ public int getMaxResults() {
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -591,15 +493,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -607,15 +508,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -624,7 +526,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,7 +537,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.vision.v1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -656,10 +558,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -672,7 +576,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Feature)) { return super.equals(obj); @@ -680,8 +584,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.vision.v1.Feature other = (com.google.cloud.vision.v1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() != other.getMaxResults()) return false; - if (!getModel().equals(other.getModel())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -704,103 +610,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Feature parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Feature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -809,23 +709,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.Feature}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Feature)
       com.google.cloud.vision.v1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Feature.class,
-              com.google.cloud.vision.v1.Feature.Builder.class);
+              com.google.cloud.vision.v1.Feature.class, com.google.cloud.vision.v1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Feature.newBuilder()
@@ -833,15 +731,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -855,9 +754,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -888,39 +787,38 @@ public com.google.cloud.vision.v1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1.Feature) other);
+        return mergeFrom((com.google.cloud.vision.v1.Feature)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -970,65 +868,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Feature.Type result = - com.google.cloud.vision.v1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1.Feature.Type result = com.google.cloud.vision.v1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1036,40 +920,34 @@ public Builder setType(com.google.cloud.vision.v1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -1077,38 +955,32 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -1116,8 +988,6 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1125,13 +995,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1140,8 +1010,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1149,14 +1017,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1164,8 +1033,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1173,22 +1040,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1196,18 +1061,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1215,23 +1077,23 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1241,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Feature) private static final com.google.cloud.vision.v1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Feature(); } @@ -1255,16 +1117,16 @@ public static com.google.cloud.vision.v1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1279,4 +1141,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java similarity index 65% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java index 3bea82449..87cca82da 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java @@ -1,70 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.vision.v1.Feature.Type getType(); /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -72,13 +45,10 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -86,8 +56,8 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java similarity index 77% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java index 4672af537..7cf322ab8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsDestination.class, - com.google.cloud.vision.v1.GcsDestination.Builder.class); + com.google.cloud.vision.v1.GcsDestination.class, com.google.cloud.vision.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -140,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -149,15 +126,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -180,15 +156,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -197,7 +174,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +185,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -233,15 +210,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1.GcsDestination other = - (com.google.cloud.vision.v1.GcsDestination) obj; + com.google.cloud.vision.v1.GcsDestination other = (com.google.cloud.vision.v1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,127 +237,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GcsDestination) com.google.cloud.vision.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsDestination.class, - com.google.cloud.vision.v1.GcsDestination.Builder.class); + com.google.cloud.vision.v1.GcsDestination.class, com.google.cloud.vision.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1.GcsDestination.newBuilder() @@ -388,15 +356,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override @@ -427,8 +396,7 @@ public com.google.cloud.vision.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1.GcsDestination buildPartial() { - com.google.cloud.vision.v1.GcsDestination result = - new com.google.cloud.vision.v1.GcsDestination(this); + com.google.cloud.vision.v1.GcsDestination result = new com.google.cloud.vision.v1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -438,39 +406,38 @@ public com.google.cloud.vision.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1.GcsDestination) other); + return mergeFrom((com.google.cloud.vision.v1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -514,8 +481,6 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -538,13 +503,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -553,8 +518,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -577,14 +540,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -592,8 +556,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -616,22 +578,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -654,18 +614,15 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -688,23 +645,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +671,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsDestination) private static final com.google.cloud.vision.v1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GcsDestination(); } @@ -728,16 +685,16 @@ public static com.google.cloud.vision.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +709,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java index c805b5f91..014e9c47d 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -48,13 +30,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -77,8 +56,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java index 7eae2d79a..25d804034 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsSource.class, - com.google.cloud.vision.v1.GcsSource.Builder.class); + com.google.cloud.vision.v1.GcsSource.class, com.google.cloud.vision.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,14 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.vision.v1.GcsSource other = (com.google.cloud.vision.v1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.GcsSource parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GcsSource) com.google.cloud.vision.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsSource.class, - com.google.cloud.vision.v1.GcsSource.Builder.class); + com.google.cloud.vision.v1.GcsSource.class, com.google.cloud.vision.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1.GcsSource.newBuilder() @@ -354,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override @@ -403,39 +374,38 @@ public com.google.cloud.vision.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1.GcsSource) other); + return mergeFrom((com.google.cloud.vision.v1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -479,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -502,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -525,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsSource) private static final com.google.cloud.vision.v1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GcsSource(); } @@ -613,16 +573,16 @@ public static com.google.cloud.vision.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java similarity index 52% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java index db49a9923..9fa8a6cfb 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java new file mode 100644 index 000000000..9e1474097 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public final class GeometryProto { + private GeometryProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/vision/v1/geometry.proto\022" + + "\026google.cloud.vision.v1\"\036\n\006Vertex\022\t\n\001x\030\001" + + " \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\207\001\n\014BoundingPoly\0220\n\010ve" + + "rtices\030\001 \003(\0132\036.google.cloud.vision.v1.Ve" + + "rtex\022E\n\023normalized_vertices\030\002 \003(\0132(.goog" + + "le.cloud.vision.v1.NormalizedVertex\"+\n\010P" + + "osition\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002" + + "Bu\n\032com.google.cloud.vision.v1B\rGeometry" + + "ProtoP\001Z * Request message for the `GetProduct` method. *
* * Protobuf type {@code google.cloud.vision.v1.GetProductRequest} */ -public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetProductRequest) GetProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductRequest.class, - com.google.cloud.vision.v1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1.GetProductRequest.class, com.google.cloud.vision.v1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetProductRequest other = - (com.google.cloud.vision.v1.GetProductRequest) obj; + com.google.cloud.vision.v1.GetProductRequest other = (com.google.cloud.vision.v1.GetProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetProductRequest) com.google.cloud.vision.v1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductRequest.class, - com.google.cloud.vision.v1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1.GetProductRequest.class, com.google.cloud.vision.v1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetProductRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1.GetProductRequest result = - new com.google.cloud.vision.v1.GetProductRequest(this); + com.google.cloud.vision.v1.GetProductRequest result = new com.google.cloud.vision.v1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1.GetProductRequest)other); } else { super.mergeFrom(other); return this; @@ -488,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetProductRequest) private static final com.google.cloud.vision.v1.GetProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetProductRequest(); } @@ -637,16 +580,16 @@ public static com.google.cloud.vision.v1.GetProductRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..349b4cc45 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java similarity index 67% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java index 6d0a96fda..3445cda98 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductSetRequest} */ -public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetProductSetRequest) GetProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductSetRequest.class, - com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1.GetProductSetRequest.class, com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetProductSetRequest other = - (com.google.cloud.vision.v1.GetProductSetRequest) obj; + com.google.cloud.vision.v1.GetProductSetRequest other = (com.google.cloud.vision.v1.GetProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetProductSetRequest) com.google.cloud.vision.v1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductSetRequest.class, - com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1.GetProductSetRequest.class, com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetProductSetRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1.GetProductSetRequest result = - new com.google.cloud.vision.v1.GetProductSetRequest(this); + com.google.cloud.vision.v1.GetProductSetRequest result = new com.google.cloud.vision.v1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.GetProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -489,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetProductSetRequest) private static final com.google.cloud.vision.v1.GetProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetProductSetRequest(); } @@ -638,16 +580,16 @@ public static com.google.cloud.vision.v1.GetProductSetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..ed3fd80de --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java index 9cf81d6e2..ef3a3907e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.GetReferenceImageRequest.class, com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetReferenceImageRequest other = - (com.google.cloud.vision.v1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1.GetReferenceImageRequest other = (com.google.cloud.vision.v1.GetReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetReferenceImageRequest) com.google.cloud.vision.v1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.GetReferenceImageRequest.class, com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetReferenceImageRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.GetReferenceImageRequest result = - new com.google.cloud.vision.v1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1.GetReferenceImageRequest result = new com.google.cloud.vision.v1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1.GetReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1.GetReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1.GetReferenceImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetReferenceImageRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.vision.v1.GetReferenceImageRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..6773f291f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java index 5649cbbb3..15e4d6653 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,31 @@ private Image( case 0: done = true; break; - case 10: - { - content_ = input.readBytes(); - break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.vision.v1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.vision.v1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,23 +85,22 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Image_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Image.class, com.google.cloud.vision.v1.Image.Builder.class); } @@ -129,8 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -140,7 +117,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -151,8 +127,6 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ImageSource source_; /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -160,7 +134,6 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return Whether the source field is set. */ @java.lang.Override @@ -168,8 +141,6 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -177,7 +148,6 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return The source. */ @java.lang.Override @@ -185,8 +155,6 @@ public com.google.cloud.vision.v1.ImageSource getSource() { return source_ == null ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -201,7 +169,6 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,7 +180,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -230,10 +198,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -243,17 +213,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.Image other = (com.google.cloud.vision.v1.Image) obj;
 
-    if (!getContent().equals(other.getContent())) return false;
+    if (!getContent()
+        .equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -277,126 +249,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.Image parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.Image parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.Image parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.vision.v1.Image parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Image parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Image parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Image) com.google.cloud.vision.v1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Image_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Image.class, - com.google.cloud.vision.v1.Image.Builder.class); + com.google.cloud.vision.v1.Image.class, com.google.cloud.vision.v1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1.Image.newBuilder() @@ -404,15 +368,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +393,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override @@ -464,39 +429,38 @@ public com.google.cloud.vision.v1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Image) { - return mergeFrom((com.google.cloud.vision.v1.Image) other); + return mergeFrom((com.google.cloud.vision.v1.Image)other); } else { super.mergeFrom(other); return this; @@ -542,8 +506,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -553,7 +515,6 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -561,8 +522,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -572,22 +531,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -597,11 +553,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -609,13 +564,8 @@ public Builder clearContent() { private com.google.cloud.vision.v1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageSource, - com.google.cloud.vision.v1.ImageSource.Builder, - com.google.cloud.vision.v1.ImageSourceOrBuilder> - sourceBuilder_; + com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder> sourceBuilder_; /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -623,15 +573,12 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -639,21 +586,16 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return The source. */ public com.google.cloud.vision.v1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -676,8 +618,6 @@ public Builder setSource(com.google.cloud.vision.v1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -686,7 +626,8 @@ public Builder setSource(com.google.cloud.vision.v1.ImageSource value) {
      *
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
-    public Builder setSource(com.google.cloud.vision.v1.ImageSource.Builder builderForValue) {
+    public Builder setSource(
+        com.google.cloud.vision.v1.ImageSource.Builder builderForValue) {
       if (sourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -697,8 +638,6 @@ public Builder setSource(com.google.cloud.vision.v1.ImageSource.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -711,9 +650,7 @@ public Builder mergeSource(com.google.cloud.vision.v1.ImageSource value) {
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-              com.google.cloud.vision.v1.ImageSource.newBuilder(source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -725,8 +662,6 @@ public Builder mergeSource(com.google.cloud.vision.v1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -747,8 +682,6 @@ public Builder clearSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -758,13 +691,11 @@ public Builder clearSource() {
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1.ImageSource.Builder getSourceBuilder() {
-
+      
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -777,14 +708,11 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null
-            ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance()
-            : source_;
+        return source_ == null ?
+            com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_;
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -794,24 +722,21 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImageSource,
-            com.google.cloud.vision.v1.ImageSource.Builder,
-            com.google.cloud.vision.v1.ImageSourceOrBuilder>
+        com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder> 
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.ImageSource,
-                com.google.cloud.vision.v1.ImageSource.Builder,
-                com.google.cloud.vision.v1.ImageSourceOrBuilder>(
-                getSource(), getParentForChildren(), isClean());
+        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder>(
+                getSource(),
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -821,12 +746,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Image)
   private static final com.google.cloud.vision.v1.Image DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Image();
   }
@@ -835,16 +760,16 @@ public static com.google.cloud.vision.v1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Image parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Image(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Image parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Image(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -859,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
similarity index 69%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
index 429cba2d5..9dafb6aea 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageAnnotationContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageNumber_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            uri_ = s;
+            break;
+          }
+          case 16: {
+
+            pageNumber_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImageAnnotationContext.class,
-            com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1.ImageAnnotationContext.class, com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
-   *
-   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -188,7 +162,6 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImageAnnotationContext other = - (com.google.cloud.vision.v1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1.ImageAnnotationContext other = (com.google.cloud.vision.v1.ImageAnnotationContext) obj; - if (!getUri().equals(other.getUri())) return false; - if (getPageNumber() != other.getPageNumber()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,103 +237,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -365,23 +334,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ImageAnnotationContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageAnnotationContext)
       com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImageAnnotationContext.class,
-              com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1.ImageAnnotationContext.class, com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder()
@@ -389,15 +356,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +398,7 @@ public com.google.cloud.vision.v1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1.ImageAnnotationContext result =
-          new com.google.cloud.vision.v1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1.ImageAnnotationContext result = new com.google.cloud.vision.v1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -442,39 +409,38 @@ public com.google.cloud.vision.v1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1.ImageAnnotationContext) other);
+        return mergeFrom((com.google.cloud.vision.v1.ImageAnnotationContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -510,8 +475,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +487,18 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
-     *
-     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -545,21 +507,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -567,77 +528,67 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_; + private int pageNumber_ ; /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -645,45 +596,39 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -693,12 +638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageAnnotationContext) private static final com.google.cloud.vision.v1.ImageAnnotationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageAnnotationContext(); } @@ -707,16 +652,16 @@ public static com.google.cloud.vision.v1.ImageAnnotationContext getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java index de85a2628..b078271c6 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java @@ -1,63 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageAnnotationContextOrBuilder - extends +public interface ImageAnnotationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java new file mode 100644 index 000000000..9656bcb1e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java @@ -0,0 +1,756 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/image_annotator.proto + +package com.google.cloud.vision.v1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ColorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1/image_annotator" + + ".proto\022\026google.cloud.vision.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032%" + + "google/cloud/vision/v1/geometry.proto\032+g" + + "oogle/cloud/vision/v1/product_search.pro" + + "to\032,google/cloud/vision/v1/text_annotati" + + "on.proto\032*google/cloud/vision/v1/web_det" + + "ection.proto\032#google/longrunning/operati" + + "ons.proto\032\037google/protobuf/timestamp.pro" + + "to\032\027google/rpc/status.proto\032\027google/type" + + "/color.proto\032\030google/type/latlng.proto\"\207" + + "\003\n\007Feature\0222\n\004type\030\001 \001(\0162$.google.cloud." + + "vision.v1.Feature.Type\022\023\n\013max_results\030\002 " + + "\001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSP" + + "ECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMAR" + + "K_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LAB" + + "EL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DO" + + "CUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_D" + + "ETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP" + + "_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PRODUCT_S" + + "EARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013Imag" + + "eSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_" + + "uri\030\002 \001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006s" + + "ource\030\002 \001(\0132#.google.cloud.vision.v1.Ima" + + "geSource\"\366\r\n\016FaceAnnotation\022;\n\rbounding_" + + "poly\030\001 \001(\0132$.google.cloud.vision.v1.Boun" + + "dingPoly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.goo" + + "gle.cloud.vision.v1.BoundingPoly\022B\n\tland" + + "marks\030\003 \003(\0132/.google.cloud.vision.v1.Fac" + + "eAnnotation.Landmark\022\022\n\nroll_angle\030\004 \001(\002" + + "\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022" + + "\034\n\024detection_confidence\030\007 \001(\002\022\036\n\026landmar" + + "king_confidence\030\010 \001(\002\022:\n\016joy_likelihood\030" + + "\t \001(\0162\".google.cloud.vision.v1.Likelihoo" + + "d\022=\n\021sorrow_likelihood\030\n \001(\0162\".google.cl" + + "oud.vision.v1.Likelihood\022<\n\020anger_likeli" + + "hood\030\013 \001(\0162\".google.cloud.vision.v1.Like" + + "lihood\022?\n\023surprise_likelihood\030\014 \001(\0162\".go" + + "ogle.cloud.vision.v1.Likelihood\022D\n\030under" + + "_exposed_likelihood\030\r \001(\0162\".google.cloud" + + ".vision.v1.Likelihood\022>\n\022blurred_likelih" + + "ood\030\016 \001(\0162\".google.cloud.vision.v1.Likel" + + "ihood\022?\n\023headwear_likelihood\030\017 \001(\0162\".goo" + + "gle.cloud.vision.v1.Likelihood\032\350\007\n\010Landm" + + "ark\022B\n\004type\030\003 \001(\01624.google.cloud.vision." + + "v1.FaceAnnotation.Landmark.Type\0222\n\010posit" + + "ion\030\004 \001(\0132 .google.cloud.vision.v1.Posit" + + "ion\"\343\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LE" + + "FT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_" + + "EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025" + + "LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGH" + + "T_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022\014" + + "\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LIP" + + "\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014M" + + "OUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020" + + "NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER" + + "\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EY" + + "E_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOUN" + + "DARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIGH" + + "T_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIGHT_" + + "CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY\020\027\022" + + "\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBR" + + "OW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPP" + + "ER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021R" + + "IGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023" + + "\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA" + + "\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONIO" + + "N\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\022\025\n\021LEFT_CHEEK" + + "_CENTER\020#\022\026\n\022RIGHT_CHEEK_CENTER\020$\"4\n\014Loc" + + "ationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type" + + ".LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\253\002\n\020Entit" + + "yAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t" + + "\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\n" + + "confidence\030\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002" + + "\022;\n\rbounding_poly\030\007 \001(\0132$.google.cloud.v" + + "ision.v1.BoundingPoly\0227\n\tlocations\030\010 \003(\013" + + "2$.google.cloud.vision.v1.LocationInfo\0224" + + "\n\nproperties\030\t \003(\0132 .google.cloud.vision" + + ".v1.Property\"\231\001\n\031LocalizedObjectAnnotati" + + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022;\n\rbounding_" + + "poly\030\005 \001(\0132$.google.cloud.vision.v1.Boun" + + "dingPoly\"\231\002\n\024SafeSearchAnnotation\0221\n\005adu" + + "lt\030\001 \001(\0162\".google.cloud.vision.v1.Likeli" + + "hood\0221\n\005spoof\030\002 \001(\0162\".google.cloud.visio" + + "n.v1.Likelihood\0223\n\007medical\030\003 \001(\0162\".googl" + + "e.cloud.vision.v1.Likelihood\0224\n\010violence" + + "\030\004 \001(\0162\".google.cloud.vision.v1.Likeliho" + + "od\0220\n\004racy\030\t \001(\0162\".google.cloud.vision.v" + + "1.Likelihood\"a\n\013LatLongRect\022(\n\013min_lat_l" + + "ng\030\001 \001(\0132\023.google.type.LatLng\022(\n\013max_lat" + + "_lng\030\002 \001(\0132\023.google.type.LatLng\"U\n\tColor" + + "Info\022!\n\005color\030\001 \001(\0132\022.google.type.Color\022" + + "\r\n\005score\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"M" + + "\n\030DominantColorsAnnotation\0221\n\006colors\030\001 \003" + + "(\0132!.google.cloud.vision.v1.ColorInfo\"\\\n" + + "\017ImageProperties\022I\n\017dominant_colors\030\001 \001(" + + "\01320.google.cloud.vision.v1.DominantColor" + + "sAnnotation\"x\n\010CropHint\022;\n\rbounding_poly" + + "\030\001 \001(\0132$.google.cloud.vision.v1.Bounding" + + "Poly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importance_f" + + "raction\030\003 \001(\002\"K\n\023CropHintsAnnotation\0224\n\n" + + "crop_hints\030\001 \003(\0132 .google.cloud.vision.v" + + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + + "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + + "Params\022.\n&enable_text_detection_confiden" + + "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + + " \003(\t\"\210\003\n\014ImageContext\022:\n\rlat_long_rect\030\001" + + " \001(\0132#.google.cloud.vision.v1.LatLongRec" + + "t\022\026\n\016language_hints\030\002 \003(\t\022B\n\021crop_hints_" + + "params\030\004 \001(\0132\'.google.cloud.vision.v1.Cr" + + "opHintsParams\022J\n\025product_search_params\030\005" + + " \001(\0132+.google.cloud.vision.v1.ProductSea" + + "rchParams\022H\n\024web_detection_params\030\006 \001(\0132" + + "*.google.cloud.vision.v1.WebDetectionPar" + + "ams\022J\n\025text_detection_params\030\014 \001(\0132+.goo" + + "gle.cloud.vision.v1.TextDetectionParams\"" + + "\264\001\n\024AnnotateImageRequest\022,\n\005image\030\001 \001(\0132" + + "\035.google.cloud.vision.v1.Image\0221\n\010featur" + + "es\030\002 \003(\0132\037.google.cloud.vision.v1.Featur" + + "e\022;\n\rimage_context\030\003 \001(\0132$.google.cloud." + + "vision.v1.ImageContext\":\n\026ImageAnnotatio" + + "nContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001" + + "(\005\"\344\007\n\025AnnotateImageResponse\022@\n\020face_ann" + + "otations\030\001 \003(\0132&.google.cloud.vision.v1." + + "FaceAnnotation\022F\n\024landmark_annotations\030\002" + + " \003(\0132(.google.cloud.vision.v1.EntityAnno" + + "tation\022B\n\020logo_annotations\030\003 \003(\0132(.googl" + + "e.cloud.vision.v1.EntityAnnotation\022C\n\021la" + + "bel_annotations\030\004 \003(\0132(.google.cloud.vis" + + "ion.v1.EntityAnnotation\022W\n\034localized_obj" + + "ect_annotations\030\026 \003(\01321.google.cloud.vis" + + "ion.v1.LocalizedObjectAnnotation\022B\n\020text" + + "_annotations\030\005 \003(\0132(.google.cloud.vision" + + ".v1.EntityAnnotation\022D\n\024full_text_annota" + + "tion\030\014 \001(\0132&.google.cloud.vision.v1.Text" + + "Annotation\022L\n\026safe_search_annotation\030\006 \001" + + "(\0132,.google.cloud.vision.v1.SafeSearchAn" + + "notation\022L\n\033image_properties_annotation\030" + + "\010 \001(\0132\'.google.cloud.vision.v1.ImageProp" + + "erties\022J\n\025crop_hints_annotation\030\013 \001(\0132+." + + "google.cloud.vision.v1.CropHintsAnnotati" + + "on\022;\n\rweb_detection\030\r \001(\0132$.google.cloud" + + ".vision.v1.WebDetection\022L\n\026product_searc" + + "h_results\030\016 \001(\0132,.google.cloud.vision.v1" + + ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + + "oogle.rpc.Status\022?\n\007context\030\025 \001(\0132..goog" + + "le.cloud.vision.v1.ImageAnnotationContex" + + "t\"q\n\032BatchAnnotateImagesRequest\022C\n\010reque" + + "sts\030\001 \003(\0132,.google.cloud.vision.v1.Annot" + + "ateImageRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n\033" + + "BatchAnnotateImagesResponse\022@\n\tresponses" + + "\030\001 \003(\0132-.google.cloud.vision.v1.Annotate" + + "ImageResponse\"\317\001\n\023AnnotateFileRequest\0229\n" + + "\014input_config\030\001 \001(\0132#.google.cloud.visio" + + "n.v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.goo" + + "gle.cloud.vision.v1.Feature\022;\n\rimage_con" + + "text\030\003 \001(\0132$.google.cloud.vision.v1.Imag" + + "eContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024AnnotateFile" + + "Response\0229\n\014input_config\030\001 \001(\0132#.google." + + "cloud.vision.v1.InputConfig\022@\n\tresponses" + + "\030\002 \003(\0132-.google.cloud.vision.v1.Annotate" + + "ImageResponse\022\023\n\013total_pages\030\003 \001(\005\022!\n\005er" + + "ror\030\004 \001(\0132\022.google.rpc.Status\"o\n\031BatchAn" + + "notateFilesRequest\022B\n\010requests\030\001 \003(\0132+.g" + + "oogle.cloud.vision.v1.AnnotateFileReques" + + "tB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032BatchAnnotateF" + + "ilesResponse\022?\n\tresponses\030\001 \003(\0132,.google" + + ".cloud.vision.v1.AnnotateFileResponse\"\202\002" + + "\n\030AsyncAnnotateFileRequest\0229\n\014input_conf" + + "ig\030\001 \001(\0132#.google.cloud.vision.v1.InputC" + + "onfig\0221\n\010features\030\002 \003(\0132\037.google.cloud.v" + + "ision.v1.Feature\022;\n\rimage_context\030\003 \001(\0132" + + "$.google.cloud.vision.v1.ImageContext\022;\n" + + "\routput_config\030\004 \001(\0132$.google.cloud.visi" + + "on.v1.OutputConfig\"X\n\031AsyncAnnotateFileR" + + "esponse\022;\n\routput_config\030\001 \001(\0132$.google." + + "cloud.vision.v1.OutputConfig\"\270\001\n\037AsyncBa" + + "tchAnnotateImagesRequest\022C\n\010requests\030\001 \003" + + "(\0132,.google.cloud.vision.v1.AnnotateImag" + + "eRequestB\003\340A\002\022@\n\routput_config\030\002 \001(\0132$.g" + + "oogle.cloud.vision.v1.OutputConfigB\003\340A\002\022" + + "\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchAnnotateIma" + + "gesResponse\022;\n\routput_config\030\001 \001(\0132$.goo" + + "gle.cloud.vision.v1.OutputConfig\"y\n\036Asyn" + + "cBatchAnnotateFilesRequest\022G\n\010requests\030\001" + + " \003(\01320.google.cloud.vision.v1.AsyncAnnot" + + "ateFileRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"g\n\037A" + + "syncBatchAnnotateFilesResponse\022D\n\trespon" + + "ses\030\001 \003(\01321.google.cloud.vision.v1.Async" + + "AnnotateFileResponse\"h\n\013InputConfig\0225\n\ng" + + "cs_source\030\001 \001(\0132!.google.cloud.vision.v1" + + ".GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n\tmime_type" + + "\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_destinatio" + + "n\030\001 \001(\0132&.google.cloud.vision.v1.GcsDest" + + "ination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGcsSource" + + "\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001" + + " \001(\t\"\210\002\n\021OperationMetadata\022>\n\005state\030\001 \001(" + + "\0162/.google.cloud.vision.v1.OperationMeta" + + "data.State\022/\n\013create_time\030\005 \001(\0132\032.google" + + ".protobuf.Timestamp\022/\n\013update_time\030\006 \001(\013" + + "2\032.google.protobuf.Timestamp\"Q\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUN" + + "NING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikel" + + "ihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n" + + "\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n" + + "\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnotator\022\223\002\n\023Ba" + + "tchAnnotateImages\0222.google.cloud.vision." + + "v1.BatchAnnotateImagesRequest\0323.google.c" + + "loud.vision.v1.BatchAnnotateImagesRespon" + + "se\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annotate:\001*Z8\"3" + + "/v1/{parent=projects/*/locations/*}/imag" + + "es:annotate:\001*Z,\"\'/v1/{parent=projects/*" + + "}/images:annotate:\001*\332A\010requests\022\214\002\n\022Batc" + + "hAnnotateFiles\0221.google.cloud.vision.v1." + + "BatchAnnotateFilesRequest\0322.google.cloud" + + ".vision.v1.BatchAnnotateFilesResponse\"\216\001" + + "\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z7\"2/v1/{pa" + + "rent=projects/*/locations/*}/files:annot" + + "ate:\001*Z+\"&/v1/{parent=projects/*}/files:" + + "annotate:\001*\332A\010requests\022\353\002\n\030AsyncBatchAnn" + + "otateImages\0227.google.cloud.vision.v1.Asy" + + "ncBatchAnnotateImagesRequest\032\035.google.lo" + + "ngrunning.Operation\"\366\001\202\323\344\223\002\236\001\"\035/v1/image" + + "s:asyncBatchAnnotate:\001*ZB\"=/v1/{parent=p" + + "rojects/*/locations/*}/images:asyncBatch" + + "Annotate:\001*Z6\"1/v1/{parent=projects/*}/i" + + "mages:asyncBatchAnnotate:\001*\332A\026requests,o" + + "utput_config\312A5\n AsyncBatchAnnotateImage" + + "sResponse\022\021OperationMetadata\022\327\002\n\027AsyncBa" + + "tchAnnotateFiles\0226.google.cloud.vision.v" + + "1.AsyncBatchAnnotateFilesRequest\032\035.googl" + + "e.longrunning.Operation\"\344\001\202\323\344\223\002\233\001\"\034/v1/f" + + "iles:asyncBatchAnnotate:\001*ZA\" * Image context and/or feature-specific parameters. *
* * Protobuf type {@code google.cloud.vision.v1.ImageContext} */ -public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageContext) ImageContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,103 +54,87 @@ private ImageContext( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = - input.readMessage( - com.google.cloud.vision.v1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = input.readMessage(com.google.cloud.vision.v1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + case 34: { + com.google.cloud.vision.v1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.cloud.vision.v1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; + productSearchParams_ = input.readMessage(com.google.cloud.vision.v1.ProductSearchParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = - input.readMessage( - com.google.cloud.vision.v1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.cloud.vision.v1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); } - case 42: - { - com.google.cloud.vision.v1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); - } - productSearchParams_ = - input.readMessage( - com.google.cloud.vision.v1.ProductSearchParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); - } - - break; + webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); - } - webDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.cloud.vision.v1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); } - case 98: - { - com.google.cloud.vision.v1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); - } - textDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); - } - - break; + textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -175,7 +142,8 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -184,33 +152,27 @@ private ImageContext( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageContext.class, - com.google.cloud.vision.v1.ImageContext.Builder.class); + com.google.cloud.vision.v1.ImageContext.class, com.google.cloud.vision.v1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.LatLongRect latLongRect_; /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -218,25 +180,18 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { - return latLongRect_ == null - ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; } /** - * - * *
    * Not used.
    * 
@@ -251,8 +206,6 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -265,15 +218,13 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder()
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_; } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -286,15 +237,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -307,7 +255,6 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -315,8 +262,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -329,25 +274,22 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.CropHintsParams cropHintsParams_; /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -355,25 +297,18 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -388,14 +323,11 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1.ProductSearchParams productSearchParams_; /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -403,25 +335,18 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null - ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } /** - * - * *
    * Parameters for product search.
    * 
@@ -436,14 +361,11 @@ public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchP public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1.WebDetectionParams webDetectionParams_; /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -451,25 +373,18 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } /** - * - * *
    * Parameters for web detection.
    * 
@@ -484,14 +399,11 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1.TextDetectionParams textDetectionParams_; /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -499,25 +411,18 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
@@ -530,7 +435,6 @@ public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionP } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +446,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -571,7 +476,8 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -582,17 +488,20 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -602,7 +511,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); @@ -611,24 +520,30 @@ public boolean equals(final java.lang.Object obj) { if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect().equals(other.getLatLongRect())) return false; + if (!getLatLongRect() + .equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList() + .equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams() + .equals(other.getCropHintsParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams() + .equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams() + .equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams() + .equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -670,127 +585,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageContext} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageContext) com.google.cloud.vision.v1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageContext.class, - com.google.cloud.vision.v1.ImageContext.Builder.class); + com.google.cloud.vision.v1.ImageContext.class, com.google.cloud.vision.v1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageContext.newBuilder() @@ -798,15 +704,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -846,9 +753,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override @@ -867,8 +774,7 @@ public com.google.cloud.vision.v1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1.ImageContext buildPartial() { - com.google.cloud.vision.v1.ImageContext result = - new com.google.cloud.vision.v1.ImageContext(this); + com.google.cloud.vision.v1.ImageContext result = new com.google.cloud.vision.v1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -908,39 +814,38 @@ public com.google.cloud.vision.v1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1.ImageContext) other); + return mergeFrom((com.google.cloud.vision.v1.ImageContext)other); } else { super.mergeFrom(other); return this; @@ -1002,52 +907,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, - com.google.cloud.vision.v1.LatLongRect.Builder, - com.google.cloud.vision.v1.LatLongRectOrBuilder> - latLongRectBuilder_; + com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder> latLongRectBuilder_; /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null - ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** - * - * *
      * Not used.
      * 
@@ -1068,15 +959,14 @@ public Builder setLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { return this; } /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ - public Builder setLatLongRect(com.google.cloud.vision.v1.LatLongRect.Builder builderForValue) { + public Builder setLatLongRect( + com.google.cloud.vision.v1.LatLongRect.Builder builderForValue) { if (latLongRectBuilder_ == null) { latLongRect_ = builderForValue.build(); onChanged(); @@ -1087,8 +977,6 @@ public Builder setLatLongRect(com.google.cloud.vision.v1.LatLongRect.Builder bui return this; } /** - * - * *
      * Not used.
      * 
@@ -1099,9 +987,7 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1.LatLongRect.newBuilder(latLongRect_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); } else { latLongRect_ = value; } @@ -1113,8 +999,6 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { return this; } /** - * - * *
      * Not used.
      * 
@@ -1133,8 +1017,6 @@ public Builder clearLatLongRect() { return this; } /** - * - * *
      * Not used.
      * 
@@ -1142,13 +1024,11 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** - * - * *
      * Not used.
      * 
@@ -1159,14 +1039,11 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null - ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? + com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; } } /** - * - * *
      * Not used.
      * 
@@ -1174,34 +1051,27 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, - com.google.cloud.vision.v1.LatLongRect.Builder, - com.google.cloud.vision.v1.LatLongRectOrBuilder> + com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, - com.google.cloud.vision.v1.LatLongRect.Builder, - com.google.cloud.vision.v1.LatLongRectOrBuilder>( - getLatLongRect(), getParentForChildren(), isClean()); + latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder>( + getLatLongRect(), + getParentForChildren(), + isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1214,15 +1084,13 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1235,15 +1103,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
      * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1256,7 +1121,6 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1264,8 +1128,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1278,16 +1140,14 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1300,23 +1160,21 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints(int index, java.lang.String value) { + public Builder setLanguageHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1329,22 +1187,20 @@ public Builder setLanguageHints(int index, java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints(java.lang.String value) { + public Builder addLanguageHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1357,19 +1213,18 @@ public Builder addLanguageHints(java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints(java.lang.Iterable values) { + public Builder addAllLanguageHints( + java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1382,7 +1237,6 @@ public Builder addAllLanguageHints(java.lang.Iterable values)
      * 
* * repeated string language_hints = 2; - * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1392,8 +1246,6 @@ public Builder clearLanguageHints() { return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1406,15 +1258,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; - * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1423,47 +1275,34 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, - com.google.cloud.vision.v1.CropHintsParams.Builder, - com.google.cloud.vision.v1.CropHintsParamsOrBuilder> - cropHintsParamsBuilder_; + com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ public com.google.cloud.vision.v1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1484,8 +1323,6 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1.CropHintsParams val return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1504,8 +1341,6 @@ public Builder setCropHintsParams( return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1516,9 +1351,7 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1.CropHintsParams v if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1.CropHintsParams.newBuilder(cropHintsParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); } else { cropHintsParams_ = value; } @@ -1530,8 +1363,6 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1.CropHintsParams v return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1550,8 +1381,6 @@ public Builder clearCropHintsParams() { return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1559,13 +1388,11 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1576,14 +1403,11 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? + com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1591,17 +1415,14 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, - com.google.cloud.vision.v1.CropHintsParams.Builder, - com.google.cloud.vision.v1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, - com.google.cloud.vision.v1.CropHintsParams.Builder, - com.google.cloud.vision.v1.CropHintsParamsOrBuilder>( - getCropHintsParams(), getParentForChildren(), isClean()); + cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder>( + getCropHintsParams(), + getParentForChildren(), + isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1609,47 +1430,34 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB private com.google.cloud.vision.v1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, - com.google.cloud.vision.v1.ProductSearchParams.Builder, - com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> - productSearchParamsBuilder_; + com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ public com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null - ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for product search.
      * 
@@ -1670,8 +1478,6 @@ public Builder setProductSearchParams(com.google.cloud.vision.v1.ProductSearchPa return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1690,8 +1496,6 @@ public Builder setProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1702,9 +1506,7 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1.ProductSearch if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1.ProductSearchParams.newBuilder(productSearchParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); } else { productSearchParams_ = value; } @@ -1716,8 +1518,6 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1.ProductSearch return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1736,8 +1536,6 @@ public Builder clearProductSearchParams() { return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1745,32 +1543,26 @@ public Builder clearProductSearchParams() { * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ public com.google.cloud.vision.v1.ProductSearchParams.Builder getProductSearchParamsBuilder() { - + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder - getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null - ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? + com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } } /** - * - * *
      * Parameters for product search.
      * 
@@ -1778,17 +1570,14 @@ public com.google.cloud.vision.v1.ProductSearchParams.Builder getProductSearchPa * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, - com.google.cloud.vision.v1.ProductSearchParams.Builder, - com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, - com.google.cloud.vision.v1.ProductSearchParams.Builder, - com.google.cloud.vision.v1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), getParentForChildren(), isClean()); + productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), + getParentForChildren(), + isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -1796,47 +1585,34 @@ public com.google.cloud.vision.v1.ProductSearchParams.Builder getProductSearchPa private com.google.cloud.vision.v1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, - com.google.cloud.vision.v1.WebDetectionParams.Builder, - com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> - webDetectionParamsBuilder_; + com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ public com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1857,8 +1633,6 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPara return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1877,8 +1651,6 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1889,9 +1661,7 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPa if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1.WebDetectionParams.newBuilder(webDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); } else { webDetectionParams_ = value; } @@ -1903,8 +1673,6 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPa return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1923,8 +1691,6 @@ public Builder clearWebDetectionParams() { return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1932,13 +1698,11 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; */ public com.google.cloud.vision.v1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1949,14 +1713,11 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? + com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1964,17 +1725,14 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, - com.google.cloud.vision.v1.WebDetectionParams.Builder, - com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, - com.google.cloud.vision.v1.WebDetectionParams.Builder, - com.google.cloud.vision.v1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), getParentForChildren(), isClean()); + webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), + getParentForChildren(), + isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1982,47 +1740,34 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar private com.google.cloud.vision.v1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, - com.google.cloud.vision.v1.TextDetectionParams.Builder, - com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> - textDetectionParamsBuilder_; + com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ public com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2043,8 +1788,6 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1.TextDetectionPa return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2063,8 +1806,6 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2075,9 +1816,7 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1.TextDetection if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1.TextDetectionParams.newBuilder(textDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); } else { textDetectionParams_ = value; } @@ -2089,8 +1828,6 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1.TextDetection return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2109,8 +1846,6 @@ public Builder clearTextDetectionParams() { return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2118,32 +1853,26 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ public com.google.cloud.vision.v1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? + com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2151,24 +1880,21 @@ public com.google.cloud.vision.v1.TextDetectionParams.Builder getTextDetectionPa * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, - com.google.cloud.vision.v1.TextDetectionParams.Builder, - com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, - com.google.cloud.vision.v1.TextDetectionParams.Builder, - com.google.cloud.vision.v1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), getParentForChildren(), isClean()); + textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), + getParentForChildren(), + isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2178,12 +1904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageContext) private static final com.google.cloud.vision.v1.ImageContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageContext(); } @@ -2192,16 +1918,16 @@ public static com.google.cloud.vision.v1.ImageContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2216,4 +1942,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java similarity index 87% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java index 9f474f9d9..239bae617 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageContextOrBuilder - extends +public interface ImageContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ com.google.cloud.vision.v1.LatLongRect getLatLongRect(); /** - * - * *
    * Not used.
    * 
@@ -59,8 +35,6 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -73,13 +47,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - java.util.List getLanguageHintsList(); + java.util.List + getLanguageHintsList(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -92,13 +64,10 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ int getLanguageHintsCount(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -111,14 +80,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -131,39 +97,31 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString getLanguageHintsBytes(int index); + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ com.google.cloud.vision.v1.CropHintsParams getCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -173,32 +131,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
@@ -208,32 +158,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
@@ -243,32 +185,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java index 0b11d398d..282193096 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -35,14 +17,11 @@ public interface ImageOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -50,13 +29,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -64,13 +40,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; - * * @return The source. */ com.google.cloud.vision.v1.ImageSource getSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
similarity index 69%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
index ca5d0070f..bd3ff4ccd 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImageProperties} */ -public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageProperties) ImagePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageProperties() {} + private ImageProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageProperties( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); - } - dominantColors_ = - input.readMessage( - com.google.cloud.vision.v1.DominantColorsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dominantColors_ = input.readMessage(com.google.cloud.vision.v1.DominantColorsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageProperties.class, - com.google.cloud.vision.v1.ImageProperties.Builder.class); + com.google.cloud.vision.v1.ImageProperties.class, com.google.cloud.vision.v1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.DominantColorsAnnotation dominantColors_; /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null - ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
@@ -170,7 +138,6 @@ public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantC } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -196,7 +164,8 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImageProperties other = - (com.google.cloud.vision.v1.ImageProperties) obj; + com.google.cloud.vision.v1.ImageProperties other = (com.google.cloud.vision.v1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors().equals(other.getDominantColors())) return false; + if (!getDominantColors() + .equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageProperties parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageProperties) com.google.cloud.vision.v1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageProperties.class, - com.google.cloud.vision.v1.ImageProperties.Builder.class); + com.google.cloud.vision.v1.ImageProperties.class, com.google.cloud.vision.v1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageProperties.newBuilder() @@ -366,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override @@ -409,8 +370,7 @@ public com.google.cloud.vision.v1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1.ImageProperties buildPartial() { - com.google.cloud.vision.v1.ImageProperties result = - new com.google.cloud.vision.v1.ImageProperties(this); + com.google.cloud.vision.v1.ImageProperties result = new com.google.cloud.vision.v1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -424,39 +384,38 @@ public com.google.cloud.vision.v1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1.ImageProperties) other); + return mergeFrom((com.google.cloud.vision.v1.ImageProperties)other); } else { super.mergeFrom(other); return this; @@ -499,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> - dominantColorsBuilder_; + com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ public com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null - ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -560,8 +506,6 @@ public Builder setDominantColors(com.google.cloud.vision.v1.DominantColorsAnnota return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -580,8 +524,6 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -592,9 +534,7 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1.DominantColorsAnno if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder(dominantColors_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); } else { dominantColors_ = value; } @@ -606,8 +546,6 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1.DominantColorsAnno return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -626,8 +564,6 @@ public Builder clearDominantColors() { return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -635,32 +571,26 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ public com.google.cloud.vision.v1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null - ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? + com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -668,24 +598,21 @@ public com.google.cloud.vision.v1.DominantColorsAnnotation.Builder getDominantCo * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), getParentForChildren(), isClean()); + dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), + getParentForChildren(), + isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -695,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageProperties) private static final com.google.cloud.vision.v1.ImageProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageProperties(); } @@ -709,16 +636,16 @@ public static com.google.cloud.vision.v1.ImageProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -733,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java index 78a7bd1aa..f12aab933 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImagePropertiesOrBuilder - extends +public interface ImagePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java similarity index 77% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java index 39c55965c..6e281845e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImageSource} */ -public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageSource) ImageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -44,15 +26,16 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ImageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageSource.class, - com.google.cloud.vision.v1.ImageSource.Builder.class); + com.google.cloud.vision.v1.ImageSource.class, com.google.cloud.vision.v1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -135,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ @java.lang.Override @@ -144,15 +120,14 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -162,15 +137,16 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -181,8 +157,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -201,7 +175,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
    * 
* * string image_uri = 2; - * * @return The imageUri. */ @java.lang.Override @@ -210,15 +183,14 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -237,15 +209,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -254,7 +227,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -296,15 +269,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageSource)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageSource other = (com.google.cloud.vision.v1.ImageSource) obj; - if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; + if (!getGcsImageUri() + .equals(other.getGcsImageUri())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +300,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageSource) com.google.cloud.vision.v1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageSource.class, - com.google.cloud.vision.v1.ImageSource.Builder.class); + com.google.cloud.vision.v1.ImageSource.class, com.google.cloud.vision.v1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageSource.newBuilder() @@ -453,15 +419,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override @@ -494,8 +461,7 @@ public com.google.cloud.vision.v1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1.ImageSource buildPartial() { - com.google.cloud.vision.v1.ImageSource result = - new com.google.cloud.vision.v1.ImageSource(this); + com.google.cloud.vision.v1.ImageSource result = new com.google.cloud.vision.v1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -506,39 +472,38 @@ public com.google.cloud.vision.v1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1.ImageSource) other); + return mergeFrom((com.google.cloud.vision.v1.ImageSource)other); } else { super.mergeFrom(other); return this; @@ -586,8 +551,6 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -597,13 +560,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -612,8 +575,6 @@ public java.lang.String getGcsImageUri() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -623,14 +584,15 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -638,8 +600,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -649,22 +609,20 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
      * 
* * string gcs_image_uri = 1; - * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri(java.lang.String value) { + public Builder setGcsImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -674,18 +632,15 @@ public Builder setGcsImageUri(java.lang.String value) {
      * 
* * string gcs_image_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -695,16 +650,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -712,8 +667,6 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -732,13 +685,13 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 2; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -747,8 +700,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -767,14 +718,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -782,8 +734,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -802,22 +752,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 2; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -836,18 +784,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 2; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -866,23 +811,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageSource) private static final com.google.cloud.vision.v1.ImageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageSource(); } @@ -906,16 +851,16 @@ public static com.google.cloud.vision.v1.ImageSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java index a4bbd68f7..448e857e8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageSourceOrBuilder - extends +public interface ImageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -35,13 +17,10 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -51,14 +30,12 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString getGcsImageUriBytes(); + com.google.protobuf.ByteString + getGcsImageUriBytes(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -77,13 +54,10 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -102,8 +76,8 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java similarity index 83% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java index 383088600..204c5af64 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsGcsSource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              csvFileUri_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            csvFileUri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource.class,
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
-   *
-   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -170,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ @java.lang.Override @@ -179,15 +156,14 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -239,15 +215,16 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -256,7 +233,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +244,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -292,15 +269,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImportProductSetsGcsSource other = - (com.google.cloud.vision.v1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri() + .equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,104 +297,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ImportProductSetsGcsSource prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -425,23 +394,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImportProductSetsGcsSource.class,
-              com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder()
@@ -449,15 +416,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -467,9 +435,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
@@ -488,8 +456,7 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1.ImportProductSetsGcsSource result =
-          new com.google.cloud.vision.v1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -499,39 +466,38 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource) other);
+        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,8 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsGcsSource other) {
-      if (other == com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -564,8 +529,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -577,8 +541,6 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
-     *
-     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -630,13 +592,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -645,8 +607,6 @@ public java.lang.String getCsvFileUri() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -698,14 +658,15 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -713,8 +674,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -766,22 +725,20 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() {
      * 
* * string csv_file_uri = 1; - * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri(java.lang.String value) { + public Builder setCsvFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -833,18 +790,15 @@ public Builder setCsvFileUri(java.lang.String value) {
      * 
* * string csv_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -896,23 +850,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -922,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsGcsSource) private static final com.google.cloud.vision.v1.ImportProductSetsGcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsGcsSource(); } @@ -936,16 +890,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsGcsSource getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,4 +914,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java similarity index 89% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java index 7c0413d92..18bba94c3 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ImportProductSetsGcsSourceOrBuilder - extends +public interface ImportProductSetsGcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -77,13 +59,10 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -135,8 +114,8 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString getCsvFileUriBytes(); + com.google.protobuf.ByteString + getCsvFileUriBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java similarity index 70% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java index 9131a3f2c..157735a09 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportProductSetsInputConfig() {} + private ImportProductSetsInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,32 +52,27 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1.ImportProductSetsGcsSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.vision.v1.ImportProductSetsGcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,39 +80,34 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -149,35 +123,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -185,27 +154,22 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -216,13 +180,12 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_;
+       return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -234,7 +197,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
     }
@@ -248,9 +212,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -260,18 +223,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.ImportProductSetsInputConfig other =
-        (com.google.cloud.vision.v1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -301,127 +264,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1.ImportProductSetsInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsInputConfig) com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder() @@ -429,15 +382,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override @@ -468,8 +422,7 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1.ImportProductSetsInputConfig result = - new com.google.cloud.vision.v1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -486,39 +439,38 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsInputConfig) other); + return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsInputConfig)other); } else { super.mergeFrom(other); return this; @@ -526,18 +478,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsInputConfig other) { - if (other == com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -558,8 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,12 +516,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -583,21 +531,16 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsGcsSource, - com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, - com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -605,15 +548,12 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -631,8 +571,6 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() { } } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -654,8 +592,6 @@ public Builder setGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSourc
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -675,8 +611,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -686,14 +620,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_
-                != com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder(
-                      (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -709,8 +639,6 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSou
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -735,8 +663,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -748,8 +674,6 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder getGcsSourc
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -769,8 +693,6 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSour
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -779,32 +701,26 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSour
      * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource,
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder,
-            com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>
+        com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.ImportProductSetsGcsSource,
-                com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder,
-                com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -814,12 +730,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsInputConfig)
   private static final com.google.cloud.vision.v1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsInputConfig();
   }
@@ -828,16 +744,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsInputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -852,4 +768,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.vision.v1.ImportProductSetsInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
similarity index 66%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
index c508971e8..7ef471af6 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ImportProductSetsInputConfigOrBuilder
-    extends
+public interface ImportProductSetsInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
similarity index 63%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
index 6745b2309..360a45d3b 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1.ImportProductSetsInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1.ImportProductSetsInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsRequest.class, com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ImportProductSetsInputConfig inputConfig_; /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -205,43 +169,30 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -273,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImportProductSetsRequest other = - (com.google.cloud.vision.v1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1.ImportProductSetsRequest other = (com.google.cloud.vision.v1.ImportProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,126 +273,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsRequest) com.google.cloud.vision.v1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsRequest.class, com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ImportProductSetsRequest.newBuilder() @@ -446,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -491,8 +437,7 @@ public com.google.cloud.vision.v1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1.ImportProductSetsRequest result = - new com.google.cloud.vision.v1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1.ImportProductSetsRequest result = new com.google.cloud.vision.v1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -507,39 +452,38 @@ public com.google.cloud.vision.v1.ImportProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -575,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -588,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -613,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -638,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -709,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { @@ -776,15 +679,11 @@ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputC return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -798,23 +697,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -826,15 +719,11 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInpu return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -848,72 +737,55 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -923,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1.ImportProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsRequest(); } @@ -937,16 +809,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -961,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..9f1b2089d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface ImportProductSetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The inputConfig. + */ + com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java similarity index 78% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java index c6a4aadb9..05d0ef3a9 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -47,15 +29,16 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,34 +58,31 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                referenceImages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              referenceImages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              referenceImages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                statuses_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-              break;
+            referenceImages_.add(
+                input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              statuses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            statuses_.add(
+                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,7 +90,8 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -122,27 +103,22 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImportProductSetsResponse.class,
-            com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1.ImportProductSetsResponse.class, com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -154,8 +130,6 @@ public java.util.List getReferenceIma return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -163,13 +137,11 @@ public java.util.List getReferenceIma * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -181,8 +153,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -194,8 +164,6 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { return referenceImages_.get(index); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -203,15 +171,14 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index) { return referenceImages_.get(index); } public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -227,8 +194,6 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -240,12 +205,11 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List getStatusesOrBuilderList() {
+  public java.util.List 
+      getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -261,8 +225,6 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -278,8 +240,6 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -291,12 +251,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -308,7 +268,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -325,10 +286,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -338,16 +301,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.ImportProductSetsResponse other =
-        (com.google.cloud.vision.v1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1.ImportProductSetsResponse other = (com.google.cloud.vision.v1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList().equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList()
+        .equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList()
+        .equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -373,103 +337,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -479,23 +436,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsResponse)
       com.google.cloud.vision.v1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImportProductSetsResponse.class,
-              com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1.ImportProductSetsResponse.class, com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImportProductSetsResponse.newBuilder()
@@ -503,18 +458,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -534,9 +489,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -555,8 +510,7 @@ public com.google.cloud.vision.v1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1.ImportProductSetsResponse result =
-          new com.google.cloud.vision.v1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1.ImportProductSetsResponse result = new com.google.cloud.vision.v1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -584,39 +538,38 @@ public com.google.cloud.vision.v1.ImportProductSetsResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -624,8 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1.ImportProductSetsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.ImportProductSetsResponse.getDefaultInstance()) return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -644,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse ot
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReferenceImagesFieldBuilder()
-                    : null;
+            referenceImagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReferenceImagesFieldBuilder() : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -671,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse ot
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStatusesFieldBuilder()
-                    : null;
+            statusesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStatusesFieldBuilder() : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -699,8 +649,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -709,29 +658,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ =
-            new java.util.ArrayList(referenceImages_);
+        referenceImages_ = new java.util.ArrayList(referenceImages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.ReferenceImage,
-            com.google.cloud.vision.v1.ReferenceImage.Builder,
-            com.google.cloud.vision.v1.ReferenceImageOrBuilder>
-        referenceImagesBuilder_;
+        com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImagesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of reference_images that are imported successfully.
      * 
@@ -746,8 +687,6 @@ public java.util.List getReferenceIma } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -762,8 +701,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -778,15 +715,14 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder setReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder setReferenceImages( + int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -800,8 +736,6 @@ public Builder setReferenceImages(int index, com.google.cloud.vision.v1.Referenc return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -820,8 +754,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -842,15 +774,14 @@ public Builder addReferenceImages(com.google.cloud.vision.v1.ReferenceImage valu return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder addReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder addReferenceImages( + int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -864,8 +795,6 @@ public Builder addReferenceImages(int index, com.google.cloud.vision.v1.Referenc return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -884,8 +813,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -904,8 +831,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -916,7 +841,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -924,8 +850,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -943,8 +867,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -962,20 +884,17 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder(int index) { + public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder( + int index) { return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -985,22 +904,19 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuild public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -1008,8 +924,6 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -1017,47 +931,38 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder(int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder( + int index) { + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1067,22 +972,19 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuild return referenceImagesBuilder_; } - private java.util.List statuses_ = java.util.Collections.emptyList(); - + private java.util.List statuses_ = + java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; /** - * - * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1101,8 +1003,6 @@ public java.util.List getStatusesList() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1121,8 +1021,6 @@ public int getStatusesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1141,8 +1039,6 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1153,7 +1049,8 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status value) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1167,8 +1064,6 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1179,7 +1074,8 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1190,8 +1086,6 @@ public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1216,8 +1110,6 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1228,7 +1120,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status value) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1242,8 +1135,6 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1254,7 +1145,8 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1265,8 +1157,6 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1277,7 +1167,8 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1288,8 +1179,6 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1300,10 +1189,12 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(java.lang.Iterable values) {
+    public Builder addAllStatuses(
+        java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1311,8 +1202,6 @@ public Builder addAllStatuses(java.lang.Iterable
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1334,8 +1223,6 @@ public Builder clearStatuses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1357,8 +1244,6 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1369,12 +1254,11 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(
+        int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1385,16 +1269,14 @@ public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+        int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);
-      } else {
+        return statuses_.get(index);  } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1405,7 +1287,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesOrBuilderList() {
+    public java.util.List 
+         getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1413,8 +1296,6 @@ public java.util.List getStatusesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1426,11 +1307,10 @@ public java.util.List getStatusesOrBui
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1441,13 +1321,12 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
-      return getStatusesFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(
+        int index) {
+      return getStatusesFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1458,27 +1337,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesBuilderList() {
+    public java.util.List 
+         getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                statuses_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1488,12 +1367,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1.ImportProductSetsResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsResponse();
   }
@@ -1502,16 +1381,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1526,4 +1405,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
index 6b36b9382..1a85174ad 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ImportProductSetsResponseOrBuilder
-    extends
+public interface ImportProductSetsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -44,8 +25,6 @@ public interface ImportProductSetsResponseOrBuilder */ com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -54,30 +33,25 @@ public interface ImportProductSetsResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -88,10 +62,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesList();
+  java.util.List 
+      getStatusesList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -104,8 +77,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   com.google.rpc.Status getStatuses(int index);
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -118,8 +89,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   int getStatusesCount();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -130,10 +99,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesOrBuilderList();
+  java.util.List 
+      getStatusesOrBuilderList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -144,5 +112,6 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
similarity index 72%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
index 716cd0c4a..83a3d8017 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { content_ = com.google.protobuf.ByteString.EMPTY; mimeType_ = ""; @@ -44,15 +26,16 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,41 +54,37 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = - input.readMessage( - com.google.cloud.vision.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; - } - case 26: - { - content_ = input.readBytes(); - break; + gcsSource_ = input.readMessage(com.google.cloud.vision.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + case 26: { + + content_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,39 +92,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.InputConfig.class, - com.google.cloud.vision.v1.InputConfig.Builder.class); + com.google.cloud.vision.v1.InputConfig.class, com.google.cloud.vision.v1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.GcsSource gcsSource_; /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -153,25 +127,18 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -186,8 +153,6 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { public static final int CONTENT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString content_; /** - * - * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -197,7 +162,6 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
    * 
* * bytes content = 3; - * * @return The content. */ @java.lang.Override @@ -208,15 +172,12 @@ public com.google.protobuf.ByteString getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -225,30 +186,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -257,7 +218,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -289,13 +250,15 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, content_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,7 +268,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.InputConfig)) { return super.equals(obj); @@ -314,10 +277,13 @@ public boolean equals(final java.lang.Object obj) { if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; } - if (!getContent().equals(other.getContent())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,127 +308,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.InputConfig) com.google.cloud.vision.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.InputConfig.class, - com.google.cloud.vision.v1.InputConfig.Builder.class); + com.google.cloud.vision.v1.InputConfig.class, com.google.cloud.vision.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.InputConfig.newBuilder() @@ -470,15 +427,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override @@ -517,8 +475,7 @@ public com.google.cloud.vision.v1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.InputConfig buildPartial() { - com.google.cloud.vision.v1.InputConfig result = - new com.google.cloud.vision.v1.InputConfig(this); + com.google.cloud.vision.v1.InputConfig result = new com.google.cloud.vision.v1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -534,39 +491,38 @@ public com.google.cloud.vision.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1.InputConfig) other); + return mergeFrom((com.google.cloud.vision.v1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -616,47 +572,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, - com.google.cloud.vision.v1.GcsSource.Builder, - com.google.cloud.vision.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.vision.v1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -677,15 +620,14 @@ public Builder setGcsSource(com.google.cloud.vision.v1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ - public Builder setGcsSource(com.google.cloud.vision.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource( + com.google.cloud.vision.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); onChanged(); @@ -696,8 +638,6 @@ public Builder setGcsSource(com.google.cloud.vision.v1.GcsSource.Builder builder return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -708,9 +648,7 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); } else { gcsSource_ = value; } @@ -722,8 +660,6 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -742,8 +678,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -751,13 +685,11 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -768,14 +700,11 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null - ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? + com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -783,17 +712,14 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, - com.google.cloud.vision.v1.GcsSource.Builder, - com.google.cloud.vision.v1.GcsSourceOrBuilder> + com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, - com.google.cloud.vision.v1.GcsSource.Builder, - com.google.cloud.vision.v1.GcsSourceOrBuilder>( - getGcsSource(), getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder>( + getGcsSource(), + getParentForChildren(), + isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -801,8 +727,6 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -812,7 +736,6 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * 
* * bytes content = 3; - * * @return The content. */ @java.lang.Override @@ -820,8 +743,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -831,22 +752,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 3; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -856,11 +774,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 3; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -868,21 +785,19 @@ public Builder clearContent() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -891,22 +806,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -914,71 +828,64 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -988,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.InputConfig) private static final com.google.cloud.vision.v1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.InputConfig(); } @@ -1002,16 +909,16 @@ public static com.google.cloud.vision.v1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java index a18298479..d3a2ff9c3 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -59,8 +35,6 @@ public interface InputConfigOrBuilder com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -70,35 +44,29 @@ public interface InputConfigOrBuilder
    * 
* * bytes content = 3; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java index 793982c2f..27a3a58eb 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LatLongRect} */ -public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LatLongRect extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LatLongRect) LatLongRectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatLongRect() {} + private LatLongRect() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,39 @@ private LatLongRect( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); } - case 18: - { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); - } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); - } - - break; + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,39 +92,34 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LatLongRect.class, - com.google.cloud.vision.v1.LatLongRect.Builder.class); + com.google.cloud.vision.v1.LatLongRect.class, com.google.cloud.vision.v1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -150,14 +127,11 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ @java.lang.Override @@ -165,8 +139,6 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** - * - * *
    * Min lat/long pair.
    * 
@@ -181,14 +153,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -196,14 +165,11 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ @java.lang.Override @@ -211,8 +177,6 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** - * - * *
    * Max lat/long pair.
    * 
@@ -225,7 +189,6 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -254,10 +218,12 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,7 +233,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LatLongRect)) { return super.equals(obj); @@ -276,11 +242,13 @@ public boolean equals(final java.lang.Object obj) { if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng().equals(other.getMinLatLng())) return false; + if (!getMinLatLng() + .equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng() + .equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -306,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.LatLongRect parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.LatLongRect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LatLongRect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LatLongRect} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LatLongRect) com.google.cloud.vision.v1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LatLongRect.class, - com.google.cloud.vision.v1.LatLongRect.Builder.class); + com.google.cloud.vision.v1.LatLongRect.class, com.google.cloud.vision.v1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1.LatLongRect.newBuilder() @@ -434,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override @@ -483,8 +443,7 @@ public com.google.cloud.vision.v1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1.LatLongRect buildPartial() { - com.google.cloud.vision.v1.LatLongRect result = - new com.google.cloud.vision.v1.LatLongRect(this); + com.google.cloud.vision.v1.LatLongRect result = new com.google.cloud.vision.v1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -503,39 +462,38 @@ public com.google.cloud.vision.v1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1.LatLongRect) other); + return mergeFrom((com.google.cloud.vision.v1.LatLongRect)other); } else { super.mergeFrom(other); return this; @@ -581,31 +539,24 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -616,8 +567,6 @@ public com.google.type.LatLng getMinLatLng() { } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -638,15 +587,14 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng( + com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -657,8 +605,6 @@ public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -669,7 +615,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -681,8 +627,6 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -701,8 +645,6 @@ public Builder clearMinLatLng() { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -710,13 +652,11 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Min lat/long pair.
      * 
@@ -727,12 +667,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -740,14 +679,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); + minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMinLatLng(), + getParentForChildren(), + isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -755,31 +694,24 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -790,8 +722,6 @@ public com.google.type.LatLng getMaxLatLng() { } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -812,15 +742,14 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng( + com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -831,8 +760,6 @@ public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -843,7 +770,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -855,8 +782,6 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -875,8 +800,6 @@ public Builder clearMaxLatLng() { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -884,13 +807,11 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Max lat/long pair.
      * 
@@ -901,12 +822,11 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -914,21 +834,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); + maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMaxLatLng(), + getParentForChildren(), + isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LatLongRect) private static final com.google.cloud.vision.v1.LatLongRect DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LatLongRect(); } @@ -952,16 +872,16 @@ public static com.google.cloud.vision.v1.LatLongRect getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java similarity index 65% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java index ab3a09510..2ec9e67d4 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LatLongRectOrBuilder - extends +public interface LatLongRectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
@@ -59,32 +35,24 @@ public interface LatLongRectOrBuilder com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java index a1fc620ea..410f257d7 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1.Likelihood}
  */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unknown likelihood.
    * 
@@ -40,8 +22,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
    * It is very unlikely.
    * 
@@ -50,8 +30,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ VERY_UNLIKELY(1), /** - * - * *
    * It is unlikely.
    * 
@@ -60,8 +38,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNLIKELY(2), /** - * - * *
    * It is possible.
    * 
@@ -70,8 +46,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ POSSIBLE(3), /** - * - * *
    * It is likely.
    * 
@@ -80,8 +54,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ LIKELY(4), /** - * - * *
    * It is very likely.
    * 
@@ -93,8 +65,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown likelihood.
    * 
@@ -103,8 +73,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
    * It is very unlikely.
    * 
@@ -113,8 +81,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_UNLIKELY_VALUE = 1; /** - * - * *
    * It is unlikely.
    * 
@@ -123,8 +89,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNLIKELY_VALUE = 2; /** - * - * *
    * It is possible.
    * 
@@ -133,8 +97,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSSIBLE_VALUE = 3; /** - * - * *
    * It is likely.
    * 
@@ -143,8 +105,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIKELY_VALUE = 4; /** - * - * *
    * It is very likely.
    * 
@@ -153,6 +113,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_LIKELY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,55 +138,52 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return VERY_UNLIKELY; - case 2: - return UNLIKELY; - case 3: - return POSSIBLE; - case 4: - return LIKELY; - case 5: - return VERY_LIKELY; - default: - return null; + case 0: return UNKNOWN; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -241,3 +199,4 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1.Likelihood) } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java index 293a9bec3..112401ca0 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsRequest.class, - com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductSetsRequest.class, com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,14 +171,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,29 +184,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -284,7 +250,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -297,17 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductSetsRequest other = - (com.google.cloud.vision.v1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1.ListProductSetsRequest other = (com.google.cloud.vision.v1.ListProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,126 +300,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductSetsRequest) com.google.cloud.vision.v1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsRequest.class, - com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductSetsRequest.class, com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductSetsRequest.newBuilder() @@ -458,15 +418,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -501,8 +462,7 @@ public com.google.cloud.vision.v1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1.ListProductSetsRequest result = - new com.google.cloud.vision.v1.ListProductSetsRequest(this); + com.google.cloud.vision.v1.ListProductSetsRequest result = new com.google.cloud.vision.v1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -514,39 +474,38 @@ public com.google.cloud.vision.v1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,8 +544,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,23 +556,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -624,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -649,85 +599,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -735,36 +669,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -772,20 +700,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -794,21 +720,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -816,68 +741,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductSetsRequest) private static final com.google.cloud.vision.v1.ListProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductSetsRequest(); } @@ -901,16 +819,16 @@ public static com.google.cloud.vision.v1.ListProductSetsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java index b4f766fe3..f4edd0a25 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductSetsRequestOrBuilder - extends +public interface ListProductSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java index a692574b2..109fba304 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productSets_.add( - input.readMessage( - com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + productSets_.add( + input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -113,27 +94,22 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsResponse.class, - com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductSetsResponse.class, com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** - * - * *
    * List of ProductSets.
    * 
@@ -145,8 +121,6 @@ public java.util.List getProductSetsList( return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -154,13 +128,11 @@ public java.util.List getProductSetsList( * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -172,8 +144,6 @@ public int getProductSetsCount() { return productSets_.size(); } /** - * - * *
    * List of ProductSets.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** - * - * *
    * List of ProductSets.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( + int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductSetsResponse other = - (com.google.cloud.vision.v1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1.ListProductSetsResponse other = (com.google.cloud.vision.v1.ListProductSetsResponse) obj; - if (!getProductSetsList().equals(other.getProductSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductSetsList() + .equals(other.getProductSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductSetsResponse) com.google.cloud.vision.v1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsResponse.class, - com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductSetsResponse.class, com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductSetsResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.vision.v1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1.ListProductSetsResponse result = - new com.google.cloud.vision.v1.ListProductSetsResponse(this); + com.google.cloud.vision.v1.ListProductSetsResponse result = new com.google.cloud.vision.v1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.vision.v1.ListProductSetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductSetsResponse) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductSetsResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()) return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsResponse othe productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductSetsFieldBuilder() - : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductSetsFieldBuilder() : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productSets_ = new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> - productSetsBuilder_; + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetsBuilder_; /** - * - * *
      * List of ProductSets.
      * 
@@ -658,8 +605,6 @@ public java.util.List getProductSetsList( } } /** - * - * *
      * List of ProductSets.
      * 
@@ -674,8 +619,6 @@ public int getProductSetsCount() { } } /** - * - * *
      * List of ProductSets.
      * 
@@ -690,15 +633,14 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder setProductSets(int index, com.google.cloud.vision.v1.ProductSet value) { + public Builder setProductSets( + int index, com.google.cloud.vision.v1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +654,6 @@ public Builder setProductSets(int index, com.google.cloud.vision.v1.ProductSet v return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -732,8 +672,6 @@ public Builder setProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -754,15 +692,14 @@ public Builder addProductSets(com.google.cloud.vision.v1.ProductSet value) { return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder addProductSets(int index, com.google.cloud.vision.v1.ProductSet value) { + public Builder addProductSets( + int index, com.google.cloud.vision.v1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,15 +713,14 @@ public Builder addProductSets(int index, com.google.cloud.vision.v1.ProductSet v return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder addProductSets(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder addProductSets( + com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); productSets_.add(builderForValue.build()); @@ -795,8 +731,6 @@ public Builder addProductSets(com.google.cloud.vision.v1.ProductSet.Builder buil return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -815,8 +749,6 @@ public Builder addProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -827,7 +759,8 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -835,8 +768,6 @@ public Builder addAllProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -854,8 +785,6 @@ public Builder clearProductSets() { return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -873,44 +802,39 @@ public Builder removeProductSets(int index) { return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSet.Builder getProductSetsBuilder(int index) { + public com.google.cloud.vision.v1.ProductSet.Builder getProductSetsBuilder( + int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( + int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); - } else { + return productSets_.get(index); } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -918,8 +842,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(in } } /** - * - * *
      * List of ProductSets.
      * 
@@ -927,48 +849,42 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(in * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder(int index) { - return getProductSetsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder( + int index) { + return getProductSetsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder>( - productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( + productSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); productSets_ = null; } return productSetsBuilder_; @@ -976,21 +892,19 @@ public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -999,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1022,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductSetsResponse) private static final com.google.cloud.vision.v1.ListProductSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductSetsResponse(); } @@ -1110,16 +1016,16 @@ public static com.google.cloud.vision.v1.ListProductSetsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java index cc555bb04..3b90ee5b0 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductSetsResponseOrBuilder - extends +public interface ListProductSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - java.util.List getProductSetsList(); + java.util.List + getProductSetsList(); /** - * - * *
    * List of ProductSets.
    * 
@@ -44,8 +25,6 @@ public interface ListProductSetsResponseOrBuilder */ com.google.cloud.vision.v1.ProductSet getProductSets(int index); /** - * - * *
    * List of ProductSets.
    * 
@@ -54,51 +33,43 @@ public interface ListProductSetsResponseOrBuilder */ int getProductSetsCount(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index); + com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java index 0fb24b3eb..30ed9b8d7 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,43 +85,36 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -150,33 +123,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -187,14 +158,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -205,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -252,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -300,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsInProductSetRequest other = - (com.google.cloud.vision.v1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1.ListProductsInProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,127 +302,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ListProductsInProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsInProductSetRequest) com.google.cloud.vision.v1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsInProductSetRequest.newBuilder() @@ -462,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override @@ -505,8 +464,7 @@ public com.google.cloud.vision.v1.ListProductsInProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1.ListProductsInProductSetRequest result = - new com.google.cloud.vision.v1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -518,39 +476,38 @@ public com.google.cloud.vision.v1.ListProductsInProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -558,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetRequest other) { - if (other == com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -590,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -629,25 +580,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -655,88 +603,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -744,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -781,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -803,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -825,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -896,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsInProductSetRequest) private static final com.google.cloud.vision.v1.ListProductsInProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsInProductSetRequest(); } @@ -910,16 +826,16 @@ public static com.google.cloud.vision.v1.ListProductsInProductSetRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +850,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.vision.v1.ListProductsInProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java index a191e586a..ce0af1091 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsInProductSetRequestOrBuilder - extends +public interface ListProductsInProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java index d9590e972..c334154d9 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,31 +55,28 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -114,27 +94,22 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * The list of Products.
    * 
@@ -146,8 +121,6 @@ public java.util.List getProductsList() { return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -155,13 +128,11 @@ public java.util.List getProductsList() { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -173,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * The list of Products.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * The list of Products.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsInProductSetResponse other = - (com.google.cloud.vision.v1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1.ListProductsInProductSetResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ListProductsInProductSetResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsInProductSetResponse) com.google.cloud.vision.v1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsInProductSetResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1.ListProductsInProductSetResponse result = - new com.google.cloud.vision.v1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsInProductSetResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetResponse) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetResponse other) { - if (other == com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetResp productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * The list of Products.
      * 
@@ -660,8 +605,6 @@ public java.util.List getProductsList() { } } /** - * - * *
      * The list of Products.
      * 
@@ -676,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * The list of Products.
      * 
@@ -692,15 +633,14 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -714,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) return this; } /** - * - * *
      * The list of Products.
      * 
@@ -734,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -756,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -797,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderFor return this; } /** - * - * *
      * The list of Products.
      * 
@@ -817,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -829,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -837,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -856,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * The list of Products.
      * 
@@ -875,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +842,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int inde } } /** - * - * *
      * The list of Products.
      * 
@@ -929,47 +849,42 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int inde * repeated .google.cloud.vision.v1.Product products = 1; */ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -977,21 +892,19 @@ public java.util.List getProductsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsInProductSetResponse) private static final com.google.cloud.vision.v1.ListProductsInProductSetResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsInProductSetResponse(); } @@ -1111,16 +1016,16 @@ public static com.google.cloud.vision.v1.ListProductsInProductSetResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1040,6 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.vision.v1.ListProductsInProductSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java index 027dccf1f..ca45fbda5 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsInProductSetResponseOrBuilder - extends +public interface ListProductsInProductSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * The list of Products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsInProductSetResponseOrBuilder */ com.google.cloud.vision.v1.Product getProducts(int index); /** - * - * *
    * The list of Products.
    * 
@@ -54,50 +33,43 @@ public interface ListProductsInProductSetResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List getProductsOrBuilderList(); + java.util.List + getProductsOrBuilderList(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java index eef868fad..9786c2fa4 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsRequest} */ -public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsRequest) ListProductsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsRequest.class, - com.google.cloud.vision.v1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsRequest.class, com.google.cloud.vision.v1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -286,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -299,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsRequest other = - (com.google.cloud.vision.v1.ListProductsRequest) obj; + com.google.cloud.vision.v1.ListProductsRequest other = (com.google.cloud.vision.v1.ListProductsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,127 +301,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsRequest) com.google.cloud.vision.v1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsRequest.class, - com.google.cloud.vision.v1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsRequest.class, com.google.cloud.vision.v1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsRequest.newBuilder() @@ -460,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override @@ -503,8 +464,7 @@ public com.google.cloud.vision.v1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1.ListProductsRequest result = - new com.google.cloud.vision.v1.ListProductsRequest(this); + com.google.cloud.vision.v1.ListProductsRequest result = new com.google.cloud.vision.v1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +476,38 @@ public com.google.cloud.vision.v1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsRequest) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsRequest)other); } else { super.mergeFrom(other); return this; @@ -599,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,25 +580,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -651,88 +603,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -740,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -777,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -799,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -821,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsRequest) private static final com.google.cloud.vision.v1.ListProductsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsRequest(); } @@ -906,16 +826,16 @@ public static com.google.cloud.vision.v1.ListProductsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +850,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java index 68a2b1d49..92a3172ac 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsRequestOrBuilder - extends +public interface ListProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java index 3229ab50e..7afa9a3ed 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsResponse} */ -public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsResponse) ListProductsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListProductsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -113,27 +94,22 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsResponse.class, - com.google.cloud.vision.v1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsResponse.class, com.google.cloud.vision.v1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * List of products.
    * 
@@ -145,8 +121,6 @@ public java.util.List getProductsList() { return products_; } /** - * - * *
    * List of products.
    * 
@@ -154,13 +128,11 @@ public java.util.List getProductsList() { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * List of products.
    * 
@@ -172,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * List of products.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * List of products.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsResponse other = - (com.google.cloud.vision.v1.ListProductsResponse) obj; + com.google.cloud.vision.v1.ListProductsResponse other = (com.google.cloud.vision.v1.ListProductsResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsResponse) com.google.cloud.vision.v1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsResponse.class, - com.google.cloud.vision.v1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsResponse.class, com.google.cloud.vision.v1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.vision.v1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1.ListProductsResponse result = - new com.google.cloud.vision.v1.ListProductsResponse(this); + com.google.cloud.vision.v1.ListProductsResponse result = new com.google.cloud.vision.v1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.vision.v1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsResponse) other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsResponse other) productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -621,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * List of products.
      * 
@@ -657,8 +605,6 @@ public java.util.List getProductsList() { } } /** - * - * *
      * List of products.
      * 
@@ -673,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * List of products.
      * 
@@ -689,15 +633,14 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) return this; } /** - * - * *
      * List of products.
      * 
@@ -731,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -753,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -794,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderFor return this; } /** - * - * *
      * List of products.
      * 
@@ -814,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -826,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -834,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -853,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * List of products.
      * 
@@ -872,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -917,8 +842,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int inde } } /** - * - * *
      * List of products.
      * 
@@ -926,47 +849,42 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int inde * repeated .google.cloud.vision.v1.Product products = 1; */ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -974,21 +892,19 @@ public java.util.List getProductsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -997,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1020,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsResponse) private static final com.google.cloud.vision.v1.ListProductsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsResponse(); } @@ -1108,16 +1016,16 @@ public static com.google.cloud.vision.v1.ListProductsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java index 967b15809..74ad193bc 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsResponseOrBuilder - extends +public interface ListProductsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * List of products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsResponseOrBuilder */ com.google.cloud.vision.v1.Product getProducts(int index); /** - * - * *
    * List of products.
    * 
@@ -54,50 +33,43 @@ public interface ListProductsResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List getProductsOrBuilderList(); + java.util.List + getProductsOrBuilderList(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java index 99606b754..dafe7e985 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -213,7 +180,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -222,15 +188,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListReferenceImagesRequest other = - (com.google.cloud.vision.v1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1.ListReferenceImagesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ListReferenceImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListReferenceImagesRequest) com.google.cloud.vision.v1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListReferenceImagesRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override @@ -508,8 +468,7 @@ public com.google.cloud.vision.v1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1.ListReferenceImagesRequest result = - new com.google.cloud.vision.v1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -521,39 +480,38 @@ public com.google.cloud.vision.v1.ListReferenceImagesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -561,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesRequest other) { - if (other == com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -593,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,24 +562,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -632,25 +584,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -658,88 +607,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -747,36 +680,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -784,8 +711,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -793,13 +718,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -808,8 +733,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -817,14 +740,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -832,8 +756,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -841,22 +763,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -864,18 +784,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -883,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListReferenceImagesRequest) private static final com.google.cloud.vision.v1.ListReferenceImagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListReferenceImagesRequest(); } @@ -923,16 +840,16 @@ public static com.google.cloud.vision.v1.ListReferenceImagesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java index beedb5c07..ab5516738 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java @@ -1,77 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListReferenceImagesRequestOrBuilder - extends +public interface ListReferenceImagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -79,13 +49,10 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -93,8 +60,8 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java index 04bee783c..461df1425 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,33 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - referenceImages_.add( - input.readMessage( - com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry)); - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + referenceImages_.add( + input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry)); + break; + } + case 16: { - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +89,8 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -119,27 +99,22 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** - * - * *
    * The list of reference images.
    * 
@@ -151,8 +126,6 @@ public java.util.List getReferenceIma return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -160,13 +133,11 @@ public java.util.List getReferenceIma * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -178,8 +149,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference images.
    * 
@@ -191,8 +160,6 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { return referenceImages_.get(index); } /** - * - * *
    * The list of reference images.
    * 
@@ -200,21 +167,19 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index) { return referenceImages_.get(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -225,14 +190,11 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -241,29 +203,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -272,7 +234,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -304,10 +266,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -320,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListReferenceImagesResponse other = - (com.google.cloud.vision.v1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList() + .equals(other.getReferenceImagesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,127 +322,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ListReferenceImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListReferenceImagesResponse) com.google.cloud.vision.v1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListReferenceImagesResponse.newBuilder() @@ -484,17 +440,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override @@ -533,8 +489,7 @@ public com.google.cloud.vision.v1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1.ListReferenceImagesResponse result = - new com.google.cloud.vision.v1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -555,39 +510,38 @@ public com.google.cloud.vision.v1.ListReferenceImagesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -595,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesResponse other) { - if (other == com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()) return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -615,10 +568,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesResponse referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReferenceImagesFieldBuilder() - : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReferenceImagesFieldBuilder() : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -650,8 +602,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ListReferenceImagesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ListReferenceImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,29 +611,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList(referenceImages_); + referenceImages_ = new java.util.ArrayList(referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder> - referenceImagesBuilder_; + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImagesBuilder_; /** - * - * *
      * The list of reference images.
      * 
@@ -697,8 +640,6 @@ public java.util.List getReferenceIma } } /** - * - * *
      * The list of reference images.
      * 
@@ -713,8 +654,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference images.
      * 
@@ -729,15 +668,14 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { } } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder setReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder setReferenceImages( + int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,8 +689,6 @@ public Builder setReferenceImages(int index, com.google.cloud.vision.v1.Referenc return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -771,8 +707,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -793,15 +727,14 @@ public Builder addReferenceImages(com.google.cloud.vision.v1.ReferenceImage valu return this; } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder addReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder addReferenceImages( + int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,8 +748,6 @@ public Builder addReferenceImages(int index, com.google.cloud.vision.v1.Referenc return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -835,8 +766,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -855,8 +784,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -867,7 +794,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -875,8 +803,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -894,8 +820,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -913,20 +837,17 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder(int index) { + public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder( + int index) { return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference images.
      * 
@@ -936,22 +857,19 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuild public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -959,8 +877,6 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu } } /** - * - * *
      * The list of reference images.
      * 
@@ -968,47 +884,38 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder(int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder( + int index) { + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, - com.google.cloud.vision.v1.ReferenceImage.Builder, - com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1018,16 +925,13 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuild return referenceImagesBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1035,36 +939,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1072,20 +970,18 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1094,21 +990,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1116,68 +1011,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1187,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListReferenceImagesResponse) private static final com.google.cloud.vision.v1.ListReferenceImagesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListReferenceImagesResponse(); } @@ -1201,16 +1089,16 @@ public static com.google.cloud.vision.v1.ListReferenceImagesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1225,4 +1113,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java index 7f0c65a1a..12ca5efbf 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListReferenceImagesResponseOrBuilder - extends +public interface ListReferenceImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference images.
    * 
@@ -44,8 +25,6 @@ public interface ListReferenceImagesResponseOrBuilder */ com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference images.
    * 
@@ -54,62 +33,51 @@ public interface ListReferenceImagesResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java index 1dc02b1ef..98b863d75 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocalizedObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -45,15 +27,16 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,55 +55,49 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 42: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 37: - { - score_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,39 +105,34 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -169,29 +141,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -202,8 +174,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -211,7 +181,6 @@ public com.google.protobuf.ByteString getMidBytes() {
    * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -220,15 +189,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -236,15 +204,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -255,14 +224,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -271,29 +237,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -304,14 +270,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -322,14 +285,11 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -337,25 +297,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -368,7 +321,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -415,10 +368,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -428,22 +383,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.LocalizedObjectAnnotation other = - (com.google.cloud.vision.v1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1.LocalizedObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -463,7 +422,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -474,126 +434,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LocalizedObjectAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LocalizedObjectAnnotation) com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.LocalizedObjectAnnotation.newBuilder() @@ -601,15 +552,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -652,8 +604,7 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1.LocalizedObjectAnnotation result = - new com.google.cloud.vision.v1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -671,39 +622,38 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.LocalizedObjectAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.LocalizedObjectAnnotation)other); } else { super.mergeFrom(other); return this; @@ -711,8 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -750,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -763,20 +711,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -785,21 +731,20 @@ public java.lang.String getMid() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -807,61 +752,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -869,8 +807,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -878,13 +814,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -893,8 +829,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -902,14 +836,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -917,8 +852,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -926,22 +859,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -949,18 +880,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -968,16 +896,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -985,20 +913,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1007,21 +933,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1029,76 +954,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1106,36 +1021,30 @@ public float getScore() { return score_; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1143,47 +1052,34 @@ public Builder clearScore() { private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1204,8 +1100,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1224,8 +1118,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1236,9 +1128,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -1250,8 +1140,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1270,8 +1158,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1279,13 +1165,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1296,14 +1180,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1311,24 +1192,21 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1338,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1.LocalizedObjectAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LocalizedObjectAnnotation(); } @@ -1352,16 +1230,16 @@ public static com.google.cloud.vision.v1.LocalizedObjectAnnotation getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1376,4 +1254,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java index c77966c76..b01ff6e37 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LocalizedObjectAnnotationOrBuilder - extends +public interface LocalizedObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -58,13 +35,10 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -72,76 +46,60 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java index 91238b4dd..fd5f727d6 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LocationInfo} */ -public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LocationInfo) LocationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationInfo() {} + private LocationInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,27 +52,26 @@ private LocationInfo( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); - } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +79,34 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocationInfo.class, - com.google.cloud.vision.v1.LocationInfo.Builder.class); + com.google.cloud.vision.v1.LocationInfo.class, com.google.cloud.vision.v1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -136,14 +114,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -151,8 +126,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * lat/long location coordinates.
    * 
@@ -165,7 +138,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -191,7 +164,8 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,7 +175,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LocationInfo)) { return super.equals(obj); @@ -210,7 +184,8 @@ public boolean equals(final java.lang.Object obj) { if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -232,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.LocationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.LocationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LocationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LocationInfo) com.google.cloud.vision.v1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocationInfo.class, - com.google.cloud.vision.v1.LocationInfo.Builder.class); + com.google.cloud.vision.v1.LocationInfo.class, com.google.cloud.vision.v1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1.LocationInfo.newBuilder() @@ -360,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override @@ -403,8 +370,7 @@ public com.google.cloud.vision.v1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1.LocationInfo buildPartial() { - com.google.cloud.vision.v1.LocationInfo result = - new com.google.cloud.vision.v1.LocationInfo(this); + com.google.cloud.vision.v1.LocationInfo result = new com.google.cloud.vision.v1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -418,39 +384,38 @@ public com.google.cloud.vision.v1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1.LocationInfo) other); + return mergeFrom((com.google.cloud.vision.v1.LocationInfo)other); } else { super.mergeFrom(other); return this; @@ -493,31 +458,24 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -528,8 +486,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -550,15 +506,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -569,8 +524,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -580,7 +533,8 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = + com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -592,8 +546,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -612,8 +564,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -621,13 +571,11 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -638,12 +586,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -651,21 +598,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -675,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LocationInfo) private static final com.google.cloud.vision.v1.LocationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LocationInfo(); } @@ -689,16 +636,16 @@ public static com.google.cloud.vision.v1.LocationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -713,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java index b4a1444ea..1bb6cce34 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LocationInfoOrBuilder - extends +public interface LocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java similarity index 100% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java index 43daa233e..8d8fc876e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NormalizedVertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,23 +54,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,39 +78,34 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.NormalizedVertex.class,
-            com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1.NormalizedVertex.class, com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1.NormalizedVertex other = - (com.google.cloud.vision.v1.NormalizedVertex) obj; + com.google.cloud.vision.v1.NormalizedVertex other = (com.google.cloud.vision.v1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -333,23 +307,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.NormalizedVertex)
       com.google.cloud.vision.v1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.NormalizedVertex.class,
-              com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1.NormalizedVertex.class, com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.NormalizedVertex.newBuilder()
@@ -357,15 +329,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -398,8 +371,7 @@ public com.google.cloud.vision.v1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1.NormalizedVertex result =
-          new com.google.cloud.vision.v1.NormalizedVertex(this);
+      com.google.cloud.vision.v1.NormalizedVertex result = new com.google.cloud.vision.v1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -410,39 +382,38 @@ public com.google.cloud.vision.v1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.vision.v1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -486,16 +457,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -503,51 +471,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -555,43 +514,37 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.NormalizedVertex) private static final com.google.cloud.vision.v1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.NormalizedVertex(); } @@ -615,16 +568,16 @@ public static com.google.cloud.vision.v1.NormalizedVertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..048d88048 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java index 8593514f4..77182322e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,45 @@ private OperationMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +99,36 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OperationMetadata.class, - com.google.cloud.vision.v1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1.OperationMetadata.class, com.google.cloud.vision.v1.OperationMetadata.Builder.class); } /** - * - * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.OperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -164,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is received.
      * 
@@ -174,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * Request is actively being processed.
      * 
@@ -184,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing is done.
      * 
@@ -194,8 +161,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DONE(3), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -207,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -217,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is received.
      * 
@@ -227,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * Request is actively being processed.
      * 
@@ -237,8 +196,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing is done.
      * 
@@ -247,8 +204,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -257,6 +212,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,53 +237,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATED; - case 2: - return RUNNING; - case 3: - return DONE; - case 4: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATED; + case 2: return RUNNING; + case 3: return DONE; + case 4: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1.OperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -347,52 +301,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1.OperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.OperationMetadata.State result = - com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.OperationMetadata.State result = com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -400,14 +340,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -415,8 +352,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the batch request was received.
    * 
@@ -431,14 +366,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -446,14 +378,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -461,8 +390,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the operation result was last updated.
    * 
@@ -475,7 +402,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -487,9 +413,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -507,15 +433,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -525,22 +453,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1.OperationMetadata other = - (com.google.cloud.vision.v1.OperationMetadata) obj; + com.google.cloud.vision.v1.OperationMetadata other = (com.google.cloud.vision.v1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -568,127 +497,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.OperationMetadata) com.google.cloud.vision.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OperationMetadata.class, - com.google.cloud.vision.v1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1.OperationMetadata.class, com.google.cloud.vision.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1.OperationMetadata.newBuilder() @@ -696,15 +616,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -726,9 +647,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -747,8 +668,7 @@ public com.google.cloud.vision.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1.OperationMetadata result = - new com.google.cloud.vision.v1.OperationMetadata(this); + com.google.cloud.vision.v1.OperationMetadata result = new com.google.cloud.vision.v1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -768,39 +688,38 @@ public com.google.cloud.vision.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.vision.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -849,67 +768,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.OperationMetadata.State result = - com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.OperationMetadata.State result = com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -917,24 +820,21 @@ public Builder setState(com.google.cloud.vision.v1.OperationMetadata.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -942,47 +842,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1003,15 +890,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1022,8 +908,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1034,7 +918,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1046,8 +930,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1066,8 +948,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1075,13 +955,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1092,14 +970,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1107,17 +982,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1125,47 +997,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1186,15 +1045,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1205,8 +1063,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1217,7 +1073,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1229,8 +1085,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1249,8 +1103,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1258,13 +1110,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1275,14 +1125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1290,24 +1137,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,12 +1161,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OperationMetadata) private static final com.google.cloud.vision.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.OperationMetadata(); } @@ -1331,16 +1175,16 @@ public static com.google.cloud.vision.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1355,4 +1199,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java index a794cd5b2..4073376e7 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1.OperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
@@ -84,32 +54,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java similarity index 72% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java index bd3eb54c6..b3c1c9b95 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); - } - gcsDestination_ = - input.readMessage( - com.google.cloud.vision.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); } - case 16: - { - batchSize_ = input.readInt32(); - break; + gcsDestination_ = input.readMessage(com.google.cloud.vision.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + batchSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +84,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OutputConfig.class, - com.google.cloud.vision.v1.OutputConfig.Builder.class); + com.google.cloud.vision.v1.OutputConfig.class, com.google.cloud.vision.v1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.GcsDestination gcsDestination_; /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -143,25 +119,18 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1.GcsDestination getGcsDestination() { - return gcsDestination_ == null - ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -176,8 +145,6 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -191,7 +158,6 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -200,7 +166,6 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -229,10 +195,12 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,7 +210,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.OutputConfig)) { return super.equals(obj); @@ -251,9 +219,11 @@ public boolean equals(final java.lang.Object obj) { if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; } - if (getBatchSize() != other.getBatchSize()) return false; + if (getBatchSize() + != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,127 +246,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.OutputConfig) com.google.cloud.vision.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OutputConfig.class, - com.google.cloud.vision.v1.OutputConfig.Builder.class); + com.google.cloud.vision.v1.OutputConfig.class, com.google.cloud.vision.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.OutputConfig.newBuilder() @@ -404,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override @@ -449,8 +411,7 @@ public com.google.cloud.vision.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.OutputConfig buildPartial() { - com.google.cloud.vision.v1.OutputConfig result = - new com.google.cloud.vision.v1.OutputConfig(this); + com.google.cloud.vision.v1.OutputConfig result = new com.google.cloud.vision.v1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -465,39 +426,38 @@ public com.google.cloud.vision.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1.OutputConfig) other); + return mergeFrom((com.google.cloud.vision.v1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -543,47 +503,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, - com.google.cloud.vision.v1.GcsDestination.Builder, - com.google.cloud.vision.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ public com.google.cloud.vision.v1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null - ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -604,8 +551,6 @@ public Builder setGcsDestination(com.google.cloud.vision.v1.GcsDestination value return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -624,8 +569,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -636,9 +579,7 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1.GcsDestination val if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); } else { gcsDestination_ = value; } @@ -650,8 +591,6 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1.GcsDestination val return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -670,8 +609,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -679,13 +616,11 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -696,14 +631,11 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null - ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? + com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -711,26 +643,21 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, - com.google.cloud.vision.v1.GcsDestination.Builder, - com.google.cloud.vision.v1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, - com.google.cloud.vision.v1.GcsDestination.Builder, - com.google.cloud.vision.v1.GcsDestinationOrBuilder>( - getGcsDestination(), getParentForChildren(), isClean()); + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder>( + getGcsDestination(), + getParentForChildren(), + isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_; + private int batchSize_ ; /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -744,7 +671,6 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -752,8 +678,6 @@ public int getBatchSize() { return batchSize_; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -767,19 +691,16 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; - * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -793,18 +714,17 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; - * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -814,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OutputConfig) private static final com.google.cloud.vision.v1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.OutputConfig(); } @@ -828,16 +748,16 @@ public static com.google.cloud.vision.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java index 484902802..1a8816b0f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.vision.v1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -59,8 +35,6 @@ public interface OutputConfigOrBuilder com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -74,7 +48,6 @@ public interface OutputConfigOrBuilder
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ int getBatchSize(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java index 63ec56ae8..5df0266c8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** - * - * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Page} */ -public final class Page extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Page extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Page) PageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,55 +54,50 @@ private Page( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - width_ = input.readInt32(); - break; + case 10: { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 24: - { - height_ = input.readInt32(); - break; + property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1.Block.parser(), extensionRegistry)); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + blocks_.add( + input.readMessage(com.google.cloud.vision.v1.Block.parser(), extensionRegistry)); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +105,8 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -136,17 +115,15 @@ private Page( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Page_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Page.class, com.google.cloud.vision.v1.Page.Builder.class); } @@ -154,14 +131,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -169,25 +143,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected on the page.
    * 
@@ -202,15 +169,12 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -221,15 +185,12 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -240,8 +201,6 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -253,8 +212,6 @@ public java.util.List getBlocksList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -262,13 +219,11 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -280,8 +235,6 @@ public int getBlocksCount() { return blocks_.size(); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -293,8 +246,6 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { return blocks_.get(index); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -302,21 +253,19 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( + int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -325,7 +274,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -363,19 +312,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,7 +339,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Page)) { return super.equals(obj); @@ -394,13 +348,18 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; - } - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; - if (!getBlocksList().equals(other.getBlocksList())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getBlocksList() + .equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -425,129 +384,123 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Page parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Page parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Page parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Page parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Page parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Page parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Page parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Page parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Page parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Page} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Page) com.google.cloud.vision.v1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Page_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Page.class, com.google.cloud.vision.v1.Page.Builder.class); } @@ -557,17 +510,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override @@ -641,39 +594,38 @@ public com.google.cloud.vision.v1.Page buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Page) { - return mergeFrom((com.google.cloud.vision.v1.Page) other); + return mergeFrom((com.google.cloud.vision.v1.Page)other); } else { super.mergeFrom(other); return this; @@ -709,10 +661,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlocksFieldBuilder() - : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -749,52 +700,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -815,8 +752,6 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -835,8 +770,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -847,9 +780,7 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -861,8 +792,6 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -881,8 +810,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -890,13 +817,11 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -907,14 +832,11 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -922,33 +844,27 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - private int width_; + private int width_ ; /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -956,54 +872,45 @@ public int getWidth() { return width_; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -1011,62 +918,50 @@ public int getHeight() { return height_; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, - com.google.cloud.vision.v1.Block.Builder, - com.google.cloud.vision.v1.BlockOrBuilder> - blocksBuilder_; + com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder> blocksBuilder_; /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1081,8 +976,6 @@ public java.util.List getBlocksList() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1097,8 +990,6 @@ public int getBlocksCount() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1113,15 +1004,14 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1.Block value) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,15 +1025,14 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); @@ -1154,8 +1043,6 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1.Block.Builder bui return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1176,15 +1063,14 @@ public Builder addBlocks(com.google.cloud.vision.v1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1.Block value) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1198,15 +1084,14 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks(com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder addBlocks( + com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1217,15 +1102,14 @@ public Builder addBlocks(com.google.cloud.vision.v1.Block.Builder builderForValu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); @@ -1236,8 +1120,6 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1.Block.Builder bui return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1248,7 +1130,8 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1256,8 +1139,6 @@ public Builder addAllBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1275,8 +1156,6 @@ public Builder clearBlocks() { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1294,44 +1173,39 @@ public Builder removeBlocks(int index) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.Block.Builder getBlocksBuilder(int index) { + public com.google.cloud.vision.v1.Block.Builder getBlocksBuilder( + int index) { return getBlocksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( + int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); - } else { + return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1339,8 +1213,6 @@ public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1348,62 +1220,54 @@ public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { * repeated .google.cloud.vision.v1.Block blocks = 4; */ public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Block.getDefaultInstance()); + return getBlocksFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder(int index) { - return getBlocksFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public java.util.List getBlocksBuilderList() { + public java.util.List + getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, - com.google.cloud.vision.v1.Block.Builder, - com.google.cloud.vision.v1.BlockOrBuilder> + com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, - com.google.cloud.vision.v1.Block.Builder, - com.google.cloud.vision.v1.BlockOrBuilder>( - blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1411,43 +1275,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1457,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Page) private static final com.google.cloud.vision.v1.Page DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Page(); } @@ -1471,16 +1329,16 @@ public static com.google.cloud.vision.v1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1495,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java index 2eda18313..a14f99dda 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface PageOrBuilder - extends +public interface PageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Page) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
@@ -59,46 +35,37 @@ public interface PageOrBuilder com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ int getWidth(); /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ int getHeight(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - java.util.List getBlocksList(); + java.util.List + getBlocksList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -107,8 +74,6 @@ public interface PageOrBuilder */ com.google.cloud.vision.v1.Block getBlocks(int index); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -117,35 +82,30 @@ public interface PageOrBuilder */ int getBlocksCount(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - java.util.List getBlocksOrBuilderList(); + java.util.List + getBlocksOrBuilderList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index); + com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java similarity index 76% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java index d974ae34f..337437eba 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** - * - * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Paragraph} */ -public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Paragraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Paragraph) ParagraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,61 +54,53 @@ private Paragraph( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage(com.google.cloud.vision.v1.Word.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.vision.v1.Word.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,7 +108,8 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -142,33 +118,27 @@ private Paragraph( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Paragraph.class, - com.google.cloud.vision.v1.Paragraph.Builder.class); + com.google.cloud.vision.v1.Paragraph.class, com.google.cloud.vision.v1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -176,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -209,8 +172,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -230,7 +191,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -238,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -259,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -299,8 +252,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
-   *
-   *
    * 
    * List of all words in this paragraph.
    * 
@@ -312,8 +263,6 @@ public java.util.List getWordsList() { return words_; } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -321,13 +270,11 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -339,8 +286,6 @@ public int getWordsCount() { return words_.size(); } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -352,8 +297,6 @@ public com.google.cloud.vision.v1.Word getWords(int index) { return words_.get(index); } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -361,21 +304,19 @@ public com.google.cloud.vision.v1.Word getWords(int index) { * repeated .google.cloud.vision.v1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( + int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -384,7 +325,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -419,16 +360,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -438,7 +383,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Paragraph)) { return super.equals(obj); @@ -447,15 +392,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,132 +429,125 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Paragraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Paragraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Paragraph parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Paragraph parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Paragraph parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Paragraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Paragraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Paragraph) com.google.cloud.vision.v1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Paragraph.class, - com.google.cloud.vision.v1.Paragraph.Builder.class); + com.google.cloud.vision.v1.Paragraph.class, com.google.cloud.vision.v1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1.Paragraph.newBuilder() @@ -613,17 +555,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -651,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override @@ -702,39 +644,38 @@ public com.google.cloud.vision.v1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1.Paragraph) other); + return mergeFrom((com.google.cloud.vision.v1.Paragraph)other); } else { super.mergeFrom(other); return this; @@ -767,10 +708,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -807,52 +747,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -873,8 +799,6 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -893,8 +817,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -905,9 +827,7 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -919,8 +839,6 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -939,8 +857,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -948,13 +864,11 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -965,14 +879,11 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -980,17 +891,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -998,13 +906,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1024,15 +927,12 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,21 +952,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,8 +996,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1123,7 +1016,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(
+        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1134,8 +1028,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1160,9 +1052,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1174,8 +1064,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1208,8 +1096,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1231,13 +1117,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1262,14 +1146,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1291,41 +1172,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Word,
-            com.google.cloud.vision.v1.Word.Builder,
-            com.google.cloud.vision.v1.WordOrBuilder>
-        wordsBuilder_;
+        com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder> wordsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of all words in this paragraph.
      * 
@@ -1340,8 +1212,6 @@ public java.util.List getWordsList() { } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1356,8 +1226,6 @@ public int getWordsCount() { } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1372,15 +1240,14 @@ public com.google.cloud.vision.v1.Word getWords(int index) { } } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1.Word value) { + public Builder setWords( + int index, com.google.cloud.vision.v1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1394,15 +1261,14 @@ public Builder setWords(int index, com.google.cloud.vision.v1.Word value) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder setWords( + int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.set(index, builderForValue.build()); @@ -1413,8 +1279,6 @@ public Builder setWords(int index, com.google.cloud.vision.v1.Word.Builder build return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1435,15 +1299,14 @@ public Builder addWords(com.google.cloud.vision.v1.Word value) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1.Word value) { + public Builder addWords( + int index, com.google.cloud.vision.v1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1457,15 +1320,14 @@ public Builder addWords(int index, com.google.cloud.vision.v1.Word value) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords(com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder addWords( + com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1476,15 +1338,14 @@ public Builder addWords(com.google.cloud.vision.v1.Word.Builder builderForValue) return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder addWords( + int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(index, builderForValue.build()); @@ -1495,8 +1356,6 @@ public Builder addWords(int index, com.google.cloud.vision.v1.Word.Builder build return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1507,7 +1366,8 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1515,8 +1375,6 @@ public Builder addAllWords( return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1534,8 +1392,6 @@ public Builder clearWords() { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1553,44 +1409,39 @@ public Builder removeWords(int index) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.Word.Builder getWordsBuilder(int index) { + public com.google.cloud.vision.v1.Word.Builder getWordsBuilder( + int index) { return getWordsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( + int index) { if (wordsBuilder_ == null) { - return words_.get(index); - } else { + return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1598,8 +1449,6 @@ public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1607,62 +1456,54 @@ public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { * repeated .google.cloud.vision.v1.Word words = 3; */ public com.google.cloud.vision.v1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Word.getDefaultInstance()); + return getWordsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Word.getDefaultInstance()); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.Word.Builder addWordsBuilder(int index) { - return getWordsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1.Word.Builder addWordsBuilder( + int index) { + return getWordsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Word.getDefaultInstance()); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public java.util.List getWordsBuilderList() { + public java.util.List + getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Word, - com.google.cloud.vision.v1.Word.Builder, - com.google.cloud.vision.v1.WordOrBuilder> + com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Word, - com.google.cloud.vision.v1.Word.Builder, - com.google.cloud.vision.v1.WordOrBuilder>( - words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder>( + words_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1670,43 +1511,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1716,12 +1551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Paragraph) private static final com.google.cloud.vision.v1.Paragraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Paragraph(); } @@ -1730,16 +1565,16 @@ public static com.google.cloud.vision.v1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1754,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java similarity index 82% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java index e6285fba0..13c5555fb 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface ParagraphOrBuilder - extends +public interface ParagraphOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Paragraph) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -59,8 +35,6 @@ public interface ParagraphOrBuilder com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface ParagraphOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -156,8 +121,6 @@ public interface ParagraphOrBuilder */ com.google.cloud.vision.v1.Word getWords(int index); /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -166,35 +129,30 @@ public interface ParagraphOrBuilder */ int getWordsCount(); /** - * - * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - java.util.List getWordsOrBuilderList(); + java.util.List + getWordsOrBuilderList(); /** - * - * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index); + com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java similarity index 68% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java index af1e4814f..49bd8fe64 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** - * - * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Position}
  */
-public final class Position extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Position extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Position)
     PositionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Position() {}
+  private Position() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          case 29:
-            {
-              z_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            z_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,39 +83,34 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_Position_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Position.class,
-            com.google.cloud.vision.v1.Position.Builder.class);
+            com.google.cloud.vision.v1.Position.class, com.google.cloud.vision.v1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -142,14 +121,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -160,14 +136,11 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -176,7 +149,6 @@ public float getZ() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -208,13 +181,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -224,19 +200,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Position)) { return super.equals(obj); } com.google.cloud.vision.v1.Position other = (com.google.cloud.vision.v1.Position) obj; - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; - if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) - return false; + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; + if (java.lang.Float.floatToIntBits(getZ()) + != java.lang.Float.floatToIntBits( + other.getZ())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -249,113 +228,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Position parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Position parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -364,23 +340,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.Position}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Position)
       com.google.cloud.vision.v1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Position.class,
-              com.google.cloud.vision.v1.Position.Builder.class);
+              com.google.cloud.vision.v1.Position.class, com.google.cloud.vision.v1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Position.newBuilder()
@@ -388,15 +362,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -443,39 +418,38 @@ public com.google.cloud.vision.v1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1.Position) other);
+        return mergeFrom((com.google.cloud.vision.v1.Position)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -522,16 +496,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -539,51 +510,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -591,51 +553,42 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_; + private float z_ ; /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -643,43 +596,37 @@ public float getZ() { return z_; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -689,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Position) private static final com.google.cloud.vision.v1.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Position(); } @@ -703,16 +650,16 @@ public static com.google.cloud.vision.v1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,4 +674,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java new file mode 100644 index 000000000..bac632247 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface PositionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Position) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); + + /** + *
+   * Z coordinate (or depth).
+   * 
+ * + * float z = 3; + * @return The z. + */ + float getZ(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java similarity index 80% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java index 1657bd7ee..273e8c965 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Product} */ -public final class Product extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Product extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Product) ProductOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Product() { name_ = ""; displayName_ = ""; @@ -47,15 +29,16 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,53 +58,46 @@ private Product( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productLabels_.add( - input.readMessage( - com.google.cloud.vision.v1.Product.KeyValue.parser(), extensionRegistry)); - break; + productCategory_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + productLabels_.add( + input.readMessage(com.google.cloud.vision.v1.Product.KeyValue.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,8 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -138,100 +115,83 @@ private Product( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.class, - com.google.cloud.vision.v1.Product.Builder.class); + com.google.cloud.vision.v1.Product.class, com.google.cloud.vision.v1.Product.Builder.class); } - public interface KeyValueOrBuilder - extends + public interface KeyValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Product.KeyValue} */ - public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KeyValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KeyValue() { key_ = ""; value_ = ""; @@ -239,15 +199,16 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -266,27 +227,25 @@ private KeyValue( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -294,40 +253,35 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.KeyValue.class, - com.google.cloud.vision.v1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1.Product.KeyValue.class, com.google.cloud.vision.v1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -336,30 +290,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -370,15 +324,12 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -387,30 +338,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -419,7 +370,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,7 +381,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -461,16 +412,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1.Product.KeyValue other = - (com.google.cloud.vision.v1.Product.KeyValue) obj; + com.google.cloud.vision.v1.Product.KeyValue other = (com.google.cloud.vision.v1.Product.KeyValue) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -491,94 +443,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -588,32 +534,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1.Product.KeyValue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Product.KeyValue) com.google.cloud.vision.v1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.KeyValue.class, - com.google.cloud.vision.v1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1.Product.KeyValue.class, com.google.cloud.vision.v1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1.Product.KeyValue.newBuilder() @@ -621,15 +562,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -641,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override @@ -662,8 +604,7 @@ public com.google.cloud.vision.v1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1.Product.KeyValue result = - new com.google.cloud.vision.v1.Product.KeyValue(this); + com.google.cloud.vision.v1.Product.KeyValue result = new com.google.cloud.vision.v1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -674,41 +615,38 @@ public com.google.cloud.vision.v1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1.Product.KeyValue) other); + return mergeFrom((com.google.cloud.vision.v1.Product.KeyValue)other); } else { super.mergeFrom(other); return this; @@ -756,21 +694,19 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -779,22 +715,21 @@ public java.lang.String getKey() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -802,64 +737,57 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -867,21 +795,19 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -890,22 +816,21 @@ public java.lang.String getValue() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -913,69 +838,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -988,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Product.KeyValue) private static final com.google.cloud.vision.v1.Product.KeyValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Product.KeyValue(); } @@ -1002,16 +919,16 @@ public static com.google.cloud.vision.v1.Product.KeyValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,13 +943,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1041,7 +957,6 @@ public com.google.cloud.vision.v1.Product.KeyValue getDefaultInstanceForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1050,15 +965,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1067,15 +981,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1086,15 +1001,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1103,30 +1015,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1137,15 +1049,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -1154,30 +1063,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1188,8 +1097,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -1198,7 +1105,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ @java.lang.Override @@ -1207,15 +1113,14 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -1224,15 +1129,16 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1243,8 +1149,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1265,8 +1169,6 @@ public java.util.List getProductLab
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1283,13 +1185,11 @@ public java.util.List getProductLab
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1310,8 +1210,6 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1332,8 +1230,6 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
     return productLabels_.get(index);
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1350,12 +1246,12 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index) {
+  public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
+      int index) {
     return productLabels_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1367,7 +1263,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1405,7 +1302,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1415,18 +1313,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.Product)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.Product other = (com.google.cloud.vision.v1.Product) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getProductCategory().equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getProductCategory()
+        .equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList()
+        .equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1455,126 +1358,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.Product parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.Product parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.Product parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.vision.v1.Product parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Product parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Product parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Product} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Product) com.google.cloud.vision.v1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.class, - com.google.cloud.vision.v1.Product.Builder.class); + com.google.cloud.vision.v1.Product.class, com.google.cloud.vision.v1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1.Product.newBuilder() @@ -1582,17 +1477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1614,9 +1509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override @@ -1658,39 +1553,38 @@ public com.google.cloud.vision.v1.Product buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Product) { - return mergeFrom((com.google.cloud.vision.v1.Product) other); + return mergeFrom((com.google.cloud.vision.v1.Product)other); } else { super.mergeFrom(other); return this; @@ -1733,10 +1627,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductLabelsFieldBuilder() - : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductLabelsFieldBuilder() : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1770,13 +1663,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1785,13 +1675,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1800,8 +1690,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1810,14 +1698,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1825,8 +1714,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1835,22 +1722,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1859,18 +1744,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1879,16 +1761,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1896,21 +1778,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1919,22 +1799,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1942,64 +1821,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2007,21 +1879,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2030,22 +1900,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2053,64 +1922,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2118,8 +1980,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object productCategory_ = ""; /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2128,13 +1988,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -2143,8 +2003,6 @@ public java.lang.String getProductCategory() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2153,14 +2011,15 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2168,8 +2027,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2178,22 +2035,20 @@ public com.google.protobuf.ByteString getProductCategoryBytes() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory(java.lang.String value) { + public Builder setProductCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2202,18 +2057,15 @@ public Builder setProductCategory(java.lang.String value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2222,41 +2074,34 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList(productLabels_); + productLabels_ = new java.util.ArrayList(productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product.KeyValue, - com.google.cloud.vision.v1.Product.KeyValue.Builder, - com.google.cloud.vision.v1.Product.KeyValueOrBuilder> - productLabelsBuilder_; + com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder> productLabelsBuilder_; /** - * - * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2280,8 +2125,6 @@ public java.util.List getProductLab
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2305,8 +2148,6 @@ public int getProductLabelsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2330,8 +2171,6 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2347,7 +2186,8 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public Builder setProductLabels(int index, com.google.cloud.vision.v1.Product.KeyValue value) {
+    public Builder setProductLabels(
+        int index, com.google.cloud.vision.v1.Product.KeyValue value) {
       if (productLabelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2361,8 +2201,6 @@ public Builder setProductLabels(int index, com.google.cloud.vision.v1.Product.Ke
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2390,8 +2228,6 @@ public Builder setProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2421,8 +2257,6 @@ public Builder addProductLabels(com.google.cloud.vision.v1.Product.KeyValue valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2438,7 +2272,8 @@ public Builder addProductLabels(com.google.cloud.vision.v1.Product.KeyValue valu
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public Builder addProductLabels(int index, com.google.cloud.vision.v1.Product.KeyValue value) {
+    public Builder addProductLabels(
+        int index, com.google.cloud.vision.v1.Product.KeyValue value) {
       if (productLabelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2452,8 +2287,6 @@ public Builder addProductLabels(int index, com.google.cloud.vision.v1.Product.Ke
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2481,8 +2314,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2510,8 +2341,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2531,7 +2360,8 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2539,8 +2369,6 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2567,8 +2395,6 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2595,8 +2421,6 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2612,12 +2436,11 @@ public Builder removeProductLabels(int index) {
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuilder(int index) {
+    public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuilder(
+        int index) {
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2636,14 +2459,11 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuild
     public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);
-      } else {
+        return productLabels_.get(index);  } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2659,8 +2479,8 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsOrBuilderList() {
+    public java.util.List 
+         getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2668,8 +2488,6 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2686,12 +2504,10 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2707,13 +2523,12 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder(int index) {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
+    public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder(
+        int index) {
+      return getProductLabelsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2729,22 +2544,16 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsBuilderList() {
+    public java.util.List 
+         getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Product.KeyValue,
-            com.google.cloud.vision.v1.Product.KeyValue.Builder,
-            com.google.cloud.vision.v1.Product.KeyValueOrBuilder>
+        com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder> 
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.Product.KeyValue,
-                com.google.cloud.vision.v1.Product.KeyValue.Builder,
-                com.google.cloud.vision.v1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2753,9 +2562,9 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
       }
       return productLabelsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2765,12 +2574,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Product)
   private static final com.google.cloud.vision.v1.Product DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Product();
   }
@@ -2779,16 +2588,16 @@ public static com.google.cloud.vision.v1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Product parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Product(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Product parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Product(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2803,4 +2612,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
similarity index 100%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
similarity index 85%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
index adcda0dad..26524dc31 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ProductOrBuilder
-    extends
+public interface ProductOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the product.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -49,68 +28,56 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -119,13 +86,10 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ java.lang.String getProductCategory(); /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -134,14 +98,12 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString getProductCategoryBytes(); + com.google.protobuf.ByteString + getProductCategoryBytes(); /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -157,10 +119,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  java.util.List getProductLabelsList();
+  java.util.List 
+      getProductLabelsList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -178,8 +139,6 @@ public interface ProductOrBuilder
    */
   com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index);
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -197,8 +156,6 @@ public interface ProductOrBuilder
    */
   int getProductLabelsCount();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -214,11 +171,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  java.util.List
+  java.util.List 
       getProductLabelsOrBuilderList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -234,5 +189,6 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
+  com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
similarity index 78%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
index c4187814a..57551f380 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchParams} */ -public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchParams) ProductSearchParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,53 +56,47 @@ private ProductSearchParams( case 0: done = true; break; - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productCategories_.add(s); - break; + productSet_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + productCategories_.add(s); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + filter_ = s; + break; + } + case 74: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 74: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +104,8 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -136,34 +114,28 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchParams.class, - com.google.cloud.vision.v1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1.ProductSearchParams.class, com.google.cloud.vision.v1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -171,26 +143,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -206,8 +171,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
-   *
-   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -215,7 +178,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ @java.lang.Override @@ -224,15 +186,14 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** - * - * *
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -240,15 +201,16 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -259,8 +221,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -272,15 +232,13 @@ public com.google.protobuf.ByteString getProductSetBytes() {
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_; } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -292,15 +250,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -312,7 +267,6 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -320,8 +274,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -333,19 +285,17 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -357,7 +307,6 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
    * 
* * string filter = 8; - * * @return The filter. */ @java.lang.Override @@ -366,15 +315,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -386,15 +334,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -403,7 +352,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -452,7 +401,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -462,21 +412,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchParams other = - (com.google.cloud.vision.v1.ProductSearchParams) obj; + com.google.cloud.vision.v1.ProductSearchParams other = (com.google.cloud.vision.v1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; - } - if (!getProductSet().equals(other.getProductSet())) return false; - if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; + } + if (!getProductSet() + .equals(other.getProductSet())) return false; + if (!getProductCategoriesList() + .equals(other.getProductCategoriesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -505,127 +458,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchParams) com.google.cloud.vision.v1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchParams.class, - com.google.cloud.vision.v1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1.ProductSearchParams.class, com.google.cloud.vision.v1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchParams.newBuilder() @@ -633,15 +577,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +606,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override @@ -682,8 +627,7 @@ public com.google.cloud.vision.v1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1.ProductSearchParams result = - new com.google.cloud.vision.v1.ProductSearchParams(this); + com.google.cloud.vision.v1.ProductSearchParams result = new com.google.cloud.vision.v1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -705,39 +649,38 @@ public com.google.cloud.vision.v1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchParams) other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchParams)other); } else { super.mergeFrom(other); return this; @@ -795,54 +738,40 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -864,8 +793,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -885,8 +812,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -898,9 +823,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -912,8 +835,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -933,8 +854,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -943,13 +862,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -961,14 +878,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -977,17 +891,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -995,8 +906,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
     private java.lang.Object productSet_ = "";
     /**
-     *
-     *
      * 
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1004,13 +913,13 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -1019,8 +928,6 @@ public java.lang.String getProductSet() { } } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1028,14 +935,15 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -1043,8 +951,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { } } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1052,22 +958,20 @@ public com.google.protobuf.ByteString getProductSetBytes() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet(java.lang.String value) { + public Builder setProductSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1075,18 +979,15 @@ public Builder setProductSet(java.lang.String value) {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1094,33 +995,29 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1132,15 +1029,13 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1152,15 +1047,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
      * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1172,7 +1064,6 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1180,8 +1071,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1193,16 +1082,14 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1214,23 +1101,21 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories(int index, java.lang.String value) { + public Builder setProductCategories( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1242,22 +1127,20 @@ public Builder setProductCategories(int index, java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories(java.lang.String value) { + public Builder addProductCategories( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1269,19 +1152,18 @@ public Builder addProductCategories(java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories(java.lang.Iterable values) { + public Builder addAllProductCategories( + java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productCategories_); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1293,7 +1175,6 @@ public Builder addAllProductCategories(java.lang.Iterable valu
      * 
* * repeated string product_categories = 7; - * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1303,8 +1184,6 @@ public Builder clearProductCategories() { return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1316,15 +1195,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; - * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1333,8 +1212,6 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1346,13 +1223,13 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 8; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1361,8 +1238,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1374,14 +1249,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1389,8 +1265,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1402,22 +1276,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 8; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1429,18 +1301,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 8; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1452,23 +1321,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1478,12 +1347,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchParams) private static final com.google.cloud.vision.v1.ProductSearchParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchParams(); } @@ -1492,16 +1361,16 @@ public static com.google.cloud.vision.v1.ProductSearchParams getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1516,4 +1385,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java index 4dc67d100..cc978287f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search.proto package com.google.cloud.vision.v1; -public interface ProductSearchParamsOrBuilder - extends +public interface ProductSearchParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -62,8 +38,6 @@ public interface ProductSearchParamsOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -71,13 +45,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ java.lang.String getProductSet(); /** - * - * *
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -85,14 +56,12 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - com.google.protobuf.ByteString getProductSetBytes(); + com.google.protobuf.ByteString + getProductSetBytes(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -104,13 +73,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - java.util.List getProductCategoriesList(); + java.util.List + getProductCategoriesList(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -122,13 +89,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ int getProductCategoriesCount(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -140,14 +104,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -159,15 +120,13 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString getProductCategoriesBytes(int index); + com.google.protobuf.ByteString + getProductCategoriesBytes(int index); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -179,13 +138,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -197,8 +153,8 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java new file mode 100644 index 000000000..6fc2214c3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search.proto + +package com.google.cloud.vision.v1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/vision/v1/product_search." + + "proto\022\026google.cloud.vision.v1\032\031google/ap" + + "i/resource.proto\032%google/cloud/vision/v1" + + "/geometry.proto\0323google/cloud/vision/v1/" + + "product_search_service.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\272\001\n\023ProductSearchP" + + "arams\022;\n\rbounding_poly\030\t \001(\0132$.google.cl" + + "oud.vision.v1.BoundingPoly\022:\n\013product_se" + + "t\030\006 \001(\tB%\372A\"\n vision.googleapis.com/Prod" + + "uctSet\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006fi" + + "lter\030\010 \001(\t\"\210\005\n\024ProductSearchResults\022.\n\ni" + + "ndex_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022D\n\007results\030\005 \003(\01323.google.cloud.visi" + + "on.v1.ProductSearchResults.Result\022[\n\027pro" + + "duct_grouped_results\030\006 \003(\0132:.google.clou" + + "d.vision.v1.ProductSearchResults.Grouped" + + "Result\032X\n\006Result\0220\n\007product\030\001 \001(\0132\037.goog" + + "le.cloud.vision.v1.Product\022\r\n\005score\030\002 \001(" + + "\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotation\022\013\n\003" + + "mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name" + + "\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\355\001\n\rGroupedResult\022" + + ";\n\rbounding_poly\030\001 \001(\0132$.google.cloud.vi" + + "sion.v1.BoundingPoly\022D\n\007results\030\002 \003(\01323." + + "google.cloud.vision.v1.ProductSearchResu" + + "lts.Result\022Y\n\022object_annotations\030\003 \003(\0132=" + + ".google.cloud.vision.v1.ProductSearchRes" + + "ults.ObjectAnnotationBz\n\032com.google.clou" + + "d.vision.v1B\022ProductSearchProtoP\001Z * Results for a product search request. *
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults} */ -public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchResults extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults) ProductSearchResultsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,44 @@ private ProductSearchResults( case 0: done = true; break; - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.vision.v1.ProductSearchResults.Result>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), - extensionRegistry)); - break; + indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult>(); - mutable_bitField0_ |= 0x00000002; - } - productGroupedResults_.add( - input.readMessage( - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.parser(), - extensionRegistry)); - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + results_.add( + input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +100,8 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -141,54 +113,42 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.class, - com.google.cloud.vision.v1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.class, com.google.cloud.vision.v1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder - extends + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** - * - * *
      * The Product.
      * 
@@ -198,80 +158,70 @@ public interface ResultOrBuilder com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); } /** - * - * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.Result} */ - public static final class Result extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -290,41 +240,37 @@ private Result( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 21: - { - score_ = input.readFloat(); - break; + product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -332,39 +278,34 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.Result.class, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.Product product_; /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return Whether the product field is set. */ @java.lang.Override @@ -372,14 +313,11 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return The product. */ @java.lang.Override @@ -387,8 +325,6 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** - * - * *
      * The Product.
      * 
@@ -403,15 +339,12 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -422,15 +355,12 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ @java.lang.Override @@ -439,30 +369,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -471,7 +401,6 @@ public com.google.protobuf.ByteString getImageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -483,7 +412,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -503,10 +433,12 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -519,21 +451,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.Result other = - (com.google.cloud.vision.v1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1.ProductSearchResults.Result other = (com.google.cloud.vision.v1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getImage().equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getImage() + .equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,7 +484,8 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -559,94 +494,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ProductSearchResults.Result prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -656,32 +584,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.Result} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.Result) com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.Result.class, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchResults.Result.newBuilder() @@ -689,15 +612,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -715,9 +639,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override @@ -736,8 +660,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults.Result result = - new com.google.cloud.vision.v1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1.ProductSearchResults.Result result = new com.google.cloud.vision.v1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -753,41 +676,38 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.Result) other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.Result)other); } else { super.mergeFrom(other); return this; @@ -795,8 +715,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.Result other) { - if (other == com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -826,8 +745,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ProductSearchResults.Result) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -839,47 +757,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; - * * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
        * The Product.
        * 
@@ -900,15 +805,14 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; */ - public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -919,8 +823,6 @@ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForV return this; } /** - * - * *
        * The Product.
        * 
@@ -931,9 +833,7 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -945,8 +845,6 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
@@ -965,8 +863,6 @@ public Builder clearProduct() { return this; } /** - * - * *
        * The Product.
        * 
@@ -974,13 +870,11 @@ public Builder clearProduct() { * .google.cloud.vision.v1.Product product = 1; */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
        * The Product.
        * 
@@ -991,14 +885,11 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } } /** - * - * *
        * The Product.
        * 
@@ -1006,33 +897,27 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { * .google.cloud.vision.v1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; } - private float score_; + private float score_ ; /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1040,38 +925,32 @@ public float getScore() { return score_; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1079,21 +958,19 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1102,22 +979,21 @@ public java.lang.String getImage() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1125,69 +1001,61 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1200,12 +1068,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.Result) private static final com.google.cloud.vision.v1.ProductSearchResults.Result DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.Result(); } @@ -1214,16 +1082,16 @@ public static com.google.cloud.vision.v1.ProductSearchResults.Result getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,41 +1106,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchResults.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ObjectAnnotationOrBuilder - extends + public interface ObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1280,13 +1141,10 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1294,68 +1152,57 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ float getScore(); } /** - * - * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1364,15 +1211,16 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1391,39 +1239,36 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1431,39 +1276,34 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -1472,29 +1312,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1505,8 +1345,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1514,7 +1352,6 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -1523,15 +1360,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1539,15 +1375,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1558,14 +1395,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -1574,29 +1408,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1607,14 +1441,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1623,7 +1454,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1635,7 +1465,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1667,7 +1498,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1677,19 +1509,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other = - (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1708,102 +1543,95 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1813,49 +1641,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); } - // Construct using - // com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1871,16 +1694,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { - return com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance(); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + return com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); } @java.lang.Override @@ -1894,8 +1715,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation build() @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation result = - new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(this); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1908,53 +1728,46 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom( - (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other) { - if (other - == com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other) { + if (other == com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1989,9 +1802,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2003,20 +1814,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -2025,21 +1834,20 @@ public java.lang.String getMid() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -2047,61 +1855,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -2109,8 +1910,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2118,13 +1917,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2133,8 +1932,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2142,14 +1939,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2157,8 +1955,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2166,22 +1962,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2189,18 +1983,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2208,16 +1999,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2225,20 +2016,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2247,21 +2036,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2269,76 +2057,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -2346,41 +2124,34 @@ public float getScore() { return score_; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2393,32 +2164,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - getDefaultInstance() { + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2430,44 +2199,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GroupedResultOrBuilder - extends + public interface GroupedResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2477,18 +2237,15 @@ public interface GroupedResultOrBuilder com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2497,8 +2254,6 @@ public interface GroupedResultOrBuilder */ com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int index); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2507,96 +2262,69 @@ public interface GroupedResultOrBuilder */ int getResultsCount(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index); + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List + java.util.List getObjectAnnotationsList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( - int index); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ int getObjectAnnotationsCount(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + java.util.List getObjectAnnotationsOrBuilderList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index); } /** - * - * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2604,16 +2332,15 @@ com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnota
    *
    * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GroupedResult extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2621,15 +2348,16 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2649,57 +2377,44 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null;
-                if (boundingPoly_ != null) {
-                  subBuilder = boundingPoly_.toBuilder();
-                }
-                boundingPoly_ =
-                    input.readMessage(
-                        com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(boundingPoly_);
-                  boundingPoly_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null;
+              if (boundingPoly_ != null) {
+                subBuilder = boundingPoly_.toBuilder();
+              }
+              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(boundingPoly_);
+                boundingPoly_ = subBuilder.buildPartial();
               }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  results_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1.ProductSearchResults.Result>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                results_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1.ProductSearchResults.Result.parser(),
-                        extensionRegistry));
-                break;
+
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 26:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  objectAnnotations_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                objectAnnotations_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.parser(),
-                        extensionRegistry));
-                break;
+              results_.add(
+                  input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), extensionRegistry));
+              break;
+            }
+            case 26: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                objectAnnotations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              objectAnnotations_.add(
+                  input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2707,7 +2422,8 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2719,33 +2435,27 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class,
-              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1.BoundingPoly boundingPoly_;
     /**
-     *
-     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2753,25 +2463,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2786,8 +2489,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2799,8 +2500,6 @@ public java.util.List ge return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2808,13 +2507,11 @@ public java.util.List ge * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2826,8 +2523,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2839,8 +2534,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind return results_.get(index); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2854,91 +2547,66 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List - objectAnnotations_; + private java.util.List objectAnnotations_; /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + public java.util.List getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { return objectAnnotations_.get(index); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2950,7 +2618,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2970,14 +2639,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2987,20 +2658,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other = - (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList() + .equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3030,94 +2703,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3127,8 +2793,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about the products similar to a single product in a query
      * image.
@@ -3136,24 +2800,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.vision.v1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class,
-                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
       // Construct using com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.newBuilder()
@@ -3161,18 +2822,18 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3198,14 +2859,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.vision.v1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult
-          getDefaultInstanceForType() {
+      public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
         return com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance();
       }
 
@@ -3220,8 +2880,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult build() {
 
       @java.lang.Override
       public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1.ProductSearchResults.GroupedResult result =
-            new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -3254,52 +2913,46 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult buildPartia
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) {
-          return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) other);
+          return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other) {
-        if (other
-            == com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other) {
+        if (other == com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -3321,10 +2974,9 @@ public Builder mergeFrom(
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getResultsFieldBuilder()
-                      : null;
+              resultsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getResultsFieldBuilder() : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3348,10 +3000,9 @@ public Builder mergeFrom(
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getObjectAnnotationsFieldBuilder()
-                      : null;
+              objectAnnotationsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getObjectAnnotationsFieldBuilder() : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3376,9 +3027,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3387,52 +3036,38 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private com.google.cloud.vision.v1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.vision.v1.BoundingPoly,
-              com.google.cloud.vision.v1.BoundingPoly.Builder,
-              com.google.cloud.vision.v1.BoundingPolyOrBuilder>
-          boundingPolyBuilder_;
+          com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_;
       /**
-       *
-       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3453,8 +3088,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3473,8 +3106,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3485,9 +3116,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -3499,8 +3128,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3519,8 +3146,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3528,13 +3153,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3545,14 +3168,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3560,51 +3180,39 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } private java.util.List results_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList( - results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> - resultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; /** - * - * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3612,8 +3220,6 @@ private void ensureResultsIsMutable() { } } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3628,8 +3234,6 @@ public int getResultsCount() { } } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3644,8 +3248,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind } } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3667,8 +3269,6 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3676,8 +3276,7 @@ public Builder setResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder setResults( - int index, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3688,8 +3287,6 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3710,8 +3307,6 @@ public Builder addResults(com.google.cloud.vision.v1.ProductSearchResults.Result return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3733,8 +3328,6 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3753,8 +3346,6 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3762,8 +3353,7 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder addResults( - int index, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3774,8 +3364,6 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3783,11 +3371,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder addAllResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3795,8 +3383,6 @@ public Builder addAllResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3814,8 +3400,6 @@ public Builder clearResults() { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3833,8 +3417,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3846,8 +3428,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3857,23 +3437,19 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3881,8 +3457,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3890,13 +3464,10 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
        * List of results, one for each product match.
        * 
@@ -3905,73 +3476,55 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResults */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List - objectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List objectAnnotations_ = + java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = - new java.util.ArrayList< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>( - objectAnnotations_); + objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> - objectAnnotationsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -3979,15 +3532,11 @@ private void ensureObjectAnnotationsIsMutable() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -3997,18 +3546,13 @@ public int getObjectAnnotationsCount() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -4016,15 +3560,11 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjec } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { @@ -4041,20 +3581,14 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( - int index, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -4065,18 +3599,13 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public Builder addObjectAnnotations( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4090,15 +3619,11 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { @@ -4115,19 +3640,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -4138,20 +3658,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - int index, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -4162,23 +3676,18 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addAllObjectAnnotations( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation> - values) { + java.lang.Iterable values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -4186,15 +3695,11 @@ public Builder addAllObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -4207,15 +3712,11 @@ public Builder clearObjectAnnotations() { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -4228,53 +3729,39 @@ public Builder removeObjectAnnotations(int index) { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - getObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( + int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); - } else { + return objectAnnotations_.get(index); } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> - getObjectAnnotationsOrBuilderList() { + public java.util.List + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4282,70 +3769,45 @@ public Builder removeObjectAnnotations(int index) { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder(int index) { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( + int index) { + return getObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder> - getObjectAnnotationsBuilderList() { + public java.util.List + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4354,7 +3816,6 @@ public Builder removeObjectAnnotations(int index) { } return objectAnnotationsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4367,32 +3828,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1.ProductSearchResults.GroupedResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult - getDefaultInstance() { + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4404,17 +3863,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult - getDefaultInstanceForType() { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4422,7 +3879,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -4430,8 +3886,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4439,7 +3893,6 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ @java.lang.Override @@ -4447,8 +3900,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4465,8 +3916,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
@@ -4478,8 +3927,6 @@ public java.util.List ge return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4487,13 +3934,11 @@ public java.util.List ge * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4505,8 +3950,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4518,8 +3961,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind return results_.get(index); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4533,11 +3974,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List - productGroupedResults_; + private java.util.List productGroupedResults_; /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4545,18 +3983,13 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4564,19 +3997,14 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> + public java.util.List getProductGroupedResultsOrBuilderList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4584,17 +4012,13 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override public int getProductGroupedResultsCount() { return productGroupedResults_.size(); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4602,18 +4026,13 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { return productGroupedResults_.get(index); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4621,18 +4040,15 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4644,7 +4060,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4664,15 +4081,16 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, productGroupedResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4682,20 +4100,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults other = - (com.google.cloud.vision.v1.ProductSearchResults) obj; + com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime().equals(other.getIndexTime())) return false; + if (!getIndexTime() + .equals(other.getIndexTime())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList() + .equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4724,127 +4144,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults) com.google.cloud.vision.v1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.class, - com.google.cloud.vision.v1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.class, com.google.cloud.vision.v1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchResults.newBuilder() @@ -4852,18 +4263,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4889,9 +4300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto - .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4910,8 +4321,7 @@ public com.google.cloud.vision.v1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults result = - new com.google.cloud.vision.v1.ProductSearchResults(this); + com.google.cloud.vision.v1.ProductSearchResults result = new com.google.cloud.vision.v1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -4944,39 +4354,38 @@ public com.google.cloud.vision.v1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults) other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults)other); } else { super.mergeFrom(other); return this; @@ -4984,8 +4393,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance()) return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -5007,10 +4415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -5034,10 +4441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductGroupedResultsFieldBuilder() - : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductGroupedResultsFieldBuilder() : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -5071,18 +4477,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5090,15 +4490,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5106,7 +4503,6 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -5117,8 +4513,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5141,8 +4535,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5151,7 +4543,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -5162,8 +4555,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5176,7 +4567,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -5188,8 +4579,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5210,8 +4599,6 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5221,13 +4608,11 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-
+      
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5240,12 +4625,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5255,43 +4639,32 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(), getParentForChildren(), isClean());
+        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(),
+                getParentForChildren(),
+                isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.ProductSearchResults.Result,
-            com.google.cloud.vision.v1.ProductSearchResults.Result.Builder,
-            com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of results, one for each product match.
      * 
@@ -5306,8 +4679,6 @@ public java.util.List ge } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5322,8 +4693,6 @@ public int getResultsCount() { } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5338,8 +4707,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5361,8 +4728,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5381,8 +4746,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5403,8 +4766,6 @@ public Builder addResults(com.google.cloud.vision.v1.ProductSearchResults.Result return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5426,8 +4787,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5446,8 +4805,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5466,8 +4823,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5475,11 +4830,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -5487,8 +4842,6 @@ public Builder addAllResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5506,8 +4859,6 @@ public Builder clearResults() { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5525,8 +4876,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5538,8 +4887,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5549,22 +4896,19 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -5572,8 +4916,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5581,12 +4923,10 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5595,62 +4935,48 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResults */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, - com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List - productGroupedResults_ = java.util.Collections.emptyList(); - + private java.util.List productGroupedResults_ = + java.util.Collections.emptyList(); private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList( - productGroupedResults_); + productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> - productGroupedResultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5658,12 +4984,9 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -5671,8 +4994,6 @@ private void ensureProductGroupedResultsIsMutable() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5680,9 +5001,7 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5692,8 +5011,6 @@ public int getProductGroupedResultsCount() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5701,12 +5018,9 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5714,8 +5028,6 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5723,9 +5035,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { @@ -5742,8 +5052,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5751,13 +5059,10 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( - int index, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5768,8 +5073,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5777,12 +5080,9 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public Builder addProductGroupedResults( - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5796,8 +5096,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5805,9 +5103,7 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { @@ -5824,8 +5120,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5833,9 +5127,7 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { @@ -5849,8 +5141,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5858,13 +5148,10 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( - int index, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5875,8 +5162,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5884,16 +5169,14 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addAllProductGroupedResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5901,8 +5184,6 @@ public Builder addAllProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5910,9 +5191,7 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5925,8 +5204,6 @@ public Builder clearProductGroupedResults() { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5934,9 +5211,7 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -5949,8 +5224,6 @@ public Builder removeProductGroupedResults(int index) { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5958,17 +5231,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder - getProductGroupedResultsBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( + int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5976,21 +5245,16 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); - } else { + return productGroupedResults_.get(index); } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5998,13 +5262,10 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> - getProductGroupedResultsOrBuilderList() { + public java.util.List + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -6012,8 +5273,6 @@ public Builder removeProductGroupedResults(int index) { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6021,19 +5280,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6041,20 +5294,14 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder(int index) { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( + int index) { + return getProductGroupedResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6062,26 +5309,18 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List - getProductGroupedResultsBuilderList() { + public java.util.List + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6090,9 +5329,9 @@ public Builder removeProductGroupedResults(int index) { } return productGroupedResultsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6102,12 +5341,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults) private static final com.google.cloud.vision.v1.ProductSearchResults DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults(); } @@ -6116,16 +5355,16 @@ public static com.google.cloud.vision.v1.ProductSearchResults getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6140,4 +5379,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java index a65845753..5c4e626f9 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search.proto package com.google.cloud.vision.v1; -public interface ProductSearchResultsOrBuilder - extends +public interface ProductSearchResultsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -33,13 +15,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -47,13 +26,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -65,18 +41,15 @@ public interface ProductSearchResultsOrBuilder
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -85,8 +58,6 @@ public interface ProductSearchResultsOrBuilder */ com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int index); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -95,30 +66,25 @@ public interface ProductSearchResultsOrBuilder */ int getResultsCount(); /** - * - * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index); + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -126,15 +92,11 @@ public interface ProductSearchResultsOrBuilder
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List + java.util.List getProductGroupedResultsList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -142,14 +104,10 @@ public interface ProductSearchResultsOrBuilder
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -157,14 +115,10 @@ public interface ProductSearchResultsOrBuilder
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ int getProductGroupedResultsCount(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -172,15 +126,11 @@ public interface ProductSearchResultsOrBuilder
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List + java.util.List getProductGroupedResultsOrBuilderList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -188,10 +138,8 @@ public interface ProductSearchResultsOrBuilder
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index); + com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java new file mode 100644 index 000000000..5cb92afd7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java @@ -0,0 +1,637 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Product_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ReferenceImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1/product_search_" + + "service.proto\022\026google.cloud.vision.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032%google" + + "/cloud/vision/v1/geometry.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\"\253\002\n\007Produc" + + "t\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022\035\n\020product_category\030\004" + + " \001(\tB\003\340A\005\022@\n\016product_labels\030\005 \003(\0132(.goog" + + "le.cloud.vision.v1.Product.KeyValue\032&\n\010K" + + "eyValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[" + + "\n\035vision.googleapis.com/Product\022:project" + + "s/{project}/locations/{location}/product" + + "s/{product}\"\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\t\0223\n\nindex_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022,\n\013i" + + "ndex_error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003:h\352Ae\n vision.googleapis.com/ProductSet" + + "\022Aprojects/{project}/locations/{location" + + "}/productSets/{product_set}\"\376\001\n\016Referenc" + + "eImage\022\014\n\004name\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022A" + + "\n\016bounding_polys\030\003 \003(\0132$.google.cloud.vi" + + "sion.v1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision" + + ".googleapis.com/ReferenceImage\022\\projects" + + "/{project}/locations/{location}/products" + + "/{product}/referenceImages/{reference_im" + + "age}\"\234\001\n\024CreateProductRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\0225\n\007product\030\002 \001(\0132\037.google.cloud" + + ".vision.v1.ProductB\003\340A\002\022\022\n\nproduct_id\030\003 " + + "\001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"b\n\024ListProductsResponse\0221\n\010products" + + "\030\001 \003(\0132\037.google.cloud.vision.v1.Product\022" + + "\027\n\017next_page_token\030\002 \001(\t\"H\n\021GetProductRe" + + "quest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vision.goog" + + "leapis.com/Product\"~\n\024UpdateProductReque" + + "st\0225\n\007product\030\001 \001(\0132\037.google.cloud.visio" + + "n.v1.ProductB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"K\n\024DeleteProd" + + "uctRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vision" + + ".googleapis.com/Product\"\252\001\n\027CreateProduc" + + "tSetRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022<\n\013produc" + + "t_set\030\002 \001(\0132\".google.cloud.vision.v1.Pro" + + "ductSetB\003\340A\002\022\026\n\016product_set_id\030\003 \001(\t\"z\n\026" + + "ListProductSetsRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"l\n\027ListProductSetsResponse\0228\n\014product_s" + + "ets\030\001 \003(\0132\".google.cloud.vision.v1.Produ" + + "ctSet\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetPro" + + "ductSetRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vi" + + "sion.googleapis.com/ProductSet\"\210\001\n\027Updat" + + "eProductSetRequest\022<\n\013product_set\030\001 \001(\0132" + + "\".google.cloud.vision.v1.ProductSetB\003\340A\002" + + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMask\"Q\n\027DeleteProductSetRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.co" + + "m/ProductSet\"\266\001\n\033CreateReferenceImageReq" + + "uest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.goo" + + "gleapis.com/Product\022D\n\017reference_image\030\002" + + " \001(\0132&.google.cloud.vision.v1.ReferenceI" + + "mageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001(\t\"z\n" + + "\032ListReferenceImagesRequest\0225\n\006parent\030\001 " + + "\001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/Produ" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\213\001\n\033ListReferenceImagesResponse\022@\n\020ref" + + "erence_images\030\001 \003(\0132&.google.cloud.visio" + + "n.v1.ReferenceImage\022\021\n\tpage_size\030\002 \001(\005\022\027" + + "\n\017next_page_token\030\003 \001(\t\"V\n\030GetReferenceI" + + "mageRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$visio" + + "n.googleapis.com/ReferenceImage\"Y\n\033Delet" + + "eReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340A" + + "\002\372A&\n$vision.googleapis.com/ReferenceIma" + + "ge\"\217\001\n\035AddProductToProductSetRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.co" + + "m/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037\n\035v" + + "ision.googleapis.com/Product\"\224\001\n\"RemoveP" + + "roductFromProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037\n\035vision.goo" + + "gleapis.com/Product\"\200\001\n\037ListProductsInPr" + + "oductSetRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n v" + + "ision.googleapis.com/ProductSet\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n ListPr" + + "oductsInProductSetResponse\0221\n\010products\030\001" + + " \003(\0132\037.google.cloud.vision.v1.Product\022\027\n" + + "\017next_page_token\030\002 \001(\t\"2\n\032ImportProductS" + + "etsGcsSource\022\024\n\014csv_file_uri\030\001 \001(\t\"r\n\034Im" + + "portProductSetsInputConfig\022H\n\ngcs_source" + + "\030\001 \001(\01322.google.cloud.vision.v1.ImportPr" + + "oductSetsGcsSourceH\000B\010\n\006source\"\246\001\n\030Impor" + + "tProductSetsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\n!locations.googleapis.com/Location\022O" + + "\n\014input_config\030\002 \001(\01324.google.cloud.visi" + + "on.v1.ImportProductSetsInputConfigB\003\340A\002\"" + + "\203\001\n\031ImportProductSetsResponse\022@\n\020referen" + + "ce_images\030\001 \003(\0132&.google.cloud.vision.v1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\227\002\n\026BatchOperationMetadata" + + "\022C\n\005state\030\001 \001(\01624.google.cloud.vision.v1" + + ".BatchOperationMetadata.State\022/\n\013submit_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022," + + "\n\010end_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\016\n\n" + + "PROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006FAILED\020\003" + + "\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurgeConfig" + + "\022\026\n\016product_set_id\030\001 \001(\t\"\337\001\n\024PurgeProduc" + + "tsRequest\022Q\n\030product_set_purge_config\030\002 " + + "\001(\0132-.google.cloud.vision.v1.ProductSetP" + + "urgeConfigH\000\022 \n\026delete_orphan_products\030\003" + + " \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\r\n\005force\030\004 \001(\010" + + "B\010\n\006target2\364\035\n\rProductSearch\022\321\001\n\020CreateP" + + "roductSet\022/.google.cloud.vision.v1.Creat" + + "eProductSetRequest\032\".google.cloud.vision" + + ".v1.ProductSet\"h\202\323\344\223\002>\"//v1/{parent=proj" + + "ects/*/locations/*}/productSets:\013product" + + "_set\332A!parent,product_set,product_set_id" + + "\022\264\001\n\017ListProductSets\022..google.cloud.visi" + + "on.v1.ListProductSetsRequest\032/.google.cl" + + "oud.vision.v1.ListProductSetsResponse\"@\202" + + "\323\344\223\0021\022//v1/{parent=projects/*/locations/" + + "*}/productSets\332A\006parent\022\241\001\n\rGetProductSe" + + "t\022,.google.cloud.vision.v1.GetProductSet" + + "Request\032\".google.cloud.vision.v1.Product" + + "Set\">\202\323\344\223\0021\022//v1/{name=projects/*/locati" + + "ons/*/productSets/*}\332A\004name\022\323\001\n\020UpdatePr" + + "oductSet\022/.google.cloud.vision.v1.Update" + + "ProductSetRequest\032\".google.cloud.vision." + + "v1.ProductSet\"j\202\323\344\223\002J2;/v1/{product_set." + + "name=projects/*/locations/*/productSets/" + + "*}:\013product_set\332A\027product_set,update_mas" + + "k\022\233\001\n\020DeleteProductSet\022/.google.cloud.vi" + + "sion.v1.DeleteProductSetRequest\032\026.google" + + ".protobuf.Empty\">\202\323\344\223\0021*//v1/{name=proje" + + "cts/*/locations/*/productSets/*}\332A\004name\022" + + "\271\001\n\rCreateProduct\022,.google.cloud.vision." + + "v1.CreateProductRequest\032\037.google.cloud.v" + + "ision.v1.Product\"Y\202\323\344\223\0027\",/v1/{parent=pr" + + "ojects/*/locations/*}/products:\007product\332" + + "A\031parent,product,product_id\022\250\001\n\014ListProd" + + "ucts\022+.google.cloud.vision.v1.ListProduc" + + "tsRequest\032,.google.cloud.vision.v1.ListP" + + "roductsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*/locations/*}/products\332A\006parent\022\225" + + "\001\n\nGetProduct\022).google.cloud.vision.v1.G" + + "etProductRequest\032\037.google.cloud.vision.v" + + "1.Product\";\202\323\344\223\002.\022,/v1/{name=projects/*/" + + "locations/*/products/*}\332A\004name\022\273\001\n\rUpdat" + + "eProduct\022,.google.cloud.vision.v1.Update" + + "ProductRequest\032\037.google.cloud.vision.v1." + + "Product\"[\202\323\344\223\002?24/v1/{product.name=proje" + + "cts/*/locations/*/products/*}:\007product\332A" + + "\023product,update_mask\022\222\001\n\rDeleteProduct\022," + + ".google.cloud.vision.v1.DeleteProductReq" + + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + + "1/{name=projects/*/locations/*/products/" + + "*}\332A\004name\022\371\001\n\024CreateReferenceImage\0223.goo" + + "gle.cloud.vision.v1.CreateReferenceImage" + + "Request\032&.google.cloud.vision.v1.Referen" + + "ceImage\"\203\001\202\323\344\223\002Q\">/v1/{parent=projects/*" + + "/locations/*/products/*}/referenceImages" + + ":\017reference_image\332A)parent,reference_ima" + + "ge,reference_image_id\022\262\001\n\024DeleteReferenc" + + "eImage\0223.google.cloud.vision.v1.DeleteRe" + + "ferenceImageRequest\032\026.google.protobuf.Em" + + "pty\"M\202\323\344\223\002@*>/v1/{name=projects/*/locati" + + "ons/*/products/*/referenceImages/*}\332A\004na" + + "me\022\317\001\n\023ListReferenceImages\0222.google.clou" + + "d.vision.v1.ListReferenceImagesRequest\0323" + + ".google.cloud.vision.v1.ListReferenceIma" + + "gesResponse\"O\202\323\344\223\002@\022>/v1/{parent=project" + + "s/*/locations/*/products/*}/referenceIma" + + "ges\332A\006parent\022\274\001\n\021GetReferenceImage\0220.goo" + + "gle.cloud.vision.v1.GetReferenceImageReq" + + "uest\032&.google.cloud.vision.v1.ReferenceI" + + "mage\"M\202\323\344\223\002@\022>/v1/{name=projects/*/locat" + + "ions/*/products/*/referenceImages/*}\332A\004n" + + "ame\022\275\001\n\026AddProductToProductSet\0225.google." + + "cloud.vision.v1.AddProductToProductSetRe" + + "quest\032\026.google.protobuf.Empty\"T\202\323\344\223\002?\":/" + + "v1/{name=projects/*/locations/*/productS" + + "ets/*}:addProduct:\001*\332A\014name,product\022\312\001\n\033" + + "RemoveProductFromProductSet\022:.google.clo" + + "ud.vision.v1.RemoveProductFromProductSet" + + "Request\032\026.google.protobuf.Empty\"W\202\323\344\223\002B\"" + + "=/v1/{name=projects/*/locations/*/produc" + + "tSets/*}:removeProduct:\001*\332A\014name,product" + + "\022\326\001\n\030ListProductsInProductSet\0227.google.c" + + "loud.vision.v1.ListProductsInProductSetR" + + "equest\0328.google.cloud.vision.v1.ListProd" + + "uctsInProductSetResponse\"G\202\323\344\223\002:\0228/v1/{n" + + "ame=projects/*/locations/*/productSets/*" + + "}/products\332A\004name\022\364\001\n\021ImportProductSets\022" + + "0.google.cloud.vision.v1.ImportProductSe" + + "tsRequest\032\035.google.longrunning.Operation" + + "\"\215\001\202\323\344\223\002;\"6/v1/{parent=projects/*/locati" + + "ons/*}/productSets:import:\001*\332A\023parent,in" + + "put_config\312A3\n\031ImportProductSetsResponse" + + "\022\026BatchOperationMetadata\022\326\001\n\rPurgeProduc" + + "ts\022,.google.cloud.vision.v1.PurgeProduct" + + "sRequest\032\035.google.longrunning.Operation\"" + + "x\202\323\344\223\0027\"2/v1/{parent=projects/*/location" + + "s/*}/products:purge:\001*\332A\006parent\312A/\n\025goog" + + "le.protobuf.Empty\022\026BatchOperationMetadat" + + "a\032v\312A\025vision.googleapis.com\322A[https://ww" + + "w.googleapis.com/auth/cloud-platform,htt" + + "ps://www.googleapis.com/auth/cloud-visio" + + "nB\201\001\n\032com.google.cloud.vision.v1B\031Produc" + + "tSearchServiceProtoP\001Z * A ProductSet contains Products. A ProductSet can contain a maximum of 1 * million reference images. If the limit is exceeded, periodic indexing will @@ -29,16 +12,15 @@ * * Protobuf type {@code google.cloud.vision.v1.ProductSet} */ -public final class ProductSet extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSet) ProductSetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSet.newBuilder() to construct. private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSet() { name_ = ""; displayName_ = ""; @@ -46,15 +28,16 @@ private ProductSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,56 +56,51 @@ private ProductSet( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } - - break; + indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); } - case 34: - { - com.google.rpc.Status.Builder subBuilder = null; - if (indexError_ != null) { - subBuilder = indexError_.toBuilder(); - } - indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexError_); - indexError_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.rpc.Status.Builder subBuilder = null; + if (indexError_ != null) { + subBuilder = indexError_.toBuilder(); + } + indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexError_); + indexError_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,33 +108,29 @@ private ProductSet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSet.class, - com.google.cloud.vision.v1.ProductSet.Builder.class); + com.google.cloud.vision.v1.ProductSet.class, com.google.cloud.vision.v1.ProductSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -165,7 +139,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -174,15 +147,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -191,15 +163,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -210,15 +183,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -227,30 +197,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -261,8 +231,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -271,9 +239,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ @java.lang.Override @@ -281,8 +247,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -291,9 +255,7 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ @java.lang.Override @@ -301,8 +263,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -311,8 +271,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -322,8 +281,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -331,7 +288,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ @java.lang.Override @@ -339,8 +295,6 @@ public boolean hasIndexError() { return indexError_ != null; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -348,7 +302,6 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ @java.lang.Override @@ -356,8 +309,6 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -372,7 +323,6 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -384,7 +334,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -413,10 +364,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -426,22 +379,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ProductSet)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.ProductSet other = (com.google.cloud.vision.v1.ProductSet) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime().equals(other.getIndexTime())) return false;
+      if (!getIndexTime()
+          .equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError().equals(other.getIndexError())) return false;
+      if (!getIndexError()
+          .equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -471,103 +428,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.ProductSet parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.ProductSet parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.ProductSet parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.vision.v1.ProductSet parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -576,23 +527,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ProductSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSet)
       com.google.cloud.vision.v1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ProductSet.class,
-              com.google.cloud.vision.v1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1.ProductSet.class, com.google.cloud.vision.v1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ProductSet.newBuilder()
@@ -600,15 +549,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -632,9 +582,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -653,8 +603,7 @@ public com.google.cloud.vision.v1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1.ProductSet result =
-          new com.google.cloud.vision.v1.ProductSet(this);
+      com.google.cloud.vision.v1.ProductSet result = new com.google.cloud.vision.v1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -675,39 +624,38 @@ public com.google.cloud.vision.v1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1.ProductSet) other);
+        return mergeFrom((com.google.cloud.vision.v1.ProductSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -761,8 +709,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -771,13 +717,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -786,8 +732,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -796,14 +740,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -811,8 +756,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -821,22 +764,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -845,18 +786,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -865,16 +803,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -882,21 +820,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -905,22 +841,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -928,64 +863,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -993,13 +921,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1008,17 +931,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1027,9 +946,7 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -1040,8 +957,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1050,8 +965,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -1067,8 +981,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1077,10 +989,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -1091,8 +1003,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1101,14 +1011,13 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1120,8 +1029,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1130,8 +1037,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1145,8 +1051,6 @@ public Builder clearIndexTime() { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1155,17 +1059,14 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1174,19 +1075,17 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1195,21 +1094,17 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), getParentForChildren(), isClean()); + indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), + getParentForChildren(), + isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1217,11 +1112,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1229,15 +1121,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1245,7 +1134,6 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1256,8 +1144,6 @@ public com.google.rpc.Status getIndexError() { } } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1280,8 +1166,6 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1290,7 +1174,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1301,8 +1186,6 @@ public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1315,7 +1198,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1327,8 +1210,6 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1349,8 +1230,6 @@ public Builder clearIndexError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1360,13 +1239,11 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-
+      
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1379,12 +1256,11 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1394,21 +1270,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
+        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getIndexError(),
+                getParentForChildren(),
+                isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1418,12 +1294,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSet)
   private static final com.google.cloud.vision.v1.ProductSet DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSet();
   }
@@ -1432,16 +1308,16 @@ public static com.google.cloud.vision.v1.ProductSet getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ProductSet parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ProductSet(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ProductSet parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ProductSet(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1456,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
similarity index 100%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
similarity index 79%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
index a5c8b7a5b..e67969e95 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ProductSetOrBuilder
-    extends
+public interface ProductSetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -49,41 +28,34 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -92,15 +64,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -109,15 +77,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -126,14 +90,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -141,13 +102,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -155,13 +113,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
similarity index 71%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
index 35878074b..158a7d1a8 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Config to control which ProductSet contains the Products to be deleted.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSetPurgeConfig} */ -public final class ProductSetPurgeConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSetPurgeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSetPurgeConfig) ProductSetPurgeConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSetPurgeConfig.newBuilder() to construct. private ProductSetPurgeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSetPurgeConfig() { productSetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSetPurgeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSetPurgeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ProductSetPurgeConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + productSetId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private ProductSetPurgeConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSetPurgeConfig.class, - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); } public static final int PRODUCT_SET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object productSetId_; /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string product_set_id = 1; - * * @return The productSetId. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -150,15 +126,16 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productSetId_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSetPurgeConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSetPurgeConfig other = - (com.google.cloud.vision.v1.ProductSetPurgeConfig) obj; + com.google.cloud.vision.v1.ProductSetPurgeConfig other = (com.google.cloud.vision.v1.ProductSetPurgeConfig) obj; - if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!getProductSetId() + .equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSetPurgeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to control which ProductSet contains the Products to be deleted.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSetPurgeConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSetPurgeConfig) com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSetPurgeConfig.class, - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder() @@ -358,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override @@ -397,8 +366,7 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSetPurgeConfig buildPartial() { - com.google.cloud.vision.v1.ProductSetPurgeConfig result = - new com.google.cloud.vision.v1.ProductSetPurgeConfig(this); + com.google.cloud.vision.v1.ProductSetPurgeConfig result = new com.google.cloud.vision.v1.ProductSetPurgeConfig(this); result.productSetId_ = productSetId_; onBuilt(); return result; @@ -408,39 +376,38 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSetPurgeConfig) { - return mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) other); + return mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig)other); } else { super.mergeFrom(other); return this; @@ -448,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSetPurgeConfig other) { - if (other == com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) return this; if (!other.getProductSetId().isEmpty()) { productSetId_ = other.productSetId_; onChanged(); @@ -485,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object productSetId_ = ""; /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -494,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string product_set_id = 1; - * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -509,8 +473,6 @@ public java.lang.String getProductSetId() { } } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -518,14 +480,15 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -533,8 +496,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -542,22 +503,20 @@ public com.google.protobuf.ByteString getProductSetIdBytes() {
      * 
* * string product_set_id = 1; - * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId(java.lang.String value) { + public Builder setProductSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -565,18 +524,15 @@ public Builder setProductSetId(java.lang.String value) {
      * 
* * string product_set_id = 1; - * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -584,23 +540,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 1; - * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -610,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSetPurgeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSetPurgeConfig) private static final com.google.cloud.vision.v1.ProductSetPurgeConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSetPurgeConfig(); } @@ -624,16 +580,16 @@ public static com.google.cloud.vision.v1.ProductSetPurgeConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSetPurgeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSetPurgeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSetPurgeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSetPurgeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSetPurgeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java index 9131ade70..9909e1160 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ProductSetPurgeConfigOrBuilder - extends +public interface ProductSetPurgeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSetPurgeConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -33,13 +15,10 @@ public interface ProductSetPurgeConfigOrBuilder
    * 
* * string product_set_id = 1; - * * @return The productSetId. */ java.lang.String getProductSetId(); /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -47,8 +26,8 @@ public interface ProductSetPurgeConfigOrBuilder
    * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString getProductSetIdBytes(); + com.google.protobuf.ByteString + getProductSetIdBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java similarity index 69% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java index dc41a6b15..6f500cdd8 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; value_ = ""; @@ -44,15 +26,16 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private Property( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 24: - { - uint64Value_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + case 24: { + + uint64Value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Property_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Property.class, - com.google.cloud.vision.v1.Property.Builder.class); + com.google.cloud.vision.v1.Property.class, com.google.cloud.vision.v1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -194,29 +167,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -227,14 +200,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -243,7 +213,6 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,16 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Property)) { return super.equals(obj); } com.google.cloud.vision.v1.Property other = (com.google.cloud.vision.v1.Property) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (getUint64Value() != other.getUint64Value()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getUint64Value() + != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,132 +291,125 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Property parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Property parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Property parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Property parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Property parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Property parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Property parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Property parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Property parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Property) com.google.cloud.vision.v1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Property_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Property.class, - com.google.cloud.vision.v1.Property.Builder.class); + com.google.cloud.vision.v1.Property.class, com.google.cloud.vision.v1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1.Property.newBuilder() @@ -450,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override @@ -505,39 +473,38 @@ public com.google.cloud.vision.v1.Property buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Property) { - return mergeFrom((com.google.cloud.vision.v1.Property) other); + return mergeFrom((com.google.cloud.vision.v1.Property)other); } else { super.mergeFrom(other); return this; @@ -588,20 +555,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -610,21 +575,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -632,61 +596,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -694,20 +651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -716,21 +671,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -738,76 +692,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_; + private long uint64Value_ ; /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -815,43 +759,37 @@ public long getUint64Value() { return uint64Value_; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Property) private static final com.google.cloud.vision.v1.Property DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Property(); } @@ -875,16 +813,16 @@ public static com.google.cloud.vision.v1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java index 65ed81d05..5f764c7d0 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ long getUint64Value(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java similarity index 70% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java index 39892c5c4..8d70e226f 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `PurgeProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.PurgeProductsRequest} */ -public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PurgeProductsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.PurgeProductsRequest) PurgeProductsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PurgeProductsRequest.newBuilder() to construct. private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PurgeProductsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PurgeProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PurgeProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,48 +53,43 @@ private PurgeProductsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = - ((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_).toBuilder(); - } - target_ = - input.readMessage( - com.google.cloud.vision.v1.ProductSetPurgeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; - } - case 24: - { - target_ = input.readBool(); - targetCase_ = 3; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_).toBuilder(); } - case 32: - { - force_ = input.readBool(); - break; + target_ = + input.readMessage(com.google.cloud.vision.v1.ProductSetPurgeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); + target_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetCase_ = 2; + break; + } + case 24: { + target_ = input.readBool(); + targetCase_ = 3; + break; + } + case 32: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,40 +97,35 @@ private PurgeProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.PurgeProductsRequest.class, - com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1.PurgeProductsRequest.class, com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_SET_PURGE_CONFIG(2), DELETE_ORPHAN_PRODUCTS(3), TARGET_NOT_SET(0); private final int value; - private TargetCase(int value) { this.value = value; } @@ -168,36 +141,30 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: - return PRODUCT_SET_PURGE_CONFIG; - case 3: - return DELETE_ORPHAN_PRODUCTS; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 2: return PRODUCT_SET_PURGE_CONFIG; + case 3: return DELETE_ORPHAN_PRODUCTS; + case 0: return TARGET_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -205,26 +172,21 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return The productSetPurgeConfig. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -232,25 +194,21 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder - getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER = 3; /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ @java.lang.Override @@ -258,15 +216,12 @@ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ @java.lang.Override @@ -280,17 +235,12 @@ public boolean getDeleteOrphanProducts() { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -299,32 +249,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -335,15 +283,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_; /** - * - * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -352,7 +297,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,7 +317,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) target_)); + output.writeBool( + 3, (boolean)((java.lang.Boolean) target_)); } if (force_ != false) { output.writeBool(4, force_); @@ -390,17 +336,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (targetCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) target_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) target_)); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -410,23 +356,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.PurgeProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.PurgeProductsRequest other = - (com.google.cloud.vision.v1.PurgeProductsRequest) obj; + com.google.cloud.vision.v1.PurgeProductsRequest other = (com.google.cloud.vision.v1.PurgeProductsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getForce() != other.getForce()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getForce() + != other.getForce()) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getProductSetPurgeConfig().equals(other.getProductSetPurgeConfig())) return false; + if (!getProductSetPurgeConfig() + .equals(other.getProductSetPurgeConfig())) return false; break; case 3: - if (getDeleteOrphanProducts() != other.getDeleteOrphanProducts()) return false; + if (getDeleteOrphanProducts() + != other.getDeleteOrphanProducts()) return false; break; case 0: default: @@ -445,7 +394,8 @@ public int hashCode() { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); switch (targetCase_) { case 2: hash = (37 * hash) + PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER; @@ -453,7 +403,8 @@ public int hashCode() { break; case 3: hash = (37 * hash) + DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteOrphanProducts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteOrphanProducts()); break; case 0: default: @@ -463,127 +414,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.PurgeProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `PurgeProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.PurgeProductsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.PurgeProductsRequest) com.google.cloud.vision.v1.PurgeProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.PurgeProductsRequest.class, - com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1.PurgeProductsRequest.class, com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.PurgeProductsRequest.newBuilder() @@ -591,15 +533,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override @@ -634,8 +577,7 @@ public com.google.cloud.vision.v1.PurgeProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.PurgeProductsRequest buildPartial() { - com.google.cloud.vision.v1.PurgeProductsRequest result = - new com.google.cloud.vision.v1.PurgeProductsRequest(this); + com.google.cloud.vision.v1.PurgeProductsRequest result = new com.google.cloud.vision.v1.PurgeProductsRequest(this); if (targetCase_ == 2) { if (productSetPurgeConfigBuilder_ == null) { result.target_ = target_; @@ -657,39 +599,38 @@ public com.google.cloud.vision.v1.PurgeProductsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.PurgeProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1.PurgeProductsRequest) other); + return mergeFrom((com.google.cloud.vision.v1.PurgeProductsRequest)other); } else { super.mergeFrom(other); return this; @@ -697,8 +638,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.PurgeProductsRequest other) { - if (other == com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -707,20 +647,17 @@ public Builder mergeFrom(com.google.cloud.vision.v1.PurgeProductsRequest other) setForce(other.getForce()); } switch (other.getTargetCase()) { - case PRODUCT_SET_PURGE_CONFIG: - { - mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); - break; - } - case DELETE_ORPHAN_PRODUCTS: - { - setDeleteOrphanProducts(other.getDeleteOrphanProducts()); - break; - } - case TARGET_NOT_SET: - { - break; - } + case PRODUCT_SET_PURGE_CONFIG: { + mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); + break; + } + case DELETE_ORPHAN_PRODUCTS: { + setDeleteOrphanProducts(other.getDeleteOrphanProducts()); + break; + } + case TARGET_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -750,12 +687,12 @@ public Builder mergeFrom( } return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -765,20 +702,15 @@ public Builder clearTarget() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> - productSetPurgeConfigBuilder_; + com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> productSetPurgeConfigBuilder_; /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -786,14 +718,11 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return The productSetPurgeConfig. */ @java.lang.Override @@ -811,16 +740,13 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig } } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder setProductSetPurgeConfig( - com.google.cloud.vision.v1.ProductSetPurgeConfig value) { + public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -834,8 +760,6 @@ public Builder setProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -854,24 +778,18 @@ public Builder setProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder mergeProductSetPurgeConfig( - com.google.cloud.vision.v1.ProductSetPurgeConfig value) { + public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { - if (targetCase_ == 2 - && target_ != com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) { - target_ = - com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder( - (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_) - .mergeFrom(value) - .buildPartial(); + if (targetCase_ == 2 && + target_ != com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) { + target_ = com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_) + .mergeFrom(value).buildPartial(); } else { target_ = value; } @@ -887,8 +805,6 @@ public Builder mergeProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -912,21 +828,16 @@ public Builder clearProductSetPurgeConfig() { return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder - getProductSetPurgeConfigBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder getProductSetPurgeConfigBuilder() { return getProductSetPurgeConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -934,8 +845,7 @@ public Builder clearProductSetPurgeConfig() { * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder - getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { if ((targetCase_ == 2) && (productSetPurgeConfigBuilder_ != null)) { return productSetPurgeConfigBuilder_.getMessageOrBuilder(); } else { @@ -946,8 +856,6 @@ public Builder clearProductSetPurgeConfig() { } } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -955,55 +863,43 @@ public Builder clearProductSetPurgeConfig() { * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> + com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> getProductSetPurgeConfigFieldBuilder() { if (productSetPurgeConfigBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } - productSetPurgeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder>( + productSetPurgeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder>( (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; - onChanged(); - ; + onChanged();; return productSetPurgeConfigBuilder_; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ public boolean getDeleteOrphanProducts() { @@ -1013,15 +909,12 @@ public boolean getDeleteOrphanProducts() { return false; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @param value The deleteOrphanProducts to set. * @return This builder for chaining. */ @@ -1032,15 +925,12 @@ public Builder setDeleteOrphanProducts(boolean value) { return this; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return This builder for chaining. */ public Builder clearDeleteOrphanProducts() { @@ -1054,23 +944,19 @@ public Builder clearDeleteOrphanProducts() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1079,24 +965,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1104,86 +987,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -1191,45 +1058,39 @@ public boolean getForce() { return force_; } /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.PurgeProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.PurgeProductsRequest) private static final com.google.cloud.vision.v1.PurgeProductsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.PurgeProductsRequest(); } @@ -1253,16 +1114,16 @@ public static com.google.cloud.vision.v1.PurgeProductsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,4 +1138,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.PurgeProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java index 56188fdf9..57400ff88 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface PurgeProductsRequestOrBuilder - extends +public interface PurgeProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.PurgeProductsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return Whether the productSetPurgeConfig field is set. */ boolean hasProductSetPurgeConfig(); /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return The productSetPurgeConfig. */ com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig(); /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -59,73 +35,55 @@ public interface PurgeProductsRequestOrBuilder com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder(); /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ boolean hasDeleteOrphanProducts(); /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ boolean getDeleteOrphanProducts(); /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java similarity index 74% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java index 81877d3e9..c3d62d2d0 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ReferenceImage}
  */
-public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReferenceImage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ReferenceImage)
     ReferenceImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -46,15 +28,16 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,38 +57,34 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingPolys_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingPolys_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry));
-              break;
+            uri_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingPolys_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundingPolys_.add(
+                input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,7 +92,8 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -122,27 +102,22 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ReferenceImage.class,
-            com.google.cloud.vision.v1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1.ReferenceImage.class, com.google.cloud.vision.v1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -151,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -160,15 +134,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -177,15 +150,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -196,15 +170,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -213,30 +184,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -247,8 +218,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -259,17 +228,13 @@ public com.google.protobuf.ByteString getUriBytes() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -280,18 +245,14 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -302,17 +263,13 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -323,17 +280,13 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -344,17 +297,15 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { + public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( + int index) { return boundingPolys_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,7 +317,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -392,7 +344,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,17 +355,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1.ReferenceImage other = - (com.google.cloud.vision.v1.ReferenceImage) obj; + com.google.cloud.vision.v1.ReferenceImage other = (com.google.cloud.vision.v1.ReferenceImage) obj; - if (!getName().equals(other.getName())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getBoundingPolysList() + .equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -437,104 +392,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -542,23 +490,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.ReferenceImage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ReferenceImage)
       com.google.cloud.vision.v1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ReferenceImage.class,
-              com.google.cloud.vision.v1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1.ReferenceImage.class, com.google.cloud.vision.v1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ReferenceImage.newBuilder()
@@ -566,17 +512,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -594,9 +540,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -615,8 +561,7 @@ public com.google.cloud.vision.v1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1.ReferenceImage result =
-          new com.google.cloud.vision.v1.ReferenceImage(this);
+      com.google.cloud.vision.v1.ReferenceImage result = new com.google.cloud.vision.v1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -637,39 +582,38 @@ public com.google.cloud.vision.v1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1.ReferenceImage) other);
+        return mergeFrom((com.google.cloud.vision.v1.ReferenceImage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -704,10 +648,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ReferenceImage other) {
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingPolysFieldBuilder()
-                    : null;
+            boundingPolysBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingPolysFieldBuilder() : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -741,13 +684,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -756,13 +696,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -771,8 +711,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -781,14 +719,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -796,8 +735,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -806,22 +743,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -830,18 +765,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -850,16 +782,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -867,21 +799,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -890,22 +820,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -913,89 +842,75 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = - new java.util.ArrayList(boundingPolys_); + boundingPolys_ = new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingPolysBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolysBuilder_; /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1006,9 +921,7 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -1018,8 +931,6 @@ public java.util.List getBoundingPolysL } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1030,9 +941,7 @@ public java.util.List getBoundingPolysL
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -1042,8 +951,6 @@ public int getBoundingPolysCount() { } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1054,9 +961,7 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1066,8 +971,6 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1078,11 +981,10 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { + public Builder setBoundingPolys( + int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1096,8 +998,6 @@ public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1108,9 +1008,7 @@ public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1124,8 +1022,6 @@ public Builder setBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1136,9 +1032,7 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1154,8 +1048,6 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1166,11 +1058,10 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { + public Builder addBoundingPolys( + int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1184,8 +1075,6 @@ public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1196,9 +1085,7 @@ public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1212,8 +1099,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1224,9 +1109,7 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1240,8 +1123,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1252,15 +1133,14 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1268,8 +1148,6 @@ public Builder addAllBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1280,9 +1158,7 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1295,8 +1171,6 @@ public Builder clearBoundingPolys() { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1307,9 +1181,7 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1322,8 +1194,6 @@ public Builder removeBoundingPolys(int index) { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1334,16 +1204,13 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(int index) { + public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder( + int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1354,20 +1221,16 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(i
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { + public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( + int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); - } else { + return boundingPolys_.get(index); } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1378,12 +1241,10 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1391,8 +1252,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1403,17 +1262,13 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder().addBuilder( + com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1424,17 +1279,14 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder()
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(int index) { - return getBoundingPolysFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); + public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder( + int index) { + return getBoundingPolysFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1445,26 +1297,18 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(i
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1473,9 +1317,9 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(i } return boundingPolysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1485,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ReferenceImage) private static final com.google.cloud.vision.v1.ReferenceImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ReferenceImage(); } @@ -1499,16 +1343,16 @@ public static com.google.cloud.vision.v1.ReferenceImage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1523,4 +1367,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java similarity index 100% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java index f7784c325..277ffca2e 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ReferenceImageOrBuilder - extends +public interface ReferenceImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -34,13 +16,10 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -49,41 +28,34 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -94,14 +66,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getBoundingPolysList(); + java.util.List + getBoundingPolysList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -112,14 +81,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -130,14 +95,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getBoundingPolysCount(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -148,15 +109,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -167,9 +124,8 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); + com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java similarity index 64% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java index 919326ac7..0764b4449 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RemoveProductFromProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -45,15 +26,16 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,25 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,43 +80,36 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -145,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,18 +153,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -202,33 +168,31 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -237,7 +201,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -279,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other = - (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.newBuilder() @@ -438,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance(); } @@ -480,8 +435,7 @@ public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest result = - new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -492,39 +446,38 @@ public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -532,9 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other) { - if (other - == com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -562,9 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -628,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -702,24 +631,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -728,25 +653,22 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -754,80 +676,67 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,13 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1.RemoveProductFromProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(); } @@ -852,16 +760,16 @@ public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,4 +784,6 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..9948cf3c6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface RemoveProductFromProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java similarity index 76% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java index 3ded4d8a9..5875814d5 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** - * - * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SafeSearchAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -49,15 +31,16 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,48 +59,43 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              adult_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            adult_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              spoof_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            spoof_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              medical_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            medical_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              violence_ = rawValue;
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            violence_ = rawValue;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              racy_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            racy_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,33 +103,29 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.SafeSearchAnnotation.class,
-            com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1.SafeSearchAnnotation.class, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
-   *
-   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -159,16 +133,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -176,22 +146,17 @@ public int getAdultValue() {
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The adult. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getAdult() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -199,16 +164,12 @@ public com.google.cloud.vision.v1.Likelihood getAdult() {
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -216,94 +177,71 @@ public int getSpoofValue() {
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The spoof. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getSpoof() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The medical. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getMedical() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The violence. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getViolence() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -312,16 +250,12 @@ public com.google.cloud.vision.v1.Likelihood getViolence() {
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -330,19 +264,15 @@ public int getRacyValue() {
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The racy. */ - @java.lang.Override - public com.google.cloud.vision.v1.Likelihood getRacy() { + @java.lang.Override public com.google.cloud.vision.v1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -380,19 +311,24 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,13 +338,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.SafeSearchAnnotation other = - (com.google.cloud.vision.v1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1.SafeSearchAnnotation other = (com.google.cloud.vision.v1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -441,104 +376,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -547,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.SafeSearchAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.SafeSearchAnnotation)
       com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.SafeSearchAnnotation.class,
-              com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1.SafeSearchAnnotation.class, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder()
@@ -571,15 +497,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -597,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -618,8 +545,7 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1.SafeSearchAnnotation result =
-          new com.google.cloud.vision.v1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1.SafeSearchAnnotation result = new com.google.cloud.vision.v1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -633,39 +559,38 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1.SafeSearchAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1.SafeSearchAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,8 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance()) return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -721,8 +645,6 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
-     *
-     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -730,16 +652,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -747,19 +665,16 @@ public int getAdultValue() {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -767,19 +682,15 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -787,7 +698,6 @@ public com.google.cloud.vision.v1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @param value The adult to set. * @return This builder for chaining. */ @@ -795,14 +705,12 @@ public Builder setAdult(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -810,11 +718,10 @@ public Builder setAdult(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -822,8 +729,6 @@ public Builder clearAdult() { private int spoof_ = 0; /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -831,16 +736,12 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -848,19 +749,16 @@ public int getSpoofValue() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -868,19 +766,15 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -888,7 +782,6 @@ public com.google.cloud.vision.v1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @param value The spoof to set. * @return This builder for chaining. */ @@ -896,14 +789,12 @@ public Builder setSpoof(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -911,11 +802,10 @@ public Builder setSpoof(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -923,65 +813,51 @@ public Builder clearSpoof() { private int medical_ = 0; /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @param value The medical to set. * @return This builder for chaining. */ @@ -989,24 +865,21 @@ public Builder setMedical(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -1014,65 +887,51 @@ public Builder clearMedical() { private int violence_ = 0; /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @param value The violence to set. * @return This builder for chaining. */ @@ -1080,24 +939,21 @@ public Builder setViolence(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -1105,8 +961,6 @@ public Builder clearViolence() { private int racy_ = 0; /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1115,16 +969,12 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1133,19 +983,16 @@ public int getRacyValue() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1154,19 +1001,15 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = - com.google.cloud.vision.v1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1175,7 +1018,6 @@ public com.google.cloud.vision.v1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @param value The racy to set. * @return This builder for chaining. */ @@ -1183,14 +1025,12 @@ public Builder setRacy(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1199,18 +1039,17 @@ public Builder setRacy(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1.SafeSearchAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.SafeSearchAnnotation(); } @@ -1234,16 +1073,16 @@ public static com.google.cloud.vision.v1.SafeSearchAnnotation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java index 2391cd7a6..482f3c3cc 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface SafeSearchAnnotationOrBuilder - extends +public interface SafeSearchAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -33,13 +15,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -47,14 +26,11 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; - * * @return The adult. */ com.google.cloud.vision.v1.Likelihood getAdult(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -62,13 +38,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -76,64 +49,49 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; - * * @return The spoof. */ com.google.cloud.vision.v1.Likelihood getSpoof(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; - * * @return The medical. */ com.google.cloud.vision.v1.Likelihood getMedical(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; - * * @return The violence. */ com.google.cloud.vision.v1.Likelihood getViolence(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -142,13 +100,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -157,7 +112,6 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; - * * @return The racy. */ com.google.cloud.vision.v1.Likelihood getRacy(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java similarity index 75% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java index e12b20b7b..6b2fa642c 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** - * - * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Symbol} */ -public final class Symbol extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Symbol extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Symbol) SymbolOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,50 @@ private Symbol( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; + break; + } + case 18: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,39 +104,34 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Symbol.class, - com.google.cloud.vision.v1.Symbol.Builder.class); + com.google.cloud.vision.v1.Symbol.class, com.google.cloud.vision.v1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -169,25 +139,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -202,8 +165,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -223,7 +184,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -231,8 +191,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,18 +210,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -292,14 +245,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ @java.lang.Override @@ -308,29 +258,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -341,14 +291,11 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -357,7 +304,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -392,16 +339,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -411,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Symbol)) { return super.equals(obj); @@ -420,15 +370,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,132 +405,125 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Symbol parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Symbol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Symbol parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Symbol parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Symbol parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Symbol parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Symbol parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Symbol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Symbol parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Symbol} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Symbol) com.google.cloud.vision.v1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Symbol.class, - com.google.cloud.vision.v1.Symbol.Builder.class); + com.google.cloud.vision.v1.Symbol.class, com.google.cloud.vision.v1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1.Symbol.newBuilder() @@ -584,15 +531,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override @@ -658,39 +606,38 @@ public com.google.cloud.vision.v1.Symbol buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1.Symbol) other); + return mergeFrom((com.google.cloud.vision.v1.Symbol)other); } else { super.mergeFrom(other); return this; @@ -743,47 +690,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -804,8 +738,6 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -824,8 +756,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -836,9 +766,7 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -850,8 +778,6 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -870,8 +796,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -879,13 +803,11 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -896,14 +818,11 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -911,17 +830,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -929,13 +845,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -955,15 +866,12 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -983,21 +891,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1032,8 +935,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1054,7 +955,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(
+        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1065,8 +967,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1091,9 +991,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1105,8 +1003,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1139,8 +1035,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1162,13 +1056,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1193,14 +1085,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1222,17 +1111,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1240,20 +1126,18 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1262,21 +1146,20 @@ public java.lang.String getText() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1284,76 +1167,66 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1361,43 +1234,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1407,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Symbol) private static final com.google.cloud.vision.v1.Symbol DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Symbol(); } @@ -1421,16 +1288,16 @@ public static com.google.cloud.vision.v1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1445,4 +1312,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java index c5f0275b6..aaa469315 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface SymbolOrBuilder - extends +public interface SymbolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Symbol) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -59,8 +35,6 @@ public interface SymbolOrBuilder com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,39 +104,31 @@ public interface SymbolOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java similarity index 71% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java index bba66b0a8..4db8ca068 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** - * - * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -33,16 +16,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.TextAnnotation}
  */
-public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation)
     TextAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -50,15 +32,16 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,30 +61,28 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pages_.add(
-                  input.readMessage(com.google.cloud.vision.v1.Page.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pages_.add(
+                input.readMessage(com.google.cloud.vision.v1.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            text_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,7 +90,8 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -118,30 +100,24 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.TextAnnotation.class,
-            com.google.cloud.vision.v1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1.TextAnnotation.class, com.google.cloud.vision.v1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder
-      extends
+  public interface DetectedLanguageOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -149,13 +125,10 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -163,58 +136,53 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); } /** - * - * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -233,25 +201,24 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -259,33 +226,29 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -293,7 +256,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -302,15 +264,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -318,15 +279,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -337,14 +299,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -353,7 +312,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,7 +323,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -385,7 +344,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -395,17 +355,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other = - (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,101 +381,95 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -524,32 +479,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedLanguage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.newBuilder() @@ -557,15 +507,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -577,14 +528,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @@ -599,8 +549,7 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage result = - new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -611,41 +560,38 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -653,9 +599,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other) { - if (other - == com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -682,8 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -695,8 +638,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -704,13 +645,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -719,8 +660,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -728,14 +667,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -743,8 +683,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -752,22 +690,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -775,18 +711,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -794,31 +727,28 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -826,41 +756,34 @@ public float getConfidence() { return confidence_; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -873,13 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(); } @@ -888,16 +810,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,85 +834,74 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DetectedBreakOrBuilder - extends + public interface DetectedBreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType(); /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ boolean getIsPrefix(); } /** - * - * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedBreak extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1009,25 +920,24 @@ private DetectedBreak( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - isPrefix_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 16: { + + isPrefix_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1035,41 +945,36 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); } /** - * - * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown break label type.
        * 
@@ -1078,8 +983,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
        * Regular space.
        * 
@@ -1088,8 +991,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SPACE(1), /** - * - * *
        * Sure space (very wide).
        * 
@@ -1098,8 +999,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SURE_SPACE(2), /** - * - * *
        * Line-wrapping break.
        * 
@@ -1108,8 +1007,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ EOL_SURE_SPACE(3), /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1119,8 +1016,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       HYPHEN(4),
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1132,8 +1027,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown break label type.
        * 
@@ -1142,8 +1035,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
        * Regular space.
        * 
@@ -1152,8 +1043,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPACE_VALUE = 1; /** - * - * *
        * Sure space (very wide).
        * 
@@ -1162,8 +1051,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SURE_SPACE_VALUE = 2; /** - * - * *
        * Line-wrapping break.
        * 
@@ -1172,8 +1059,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EOL_SURE_SPACE_VALUE = 3; /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1183,8 +1068,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int HYPHEN_VALUE = 4;
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1193,6 +1076,7 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_BREAK_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1217,57 +1101,52 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return SPACE; - case 2: - return SURE_SPACE; - case 3: - return EOL_SURE_SPACE; - case 4: - return HYPHEN; - case 5: - return LINE_BREAK; - default: - return null; + case 0: return UNKNOWN; + case 1: return SPACE; + case 2: return SURE_SPACE; + case 3: return EOL_SURE_SPACE; + case 4: return HYPHEN; + case 5: return LINE_BREAK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BreakType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1287,52 +1166,38 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1341,7 +1206,6 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1353,10 +1217,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1371,13 +1234,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1387,16 +1250,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other = - (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() != other.getIsPrefix()) return false; + if (getIsPrefix() + != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1411,101 +1274,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1515,32 +1372,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder() @@ -1548,15 +1400,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1568,9 +1421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override @@ -1589,8 +1442,7 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak result = - new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1601,41 +1453,38 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedBreak)other); } else { super.mergeFrom(other); return this; @@ -1643,8 +1492,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1670,8 +1518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1683,108 +1530,85 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } /** - * - * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_; + private boolean isPrefix_ ; /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1792,41 +1616,34 @@ public boolean getIsPrefix() { return isPrefix_; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1839,12 +1656,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.DetectedBreak) private static final com.google.cloud.vision.v1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(); } @@ -1853,16 +1670,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1877,104 +1694,76 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextPropertyOrBuilder - extends + public interface TextPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ int getDetectedLanguagesCount(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesOrBuilderList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -1984,39 +1773,37 @@ public interface TextPropertyOrBuilder com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** - * - * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TextProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2036,44 +1823,35 @@ private TextProperty( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage>(); - mutable_bitField0_ |= 0x00000001; - } - detectedLanguages_.add( - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); - } - detectedBreak_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); - } - - break; + detectedLanguages_.add( + input.readMessage(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedBreak_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2081,7 +1859,8 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -2090,117 +1869,87 @@ private TextProperty( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List - detectedLanguages_; + private java.util.List detectedLanguages_; /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> + public java.util.List getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { return detectedLanguages_.get(index); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.TextAnnotation.DetectedBreak detectedBreak_; /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -2208,25 +1957,18 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null - ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -2234,13 +1976,11 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak( * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2252,7 +1992,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2269,11 +2010,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2283,18 +2025,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.TextProperty other = - (com.google.cloud.vision.v1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList() + .equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak() + .equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2321,94 +2064,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1.TextAnnotation.TextProperty prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2418,32 +2154,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.TextProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.TextProperty) com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder() @@ -2451,17 +2182,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2481,9 +2212,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override @@ -2502,8 +2233,7 @@ public com.google.cloud.vision.v1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.TextProperty result = - new com.google.cloud.vision.v1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2527,41 +2257,38 @@ public com.google.cloud.vision.v1.TextAnnotation.TextProperty buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.TextProperty) other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.TextProperty)other); } else { super.mergeFrom(other); return this; @@ -2569,8 +2296,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance()) return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2589,10 +2315,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.TextProperty detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetectedLanguagesFieldBuilder() - : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetectedLanguagesFieldBuilder() : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2620,8 +2345,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2630,40 +2354,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - detectedLanguages_ = java.util.Collections.emptyList(); - + private java.util.List detectedLanguages_ = + java.util.Collections.emptyList(); private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList( - detectedLanguages_); + detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> - detectedLanguagesBuilder_; + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2671,15 +2383,11 @@ private void ensureDetectedLanguagesIsMutable() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2689,18 +2397,13 @@ public int getDetectedLanguagesCount() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2708,15 +2411,11 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLan } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { @@ -2733,19 +2432,14 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( - int index, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2756,18 +2450,13 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public Builder addDetectedLanguages( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2781,15 +2470,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { @@ -2806,15 +2491,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { @@ -2828,19 +2509,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - int index, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2851,22 +2527,18 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addAllDetectedLanguages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2874,15 +2546,11 @@ public Builder addAllDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2895,15 +2563,11 @@ public Builder clearDetectedLanguages() { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2916,53 +2580,39 @@ public Builder removeDetectedLanguages(int index) { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder - getDetectedLanguagesBuilder(int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( + int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); - } else { + return detectedLanguages_.get(index); } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> - getDetectedLanguagesOrBuilderList() { + public java.util.List + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2970,67 +2620,45 @@ public Builder removeDetectedLanguages(int index) { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder(int index) { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( + int index) { + return getDetectedLanguagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3042,55 +2670,41 @@ public Builder removeDetectedLanguages(int index) { private com.google.cloud.vision.v1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> - detectedBreakBuilder_; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null - ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3104,8 +2718,6 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
@@ -3124,22 +2736,17 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); } else { detectedBreak_ = value; } @@ -3151,8 +2758,6 @@ public Builder mergeDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
@@ -3171,42 +2776,33 @@ public Builder clearDetectedBreak() { return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder - getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** - * - * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null - ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } } /** - * - * *
        * Detected start or end of a text segment.
        * 
@@ -3214,22 +2810,18 @@ public Builder clearDetectedBreak() { * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), getParentForChildren(), isClean()); + detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), + getParentForChildren(), + isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3242,12 +2834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.TextProperty) private static final com.google.cloud.vision.v1.TextAnnotation.TextProperty DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.TextProperty(); } @@ -3256,16 +2848,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.TextProperty getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3280,13 +2872,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3298,8 +2889,6 @@ public java.util.List getPagesList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3307,13 +2896,11 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3325,8 +2912,6 @@ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3338,8 +2923,6 @@ public com.google.cloud.vision.v1.Page getPages(int index) { return pages_.get(index); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3347,21 +2930,19 @@ public com.google.cloud.vision.v1.Page getPages(int index) { * repeated .google.cloud.vision.v1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( + int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3370,29 +2951,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -3401,7 +2982,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3413,7 +2993,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3430,7 +3011,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3443,16 +3025,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation other = - (com.google.cloud.vision.v1.TextAnnotation) obj; + com.google.cloud.vision.v1.TextAnnotation other = (com.google.cloud.vision.v1.TextAnnotation) obj; - if (!getPagesList().equals(other.getPagesList())) return false; - if (!getText().equals(other.getText())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; + if (!getText() + .equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3475,104 +3058,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3585,23 +3161,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.TextAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation)
       com.google.cloud.vision.v1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.TextAnnotation.class,
-              com.google.cloud.vision.v1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1.TextAnnotation.class, com.google.cloud.vision.v1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.TextAnnotation.newBuilder()
@@ -3609,17 +3183,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3635,9 +3209,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3656,8 +3230,7 @@ public com.google.cloud.vision.v1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1.TextAnnotation result =
-          new com.google.cloud.vision.v1.TextAnnotation(this);
+      com.google.cloud.vision.v1.TextAnnotation result = new com.google.cloud.vision.v1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3677,39 +3250,38 @@ public com.google.cloud.vision.v1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1.TextAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1.TextAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3736,10 +3308,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation other) {
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPagesFieldBuilder()
-                    : null;
+            pagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPagesFieldBuilder() : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3777,28 +3348,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Page,
-            com.google.cloud.vision.v1.Page.Builder,
-            com.google.cloud.vision.v1.PageOrBuilder>
-        pagesBuilder_;
+        com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder> pagesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3813,8 +3377,6 @@ public java.util.List getPagesList() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3829,8 +3391,6 @@ public int getPagesCount() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3845,15 +3405,14 @@ public com.google.cloud.vision.v1.Page getPages(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1.Page value) { + public Builder setPages( + int index, com.google.cloud.vision.v1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3867,15 +3426,14 @@ public Builder setPages(int index, com.google.cloud.vision.v1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder setPages( + int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.set(index, builderForValue.build()); @@ -3886,8 +3444,6 @@ public Builder setPages(int index, com.google.cloud.vision.v1.Page.Builder build return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3908,15 +3464,14 @@ public Builder addPages(com.google.cloud.vision.v1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1.Page value) { + public Builder addPages( + int index, com.google.cloud.vision.v1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3930,15 +3485,14 @@ public Builder addPages(int index, com.google.cloud.vision.v1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages(com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder addPages( + com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3949,15 +3503,14 @@ public Builder addPages(com.google.cloud.vision.v1.Page.Builder builderForValue) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder addPages( + int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(index, builderForValue.build()); @@ -3968,8 +3521,6 @@ public Builder addPages(int index, com.google.cloud.vision.v1.Page.Builder build return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3980,7 +3531,8 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3988,8 +3540,6 @@ public Builder addAllPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4007,8 +3557,6 @@ public Builder clearPages() { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4026,44 +3574,39 @@ public Builder removePages(int index) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.Page.Builder getPagesBuilder(int index) { + public com.google.cloud.vision.v1.Page.Builder getPagesBuilder( + int index) { return getPagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( + int index) { if (pagesBuilder_ == null) { - return pages_.get(index); - } else { + return pages_.get(index); } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -4071,8 +3614,6 @@ public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4080,47 +3621,42 @@ public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { * repeated .google.cloud.vision.v1.Page pages = 1; */ public com.google.cloud.vision.v1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.Page.getDefaultInstance()); + return getPagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.Page.Builder addPagesBuilder(int index) { - return getPagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1.Page.Builder addPagesBuilder( + int index) { + return getPagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public java.util.List getPagesBuilderList() { + public java.util.List + getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Page, - com.google.cloud.vision.v1.Page.Builder, - com.google.cloud.vision.v1.PageOrBuilder> + com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Page, - com.google.cloud.vision.v1.Page.Builder, - com.google.cloud.vision.v1.PageOrBuilder>( - pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder>( + pages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); pages_ = null; } return pagesBuilder_; @@ -4128,20 +3664,18 @@ public java.util.List getPagesBuilderLi private java.lang.Object text_ = ""; /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -4150,21 +3684,20 @@ public java.lang.String getText() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -4172,68 +3705,61 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4243,12 +3769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation) private static final com.google.cloud.vision.v1.TextAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation(); } @@ -4257,16 +3783,16 @@ public static com.google.cloud.vision.v1.TextAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4281,4 +3807,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java index 0440b9e29..5a686b18b 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface TextAnnotationOrBuilder - extends +public interface TextAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - java.util.List getPagesList(); + java.util.List + getPagesList(); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -44,8 +25,6 @@ public interface TextAnnotationOrBuilder */ com.google.cloud.vision.v1.Page getPages(int index); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -54,48 +33,41 @@ public interface TextAnnotationOrBuilder */ int getPagesCount(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - java.util.List getPagesOrBuilderList(); + java.util.List + getPagesOrBuilderList(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index); + com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( + int index); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java new file mode 100644 index 000000000..5a8c2333e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java @@ -0,0 +1,183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/text_annotation.proto + +package com.google.cloud.vision.v1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Page_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Block_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Paragraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Word_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Symbol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1/text_annotation" + + ".proto\022\026google.cloud.vision.v1\032%google/c" + + "loud/vision/v1/geometry.proto\"\226\004\n\016TextAn" + + "notation\022+\n\005pages\030\001 \003(\0132\034.google.cloud.v" + + "ision.v1.Page\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedL" + + "anguage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfid" + + "ence\030\002 \001(\002\032\325\001\n\rDetectedBreak\022L\n\004type\030\001 \001" + + "(\0162>.google.cloud.vision.v1.TextAnnotati" + + "on.DetectedBreak.BreakType\022\021\n\tis_prefix\030" + + "\002 \001(\010\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE" + + "\020\001\022\016\n\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n" + + "\n\006HYPHEN\020\004\022\016\n\nLINE_BREAK\020\005\032\261\001\n\014TextPrope" + + "rty\022S\n\022detected_languages\030\001 \003(\01327.google" + + ".cloud.vision.v1.TextAnnotation.Detected" + + "Language\022L\n\016detected_break\030\002 \001(\01324.googl" + + "e.cloud.vision.v1.TextAnnotation.Detecte" + + "dBreak\"\257\001\n\004Page\022E\n\010property\030\001 \001(\01323.goog" + + "le.cloud.vision.v1.TextAnnotation.TextPr" + + "operty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022-\n" + + "\006blocks\030\004 \003(\0132\035.google.cloud.vision.v1.B" + + "lock\022\022\n\nconfidence\030\005 \001(\002\"\346\002\n\005Block\022E\n\010pr" + + "operty\030\001 \001(\01323.google.cloud.vision.v1.Te" + + "xtAnnotation.TextProperty\022:\n\014bounding_bo" + + "x\030\002 \001(\0132$.google.cloud.vision.v1.Boundin" + + "gPoly\0225\n\nparagraphs\030\003 \003(\0132!.google.cloud" + + ".vision.v1.Paragraph\022;\n\nblock_type\030\004 \001(\016" + + "2\'.google.cloud.vision.v1.Block.BlockTyp" + + "e\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007UN" + + "KNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE\020" + + "\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\317\001\n\tParagraph\022" + + "E\n\010property\030\001 \001(\01323.google.cloud.vision." + + "v1.TextAnnotation.TextProperty\022:\n\014boundi" + + "ng_box\030\002 \001(\0132$.google.cloud.vision.v1.Bo" + + "undingPoly\022+\n\005words\030\003 \003(\0132\034.google.cloud" + + ".vision.v1.Word\022\022\n\nconfidence\030\004 \001(\002\"\316\001\n\004" + + "Word\022E\n\010property\030\001 \001(\01323.google.cloud.vi" + + "sion.v1.TextAnnotation.TextProperty\022:\n\014b" + + "ounding_box\030\002 \001(\0132$.google.cloud.vision." + + "v1.BoundingPoly\022/\n\007symbols\030\003 \003(\0132\036.googl" + + "e.cloud.vision.v1.Symbol\022\022\n\nconfidence\030\004" + + " \001(\002\"\255\001\n\006Symbol\022E\n\010property\030\001 \001(\01323.goog" + + "le.cloud.vision.v1.TextAnnotation.TextPr" + + "operty\022:\n\014bounding_box\030\002 \001(\0132$.google.cl" + + "oud.vision.v1.BoundingPoly\022\014\n\004text\030\003 \001(\t" + + "\022\022\n\nconfidence\030\004 \001(\002B{\n\032com.google.cloud" + + ".vision.v1B\023TextAnnotationProtoP\001Z * Parameters for text detections. This is used to control TEXT_DETECTION and * DOCUMENT_TEXT_DETECTION features. @@ -28,29 +11,31 @@ * * Protobuf type {@code google.cloud.vision.v1.TextDetectionParams} */ -public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextDetectionParams) TextDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextDetectionParams.newBuilder() to construct. private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextDetectionParams() {} + private TextDetectionParams() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,6 +44,7 @@ private TextDetectionParams( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -69,18 +55,27 @@ private TextDetectionParams( case 0: done = true; break; - case 72: - { - enableTextDetectionConfidenceScore_ = input.readBool(); - break; + case 72: { + + enableTextDetectionConfidenceScore_ = input.readBool(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + advancedOcrOptions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -88,33 +83,32 @@ private TextDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextDetectionParams.class, - com.google.cloud.vision.v1.TextDetectionParams.Builder.class); + com.google.cloud.vision.v1.TextDetectionParams.class, com.google.cloud.vision.v1.TextDetectionParams.Builder.class); } public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9; private boolean enableTextDetectionConfidenceScore_; /** - * - * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -122,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -130,8 +123,58 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } - private byte memoizedIsInitialized = -1; + public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList advancedOcrOptions_; + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_; + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,10 +186,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -157,9 +204,16 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 9, enableTextDetectionConfidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableTextDetectionConfidenceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdvancedOcrOptionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +223,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextDetectionParams other = - (com.google.cloud.vision.v1.TextDetectionParams) obj; + com.google.cloud.vision.v1.TextDetectionParams other = (com.google.cloud.vision.v1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) - return false; + if (getEnableTextDetectionConfidenceScore() + != other.getEnableTextDetectionConfidenceScore()) return false; + if (!getAdvancedOcrOptionsList() + .equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,112 +246,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTextDetectionConfidenceScore()); + if (getAdvancedOcrOptionsCount() > 0) { + hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -304,23 +355,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.TextDetectionParams}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextDetectionParams)
       com.google.cloud.vision.v1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.TextDetectionParams.class,
-              com.google.cloud.vision.v1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1.TextDetectionParams.class, com.google.cloud.vision.v1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.TextDetectionParams.newBuilder()
@@ -328,27 +377,30 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       enableTextDetectionConfidenceScore_ = false;
 
+      advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -367,9 +419,14 @@ public com.google.cloud.vision.v1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1.TextDetectionParams result =
-          new com.google.cloud.vision.v1.TextDetectionParams(this);
+      com.google.cloud.vision.v1.TextDetectionParams result = new com.google.cloud.vision.v1.TextDetectionParams(this);
+      int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.advancedOcrOptions_ = advancedOcrOptions_;
       onBuilt();
       return result;
     }
@@ -378,39 +435,38 @@ public com.google.cloud.vision.v1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1.TextDetectionParams) other);
+        return mergeFrom((com.google.cloud.vision.v1.TextDetectionParams)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -422,6 +478,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextDetectionParams other) {
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
+      if (!other.advancedOcrOptions_.isEmpty()) {
+        if (advancedOcrOptions_.isEmpty()) {
+          advancedOcrOptions_ = other.advancedOcrOptions_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureAdvancedOcrOptionsIsMutable();
+          advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+        }
+        onChanged();
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -450,11 +516,10 @@ public Builder mergeFrom(
       }
       return this;
     }
+    private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_;
+    private boolean enableTextDetectionConfidenceScore_ ;
     /**
-     *
-     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -462,7 +527,6 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -470,8 +534,6 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -479,19 +541,16 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -499,18 +558,163 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_.getUnmodifiableView(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index to set the value at. + * @param value The advancedOcrOptions to set. + * @return This builder for chaining. + */ + public Builder setAdvancedOcrOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param values The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAllAdvancedOcrOptions( + java.lang.Iterable values) { + ensureAdvancedOcrOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, advancedOcrOptions_); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return This builder for chaining. + */ + public Builder clearAdvancedOcrOptions() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The bytes of the advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextDetectionParams) private static final com.google.cloud.vision.v1.TextDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextDetectionParams(); } @@ -534,16 +738,16 @@ public static com.google.cloud.vision.v1.TextDetectionParams getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -558,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java new file mode 100644 index 000000000..2a652659a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/image_annotator.proto + +package com.google.cloud.vision.v1; + +public interface TextDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * By default, Cloud Vision API only includes confidence score for
+   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
+   * score for TEXT_DETECTION as well.
+   * 
+ * + * bool enable_text_detection_confidence_score = 9; + * @return The enableTextDetectionConfidenceScore. + */ + boolean getEnableTextDetectionConfidenceScore(); + + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + java.util.List + getAdvancedOcrOptionsList(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + int getAdvancedOcrOptionsCount(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + java.lang.String getAdvancedOcrOptions(int index); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java similarity index 72% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java index b564d3033..98b42fb20 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** - * - * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductRequest} */ -public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.UpdateProductRequest) UpdateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductRequest() {} + private UpdateProductRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,35 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductRequest.class, - com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductRequest.class, com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.Product product_; /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -154,16 +128,12 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override @@ -171,15 +141,12 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { @@ -189,8 +156,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -200,7 +165,6 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -208,8 +172,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -219,7 +181,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +188,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -245,7 +204,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -257,7 +215,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -274,10 +233,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,21 +248,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.UpdateProductRequest other =
-        (com.google.cloud.vision.v1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1.UpdateProductRequest other = (com.google.cloud.vision.v1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct().equals(other.getProduct())) return false;
+      if (!getProduct()
+          .equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -327,127 +289,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.UpdateProductRequest) com.google.cloud.vision.v1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductRequest.class, - com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductRequest.class, com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.UpdateProductRequest.newBuilder() @@ -455,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -504,8 +458,7 @@ public com.google.cloud.vision.v1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1.UpdateProductRequest result = - new com.google.cloud.vision.v1.UpdateProductRequest(this); + com.google.cloud.vision.v1.UpdateProductRequest result = new com.google.cloud.vision.v1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -524,39 +477,38 @@ public com.google.cloud.vision.v1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.UpdateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1.UpdateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -564,8 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -603,58 +554,42 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -670,17 +605,15 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -691,23 +624,18 @@ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForV return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -719,15 +647,12 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -741,64 +666,51 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, - com.google.cloud.vision.v1.Product.Builder, - com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -806,13 +718,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -822,15 +729,12 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -840,21 +744,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -879,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -891,7 +788,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -902,8 +800,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -918,7 +814,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -930,8 +826,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -954,8 +848,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -967,13 +859,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -988,14 +878,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -1007,24 +894,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1034,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1.UpdateProductRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.UpdateProductRequest();
   }
@@ -1048,16 +932,16 @@ public static com.google.cloud.vision.v1.UpdateProductRequest getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1072,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
similarity index 73%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
index 77477d030..7126cf1c1 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
@@ -1,72 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface UpdateProductRequestOrBuilder
-    extends
+public interface UpdateProductRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -76,13 +47,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -92,13 +60,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
similarity index 67%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
index 528b1f03c..92c5cb77e 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductSetRequest() {} + private UpdateProductSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductSetRequest.class, com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -192,8 +153,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -202,7 +161,6 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -210,8 +168,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -220,7 +176,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -228,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -245,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -257,7 +209,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -274,10 +227,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,21 +242,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.UpdateProductSetRequest other =
-        (com.google.cloud.vision.v1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1.UpdateProductSetRequest other = (com.google.cloud.vision.v1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet().equals(other.getProductSet())) return false;
+      if (!getProductSet()
+          .equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -328,126 +284,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.UpdateProductSetRequest) com.google.cloud.vision.v1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductSetRequest.class, com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.UpdateProductSetRequest.newBuilder() @@ -455,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -504,8 +452,7 @@ public com.google.cloud.vision.v1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1.UpdateProductSetRequest result = - new com.google.cloud.vision.v1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1.UpdateProductSetRequest result = new com.google.cloud.vision.v1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -524,39 +471,38 @@ public com.google.cloud.vision.v1.UpdateProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.UpdateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1.UpdateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -564,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()) return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -591,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,58 +548,39 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -671,17 +596,14 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder setProductSet( + com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { productSet_ = builderForValue.build(); onChanged(); @@ -692,23 +614,17 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder build return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -720,15 +636,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -742,64 +654,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, - com.google.cloud.vision.v1.ProductSet.Builder, - com.google.cloud.vision.v1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -807,13 +703,8 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -822,15 +713,12 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -839,21 +727,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -877,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -888,7 +769,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -899,8 +781,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -914,7 +794,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -926,8 +806,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -949,8 +827,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -961,13 +837,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -981,14 +855,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -999,24 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1026,12 +894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1.UpdateProductSetRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.UpdateProductSetRequest();
   }
@@ -1040,16 +908,16 @@ public static com.google.cloud.vision.v1.UpdateProductSetRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductSetRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductSetRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductSetRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductSetRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1064,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
index 871102666..5b04f5d58 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface UpdateProductSetRequestOrBuilder
-    extends
+public interface UpdateProductSetRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -75,13 +43,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -90,13 +55,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
similarity index 68%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
index fabfb4415..c121a38ab 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/geometry.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto
-        .internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Vertex.class,
-            com.google.cloud.vision.v1.Vertex.Builder.class);
+            com.google.cloud.vision.v1.Vertex.class, com.google.cloud.vision.v1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,15 +172,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1.Vertex other = (com.google.cloud.vision.v1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,103 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Vertex parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Vertex parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Vertex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -327,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Vertex)
       com.google.cloud.vision.v1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Vertex.class,
-              com.google.cloud.vision.v1.Vertex.Builder.class);
+              com.google.cloud.vision.v1.Vertex.class, com.google.cloud.vision.v1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Vertex.newBuilder()
@@ -351,15 +323,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -371,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto
-          .internal_static_google_cloud_vision_v1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -403,39 +376,38 @@ public com.google.cloud.vision.v1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1.Vertex) other);
+        return mergeFrom((com.google.cloud.vision.v1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -496,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -548,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Vertex) private static final com.google.cloud.vision.v1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Vertex(); } @@ -608,16 +562,16 @@ public static com.google.cloud.vision.v1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java new file mode 100644 index 000000000..174b9650b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java similarity index 76% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java index efeca24da..77a0f6ab3 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/web_detection.proto package com.google.cloud.vision.v1; /** - * - * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection} */ -public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection) WebDetectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,90 +59,67 @@ private WebDetection( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - webEntities_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebEntity.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + webEntities_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebEntity.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - pagesWithMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebPage.parser(), extensionRegistry)); - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - visuallySimilarImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + pagesWithMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebPage.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - bestGuessLabels_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebLabel.parser(), - extensionRegistry)); - break; + visuallySimilarImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bestGuessLabels_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebLabel.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -167,7 +127,8 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -191,110 +152,90 @@ private WebDetection( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.class, - com.google.cloud.vision.v1.WebDetection.Builder.class); + com.google.cloud.vision.v1.WebDetection.class, com.google.cloud.vision.v1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder - extends + public interface WebEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebEntity} */ - public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebEntity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebEntity() { entityId_ = ""; description_ = ""; @@ -302,15 +243,16 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -329,32 +271,30 @@ private WebEntity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: { - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -362,39 +302,34 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebEntity.class, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ @java.lang.Override @@ -403,29 +338,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -436,15 +371,12 @@ public com.google.protobuf.ByteString getEntityIdBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -455,14 +387,11 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -471,29 +400,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -502,7 +431,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -514,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -537,7 +466,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -550,18 +480,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebEntity other = - (com.google.cloud.vision.v1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1.WebDetection.WebEntity other = (com.google.cloud.vision.v1.WebDetection.WebEntity) obj; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getDescription().equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -576,7 +508,8 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -585,93 +518,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -681,32 +608,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebEntity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebEntity) com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebEntity.class, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebEntity.newBuilder() @@ -714,15 +636,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -736,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -757,8 +680,7 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebEntity result = - new com.google.cloud.vision.v1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1.WebDetection.WebEntity result = new com.google.cloud.vision.v1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -770,41 +692,38 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebEntity) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebEntity)other); } else { super.mergeFrom(other); return this; @@ -812,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -844,8 +762,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -857,20 +774,18 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -879,21 +794,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -901,77 +815,67 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { + public Builder setEntityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -979,38 +883,32 @@ public float getScore() { return score_; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1018,20 +916,18 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1040,21 +936,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1062,66 +957,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1134,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1.WebDetection.WebEntity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebEntity(); } @@ -1148,16 +1035,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebEntity getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,85 +1059,75 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebImageOrBuilder - extends + public interface WebImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); } /** - * - * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebImage} */ - public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebImage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1269,25 +1146,24 @@ private WebImage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + url_ = s; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1295,39 +1171,34 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebImage.class, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebImage.class, com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -1336,29 +1207,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1369,14 +1240,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1385,7 +1253,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1397,7 +1264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1417,7 +1285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1427,17 +1296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebImage other = - (com.google.cloud.vision.v1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1.WebDetection.WebImage other = (com.google.cloud.vision.v1.WebDetection.WebImage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1452,100 +1322,95 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1555,32 +1420,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebImage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebImage) com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebImage.class, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebImage.class, com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebImage.newBuilder() @@ -1588,15 +1448,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1608,9 +1469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1629,8 +1490,7 @@ public com.google.cloud.vision.v1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebImage result = - new com.google.cloud.vision.v1.WebDetection.WebImage(this); + com.google.cloud.vision.v1.WebDetection.WebImage result = new com.google.cloud.vision.v1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1641,41 +1501,38 @@ public com.google.cloud.vision.v1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebImage) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebImage)other); } else { super.mergeFrom(other); return this; @@ -1683,8 +1540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1711,8 +1567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1724,20 +1579,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1746,21 +1599,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1768,76 +1620,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1845,41 +1687,34 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1892,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebImage) private static final com.google.cloud.vision.v1.WebDetection.WebImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebImage(); } @@ -1906,16 +1741,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1930,79 +1765,64 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebPageOrBuilder - extends + public interface WebPageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ java.lang.String getPageTitle(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString getPageTitleBytes(); + com.google.protobuf.ByteString + getPageTitleBytes(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2010,10 +1830,9 @@ public interface WebPageOrBuilder
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
-    java.util.List getFullMatchingImagesList();
+    java.util.List 
+        getFullMatchingImagesList();
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2023,8 +1842,6 @@ public interface WebPageOrBuilder
      */
     com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index);
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2034,8 +1851,6 @@ public interface WebPageOrBuilder
      */
     int getFullMatchingImagesCount();
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2043,11 +1858,9 @@ public interface WebPageOrBuilder
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
-    java.util.List
+    java.util.List 
         getFullMatchingImagesOrBuilderList();
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2059,8 +1872,6 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
         int index);
 
     /**
-     *
-     *
      * 
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2068,13 +1879,11 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List getPartialMatchingImagesList(); + java.util.List + getPartialMatchingImagesList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2082,13 +1891,10 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2096,13 +1902,10 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ int getPartialMatchingImagesCount(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2110,14 +1913,11 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2125,31 +1925,27 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( int index); } /** - * - * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebPage} */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebPage() { url_ = ""; pageTitle_ = ""; @@ -2159,15 +1955,16 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2187,58 +1984,48 @@ private WebPage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: { - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2246,7 +2033,8 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2258,33 +2046,27 @@ private WebPage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebPage.class, - com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebPage.class, com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -2293,29 +2075,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -2326,14 +2108,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -2344,14 +2123,11 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ @java.lang.Override @@ -2360,29 +2136,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2393,8 +2169,6 @@ public com.google.protobuf.ByteString getPageTitleBytes() { public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; private java.util.List fullMatchingImages_; /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2403,13 +2177,10 @@ public com.google.protobuf.ByteString getPageTitleBytes() {
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
     @java.lang.Override
-    public java.util.List
-        getFullMatchingImagesList() {
+    public java.util.List getFullMatchingImagesList() {
       return fullMatchingImages_;
     }
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2418,13 +2189,11 @@ public com.google.protobuf.ByteString getPageTitleBytes() {
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getFullMatchingImagesOrBuilderList() {
       return fullMatchingImages_;
     }
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2437,8 +2206,6 @@ public int getFullMatchingImagesCount() {
       return fullMatchingImages_.size();
     }
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2451,8 +2218,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
       return fullMatchingImages_.get(index);
     }
     /**
-     *
-     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2469,8 +2234,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
     public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5;
     private java.util.List partialMatchingImages_;
     /**
-     *
-     *
      * 
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2478,17 +2241,13 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2496,17 +2255,14 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2514,16 +2270,13 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2531,16 +2284,13 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2548,17 +2298,15 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2570,7 +2318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2599,19 +2348,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2621,21 +2370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebPage other = - (com.google.cloud.vision.v1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1.WebDetection.WebPage other = (com.google.cloud.vision.v1.WebDetection.WebPage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getPageTitle() + .equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2650,7 +2402,8 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2667,93 +2420,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2763,32 +2510,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebPage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebPage) com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebPage.class, - com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebPage.class, com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebPage.newBuilder() @@ -2796,18 +2538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2833,9 +2575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2854,8 +2596,7 @@ public com.google.cloud.vision.v1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebPage result = - new com.google.cloud.vision.v1.WebDetection.WebPage(this); + com.google.cloud.vision.v1.WebDetection.WebPage result = new com.google.cloud.vision.v1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2886,41 +2627,38 @@ public com.google.cloud.vision.v1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebPage) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebPage)other); } else { super.mergeFrom(other); return this; @@ -2928,8 +2666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2959,10 +2696,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2986,10 +2722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -3014,8 +2749,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3024,25 +2758,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object url_ = ""; /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -3051,21 +2782,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -3073,76 +2803,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -3150,36 +2870,30 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -3187,20 +2901,18 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -3209,21 +2921,20 @@ public java.lang.String getPageTitle() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -3231,97 +2942,80 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle(java.lang.String value) { + public Builder setPageTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3329,15 +3023,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3347,15 +3038,12 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3365,15 +3053,12 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3390,15 +3075,12 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3412,15 +3094,12 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { @@ -3436,15 +3115,12 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.Web return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3461,15 +3137,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3483,15 +3156,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3505,21 +3175,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder addAllFullMatchingImages( java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3527,15 +3195,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3548,15 +3213,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3569,52 +3231,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3622,65 +3274,48 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingI } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3690,27 +3325,19 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3718,11 +3345,9 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3730,8 +3355,6 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3739,8 +3362,7 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3750,8 +3372,6 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3759,8 +3379,7 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3770,8 +3389,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3779,8 +3396,7 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3797,8 +3413,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3806,8 +3420,7 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3821,8 +3434,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3830,11 +3441,9 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3848,8 +3457,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3857,8 +3464,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3875,8 +3481,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3884,8 +3488,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3899,8 +3502,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3908,8 +3509,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3923,8 +3523,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3932,14 +3530,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addAllPartialMatchingImages( java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3947,8 +3545,6 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3956,8 +3552,7 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3970,8 +3565,6 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3979,8 +3572,7 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3993,8 +3585,6 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4002,16 +3592,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4019,20 +3606,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4040,11 +3623,10 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -4052,8 +3634,6 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4061,17 +3641,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4079,18 +3655,14 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4098,25 +3670,18 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4125,7 +3690,6 @@ public Builder removePartialMatchingImages(int index) { } return partialMatchingImagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4138,12 +3702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebPage) private static final com.google.cloud.vision.v1.WebDetection.WebPage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebPage(); } @@ -4152,16 +3716,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebPage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4176,41 +3740,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebLabelOrBuilder - extends + public interface WebLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4218,13 +3775,10 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4232,30 +3786,27 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebLabel} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebLabel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { label_ = ""; languageCode_ = ""; @@ -4263,15 +3814,16 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4290,27 +3842,25 @@ private WebLabel( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4318,39 +3868,34 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebLabel.class, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ @java.lang.Override @@ -4359,29 +3904,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4392,8 +3937,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4401,7 +3944,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -4410,15 +3952,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4426,15 +3967,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4443,7 +3985,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4455,7 +3996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4485,16 +4027,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1.WebDetection.WebLabel other = (com.google.cloud.vision.v1.WebDetection.WebLabel) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4516,93 +4059,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4612,32 +4149,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebLabel} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebLabel) com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebLabel.class, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebLabel.newBuilder() @@ -4645,15 +4177,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4665,9 +4198,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4686,8 +4219,7 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1.WebDetection.WebLabel result = new com.google.cloud.vision.v1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4698,41 +4230,38 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebLabel) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebLabel)other); } else { super.mergeFrom(other); return this; @@ -4740,8 +4269,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4769,8 +4297,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4782,20 +4309,18 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4804,21 +4329,20 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4826,61 +4350,54 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4888,8 +4405,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4897,13 +4412,13 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4912,8 +4427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4921,14 +4434,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4936,8 +4450,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4945,22 +4457,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4968,18 +4478,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4987,21 +4494,20 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5014,12 +4520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1.WebDetection.WebLabel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebLabel(); } @@ -5028,16 +4534,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebLabel getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5052,13 +4558,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5070,8 +4575,6 @@ public java.util.List getWebE return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5079,13 +4582,11 @@ public java.util.List getWebE * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5097,8 +4598,6 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5110,8 +4609,6 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int inde return webEntities_.get(index); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5127,8 +4624,6 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; private java.util.List fullMatchingImages_; /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -5137,13 +4632,10 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getFullMatchingImagesList() {
+  public java.util.List getFullMatchingImagesList() {
     return fullMatchingImages_;
   }
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -5152,13 +4644,11 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFullMatchingImagesOrBuilderList() {
     return fullMatchingImages_;
   }
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -5171,8 +4661,6 @@ public int getFullMatchingImagesCount() {
     return fullMatchingImages_.size();
   }
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -5185,8 +4673,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
     return fullMatchingImages_.get(index);
   }
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -5203,246 +4689,196 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
   public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3;
   private java.util.List partialMatchingImages_;
   /**
-   *
-   *
    * 
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; private java.util.List pagesWithMatchingImages_; /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; private java.util.List visuallySimilarImages_; /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -5455,8 +4891,6 @@ public java.util.List getBestG
     return bestGuessLabels_;
   }
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -5465,13 +4899,11 @@ public java.util.List getBestG
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBestGuessLabelsOrBuilderList() {
     return bestGuessLabels_;
   }
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -5484,8 +4916,6 @@ public int getBestGuessLabelsCount() {
     return bestGuessLabels_.size();
   }
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -5498,8 +4928,6 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int i
     return bestGuessLabels_.get(index);
   }
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -5514,7 +4942,6 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -5526,7 +4953,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < webEntities_.size(); i++) {
       output.writeMessage(1, webEntities_.get(i));
     }
@@ -5555,29 +4983,28 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < webEntities_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, webEntities_.get(i));
     }
     for (int i = 0; i < fullMatchingImages_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, fullMatchingImages_.get(i));
     }
     for (int i = 0; i < partialMatchingImages_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, partialMatchingImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, partialMatchingImages_.get(i));
     }
     for (int i = 0; i < pagesWithMatchingImages_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, pagesWithMatchingImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, pagesWithMatchingImages_.get(i));
     }
     for (int i = 0; i < visuallySimilarImages_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, visuallySimilarImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, visuallySimilarImages_.get(i));
     }
     for (int i = 0; i < bestGuessLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, bestGuessLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -5587,20 +5014,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.WebDetection)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.WebDetection other = (com.google.cloud.vision.v1.WebDetection) obj;
 
-    if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false;
-    if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false;
-    if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false;
-    if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList()))
-      return false;
-    if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false;
-    if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false;
+    if (!getWebEntitiesList()
+        .equals(other.getWebEntitiesList())) return false;
+    if (!getFullMatchingImagesList()
+        .equals(other.getFullMatchingImagesList())) return false;
+    if (!getPartialMatchingImagesList()
+        .equals(other.getPartialMatchingImagesList())) return false;
+    if (!getPagesWithMatchingImagesList()
+        .equals(other.getPagesWithMatchingImagesList())) return false;
+    if (!getVisuallySimilarImagesList()
+        .equals(other.getVisuallySimilarImagesList())) return false;
+    if (!getBestGuessLabelsList()
+        .equals(other.getBestGuessLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -5641,127 +5073,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.WebDetection parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.WebDetection parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection) com.google.cloud.vision.v1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.class, - com.google.cloud.vision.v1.WebDetection.Builder.class); + com.google.cloud.vision.v1.WebDetection.class, com.google.cloud.vision.v1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.newBuilder() @@ -5769,13 +5192,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5784,7 +5208,6 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5828,9 +5251,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto - .internal_static_google_cloud_vision_v1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override @@ -5849,8 +5272,7 @@ public com.google.cloud.vision.v1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection buildPartial() { - com.google.cloud.vision.v1.WebDetection result = - new com.google.cloud.vision.v1.WebDetection(this); + com.google.cloud.vision.v1.WebDetection result = new com.google.cloud.vision.v1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5881,8 +5303,7 @@ public com.google.cloud.vision.v1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5915,39 +5336,38 @@ public com.google.cloud.vision.v1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection)other); } else { super.mergeFrom(other); return this; @@ -5974,10 +5394,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebEntitiesFieldBuilder() - : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebEntitiesFieldBuilder() : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -6001,10 +5420,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -6028,10 +5446,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -6055,10 +5472,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPagesWithMatchingImagesFieldBuilder() - : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPagesWithMatchingImagesFieldBuilder() : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -6082,10 +5498,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVisuallySimilarImagesFieldBuilder() - : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVisuallySimilarImagesFieldBuilder() : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -6109,10 +5524,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBestGuessLabelsFieldBuilder() - : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBestGuessLabelsFieldBuilder() : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -6146,30 +5560,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList( - webEntities_); + webEntities_ = new java.util.ArrayList(webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, - com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> - webEntitiesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6184,8 +5589,6 @@ public java.util.List getWebE } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6200,8 +5603,6 @@ public int getWebEntitiesCount() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6216,8 +5617,6 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int inde } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6239,8 +5638,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6259,8 +5656,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6281,8 +5676,6 @@ public Builder addWebEntities(com.google.cloud.vision.v1.WebDetection.WebEntity return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6304,8 +5697,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6323,9 +5714,7 @@ public Builder addWebEntities( } return this; } - /** - * - * + /** *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6344,8 +5733,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6356,7 +5743,8 @@ public Builder addAllWebEntities( java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -6364,8 +5752,6 @@ public Builder addAllWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6383,8 +5769,6 @@ public Builder clearWebEntities() { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6402,8 +5786,6 @@ public Builder removeWebEntities(int index) { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6415,8 +5797,6 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder getWebEntitiesB return getWebEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6426,22 +5806,19 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder getWebEntitiesB public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); - } else { + return webEntities_.get(index); } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -6449,8 +5826,6 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6458,12 +5833,10 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6472,62 +5845,48 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesB */ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, - com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, - com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder>( - webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder>( + webEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); webEntities_ = null; } return webEntitiesBuilder_; } private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6535,8 +5894,7 @@ private void ensureFullMatchingImagesIsMutable() {
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List
-        getFullMatchingImagesList() {
+    public java.util.List getFullMatchingImagesList() {
       if (fullMatchingImagesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(fullMatchingImages_);
       } else {
@@ -6544,8 +5902,6 @@ private void ensureFullMatchingImagesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6561,8 +5917,6 @@ public int getFullMatchingImagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6578,8 +5932,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
       }
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6602,8 +5954,6 @@ public Builder setFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6623,8 +5973,6 @@ public Builder setFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6646,8 +5994,6 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.Web
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6670,8 +6016,6 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6691,8 +6035,6 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6712,8 +6054,6 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6725,7 +6065,8 @@ public Builder addAllFullMatchingImages(
         java.lang.Iterable values) {
       if (fullMatchingImagesBuilder_ == null) {
         ensureFullMatchingImagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, fullMatchingImages_);
         onChanged();
       } else {
         fullMatchingImagesBuilder_.addAllMessages(values);
@@ -6733,8 +6074,6 @@ public Builder addAllFullMatchingImages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6753,8 +6092,6 @@ public Builder clearFullMatchingImages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6773,8 +6110,6 @@ public Builder removeFullMatchingImages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6787,8 +6122,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingI
       return getFullMatchingImagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6799,14 +6132,11 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingI
     public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder(
         int index) {
       if (fullMatchingImagesBuilder_ == null) {
-        return fullMatchingImages_.get(index);
-      } else {
+        return fullMatchingImages_.get(index);  } else {
         return fullMatchingImagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6814,8 +6144,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List
-        getFullMatchingImagesOrBuilderList() {
+    public java.util.List 
+         getFullMatchingImagesOrBuilderList() {
       if (fullMatchingImagesBuilder_ != null) {
         return fullMatchingImagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -6823,8 +6153,6 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
       }
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6833,12 +6161,10 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
     public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() {
-      return getFullMatchingImagesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
+      return getFullMatchingImagesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6848,12 +6174,10 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
      */
     public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder(
         int index) {
-      return getFullMatchingImagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
+      return getFullMatchingImagesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6861,22 +6185,16 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List
-        getFullMatchingImagesBuilderList() {
+    public java.util.List 
+         getFullMatchingImagesBuilderList() {
       return getFullMatchingImagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.WebDetection.WebImage,
-            com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
-            com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>
+        com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> 
         getFullMatchingImagesFieldBuilder() {
       if (fullMatchingImagesBuilder_ == null) {
-        fullMatchingImagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.WebDetection.WebImage,
-                com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
-                com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>(
+        fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>(
                 fullMatchingImages_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -6886,38 +6204,28 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
       return fullMatchingImagesBuilder_;
     }
 
-    private java.util.List
-        partialMatchingImages_ = java.util.Collections.emptyList();
-
+    private java.util.List partialMatchingImages_ =
+      java.util.Collections.emptyList();
     private void ensurePartialMatchingImagesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        partialMatchingImages_ =
-            new java.util.ArrayList(
-                partialMatchingImages_);
+        partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.WebDetection.WebImage,
-            com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
-            com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>
-        partialMatchingImagesBuilder_;
+        com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6925,16 +6233,13 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6944,16 +6249,13 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6963,16 +6265,13 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -6989,16 +6288,13 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7012,19 +6308,15 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7038,16 +6330,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -7064,16 +6353,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7087,16 +6373,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7110,22 +6393,20 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addAllPartialMatchingImages( java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -7133,16 +6414,13 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -7155,16 +6433,13 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -7177,55 +6452,45 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7233,67 +6498,51 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchi } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7303,36 +6552,26 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchi return partialMatchingImagesBuilder_; } - private java.util.List - pagesWithMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List pagesWithMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList( - pagesWithMatchingImages_); + pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, - com.google.cloud.vision.v1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> - pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -7340,14 +6579,11 @@ private void ensurePagesWithMatchingImagesIsMutable() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7357,14 +6593,11 @@ public int getPagesWithMatchingImagesCount() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7374,14 +6607,11 @@ public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImage } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage value) { @@ -7398,14 +6628,11 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -7419,17 +6646,13 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public Builder addPagesWithMatchingImages( - com.google.cloud.vision.v1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7443,14 +6666,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage value) { @@ -7467,14 +6687,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -7488,14 +6705,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -7509,20 +6723,18 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addAllPagesWithMatchingImages( java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -7530,14 +6742,11 @@ public Builder addAllPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7550,14 +6759,11 @@ public Builder clearPagesWithMatchingImages() { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7570,49 +6776,39 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder - getPagesWithMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( + int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); - } else { + return pagesWithMatchingImages_.get(index); } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7620,61 +6816,45 @@ public Builder removePagesWithMatchingImages(int index) { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder(int index) { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( + int index) { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, - com.google.cloud.vision.v1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, - com.google.cloud.vision.v1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7684,36 +6864,26 @@ public Builder removePagesWithMatchingImages(int index) { return pagesWithMatchingImagesBuilder_; } - private java.util.List - visuallySimilarImages_ = java.util.Collections.emptyList(); - + private java.util.List visuallySimilarImages_ = + java.util.Collections.emptyList(); private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList( - visuallySimilarImages_); + visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> - visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -7721,14 +6891,11 @@ private void ensureVisuallySimilarImagesIsMutable() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -7738,14 +6905,11 @@ public int getVisuallySimilarImagesCount() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7755,14 +6919,11 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages } } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -7779,14 +6940,11 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7800,17 +6958,13 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public Builder addVisuallySimilarImages( - com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7824,14 +6978,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -7848,14 +6999,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7869,14 +7017,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7890,20 +7035,18 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addAllVisuallySimilarImages( java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7911,14 +7054,11 @@ public Builder addAllVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7931,14 +7071,11 @@ public Builder clearVisuallySimilarImages() { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7951,49 +7088,39 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); - } else { + return visuallySimilarImages_.get(index); } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -8001,61 +7128,45 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getVisuallySimil } } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( int index) { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getVisuallySimilarImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, - com.google.cloud.vision.v1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8066,26 +7177,18 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimil } private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList( - bestGuessLabels_); + bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebLabel, - com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> - bestGuessLabelsBuilder_; + com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8093,8 +7196,7 @@ private void ensureBestGuessLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List
-        getBestGuessLabelsList() {
+    public java.util.List getBestGuessLabelsList() {
       if (bestGuessLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(bestGuessLabels_);
       } else {
@@ -8102,8 +7204,6 @@ private void ensureBestGuessLabelsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8119,8 +7219,6 @@ public int getBestGuessLabelsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8136,8 +7234,6 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int i
       }
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8160,8 +7256,6 @@ public Builder setBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8181,8 +7275,6 @@ public Builder setBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8204,8 +7296,6 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1.WebDetection.WebLab
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8228,8 +7318,6 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8249,8 +7337,6 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8270,8 +7356,6 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8283,7 +7367,8 @@ public Builder addAllBestGuessLabels(
         java.lang.Iterable values) {
       if (bestGuessLabelsBuilder_ == null) {
         ensureBestGuessLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, bestGuessLabels_);
         onChanged();
       } else {
         bestGuessLabelsBuilder_.addAllMessages(values);
@@ -8291,8 +7376,6 @@ public Builder addAllBestGuessLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8311,8 +7394,6 @@ public Builder clearBestGuessLabels() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8331,8 +7412,6 @@ public Builder removeBestGuessLabels(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8345,8 +7424,6 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder getBestGuessLabe
       return getBestGuessLabelsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8357,14 +7434,11 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder getBestGuessLabe
     public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(
         int index) {
       if (bestGuessLabelsBuilder_ == null) {
-        return bestGuessLabels_.get(index);
-      } else {
+        return bestGuessLabels_.get(index);  } else {
         return bestGuessLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8372,8 +7446,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List
-        getBestGuessLabelsOrBuilderList() {
+    public java.util.List 
+         getBestGuessLabelsOrBuilderList() {
       if (bestGuessLabelsBuilder_ != null) {
         return bestGuessLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -8381,8 +7455,6 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
       }
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8391,12 +7463,10 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
     public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() {
-      return getBestGuessLabelsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
+      return getBestGuessLabelsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8406,12 +7476,10 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
      */
     public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder(
         int index) {
-      return getBestGuessLabelsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
+      return getBestGuessLabelsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -8419,22 +7487,16 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List
-        getBestGuessLabelsBuilderList() {
+    public java.util.List 
+         getBestGuessLabelsBuilderList() {
       return getBestGuessLabelsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.WebDetection.WebLabel,
-            com.google.cloud.vision.v1.WebDetection.WebLabel.Builder,
-            com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>
+        com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> 
         getBestGuessLabelsFieldBuilder() {
       if (bestGuessLabelsBuilder_ == null) {
-        bestGuessLabelsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.WebDetection.WebLabel,
-                com.google.cloud.vision.v1.WebDetection.WebLabel.Builder,
-                com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>(
+        bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>(
                 bestGuessLabels_,
                 ((bitField0_ & 0x00000020) != 0),
                 getParentForChildren(),
@@ -8443,9 +7505,9 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
       }
       return bestGuessLabelsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -8455,12 +7517,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection)
   private static final com.google.cloud.vision.v1.WebDetection DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection();
   }
@@ -8469,16 +7531,16 @@ public static com.google.cloud.vision.v1.WebDetection getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public WebDetection parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new WebDetection(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WebDetection parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new WebDetection(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -8493,4 +7555,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.WebDetection getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
similarity index 81%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
index 42d251025..62d8fc8fc 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/web_detection.proto
 
 package com.google.cloud.vision.v1;
 
-public interface WebDetectionOrBuilder
-    extends
+public interface WebDetectionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - java.util.List getWebEntitiesList(); + java.util.List + getWebEntitiesList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -44,8 +25,6 @@ public interface WebDetectionOrBuilder */ com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int index); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -54,30 +33,25 @@ public interface WebDetectionOrBuilder */ int getWebEntitiesCount(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder(int index); + com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( + int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -85,10 +59,9 @@ public interface WebDetectionOrBuilder
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
-  java.util.List getFullMatchingImagesList();
+  java.util.List 
+      getFullMatchingImagesList();
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -98,8 +71,6 @@ public interface WebDetectionOrBuilder
    */
   com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index);
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -109,8 +80,6 @@ public interface WebDetectionOrBuilder
    */
   int getFullMatchingImagesCount();
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -118,11 +87,9 @@ public interface WebDetectionOrBuilder
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
-  java.util.List
+  java.util.List 
       getFullMatchingImagesOrBuilderList();
   /**
-   *
-   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -134,192 +101,148 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
       int index);
 
   /**
-   *
-   *
    * 
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List getPartialMatchingImagesList(); + java.util.List + getPartialMatchingImagesList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ int getPartialMatchingImagesCount(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List getPagesWithMatchingImagesList(); + java.util.List + getPagesWithMatchingImagesList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ int getPagesWithMatchingImagesCount(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( int index); /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List getVisuallySimilarImagesList(); + java.util.List + getVisuallySimilarImagesList(); /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index); /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ int getVisuallySimilarImagesCount(); /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** - * - * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( int index); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -327,10 +250,9 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  java.util.List getBestGuessLabelsList();
+  java.util.List 
+      getBestGuessLabelsList();
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -340,8 +262,6 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    */
   com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int index);
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -351,8 +271,6 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    */
   int getBestGuessLabelsCount();
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -360,11 +278,9 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  java.util.List
+  java.util.List 
       getBestGuessLabelsOrBuilderList();
   /**
-   *
-   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -372,5 +288,6 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(int index);
+  com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
similarity index 69%
rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
index 9d8ebb0ac..2dc32b410 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
+++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
- *
- *
  * 
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetectionParams} */ -public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetectionParams) WebDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WebDetectionParams() {} + private WebDetectionParams() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: - { - includeGeoResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + includeGeoResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetectionParams.class, - com.google.cloud.vision.v1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1.WebDetectionParams.class, com.google.cloud.vision.v1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** - * - * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetectionParams other = - (com.google.cloud.vision.v1.WebDetectionParams) obj; + com.google.cloud.vision.v1.WebDetectionParams other = (com.google.cloud.vision.v1.WebDetectionParams) obj; - if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() + != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,133 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetectionParams) com.google.cloud.vision.v1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetectionParams.class, - com.google.cloud.vision.v1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1.WebDetectionParams.class, com.google.cloud.vision.v1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetectionParams.newBuilder() @@ -319,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override @@ -358,8 +331,7 @@ public com.google.cloud.vision.v1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1.WebDetectionParams result = - new com.google.cloud.vision.v1.WebDetectionParams(this); + com.google.cloud.vision.v1.WebDetectionParams result = new com.google.cloud.vision.v1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -369,39 +341,38 @@ public com.google.cloud.vision.v1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1.WebDetectionParams) other); + return mergeFrom((com.google.cloud.vision.v1.WebDetectionParams)other); } else { super.mergeFrom(other); return this; @@ -442,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_; + private boolean includeGeoResults_ ; /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -459,43 +427,37 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -505,12 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetectionParams) private static final com.google.cloud.vision.v1.WebDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetectionParams(); } @@ -519,16 +481,16 @@ public static com.google.cloud.vision.v1.WebDetectionParams getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -543,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..f2f408b1c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/image_annotator.proto + +package com.google.cloud.vision.v1; + +public interface WebDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java new file mode 100644 index 000000000..088cb3823 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/web_detection.proto + +package com.google.cloud.vision.v1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vision/v1/web_detection.p" + + "roto\022\026google.cloud.vision.v1\"\324\006\n\014WebDete" + + "ction\022D\n\014web_entities\030\001 \003(\0132..google.clo" + + "ud.vision.v1.WebDetection.WebEntity\022K\n\024f" + + "ull_matching_images\030\002 \003(\0132-.google.cloud" + + ".vision.v1.WebDetection.WebImage\022N\n\027part" + + "ial_matching_images\030\003 \003(\0132-.google.cloud" + + ".vision.v1.WebDetection.WebImage\022P\n\032page" + + "s_with_matching_images\030\004 \003(\0132,.google.cl" + + "oud.vision.v1.WebDetection.WebPage\022N\n\027vi" + + "sually_similar_images\030\006 \003(\0132-.google.clo" + + "ud.vision.v1.WebDetection.WebImage\022H\n\021be" + + "st_guess_labels\030\010 \003(\0132-.google.cloud.vis" + + "ion.v1.WebDetection.WebLabel\032B\n\tWebEntit" + + "y\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\023\n\013d" + + "escription\030\003 \001(\t\032&\n\010WebImage\022\013\n\003url\030\001 \001(" + + "\t\022\r\n\005score\030\002 \001(\002\032\326\001\n\007WebPage\022\013\n\003url\030\001 \001(" + + "\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001(\t\022K\n\024" + + "full_matching_images\030\004 \003(\0132-.google.clou" + + "d.vision.v1.WebDetection.WebImage\022N\n\027par" + + "tial_matching_images\030\005 \003(\0132-.google.clou" + + "d.vision.v1.WebDetection.WebImage\0320\n\010Web" + + "Label\022\r\n\005label\030\001 \001(\t\022\025\n\rlanguage_code\030\002 " + + "\001(\tBy\n\032com.google.cloud.vision.v1B\021WebDe" + + "tectionProtoP\001Z * A word representation. *
* * Protobuf type {@code google.cloud.vision.v1.Word} */ -public final class Word extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Word extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Word) WordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,61 +54,53 @@ private Word( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1.Symbol.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + symbols_.add( + input.readMessage(com.google.cloud.vision.v1.Symbol.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,7 +108,8 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -142,17 +118,15 @@ private Word( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Word_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Word.class, com.google.cloud.vision.v1.Word.Builder.class); } @@ -160,14 +134,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -175,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the word.
    * 
@@ -208,8 +172,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -229,7 +191,6 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -237,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -258,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -298,8 +252,6 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -312,8 +264,6 @@ public java.util.List getSymbolsList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -322,13 +272,11 @@ public java.util.List getSymbolsList() {
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -341,8 +289,6 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -355,8 +301,6 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -365,21 +309,19 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+  public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -388,7 +330,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -423,16 +365,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -442,7 +388,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Word)) { return super.equals(obj); @@ -451,15 +397,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getSymbolsList().equals(other.getSymbolsList())) return false; + if (!getSymbolsList() + .equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,129 +434,123 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Word parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Word parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Word parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1.Word parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vision.v1.Word parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1.Word parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Word parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Word parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Word parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Word} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Word) com.google.cloud.vision.v1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Word_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Word.class, com.google.cloud.vision.v1.Word.Builder.class); } @@ -616,17 +560,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -654,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto - .internal_static_google_cloud_vision_v1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override @@ -705,39 +649,38 @@ public com.google.cloud.vision.v1.Word buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Word) { - return mergeFrom((com.google.cloud.vision.v1.Word) other); + return mergeFrom((com.google.cloud.vision.v1.Word)other); } else { super.mergeFrom(other); return this; @@ -770,10 +713,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSymbolsFieldBuilder() - : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSymbolsFieldBuilder() : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -810,52 +752,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -876,8 +804,6 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -896,8 +822,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -908,9 +832,7 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -922,8 +844,6 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -942,8 +862,6 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -951,13 +869,11 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -968,14 +884,11 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -983,17 +896,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1001,13 +911,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, - com.google.cloud.vision.v1.BoundingPoly.Builder, - com.google.cloud.vision.v1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1027,15 +932,12 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1055,21 +957,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1104,8 +1001,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1126,7 +1021,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(
+        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1137,8 +1033,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1163,9 +1057,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1177,8 +1069,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1211,8 +1101,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1234,13 +1122,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1265,14 +1151,11 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1294,41 +1177,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly,
-            com.google.cloud.vision.v1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1.BoundingPoly,
-                com.google.cloud.vision.v1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Symbol,
-            com.google.cloud.vision.v1.Symbol.Builder,
-            com.google.cloud.vision.v1.SymbolOrBuilder>
-        symbolsBuilder_;
+        com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder> symbolsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1344,8 +1218,6 @@ public java.util.List getSymbolsList() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1361,8 +1233,6 @@ public int getSymbolsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1378,8 +1248,6 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1387,7 +1255,8 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder setSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
+    public Builder setSymbols(
+        int index, com.google.cloud.vision.v1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1401,8 +1270,6 @@ public Builder setSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1422,8 +1289,6 @@ public Builder setSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,8 +1310,6 @@ public Builder addSymbols(com.google.cloud.vision.v1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1454,7 +1317,8 @@ public Builder addSymbols(com.google.cloud.vision.v1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder addSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
+    public Builder addSymbols(
+        int index, com.google.cloud.vision.v1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1468,8 +1332,6 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,7 +1339,8 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder addSymbols(com.google.cloud.vision.v1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(
+        com.google.cloud.vision.v1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1488,8 +1351,6 @@ public Builder addSymbols(com.google.cloud.vision.v1.Symbol.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1509,8 +1370,6 @@ public Builder addSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1522,7 +1381,8 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1530,8 +1390,6 @@ public Builder addAllSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1550,8 +1408,6 @@ public Builder clearSymbols() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1570,8 +1426,6 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1579,12 +1433,11 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(int index) {
+    public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(
+        int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1592,16 +1445,14 @@ public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+    public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
+        int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);
-      } else {
+        return symbols_.get(index);  } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1609,8 +1460,8 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index)
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsOrBuilderList() {
+    public java.util.List 
+         getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1618,8 +1469,6 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index)
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1628,12 +1477,10 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index)
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1641,13 +1488,12 @@ public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(int index) {
-      return getSymbolsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(
+        int index) {
+      return getSymbolsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1655,37 +1501,32 @@ public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public java.util.List getSymbolsBuilderList() {
+    public java.util.List 
+         getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Symbol,
-            com.google.cloud.vision.v1.Symbol.Builder,
-            com.google.cloud.vision.v1.SymbolOrBuilder>
+        com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder> 
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1.Symbol,
-                com.google.cloud.vision.v1.Symbol.Builder,
-                com.google.cloud.vision.v1.SymbolOrBuilder>(
-                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder>(
+                symbols_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1693,43 +1534,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1739,12 +1574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Word) private static final com.google.cloud.vision.v1.Word DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Word(); } @@ -1753,16 +1588,16 @@ public static com.google.cloud.vision.v1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1777,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java index f4a12cac7..0061a231c 100644 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface WordOrBuilder - extends +public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Word) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
@@ -59,8 +35,6 @@ public interface WordOrBuilder com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,8 +104,6 @@ public interface WordOrBuilder
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -145,10 +111,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsList();
+  java.util.List 
+      getSymbolsList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -158,8 +123,6 @@ public interface WordOrBuilder
    */
   com.google.cloud.vision.v1.Symbol getSymbols(int index);
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -169,8 +132,6 @@ public interface WordOrBuilder
    */
   int getSymbolsCount();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -178,10 +139,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsOrBuilderList();
+  java.util.List 
+      getSymbolsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -189,17 +149,15 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index);
+  com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto similarity index 100% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto similarity index 99% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto index a70c7fdc8..10464b0e0 100644 --- a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto +++ b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto @@ -654,6 +654,9 @@ message TextDetectionParams { // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence // score for TEXT_DETECTION as well. bool enable_text_detection_confidence_score = 9; + + // A list of advanced OCR options to fine-tune OCR behavior. + repeated string advanced_ocr_options = 11; } // Image context and/or feature-specific parameters. diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto similarity index 100% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto similarity index 100% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto similarity index 100% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto similarity index 100% rename from proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto rename to owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index fa6ebccea..c565722ff 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [START vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] import com.google.cloud.vision.v1.AsyncAnnotateFileRequest; import com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse; import com.google.cloud.vision.v1.ImageAnnotatorClient; @@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr } } } -// [END -// vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [END vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index 35bbea966..849827c96 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] +// [START vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] import com.google.cloud.vision.v1.AnnotateImageRequest; import com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse; import com.google.cloud.vision.v1.ImageAnnotatorClient; @@ -43,5 +42,4 @@ public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputcon } } } -// [END -// vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] +// [END vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 2eb2706cf..47a349f16 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [START vision_v1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] import com.google.cloud.vision.v1.AnnotateImageRequest; import com.google.cloud.vision.v1.BatchAnnotateImagesResponse; import com.google.cloud.vision.v1.ImageAnnotatorClient; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 2d1219663..d044d5d65 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index 46bc25494..f8b06b4b3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [START vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws } } } -// [END -// vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [END vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 394790781..0a9b8168a 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index cb719705c..ba2212011 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringProductname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index f504be803..be1bb73c2 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index 430d92237..a276381ff 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] +// [START vision_v1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] import com.google.cloud.vision.v1.LocationName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSet; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 47a5e1e30..37a524e02 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [START vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr } } } -// [END -// vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [END vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index 29441ca4c..f939351db 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [START vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E } } } -// [END -// vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [END vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 6b7b833f8..5bedcf38f 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.DeleteProductRequest; import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProduct { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 7b275f83c..6b83ae61f 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deleteproduct_productname_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductProductname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 6fa96db52..079adb148 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deleteproduct_string_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index c52da465f..583a7278a 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.DeleteProductSetRequest; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 5868f9d07..9af4eeb6a 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deleteproductset_productsetname_sync] import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetProductsetname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 894d5847c..2256acace 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deleteproductset_string_sync] import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index c7cab3e26..9d8b7ea02 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.DeleteReferenceImageRequest; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImage { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 33162818f..1bc875eb9 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync] import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageReferenceimagename { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index 76c405299..d077d2c7f 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_deletereferenceimage_string_sync] import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 6fa5967f1..6972901a8 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [START vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1.ImportProductSetsResponse; import com.google.cloud.vision.v1.LocationName; @@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig } } } -// [END -// vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [END vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index c24df2aef..9d55154a4 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [START vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1.ImportProductSetsResponse; import com.google.cloud.vision.v1.LocationName; @@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr } } } -// [END -// vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [END vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java index 44153e164..3cf5383d2 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.LocationName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.PurgeProductsRequest; +import com.google.protobuf.Empty; public class SyncPurgeProducts { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index 84e592594..e49b08797 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_purgeproducts_locationname_sync] import com.google.cloud.vision.v1.LocationName; import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncPurgeProductsLocationname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index 91950a97d..a7d58c007 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java @@ -19,6 +19,7 @@ // [START vision_v1_generated_productsearchclient_purgeproducts_string_sync] import com.google.cloud.vision.v1.LocationName; import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncPurgeProductsString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index cec0e738d..170dfa484 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; import com.google.cloud.vision.v1.RemoveProductFromProductSetRequest; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index 24c3db840..32ba19339 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [START vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th } } } -// [END -// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [END vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 30c9d31af..4a02869c3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [START vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameString { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws } } } -// [END -// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [END vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 92% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index e42100b70..e8133031c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1.samples; -// [START -// vision_v1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] +// [START vision_v1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringProductname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index adcd731ef..76eead3e5 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1.ProductName; import com.google.cloud.vision.v1.ProductSearchClient; import com.google.cloud.vision.v1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java index 8d16fb840..2db999853 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java @@ -51,13 +51,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java similarity index 95% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java index 058193a73..357c4c012 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p1beta1.stub.ImageAnnotatorStubSettings; @@ -39,9 +40,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java index 424d51e69..a5c2f5dd0 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java @@ -52,9 +52,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java diff --git a/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java similarity index 50% rename from grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java rename to owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java index a752e22d7..142018868 100644 --- a/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -37,186 +20,154 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p1beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
-            com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
-        getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
-              getBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-                      .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorBlockingStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ImageAnnotatorFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorFutureStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { + public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .build(); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub - extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -227,31 +178,26 @@ protected ImageAnnotatorBlockingStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -262,15 +208,12 @@ protected ImageAnnotatorFutureStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse> - batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } @@ -278,11 +221,11 @@ protected ImageAnnotatorFutureStub build( private static final int METHODID_BATCH_ANNOTATE_IMAGES = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -296,11 +239,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages( - (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>) - responseObserver); + serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -318,9 +258,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -362,12 +301,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .build(); } } } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java index 37bebc618..f0c8b5760 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateImageRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,56 +55,48 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p1beta1.Image.Builder subBuilder = null;
-              if (image_ != null) {
-                subBuilder = image_.toBuilder();
-              }
-              image_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p1beta1.Image.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(image_);
-                image_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p1beta1.Image.Builder subBuilder = null;
+            if (image_ != null) {
+              subBuilder = image_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p1beta1.Feature.parser(), extensionRegistry));
-              break;
+            image_ = input.readMessage(com.google.cloud.vision.v1p1beta1.Image.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(image_);
+              image_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.vision.v1p1beta1.ImageContext.Builder subBuilder = null;
-              if (imageContext_ != null) {
-                subBuilder = imageContext_.toBuilder();
-              }
-              imageContext_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p1beta1.ImageContext.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(imageContext_);
-                imageContext_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.vision.v1p1beta1.Feature.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.vision.v1p1beta1.ImageContext.Builder subBuilder = null;
+            if (imageContext_ != null) {
+              subBuilder = imageContext_.toBuilder();
+            }
+            imageContext_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageContext.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(imageContext_);
+              imageContext_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -129,7 +104,8 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -138,33 +114,27 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class,
-            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p1beta1.Image image_;
   /**
-   *
-   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -172,14 +142,11 @@ public boolean hasImage() { return image_ != null; } /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -187,8 +154,6 @@ public com.google.cloud.vision.v1p1beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; } /** - * - * *
    * The image to be processed.
    * 
@@ -203,8 +168,6 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Requested features.
    * 
@@ -216,8 +179,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Requested features.
    * 
@@ -225,13 +186,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -243,8 +202,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Requested features.
    * 
@@ -256,8 +213,6 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Requested features.
    * 
@@ -265,21 +220,19 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p1beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -287,25 +240,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image.
    * 
@@ -318,7 +264,6 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -350,13 +296,16 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,22 +315,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other = - (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,104 +363,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -517,23 +460,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class,
-              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.newBuilder()
@@ -541,17 +482,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,9 +518,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -598,8 +539,7 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p1beta1.AnnotateImageRequest result =
-          new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p1beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -628,39 +568,38 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()) return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -691,10 +629,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -722,8 +659,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -732,52 +668,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p1beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Image,
-            com.google.cloud.vision.v1p1beta1.Image.Builder,
-            com.google.cloud.vision.v1p1beta1.ImageOrBuilder>
-        imageBuilder_;
+        com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder> imageBuilder_;
     /**
-     *
-     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return The image. */ public com.google.cloud.vision.v1p1beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null - ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** - * - * *
      * The image to be processed.
      * 
@@ -798,15 +720,14 @@ public Builder setImage(com.google.cloud.vision.v1p1beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; */ - public Builder setImage(com.google.cloud.vision.v1p1beta1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.vision.v1p1beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -817,8 +738,6 @@ public Builder setImage(com.google.cloud.vision.v1p1beta1.Image.Builder builderF return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -829,9 +748,7 @@ public Builder mergeImage(com.google.cloud.vision.v1p1beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p1beta1.Image.newBuilder(image_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -843,8 +760,6 @@ public Builder mergeImage(com.google.cloud.vision.v1p1beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -863,8 +778,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -872,13 +785,11 @@ public Builder clearImage() { * .google.cloud.vision.v1p1beta1.Image image = 1; */ public com.google.cloud.vision.v1p1beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * The image to be processed.
      * 
@@ -889,14 +800,11 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null - ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? + com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; } } /** - * - * *
      * The image to be processed.
      * 
@@ -904,41 +812,32 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p1beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Image, - com.google.cloud.vision.v1p1beta1.Image.Builder, - com.google.cloud.vision.v1p1beta1.ImageOrBuilder> + com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Image, - com.google.cloud.vision.v1p1beta1.Image.Builder, - com.google.cloud.vision.v1p1beta1.ImageOrBuilder>( - getImage(), getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, - com.google.cloud.vision.v1p1beta1.Feature.Builder, - com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Requested features.
      * 
@@ -953,8 +852,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Requested features.
      * 
@@ -969,8 +866,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Requested features.
      * 
@@ -985,15 +880,14 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p1beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,8 +901,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
@@ -1027,8 +919,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1049,15 +939,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p1beta1.Feature value) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p1beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1071,15 +960,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p1beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p1beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1090,8 +978,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p1beta1.Feature.Builder bui return this; } /** - * - * *
      * Requested features.
      * 
@@ -1110,8 +996,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1122,7 +1006,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1130,8 +1015,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1149,8 +1032,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Requested features.
      * 
@@ -1168,44 +1049,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1213,8 +1089,6 @@ public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Requested features.
      * 
@@ -1222,48 +1096,42 @@ public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, - com.google.cloud.vision.v1p1beta1.Feature.Builder, - com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, - com.google.cloud.vision.v1p1beta1.Feature.Builder, - com.google.cloud.vision.v1p1beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1271,47 +1139,34 @@ public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p1beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, - com.google.cloud.vision.v1p1beta1.ImageContext.Builder, - com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p1beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1332,8 +1187,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p1beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1352,8 +1205,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1364,9 +1215,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p1beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1378,8 +1227,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p1beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1398,8 +1245,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1407,13 +1252,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p1beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1424,14 +1267,11 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1439,24 +1279,21 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, - com.google.cloud.vision.v1p1beta1.ImageContext.Builder, - com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, - com.google.cloud.vision.v1p1beta1.ImageContext.Builder, - com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1466,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p1beta1.AnnotateImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(); } @@ -1480,16 +1317,16 @@ public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,4 +1341,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java index f66b53c99..20070dd68 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface AnnotateImageRequestOrBuilder - extends +public interface AnnotateImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; - * * @return The image. */ com.google.cloud.vision.v1p1beta1.Image getImage(); /** - * - * *
    * The image to be processed.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateImageRequestOrBuilder com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateImageRequestOrBuilder */ com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index); /** - * - * *
    * Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AnnotateImageRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p1beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java similarity index 77% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java index ded3ff0de..9c554e4d2 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateImageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -47,15 +29,16 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,175 +58,136 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - faceAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + faceAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.FaceAnnotation.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + labelAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - labelAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + textAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - textAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); - } - safeSearchAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); } - case 66: - { - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.ImageProperties.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); - } - - break; + imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); } - case 74: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - break; + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 90: { + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 98: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); } - case 106: - { - com.google.cloud.vision.v1p1beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.vision.v1p1beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + webDetection_ = input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -251,7 +195,8 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -272,27 +217,22 @@ private AnnotateImageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -304,8 +244,6 @@ public java.util.List getFaceA return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -313,13 +251,11 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -331,8 +267,6 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -344,8 +278,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -361,8 +293,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -370,13 +300,10 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -384,13 +311,11 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -402,8 +327,6 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -415,8 +338,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -424,16 +345,14 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -441,13 +360,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -455,13 +371,11 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -473,8 +387,6 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -486,8 +398,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -503,8 +413,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -512,13 +420,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -526,13 +431,11 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -544,8 +447,6 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -557,8 +458,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -574,8 +473,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -583,13 +480,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -597,13 +491,11 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -615,8 +507,6 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -628,8 +518,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -645,8 +533,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p1beta1.TextAnnotation fullTextAnnotation_; /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -655,7 +541,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -663,8 +548,6 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -673,18 +556,13 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -695,22 +573,18 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder
-      getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -718,25 +592,18 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -744,22 +611,18 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p1beta1.ImageProperties imagePropertiesAnnotation_; /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -767,25 +630,18 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -793,22 +649,18 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p1beta1.CropHintsAnnotation cropHintsAnnotation_; /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -816,25 +668,18 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -842,22 +687,18 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p1beta1.WebDetection webDetection_; /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -865,25 +706,18 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection() { - return webDetection_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -898,8 +732,6 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -907,7 +739,6 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ @java.lang.Override @@ -915,8 +746,6 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -924,7 +753,6 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ @java.lang.Override @@ -932,8 +760,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -948,7 +774,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -960,7 +785,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1004,42 +830,48 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getImagePropertiesAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getWebDetection());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1049,43 +881,52 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other =
-        (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
-    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList()
+        .equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList()
+        .equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList()
+        .equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList()
+        .equals(other.getLabelAnnotationsList())) return false;
+    if (!getTextAnnotationsList()
+        .equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation()
+          .equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation()
+          .equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
-        return false;
+      if (!getImagePropertiesAnnotation()
+          .equals(other.getImagePropertiesAnnotation())) return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation()
+          .equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection().equals(other.getWebDetection())) return false;
+      if (!getWebDetection()
+          .equals(other.getWebDetection())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1148,127 +989,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p1beta1.AnnotateImageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.AnnotateImageResponse) com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.newBuilder() @@ -1276,13 +1107,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1290,7 +1122,6 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1364,9 +1195,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1385,8 +1216,7 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse result = - new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1471,39 +1301,38 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageResponse)other); } else { super.mergeFrom(other); return this; @@ -1511,8 +1340,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()) return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1531,10 +1359,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFaceAnnotationsFieldBuilder() : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1558,10 +1385,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarkAnnotationsFieldBuilder() - : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarkAnnotationsFieldBuilder() : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1585,10 +1411,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogoAnnotationsFieldBuilder() - : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogoAnnotationsFieldBuilder() : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1612,10 +1437,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1639,10 +1463,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTextAnnotationsFieldBuilder() - : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1685,8 +1508,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1695,38 +1517,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList( - faceAnnotations_); + faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsList() { + public java.util.List getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1734,8 +1546,6 @@ private void ensureFaceAnnotationsIsMutable() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1750,8 +1560,6 @@ public int getFaceAnnotationsCount() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1766,8 +1574,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int i } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1789,8 +1595,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1809,8 +1613,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1831,8 +1633,6 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p1beta1.FaceAnnotati return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1854,8 +1654,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1874,8 +1672,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1894,8 +1690,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1906,7 +1700,8 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -1914,8 +1709,6 @@ public Builder addAllFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1933,8 +1726,6 @@ public Builder clearFaceAnnotations() { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1952,8 +1743,6 @@ public Builder removeFaceAnnotations(int index) { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1965,8 +1754,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1976,22 +1763,19 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); - } else { + return faceAnnotations_.get(index); } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -1999,8 +1783,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2008,12 +1790,10 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2022,34 +1802,26 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2059,36 +1831,26 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List - landmarkAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List landmarkAnnotations_ = + java.util.Collections.emptyList(); private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList( - landmarkAnnotations_); + landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> - landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2096,14 +1858,11 @@ private void ensureLandmarkAnnotationsIsMutable() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2113,14 +1872,11 @@ public int getLandmarkAnnotationsCount() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2130,14 +1886,11 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { @@ -2154,14 +1907,11 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -2175,17 +1925,13 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public Builder addLandmarkAnnotations( - com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2199,14 +1945,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { @@ -2223,14 +1966,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -2244,14 +1984,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -2265,20 +2002,18 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2286,14 +2021,11 @@ public Builder addAllLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2306,14 +2038,11 @@ public Builder clearLandmarkAnnotations() { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2326,49 +2055,39 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); - } else { + return landmarkAnnotations_.get(index); } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2376,62 +2095,45 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLandmarkAnn } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder - addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2442,34 +2144,25 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList( - logoAnnotations_); + logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> - logoAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2477,8 +2170,6 @@ private void ensureLogoAnnotationsIsMutable() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2493,8 +2184,6 @@ public int getLogoAnnotationsCount() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2509,8 +2198,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2532,8 +2219,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2552,8 +2237,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2574,8 +2257,6 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnota return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2597,8 +2278,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2617,8 +2296,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2637,8 +2314,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2649,7 +2324,8 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2657,8 +2333,6 @@ public Builder addAllLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2676,8 +2350,6 @@ public Builder clearLogoAnnotations() { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2695,8 +2367,6 @@ public Builder removeLogoAnnotations(int index) { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2708,8 +2378,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2719,22 +2387,19 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); - } else { + return logoAnnotations_.get(index); } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2742,8 +2407,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2751,12 +2414,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2765,35 +2426,26 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2804,34 +2456,25 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList( - labelAnnotations_); + labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> - labelAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2839,8 +2482,6 @@ private void ensureLabelAnnotationsIsMutable() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2855,8 +2496,6 @@ public int getLabelAnnotationsCount() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2871,8 +2510,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(in } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2894,8 +2531,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2914,8 +2549,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2936,8 +2569,6 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnot return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2959,8 +2590,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2979,8 +2608,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2999,8 +2626,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3011,7 +2636,8 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -3019,8 +2645,6 @@ public Builder addAllLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3038,8 +2662,6 @@ public Builder clearLabelAnnotations() { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3057,8 +2679,6 @@ public Builder removeLabelAnnotations(int index) { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3070,8 +2690,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3081,22 +2699,19 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); - } else { + return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3104,8 +2719,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3113,12 +2726,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3127,35 +2738,26 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3166,34 +2768,25 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnota } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = - new java.util.ArrayList( - textAnnotations_); + textAnnotations_ = new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> - textAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3201,8 +2794,6 @@ private void ensureTextAnnotationsIsMutable() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3217,8 +2808,6 @@ public int getTextAnnotationsCount() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3233,8 +2822,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3256,8 +2843,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3276,8 +2861,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3298,8 +2881,6 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnota return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3321,8 +2902,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3341,8 +2920,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3361,8 +2938,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3373,7 +2948,8 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3381,8 +2957,6 @@ public Builder addAllTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3400,8 +2974,6 @@ public Builder clearTextAnnotations() { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3419,8 +2991,6 @@ public Builder removeTextAnnotations(int index) { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3432,8 +3002,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3443,22 +3011,19 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); - } else { + return textAnnotations_.get(index); } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3466,8 +3031,6 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3475,12 +3038,10 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3489,35 +3050,26 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3529,13 +3081,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p1beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation, - com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> - fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3544,15 +3091,12 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3561,21 +3105,16 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3599,8 +3138,6 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnnot
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3622,8 +3159,6 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3637,9 +3172,7 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-              com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3651,8 +3184,6 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnn
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3674,8 +3205,6 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3686,13 +3215,11 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-
+      
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3702,19 +3229,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder
-        getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null
-            ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance()
-            : fullTextAnnotation_;
+        return fullTextAnnotation_ == null ?
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3725,17 +3248,14 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnot
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.TextAnnotation,
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder,
-            com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>
+        com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> 
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.TextAnnotation,
-                com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder,
-                com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(), getParentForChildren(), isClean());
+        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(),
+                getParentForChildren(),
+                isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3743,55 +3263,41 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnot
 
     private com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation,
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder,
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>
-        safeSearchAnnotationBuilder_;
+        com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
     /**
-     *
-     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation( - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3805,8 +3311,6 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3825,23 +3329,17 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation( - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder( - safeSearchAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3853,8 +3351,6 @@ public Builder mergeSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3873,42 +3369,33 @@ public Builder clearSafeSearchAnnotation() { return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder - getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3916,17 +3403,14 @@ public Builder clearSafeSearchAnnotation() { * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), getParentForChildren(), isClean()); + safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), + getParentForChildren(), + isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -3934,55 +3418,41 @@ public Builder clearSafeSearchAnnotation() { private com.google.cloud.vision.v1p1beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> - imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation( - com.google.cloud.vision.v1p1beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3996,8 +3466,6 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4016,23 +3484,17 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation( - com.google.cloud.vision.v1p1beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder( - imagePropertiesAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4044,8 +3506,6 @@ public Builder mergeImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4064,42 +3524,33 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p1beta1.ImageProperties.Builder - getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? + com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4107,17 +3558,14 @@ public Builder clearImagePropertiesAnnotation() { * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), getParentForChildren(), isClean()); + imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), + getParentForChildren(), + isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4125,55 +3573,41 @@ public Builder clearImagePropertiesAnnotation() { private com.google.cloud.vision.v1p1beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> - cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4187,8 +3621,6 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4207,22 +3639,17 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4234,8 +3661,6 @@ public Builder mergeCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4254,42 +3679,33 @@ public Builder clearCropHintsAnnotation() { return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder - getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4297,17 +3713,14 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), getParentForChildren(), isClean()); + cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), + getParentForChildren(), + isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -4315,47 +3728,34 @@ public Builder clearCropHintsAnnotation() { private com.google.cloud.vision.v1p1beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, - com.google.cloud.vision.v1p1beta1.WebDetection.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> - webDetectionBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> webDetectionBuilder_; /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ public com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4376,8 +3776,6 @@ public Builder setWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection va return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4396,8 +3794,6 @@ public Builder setWebDetection( return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4408,9 +3804,7 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder(webDetection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); } else { webDetection_ = value; } @@ -4422,8 +3816,6 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4442,8 +3834,6 @@ public Builder clearWebDetection() { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4451,13 +3841,11 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p1beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4468,14 +3856,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? + com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4483,17 +3868,14 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, - com.google.cloud.vision.v1p1beta1.WebDetection.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, - com.google.cloud.vision.v1p1beta1.WebDetection.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder>( - getWebDetection(), getParentForChildren(), isClean()); + webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder>( + getWebDetection(), + getParentForChildren(), + isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -4501,11 +3883,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4513,15 +3892,12 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr
      * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4529,7 +3905,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -4540,8 +3915,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4564,8 +3937,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4574,7 +3945,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4585,8 +3957,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4598,7 +3968,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4610,8 +3981,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4632,8 +4001,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4643,13 +4010,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4662,12 +4027,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4677,21 +4041,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4701,12 +4065,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p1beta1.AnnotateImageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse();
   }
@@ -4715,16 +4079,16 @@ public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateImageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateImageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateImageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateImageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4739,4 +4103,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
similarity index 88%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
index 29bcb0f3c..1ee0a0448 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
-public interface AnnotateImageResponseOrBuilder
-    extends
+public interface AnnotateImageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - java.util.List getFaceAnnotationsList(); + java.util.List + getFaceAnnotationsList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -44,8 +25,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int index); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -54,40 +33,34 @@ public interface AnnotateImageResponseOrBuilder */ int getFaceAnnotationsCount(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List getLandmarkAnnotationsList(); + java.util.List + getLandmarkAnnotationsList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,8 +69,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations(int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -106,19 +77,15 @@ public interface AnnotateImageResponseOrBuilder */ int getLandmarkAnnotationsCount(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -129,18 +96,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List getLogoAnnotationsList(); + java.util.List + getLogoAnnotationsList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -149,8 +113,6 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -159,19 +121,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -182,18 +140,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - java.util.List getLabelAnnotationsList(); + java.util.List + getLabelAnnotationsList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -202,8 +157,6 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -212,19 +165,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -235,18 +184,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - java.util.List getTextAnnotationsList(); + java.util.List + getTextAnnotationsList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -255,8 +201,6 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -265,19 +209,15 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ int getTextAnnotationsCount(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -288,8 +228,6 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -298,13 +236,10 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -313,13 +248,10 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -332,104 +264,78 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -439,32 +345,24 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -474,8 +372,6 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -483,13 +379,10 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -497,13 +390,10 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
index ba7efea32..2039cb820 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
- *
- *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -108,95 +87,72 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -205,7 +161,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -231,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.newBuilder() @@ -399,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -445,8 +391,7 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,39 +410,38 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other) { - if (other - == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -526,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -554,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -605,15 +533,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -623,15 +547,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -641,15 +561,11 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int in } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { @@ -666,15 +582,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -688,15 +600,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -712,15 +620,11 @@ public Builder addRequests(com.google.cloud.vision.v1p1beta1.AnnotateImageReques return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { @@ -737,15 +641,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -759,15 +659,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -781,22 +677,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -804,15 +696,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -825,15 +713,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -846,52 +730,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -899,72 +770,56 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(); } @@ -989,16 +843,16 @@ public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..31d4013e1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/image_annotator.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface BatchAnnotateImagesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java index 600257f02..26dfffc1b 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -136,13 +110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -150,13 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -168,8 +137,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -181,8 +148,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -196,7 +161,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -222,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.newBuilder() @@ -390,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -436,8 +391,7 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +410,38 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -496,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other) { - if (other - == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -517,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -545,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,38 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -595,8 +533,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -611,8 +547,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -627,8 +561,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -650,8 +582,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,8 +589,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -671,8 +600,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -693,8 +620,6 @@ public Builder addResponses(com.google.cloud.vision.v1p1beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -716,8 +641,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -736,8 +659,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -745,8 +666,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -757,8 +677,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -766,11 +684,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -778,8 +696,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -797,8 +713,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -816,8 +730,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -829,8 +741,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -840,23 +750,19 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -864,8 +770,6 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -873,12 +777,10 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -887,43 +789,37 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(); } @@ -948,16 +843,16 @@ public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +867,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java index b344890fb..564cfec86 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface BatchAnnotateImagesResponseOrBuilder - extends +public interface BatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -44,8 +25,6 @@ public interface BatchAnnotateImagesResponseOrBuilder */ com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -54,24 +33,21 @@ public interface BatchAnnotateImagesResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java similarity index 77% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java index 6b9735236..bc80bf611 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Block} */ -public final class Block extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Block extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Block) BlockOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -44,15 +26,16 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,71 +55,59 @@ private Block( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paragraphs_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Paragraph.parser(), extensionRegistry)); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - blockType_ = rawValue; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 45: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + paragraphs_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Paragraph.parser(), extensionRegistry)); + break; + } + case 32: { + int rawValue = input.readEnum(); + + blockType_ = rawValue; + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +115,8 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -153,35 +125,29 @@ private Block( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Block.class, - com.google.cloud.vision.v1p1beta1.Block.Builder.class); + com.google.cloud.vision.v1p1beta1.Block.class, com.google.cloud.vision.v1p1beta1.Block.Builder.class); } /** - * - * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.Block.BlockType} */ - public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown block type.
      * 
@@ -190,8 +156,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Regular text block.
      * 
@@ -200,8 +164,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(1), /** - * - * *
      * Table block.
      * 
@@ -210,8 +172,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(2), /** - * - * *
      * Image block.
      * 
@@ -220,8 +180,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ PICTURE(3), /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -230,8 +188,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ RULER(4), /** - * - * *
      * Barcode block.
      * 
@@ -243,8 +199,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown block type.
      * 
@@ -253,8 +207,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Regular text block.
      * 
@@ -263,8 +215,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 1; /** - * - * *
      * Table block.
      * 
@@ -273,8 +223,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 2; /** - * - * *
      * Image block.
      * 
@@ -283,8 +231,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PICTURE_VALUE = 3; /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -293,8 +239,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RULER_VALUE = 4; /** - * - * *
      * Barcode block.
      * 
@@ -303,6 +247,7 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BARCODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -327,55 +272,52 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return TEXT; - case 2: - return TABLE; - case 3: - return PICTURE; - case 4: - return RULER; - case 5: - return BARCODE; - default: - return null; + case 0: return UNKNOWN; + case 1: return TEXT; + case 2: return TABLE; + case 3: return PICTURE; + case 4: return RULER; + case 5: return BARCODE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlockType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p1beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -395,14 +337,11 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -410,25 +349,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the block.
    * 
@@ -436,16 +368,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -465,7 +394,6 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -473,8 +401,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -494,18 +420,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -534,8 +455,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -547,8 +466,6 @@ public java.util.List getParagraphs return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -556,13 +473,11 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -574,8 +489,6 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -587,8 +500,6 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -596,57 +507,46 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Block.BlockType result = - com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p1beta1.Block.BlockType result = com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -655,7 +555,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -667,7 +566,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -693,19 +593,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p1beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -715,7 +620,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Block)) { return super.equals(obj); @@ -724,16 +629,20 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getParagraphsList().equals(other.getParagraphsList())) return false; + if (!getParagraphsList() + .equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -760,133 +669,125 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Block} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Block) com.google.cloud.vision.v1p1beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Block.class, - com.google.cloud.vision.v1p1beta1.Block.Builder.class); + com.google.cloud.vision.v1p1beta1.Block.class, com.google.cloud.vision.v1p1beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Block.newBuilder() @@ -894,17 +795,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -934,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override @@ -955,8 +856,7 @@ public com.google.cloud.vision.v1p1beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block buildPartial() { - com.google.cloud.vision.v1p1beta1.Block result = - new com.google.cloud.vision.v1p1beta1.Block(this); + com.google.cloud.vision.v1p1beta1.Block result = new com.google.cloud.vision.v1p1beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -987,39 +887,38 @@ public com.google.cloud.vision.v1p1beta1.Block buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Block) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Block)other); } else { super.mergeFrom(other); return this; @@ -1052,10 +951,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParagraphsFieldBuilder() - : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParagraphsFieldBuilder() : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -1095,60 +993,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,8 +1045,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1182,22 +1063,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1209,8 +1085,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1229,42 +1103,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1272,17 +1137,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1290,13 +1152,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1316,15 +1173,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1344,21 +1198,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1393,8 +1242,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1427,8 +1274,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1453,9 +1298,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1467,8 +1310,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1501,8 +1342,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1524,13 +1363,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1555,14 +1392,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1584,42 +1418,32 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ =
-            new java.util.ArrayList(paragraphs_);
+        paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Paragraph,
-            com.google.cloud.vision.v1p1beta1.Paragraph.Builder,
-            com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>
-        paragraphsBuilder_;
+        com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> paragraphsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1634,8 +1458,6 @@ public java.util.List getParagraphs } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1650,8 +1472,6 @@ public int getParagraphsCount() { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1666,15 +1486,14 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { + public Builder setParagraphs( + int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1688,8 +1507,6 @@ public Builder setParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1708,8 +1525,6 @@ public Builder setParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1730,15 +1545,14 @@ public Builder addParagraphs(com.google.cloud.vision.v1p1beta1.Paragraph value) return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { + public Builder addParagraphs( + int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1752,8 +1566,6 @@ public Builder addParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1772,8 +1584,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1792,8 +1602,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1804,7 +1612,8 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1812,8 +1621,6 @@ public Builder addAllParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1831,8 +1638,6 @@ public Builder clearParagraphs() { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1850,44 +1655,39 @@ public Builder removeParagraphs(int index) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.Paragraph.Builder getParagraphsBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Paragraph.Builder getParagraphsBuilder( + int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); - } else { + return paragraphs_.get(index); } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1895,8 +1695,6 @@ public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1904,48 +1702,42 @@ public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder(int index) { - return getParagraphsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder( + int index) { + return getParagraphsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Paragraph, - com.google.cloud.vision.v1p1beta1.Paragraph.Builder, - com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Paragraph, - com.google.cloud.vision.v1p1beta1.Paragraph.Builder, - com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>( - paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>( + paragraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1953,67 +1745,51 @@ public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Block.BlockType result = - com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); - return result == null - ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p1beta1.Block.BlockType result = com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); + return result == null ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED : result; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @param value The blockType to set. * @return This builder for chaining. */ @@ -2021,39 +1797,33 @@ public Builder setBlockType(com.google.cloud.vision.v1p1beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -2061,43 +1831,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2107,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Block) private static final com.google.cloud.vision.v1p1beta1.Block DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Block(); } @@ -2121,16 +1885,16 @@ public static com.google.cloud.vision.v1p1beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2145,4 +1909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java index aa8c4b48a..8bd118014 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface BlockOrBuilder - extends +public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Block) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
@@ -59,8 +35,6 @@ public interface BlockOrBuilder com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface BlockOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - java.util.List getParagraphsList(); + java.util.List + getParagraphsList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -156,8 +121,6 @@ public interface BlockOrBuilder */ com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -166,61 +129,49 @@ public interface BlockOrBuilder */ int getParagraphsCount(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType(); /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java index d6a5d1279..7526ac194 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BoundingPoly} */ -public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BoundingPoly) BoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vertices_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Vertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -105,27 +87,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.GeometryProto - .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.GeometryProto - .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BoundingPoly.class, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p1beta1.BoundingPoly.class, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -137,8 +114,6 @@ public java.util.List getVerticesList( return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -146,13 +121,11 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -164,8 +137,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BoundingPoly other = - (com.google.cloud.vision.v1p1beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p1beta1.BoundingPoly other = (com.google.cloud.vision.v1p1beta1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,127 +227,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BoundingPoly) com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.GeometryProto - .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.GeometryProto - .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BoundingPoly.class, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p1beta1.BoundingPoly.class, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder() @@ -384,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.GeometryProto - .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -429,8 +391,7 @@ public com.google.cloud.vision.v1p1beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p1beta1.BoundingPoly result = - new com.google.cloud.vision.v1p1beta1.BoundingPoly(this); + com.google.cloud.vision.v1p1beta1.BoundingPoly result = new com.google.cloud.vision.v1p1beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -449,39 +410,38 @@ public com.google.cloud.vision.v1p1beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BoundingPoly) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -508,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -545,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, - com.google.cloud.vision.v1p1beta1.Vertex.Builder, - com.google.cloud.vision.v1p1beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -581,8 +533,6 @@ public java.util.List getVerticesList( } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -597,8 +547,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -613,15 +561,14 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.vision.v1p1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,8 +582,6 @@ public Builder setVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -655,8 +600,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -677,15 +620,14 @@ public Builder addVertices(com.google.cloud.vision.v1p1beta1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.vision.v1p1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,15 +641,14 @@ public Builder addVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.vision.v1p1beta1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.vision.v1p1beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -718,8 +659,6 @@ public Builder addVertices(com.google.cloud.vision.v1p1beta1.Vertex.Builder buil return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -738,8 +677,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -750,7 +687,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -758,8 +696,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -777,8 +713,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -796,44 +730,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -841,8 +770,6 @@ public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(in } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -850,55 +777,49 @@ public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, - com.google.cloud.vision.v1p1beta1.Vertex.Builder, - com.google.cloud.vision.v1p1beta1.VertexOrBuilder> + com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, - com.google.cloud.vision.v1p1beta1.Vertex.Builder, - com.google.cloud.vision.v1p1beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -908,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BoundingPoly) private static final com.google.cloud.vision.v1p1beta1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BoundingPoly(); } @@ -922,16 +843,16 @@ public static com.google.cloud.vision.v1p1beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java index d995da91c..04377a3e7 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,24 +33,21 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java similarity index 72% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java index 01c0679a0..a63e2cd9d 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.ColorInfo}
  */
-public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ColorInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ColorInfo)
     ColorInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ColorInfo() {}
+  private ColorInfo() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,37 +53,36 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Color.Builder subBuilder = null;
-              if (color_ != null) {
-                subBuilder = color_.toBuilder();
-              }
-              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(color_);
-                color_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 21:
-            {
-              score_ = input.readFloat();
-              break;
+          case 10: {
+            com.google.type.Color.Builder subBuilder = null;
+            if (color_ != null) {
+              subBuilder = color_.toBuilder();
             }
-          case 29:
-            {
-              pixelFraction_ = input.readFloat();
-              break;
+            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(color_);
+              color_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 21: {
+
+            score_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            pixelFraction_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,39 +90,34 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.ColorInfo.class,
-            com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p1beta1.ColorInfo.class, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
-   *
-   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ @java.lang.Override @@ -147,14 +125,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
    * RGB components of the color.
    * 
@@ -178,14 +151,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -196,15 +166,12 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -213,7 +180,6 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -245,13 +212,16 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,22 +231,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ColorInfo other = - (com.google.cloud.vision.v1p1beta1.ColorInfo) obj; + com.google.cloud.vision.v1p1beta1.ColorInfo other = (com.google.cloud.vision.v1p1beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,112 +265,107 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -406,23 +373,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.ColorInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ColorInfo)
       com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.ColorInfo.class,
-              com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p1beta1.ColorInfo.class, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.ColorInfo.newBuilder()
@@ -430,15 +395,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -477,8 +443,7 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p1beta1.ColorInfo result =
-          new com.google.cloud.vision.v1p1beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p1beta1.ColorInfo result = new com.google.cloud.vision.v1p1beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -494,39 +459,38 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.ColorInfo) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.ColorInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -575,31 +539,24 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
-        colorBuilder_;
+        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
     /**
-     *
-     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return The color. */ public com.google.type.Color getColor() { @@ -610,8 +567,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
      * RGB components of the color.
      * 
@@ -632,15 +587,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor(com.google.type.Color.Builder builderForValue) { + public Builder setColor( + com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -651,8 +605,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -662,7 +614,8 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = + com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -674,8 +627,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -694,8 +645,6 @@ public Builder clearColor() { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -703,13 +652,11 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
      * RGB components of the color.
      * 
@@ -720,12 +667,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? + com.google.type.Color.getDefaultInstance() : color_; } } /** - * - * *
      * RGB components of the color.
      * 
@@ -733,29 +679,26 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); + colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getColor(), + getParentForChildren(), + isClean()); color_ = null; } return colorBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -763,52 +706,43 @@ public float getScore() { return score_; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_; + private float pixelFraction_ ; /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -816,45 +750,39 @@ public float getPixelFraction() { return pixelFraction_; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ColorInfo) private static final com.google.cloud.vision.v1p1beta1.ColorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ColorInfo(); } @@ -878,16 +806,16 @@ public static com.google.cloud.vision.v1p1beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java index 0f0034da5..774d3b205 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ColorInfoOrBuilder - extends +public interface ColorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
    * RGB components of the color.
    * 
@@ -59,28 +35,22 @@ public interface ColorInfoOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java similarity index 72% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java index 99d6eeeb3..a3e3f94b7 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHint} */ -public final class CropHint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHint) CropHintOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CropHint() {} + private CropHint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,39 +52,36 @@ private CropHint( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; + case 10: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 29: - { - importanceFraction_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 29: { + + importanceFraction_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +89,35 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHint.class, - com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHint.class, com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -149,26 +125,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -184,14 +153,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -202,15 +168,12 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -219,7 +182,6 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -251,13 +214,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,22 +233,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHint other = - (com.google.cloud.vision.v1p1beta1.CropHint) obj; + com.google.cloud.vision.v1p1beta1.CropHint other = (com.google.cloud.vision.v1p1beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,135 +267,128 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHint) com.google.cloud.vision.v1p1beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHint.class, - com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHint.class, com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHint.newBuilder() @@ -435,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override @@ -482,8 +444,7 @@ public com.google.cloud.vision.v1p1beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHint result = - new com.google.cloud.vision.v1p1beta1.CropHint(this); + com.google.cloud.vision.v1p1beta1.CropHint result = new com.google.cloud.vision.v1p1beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -499,39 +460,38 @@ public com.google.cloud.vision.v1p1beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHint) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHint)other); } else { super.mergeFrom(other); return this; @@ -580,49 +540,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -644,8 +591,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -665,8 +610,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -678,9 +621,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -692,8 +633,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -713,8 +652,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -723,13 +660,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -741,14 +676,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -757,32 +689,26 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -790,52 +716,43 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_; + private float importanceFraction_ ; /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -843,45 +760,39 @@ public float getImportanceFraction() { return importanceFraction_; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHint) private static final com.google.cloud.vision.v1p1beta1.CropHint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHint(); } @@ -905,16 +816,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java index 337fbd106..05a68b2a5 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintOrBuilder - extends +public interface CropHintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -62,28 +38,22 @@ public interface CropHintOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java index 0c4bca8c2..fdbde2545 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cropHints_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.CropHint.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cropHints_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.CropHint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -105,27 +87,22 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** - * - * *
    * Crop hint results.
    * 
@@ -137,8 +114,6 @@ public java.util.List getCropHintsLi return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -146,13 +121,11 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -164,8 +137,6 @@ public int getCropHintsCount() { return cropHints_.size(); } /** - * - * *
    * Crop hint results.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** - * - * *
    * Crop hint results.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other = - (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) obj; - if (!getCropHintsList().equals(other.getCropHintsList())) return false; + if (!getCropHintsList() + .equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHintsAnnotation) com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation result = - new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance()) return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCropHintsFieldBuilder() - : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCropHintsFieldBuilder() : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = - new java.util.ArrayList(cropHints_); + cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, - com.google.cloud.vision.v1p1beta1.CropHint.Builder, - com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> - cropHintsBuilder_; + com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> cropHintsBuilder_; /** - * - * *
      * Crop hint results.
      * 
@@ -585,8 +533,6 @@ public java.util.List getCropHintsLi } } /** - * - * *
      * Crop hint results.
      * 
@@ -601,8 +547,6 @@ public int getCropHintsCount() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -617,15 +561,14 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public Builder setCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHint value) { + public Builder setCropHints( + int index, com.google.cloud.vision.v1p1beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,8 +582,6 @@ public Builder setCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -659,8 +600,6 @@ public Builder setCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -681,15 +620,14 @@ public Builder addCropHints(com.google.cloud.vision.v1p1beta1.CropHint value) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public Builder addCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHint value) { + public Builder addCropHints( + int index, com.google.cloud.vision.v1p1beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,8 +641,6 @@ public Builder addCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -723,8 +659,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -743,8 +677,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -755,7 +687,8 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -763,8 +696,6 @@ public Builder addAllCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -782,8 +713,6 @@ public Builder clearCropHints() { return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -801,44 +730,39 @@ public Builder removeCropHints(int index) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHint.Builder getCropHintsBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.CropHint.Builder getCropHintsBuilder( + int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); - } else { + return cropHints_.get(index); } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -846,8 +770,6 @@ public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** - * - * *
      * Crop hint results.
      * 
@@ -855,55 +777,49 @@ public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder(int index) { - return getCropHintsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder( + int index) { + return getCropHintsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, - com.google.cloud.vision.v1p1beta1.CropHint.Builder, - com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, - com.google.cloud.vision.v1p1beta1.CropHint.Builder, - com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>( - cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>( + cropHints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cropHints_ = null; } return cropHintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p1beta1.CropHintsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(); } @@ -927,16 +843,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java index abe0308bb..ff3802bfe 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintsAnnotationOrBuilder - extends +public interface CropHintsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - java.util.List getCropHintsList(); + java.util.List + getCropHintsList(); /** - * - * *
    * Crop hint results.
    * 
@@ -44,8 +25,6 @@ public interface CropHintsAnnotationOrBuilder */ com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index); /** - * - * *
    * Crop hint results.
    * 
@@ -54,24 +33,21 @@ public interface CropHintsAnnotationOrBuilder */ int getCropHintsCount(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java similarity index 74% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java index 13f0bfad5..618af7cbd 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsParams} */ -public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHintsParams) CropHintsParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +54,34 @@ private CropHintsParams( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + aspectRatios_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - aspectRatios_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -117,27 +99,22 @@ private CropHintsParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsParams.class, - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsParams.class, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -148,16 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List getAspectRatiosList() { + public java.util.List + getAspectRatiosList() { return aspectRatios_; } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -168,15 +143,12 @@ public java.util.List getAspectRatiosList() {
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -187,18 +159,15 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } - private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -234,7 +204,8 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -246,15 +217,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHintsParams other = - (com.google.cloud.vision.v1p1beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p1beta1.CropHintsParams other = (com.google.cloud.vision.v1p1beta1.CropHintsParams) obj; - if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList() + .equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,126 +247,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHintsParams) com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsParams.class, - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsParams.class, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder() @@ -403,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -442,8 +405,7 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHintsParams result = - new com.google.cloud.vision.v1p1beta1.CropHintsParams(this); + com.google.cloud.vision.v1p1beta1.CropHintsParams result = new com.google.cloud.vision.v1p1beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -458,39 +420,38 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsParams) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsParams)other); } else { super.mergeFrom(other); return this; @@ -498,8 +459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance()) return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -529,8 +489,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,20 +498,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); - private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -563,17 +518,14 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ - public java.util.List getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(aspectRatios_) - : aspectRatios_; + public java.util.List + getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -584,15 +536,12 @@ public java.util.List getAspectRatiosList() {
      * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -603,7 +552,6 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -611,8 +559,6 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -623,20 +569,18 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios(int index, float value) { + public Builder setAspectRatios( + int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -647,7 +591,6 @@ public Builder setAspectRatios(int index, float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -658,8 +601,6 @@ public Builder addAspectRatios(float value) { return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -670,19 +611,18 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios(java.lang.Iterable values) { + public Builder addAllAspectRatios( + java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aspectRatios_); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -693,7 +633,6 @@ public Builder addAllAspectRatios(java.lang.Iterable
      * 
* * repeated float aspect_ratios = 1; - * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -702,9 +641,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsParams) private static final com.google.cloud.vision.v1p1beta1.CropHintsParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHintsParams(); } @@ -728,16 +667,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java index 6e7fced83..eea5626dd 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintsParamsOrBuilder - extends +public interface CropHintsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -36,13 +18,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -53,13 +32,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -70,7 +46,6 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java index 31b701aa1..d1721d2d5 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DominantColorsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - colors_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.ColorInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + colors_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.ColorInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -105,27 +87,22 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,8 +114,6 @@ public java.util.List getColorsList return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -146,13 +121,11 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -164,8 +137,6 @@ public int getColorsCount() { return colors_.size(); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other = - (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) obj; - if (!getColorsList().equals(other.getColorsList())) return false; + if (!getColorsList() + .equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.DominantColorsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation result = - new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance()) return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColorsFieldBuilder() - : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, - com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> - colorsBuilder_; + com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> colorsBuilder_; /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -584,8 +533,6 @@ public java.util.List getColorsList } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,8 +547,6 @@ public int getColorsCount() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -616,15 +561,14 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder setColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { + public Builder setColors( + int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +582,6 @@ public Builder setColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -658,8 +600,6 @@ public Builder setColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -680,15 +620,14 @@ public Builder addColors(com.google.cloud.vision.v1p1beta1.ColorInfo value) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder addColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { + public Builder addColors( + int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,15 +641,14 @@ public Builder addColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder addColors(com.google.cloud.vision.v1p1beta1.ColorInfo.Builder builderForValue) { + public Builder addColors( + com.google.cloud.vision.v1p1beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -721,8 +659,6 @@ public Builder addColors(com.google.cloud.vision.v1p1beta1.ColorInfo.Builder bui return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -741,8 +677,6 @@ public Builder addColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -753,7 +687,8 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -761,8 +696,6 @@ public Builder addAllColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -780,8 +713,6 @@ public Builder clearColors() { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -799,44 +730,39 @@ public Builder removeColors(int index) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder getColorsBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder getColorsBuilder( + int index) { return getColorsFieldBuilder().getBuilder(index); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { if (colorsBuilder_ == null) { - return colors_.get(index); - } else { + return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,8 +770,6 @@ public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(i } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -853,55 +777,49 @@ public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(i * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder(int index) { - return getColorsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, - com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, - com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder>( - colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder>( + colors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); colors_ = null; } return colorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(); } @@ -925,16 +843,16 @@ public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java index 591cadce1..07bc1245e 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface DominantColorsAnnotationOrBuilder - extends +public interface DominantColorsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - java.util.List getColorsList(); + java.util.List + getColorsList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -44,8 +25,6 @@ public interface DominantColorsAnnotationOrBuilder */ com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -54,24 +33,21 @@ public interface DominantColorsAnnotationOrBuilder */ int getColorsCount(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java similarity index 79% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java index da3ae2870..ada7e6faf 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.EntityAnnotation} */ -public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.EntityAnnotation) EntityAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -47,15 +29,16 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,88 +58,77 @@ private EntityAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + locale_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; - } - case 53: - { - topicality_ = input.readFloat(); - break; + description_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + case 53: { + + topicality_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 58: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.LocationInfo.parser(), extensionRegistry)); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - properties_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Property.parser(), extensionRegistry)); - break; + locations_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + properties_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Property.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -164,7 +136,8 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -176,27 +149,22 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -204,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -213,15 +180,14 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -229,15 +195,16 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -248,15 +215,12 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ @java.lang.Override @@ -265,30 +229,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -299,14 +263,11 @@ public com.google.protobuf.ByteString getLocaleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -315,29 +276,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +309,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -366,8 +324,6 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * The accuracy of the entity detection in an image.
    * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -376,7 +332,6 @@ public float getScore() {
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -387,8 +342,6 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -398,7 +351,6 @@ public float getConfidence() {
    * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -409,15 +361,12 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -425,26 +374,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -460,8 +402,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -477,8 +417,6 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -490,13 +428,11 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -512,8 +448,6 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -529,8 +463,6 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -542,15 +474,14 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -563,8 +494,6 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -573,13 +502,11 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -592,8 +519,6 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -606,8 +531,6 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -616,12 +539,12 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+  public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -633,7 +556,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -680,22 +604,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -705,29 +635,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p1beta1.EntityAnnotation other =
-        (com.google.cloud.vision.v1p1beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p1beta1.EntityAnnotation other = (com.google.cloud.vision.v1p1beta1.EntityAnnotation) obj;
 
-    if (!getMid().equals(other.getMid())) return false;
-    if (!getLocale().equals(other.getLocale())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getMid()
+        .equals(other.getMid())) return false;
+    if (!getLocale()
+        .equals(other.getLocale())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly()
+          .equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList().equals(other.getLocationsList())) return false;
-    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
+    if (!getLocationsList()
+        .equals(other.getLocationsList())) return false;
+    if (!getPropertiesList()
+        .equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -746,11 +684,14 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -769,126 +710,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.EntityAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.EntityAnnotation) com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.EntityAnnotation.newBuilder() @@ -896,18 +828,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -945,9 +877,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -966,8 +898,7 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.EntityAnnotation result = - new com.google.cloud.vision.v1p1beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p1beta1.EntityAnnotation result = new com.google.cloud.vision.v1p1beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -1006,39 +937,38 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.EntityAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.EntityAnnotation)other); } else { super.mergeFrom(other); return this; @@ -1046,8 +976,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1090,10 +1019,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1117,10 +1045,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1145,8 +1072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1155,13 +1081,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mid_ = ""; /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1169,13 +1092,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1184,8 +1107,6 @@ public java.lang.String getMid() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1193,14 +1114,15 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1208,8 +1130,6 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1217,22 +1137,20 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1240,18 +1158,15 @@ public Builder setMid(java.lang.String value) {
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1259,16 +1174,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1276,21 +1191,19 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object locale_ = ""; /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1299,22 +1212,21 @@ public java.lang.String getLocale() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The bytes for locale. */ - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -1322,64 +1234,57 @@ public com.google.protobuf.ByteString getLocaleBytes() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale(java.lang.String value) { + public Builder setLocale( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes(com.google.protobuf.ByteString value) { + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1387,20 +1292,18 @@ public Builder setLocaleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1409,21 +1312,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1431,76 +1333,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1508,45 +1400,37 @@ public float getScore() { return score_; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1555,7 +1439,6 @@ public Builder clearScore() {
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1563,8 +1446,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1573,19 +1454,16 @@ public float getConfidence() {
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1594,20 +1472,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_; + private float topicality_ ; /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1617,7 +1492,6 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -1625,8 +1499,6 @@ public float getTopicality() { return topicality_; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1636,19 +1508,16 @@ public float getTopicality() {
      * 
* * float topicality = 6; - * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1658,11 +1527,10 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; - * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1670,49 +1538,36 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1734,8 +1589,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1755,8 +1608,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1768,9 +1619,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1782,8 +1631,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1803,8 +1650,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1813,13 +1658,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1831,14 +1674,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1847,42 +1687,32 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ =
-            new java.util.ArrayList(locations_);
+        locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.LocationInfo,
-            com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>
-        locationsBuilder_;
+        com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder> locationsBuilder_;
 
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1901,8 +1731,6 @@ public java.util.List getLocatio
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1921,8 +1749,6 @@ public int getLocationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1941,8 +1767,6 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1953,7 +1777,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
+    public Builder setLocations(
+        int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1967,8 +1792,6 @@ public Builder setLocations(int index, com.google.cloud.vision.v1p1beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1991,8 +1814,6 @@ public Builder setLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2017,8 +1838,6 @@ public Builder addLocations(com.google.cloud.vision.v1p1beta1.LocationInfo value
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2029,7 +1848,8 @@ public Builder addLocations(com.google.cloud.vision.v1p1beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
+    public Builder addLocations(
+        int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2043,8 +1863,6 @@ public Builder addLocations(int index, com.google.cloud.vision.v1p1beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2067,8 +1885,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2091,8 +1907,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2107,7 +1921,8 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -2115,8 +1930,6 @@ public Builder addAllLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2138,8 +1951,6 @@ public Builder clearLocations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2161,8 +1972,6 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2173,12 +1982,11 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilder(int index) {
+    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilder(
+        int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2192,14 +2000,11 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);
-      } else {
+        return locations_.get(index);  } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2210,8 +2015,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsOrBuilderList() {
+    public java.util.List 
+         getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2219,8 +2024,6 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2232,12 +2035,10 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2248,13 +2049,12 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder(int index) {
-      return getLocationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder(
+        int index) {
+      return getLocationsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2265,48 +2065,38 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsBuilderList() {
+    public java.util.List 
+         getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.LocationInfo,
-            com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>
+        com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder> 
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.LocationInfo,
-                com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
-                com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>(
-                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>(
+                locations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ =
-            new java.util.ArrayList(properties_);
+        properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Property,
-            com.google.cloud.vision.v1p1beta1.Property.Builder,
-            com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>
-        propertiesBuilder_;
+        com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder> propertiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2322,8 +2112,6 @@ public java.util.List getPropertiesL
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2339,8 +2127,6 @@ public int getPropertiesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2356,8 +2142,6 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2365,7 +2149,8 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public Builder setProperties(int index, com.google.cloud.vision.v1p1beta1.Property value) {
+    public Builder setProperties(
+        int index, com.google.cloud.vision.v1p1beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2379,8 +2164,6 @@ public Builder setProperties(int index, com.google.cloud.vision.v1p1beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2400,8 +2183,6 @@ public Builder setProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2423,8 +2204,6 @@ public Builder addProperties(com.google.cloud.vision.v1p1beta1.Property value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2432,7 +2211,8 @@ public Builder addProperties(com.google.cloud.vision.v1p1beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public Builder addProperties(int index, com.google.cloud.vision.v1p1beta1.Property value) {
+    public Builder addProperties(
+        int index, com.google.cloud.vision.v1p1beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2446,8 +2226,6 @@ public Builder addProperties(int index, com.google.cloud.vision.v1p1beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2467,8 +2245,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2488,8 +2264,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2501,7 +2275,8 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2509,8 +2284,6 @@ public Builder addAllProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2529,8 +2302,6 @@ public Builder clearProperties() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2549,8 +2320,6 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2558,12 +2327,11 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(int index) {
+    public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(
+        int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2571,16 +2339,14 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
+        int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);
-      } else {
+        return properties_.get(index);  } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2588,8 +2354,8 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesOrBuilderList() {
+    public java.util.List 
+         getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2597,8 +2363,6 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2607,12 +2371,10 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2620,13 +2382,12 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(int index) {
-      return getPropertiesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(
+        int index) {
+      return getPropertiesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2634,30 +2395,27 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesBuilderList() {
+    public java.util.List 
+         getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Property,
-            com.google.cloud.vision.v1p1beta1.Property.Builder,
-            com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder> 
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.Property,
-                com.google.cloud.vision.v1p1beta1.Property.Builder,
-                com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>(
-                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>(
+                properties_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2667,12 +2425,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p1beta1.EntityAnnotation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.EntityAnnotation();
   }
@@ -2681,16 +2439,16 @@ public static com.google.cloud.vision.v1p1beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public EntityAnnotation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new EntityAnnotation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntityAnnotation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new EntityAnnotation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2705,4 +2463,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
index 19db73bee..0a2f511f9 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
-public interface EntityAnnotationOrBuilder
-    extends
+public interface EntityAnnotationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -33,13 +15,10 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -47,79 +26,64 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ java.lang.String getLocale(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ - com.google.protobuf.ByteString getLocaleBytes(); + com.google.protobuf.ByteString + getLocaleBytes(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * The accuracy of the entity detection in an image.
    * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -128,14 +92,11 @@ public interface EntityAnnotationOrBuilder
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -145,40 +106,31 @@ public interface EntityAnnotationOrBuilder
    * 
* * float topicality = 6; - * * @return The topicality. */ float getTopicality(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -189,8 +141,6 @@ public interface EntityAnnotationOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -201,10 +151,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  java.util.List getLocationsList();
+  java.util.List 
+      getLocationsList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -217,8 +166,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index);
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -231,8 +178,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getLocationsCount();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -243,11 +188,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  java.util.List
+  java.util.List 
       getLocationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -258,11 +201,10 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
+  com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -270,10 +212,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  java.util.List getPropertiesList();
+  java.util.List 
+      getPropertiesList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -283,8 +224,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p1beta1.Property getProperties(int index);
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -294,8 +233,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -303,11 +240,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  java.util.List
+  java.util.List 
       getPropertiesOrBuilderList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -315,5 +250,6 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
+  com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
similarity index 77%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
index af9e5e9a9..64455d452 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
- *
- *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation} */ -public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.FaceAnnotation) FaceAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -50,15 +32,16 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,133 +61,115 @@ private FaceAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); - } - fdBoundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark>(); - mutable_bitField0_ |= 0x00000001; - } - landmarks_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.parser(), - extensionRegistry)); - break; - } - case 37: - { - rollAngle_ = input.readFloat(); - break; - } - case 45: - { - panAngle_ = input.readFloat(); - break; - } - case 53: - { - tiltAngle_ = input.readFloat(); - break; - } - case 61: - { - detectionConfidence_ = input.readFloat(); - break; + + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); } - case 69: - { - landmarkingConfidence_ = input.readFloat(); - break; + fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); } - case 72: - { - int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + landmarks_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); + break; + } + case 37: { - sorrowLikelihood_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + rollAngle_ = input.readFloat(); + break; + } + case 45: { - angerLikelihood_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + panAngle_ = input.readFloat(); + break; + } + case 53: { - surpriseLikelihood_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); + tiltAngle_ = input.readFloat(); + break; + } + case 61: { - underExposedLikelihood_ = rawValue; - break; - } - case 112: - { - int rawValue = input.readEnum(); + detectionConfidence_ = input.readFloat(); + break; + } + case 69: { - blurredLikelihood_ = rawValue; - break; - } - case 120: - { - int rawValue = input.readEnum(); + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + joyLikelihood_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); + + sorrowLikelihood_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + angerLikelihood_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + surpriseLikelihood_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + underExposedLikelihood_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + blurredLikelihood_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + headwearLikelihood_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -212,7 +177,8 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -221,79 +187,61 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder - extends + public interface LandmarkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return The position. */ com.google.cloud.vision.v1p1beta1.Position getPosition(); /** - * - * *
      * Face landmark position.
      * 
@@ -303,39 +251,37 @@ public interface LandmarkOrBuilder com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Landmark extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -354,36 +300,32 @@ private Landmark( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.vision.v1p1beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p1beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; + position_ = input.readMessage(com.google.cloud.vision.v1p1beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -391,31 +333,27 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); } /** - * - * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -425,10 +363,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -437,8 +374,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_LANDMARK(0), /** - * - * *
        * Left eye.
        * 
@@ -447,8 +382,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE(1), /** - * - * *
        * Right eye.
        * 
@@ -457,8 +390,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE(2), /** - * - * *
        * Left of left eyebrow.
        * 
@@ -467,8 +398,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_LEFT_EYEBROW(3), /** - * - * *
        * Right of left eyebrow.
        * 
@@ -477,8 +406,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_LEFT_EYEBROW(4), /** - * - * *
        * Left of right eyebrow.
        * 
@@ -487,8 +414,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_RIGHT_EYEBROW(5), /** - * - * *
        * Right of right eyebrow.
        * 
@@ -497,8 +422,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_RIGHT_EYEBROW(6), /** - * - * *
        * Midpoint between eyes.
        * 
@@ -507,8 +430,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MIDPOINT_BETWEEN_EYES(7), /** - * - * *
        * Nose tip.
        * 
@@ -517,8 +438,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_TIP(8), /** - * - * *
        * Upper lip.
        * 
@@ -527,8 +446,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UPPER_LIP(9), /** - * - * *
        * Lower lip.
        * 
@@ -537,8 +454,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOWER_LIP(10), /** - * - * *
        * Mouth left.
        * 
@@ -547,8 +462,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_LEFT(11), /** - * - * *
        * Mouth right.
        * 
@@ -557,8 +470,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_RIGHT(12), /** - * - * *
        * Mouth center.
        * 
@@ -567,8 +478,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_CENTER(13), /** - * - * *
        * Nose, bottom right.
        * 
@@ -577,8 +486,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_RIGHT(14), /** - * - * *
        * Nose, bottom left.
        * 
@@ -587,8 +494,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_LEFT(15), /** - * - * *
        * Nose, bottom center.
        * 
@@ -597,8 +502,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_CENTER(16), /** - * - * *
        * Left eye, top boundary.
        * 
@@ -607,8 +510,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_TOP_BOUNDARY(17), /** - * - * *
        * Left eye, right corner.
        * 
@@ -617,8 +518,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_RIGHT_CORNER(18), /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -627,8 +526,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** - * - * *
        * Left eye, left corner.
        * 
@@ -637,8 +534,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_LEFT_CORNER(20), /** - * - * *
        * Right eye, top boundary.
        * 
@@ -647,8 +542,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_TOP_BOUNDARY(21), /** - * - * *
        * Right eye, right corner.
        * 
@@ -657,8 +550,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_RIGHT_CORNER(22), /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -667,8 +558,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** - * - * *
        * Right eye, left corner.
        * 
@@ -677,8 +566,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_LEFT_CORNER(24), /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -687,8 +574,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -697,8 +582,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** - * - * *
        * Left ear tragion.
        * 
@@ -707,8 +590,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EAR_TRAGION(27), /** - * - * *
        * Right ear tragion.
        * 
@@ -717,8 +598,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EAR_TRAGION(28), /** - * - * *
        * Left eye pupil.
        * 
@@ -727,8 +606,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_PUPIL(29), /** - * - * *
        * Right eye pupil.
        * 
@@ -737,8 +614,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_PUPIL(30), /** - * - * *
        * Forehead glabella.
        * 
@@ -747,8 +622,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FOREHEAD_GLABELLA(31), /** - * - * *
        * Chin gnathion.
        * 
@@ -757,8 +630,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_GNATHION(32), /** - * - * *
        * Chin left gonion.
        * 
@@ -767,8 +638,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_LEFT_GONION(33), /** - * - * *
        * Chin right gonion.
        * 
@@ -780,8 +649,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -790,8 +657,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** - * - * *
        * Left eye.
        * 
@@ -800,8 +665,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_VALUE = 1; /** - * - * *
        * Right eye.
        * 
@@ -810,8 +673,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_VALUE = 2; /** - * - * *
        * Left of left eyebrow.
        * 
@@ -820,8 +681,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** - * - * *
        * Right of left eyebrow.
        * 
@@ -830,8 +689,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** - * - * *
        * Left of right eyebrow.
        * 
@@ -840,8 +697,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** - * - * *
        * Right of right eyebrow.
        * 
@@ -850,8 +705,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** - * - * *
        * Midpoint between eyes.
        * 
@@ -860,8 +713,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** - * - * *
        * Nose tip.
        * 
@@ -870,8 +721,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_TIP_VALUE = 8; /** - * - * *
        * Upper lip.
        * 
@@ -880,8 +729,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPPER_LIP_VALUE = 9; /** - * - * *
        * Lower lip.
        * 
@@ -890,8 +737,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOWER_LIP_VALUE = 10; /** - * - * *
        * Mouth left.
        * 
@@ -900,8 +745,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_LEFT_VALUE = 11; /** - * - * *
        * Mouth right.
        * 
@@ -910,8 +753,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_RIGHT_VALUE = 12; /** - * - * *
        * Mouth center.
        * 
@@ -920,8 +761,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_CENTER_VALUE = 13; /** - * - * *
        * Nose, bottom right.
        * 
@@ -930,8 +769,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** - * - * *
        * Nose, bottom left.
        * 
@@ -940,8 +777,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** - * - * *
        * Nose, bottom center.
        * 
@@ -950,8 +785,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** - * - * *
        * Left eye, top boundary.
        * 
@@ -960,8 +793,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** - * - * *
        * Left eye, right corner.
        * 
@@ -970,8 +801,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -980,8 +809,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** - * - * *
        * Left eye, left corner.
        * 
@@ -990,8 +817,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** - * - * *
        * Right eye, top boundary.
        * 
@@ -1000,8 +825,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** - * - * *
        * Right eye, right corner.
        * 
@@ -1010,8 +833,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -1020,8 +841,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** - * - * *
        * Right eye, left corner.
        * 
@@ -1030,8 +849,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -1040,8 +857,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -1050,8 +865,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** - * - * *
        * Left ear tragion.
        * 
@@ -1060,8 +873,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** - * - * *
        * Right ear tragion.
        * 
@@ -1070,8 +881,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** - * - * *
        * Left eye pupil.
        * 
@@ -1080,8 +889,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** - * - * *
        * Right eye pupil.
        * 
@@ -1090,8 +897,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** - * - * *
        * Forehead glabella.
        * 
@@ -1100,8 +905,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** - * - * *
        * Chin gnathion.
        * 
@@ -1110,8 +913,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_GNATHION_VALUE = 32; /** - * - * *
        * Chin left gonion.
        * 
@@ -1120,8 +921,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** - * - * *
        * Chin right gonion.
        * 
@@ -1130,6 +929,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_RIGHT_GONION_VALUE = 34; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1154,115 +954,81 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return UNKNOWN_LANDMARK; - case 1: - return LEFT_EYE; - case 2: - return RIGHT_EYE; - case 3: - return LEFT_OF_LEFT_EYEBROW; - case 4: - return RIGHT_OF_LEFT_EYEBROW; - case 5: - return LEFT_OF_RIGHT_EYEBROW; - case 6: - return RIGHT_OF_RIGHT_EYEBROW; - case 7: - return MIDPOINT_BETWEEN_EYES; - case 8: - return NOSE_TIP; - case 9: - return UPPER_LIP; - case 10: - return LOWER_LIP; - case 11: - return MOUTH_LEFT; - case 12: - return MOUTH_RIGHT; - case 13: - return MOUTH_CENTER; - case 14: - return NOSE_BOTTOM_RIGHT; - case 15: - return NOSE_BOTTOM_LEFT; - case 16: - return NOSE_BOTTOM_CENTER; - case 17: - return LEFT_EYE_TOP_BOUNDARY; - case 18: - return LEFT_EYE_RIGHT_CORNER; - case 19: - return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: - return LEFT_EYE_LEFT_CORNER; - case 21: - return RIGHT_EYE_TOP_BOUNDARY; - case 22: - return RIGHT_EYE_RIGHT_CORNER; - case 23: - return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: - return RIGHT_EYE_LEFT_CORNER; - case 25: - return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: - return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: - return LEFT_EAR_TRAGION; - case 28: - return RIGHT_EAR_TRAGION; - case 29: - return LEFT_EYE_PUPIL; - case 30: - return RIGHT_EYE_PUPIL; - case 31: - return FOREHEAD_GLABELLA; - case 32: - return CHIN_GNATHION; - case 33: - return CHIN_LEFT_GONION; - case 34: - return CHIN_RIGHT_GONION; - default: - return null; + case 0: return UNKNOWN_LANDMARK; + case 1: return LEFT_EYE; + case 2: return RIGHT_EYE; + case 3: return LEFT_OF_LEFT_EYEBROW; + case 4: return RIGHT_OF_LEFT_EYEBROW; + case 5: return LEFT_OF_RIGHT_EYEBROW; + case 6: return RIGHT_OF_RIGHT_EYEBROW; + case 7: return MIDPOINT_BETWEEN_EYES; + case 8: return NOSE_TIP; + case 9: return UPPER_LIP; + case 10: return LOWER_LIP; + case 11: return MOUTH_LEFT; + case 12: return MOUTH_RIGHT; + case 13: return MOUTH_CENTER; + case 14: return NOSE_BOTTOM_RIGHT; + case 15: return NOSE_BOTTOM_LEFT; + case 16: return NOSE_BOTTOM_CENTER; + case 17: return LEFT_EYE_TOP_BOUNDARY; + case 18: return LEFT_EYE_RIGHT_CORNER; + case 19: return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: return LEFT_EYE_LEFT_CORNER; + case 21: return RIGHT_EYE_TOP_BOUNDARY; + case 22: return RIGHT_EYE_RIGHT_CORNER; + case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: return RIGHT_EYE_LEFT_CORNER; + case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: return LEFT_EAR_TRAGION; + case 28: return RIGHT_EAR_TRAGION; + case 29: return LEFT_EYE_PUPIL; + case 30: return RIGHT_EYE_PUPIL; + case 31: return FOREHEAD_GLABELLA; + case 32: return CHIN_GNATHION; + case 33: return CHIN_LEFT_GONION; + case 34: return CHIN_RIGHT_GONION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1282,52 +1048,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p1beta1.Position position_; /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return Whether the position field is set. */ @java.lang.Override @@ -1335,25 +1087,18 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Position getPosition() { - return position_ == null - ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; } /** - * - * *
      * Face landmark position.
      * 
@@ -1366,7 +1111,6 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1378,10 +1122,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1396,13 +1139,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1412,18 +1155,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other = - (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1448,94 +1191,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1545,32 +1281,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.newBuilder() @@ -1578,15 +1309,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1602,9 +1334,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1623,8 +1355,7 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark result = - new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1639,41 +1370,38 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark)other); } else { super.mergeFrom(other); return this; @@ -1681,8 +1409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1708,8 +1435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1721,67 +1447,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1789,24 +1499,21 @@ public Builder setType(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1814,47 +1521,34 @@ public Builder clearType() { private com.google.cloud.vision.v1p1beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, - com.google.cloud.vision.v1p1beta1.Position.Builder, - com.google.cloud.vision.v1p1beta1.PositionOrBuilder> - positionBuilder_; + com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder> positionBuilder_; /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; - * * @return The position. */ public com.google.cloud.vision.v1p1beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** - * - * *
        * Face landmark position.
        * 
@@ -1875,8 +1569,6 @@ public Builder setPosition(com.google.cloud.vision.v1p1beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1895,8 +1587,6 @@ public Builder setPosition( return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1907,9 +1597,7 @@ public Builder mergePosition(com.google.cloud.vision.v1p1beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p1beta1.Position.newBuilder(position_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } @@ -1921,8 +1609,6 @@ public Builder mergePosition(com.google.cloud.vision.v1p1beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1941,8 +1627,6 @@ public Builder clearPosition() { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1950,13 +1634,11 @@ public Builder clearPosition() { * .google.cloud.vision.v1p1beta1.Position position = 4; */ public com.google.cloud.vision.v1p1beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Face landmark position.
        * 
@@ -1967,14 +1649,11 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; } } /** - * - * *
        * Face landmark position.
        * 
@@ -1982,22 +1661,18 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p1beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, - com.google.cloud.vision.v1p1beta1.Position.Builder, - com.google.cloud.vision.v1p1beta1.PositionOrBuilder> + com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, - com.google.cloud.vision.v1p1beta1.Position.Builder, - com.google.cloud.vision.v1p1beta1.PositionOrBuilder>( - getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2010,12 +1685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(); } @@ -2024,16 +1699,16 @@ public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2048,13 +1723,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2066,7 +1740,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2074,8 +1747,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2087,18 +1758,13 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2119,8 +1785,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p1beta1.BoundingPoly fdBoundingPoly_;
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2131,7 +1795,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -2139,8 +1802,6 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2151,18 +1812,13 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2182,8 +1838,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
@@ -2191,13 +1845,10 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2205,14 +1856,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2224,8 +1872,6 @@ public int getLandmarksCount() { return landmarks_.size(); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2237,8 +1883,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2254,8 +1898,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -2263,7 +1905,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -2274,8 +1915,6 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -2283,7 +1922,6 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -2294,15 +1932,12 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -2313,14 +1948,11 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -2331,14 +1963,11 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2349,257 +1978,193 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2611,7 +2176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2648,8 +2214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (surpriseLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2668,50 +2233,64 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2721,33 +2300,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.FaceAnnotation other = - (com.google.cloud.vision.v1p1beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p1beta1.FaceAnnotation other = (com.google.cloud.vision.v1p1beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly() + .equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getLandmarksList() + .equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2779,15 +2365,20 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2807,127 +2398,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.FaceAnnotation) com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.FaceAnnotation.newBuilder() @@ -2935,17 +2517,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2995,9 +2577,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -3016,8 +2598,7 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.FaceAnnotation result = - new com.google.cloud.vision.v1p1beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p1beta1.FaceAnnotation result = new com.google.cloud.vision.v1p1beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -3058,39 +2639,38 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation)other); } else { super.mergeFrom(other); return this; @@ -3098,8 +2678,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -3124,10 +2703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarksFieldBuilder() - : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarksFieldBuilder() : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -3197,18 +2775,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3220,15 +2792,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3240,21 +2809,16 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3281,8 +2845,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3307,8 +2869,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3325,9 +2885,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3339,8 +2897,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3365,8 +2921,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3380,13 +2934,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3403,14 +2955,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3424,17 +2973,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3442,13 +2988,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p1beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
-        fdBoundingPolyBuilder_;
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3459,15 +3000,12 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3478,21 +3016,16 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3518,8 +3051,6 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3543,8 +3074,6 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3560,9 +3089,7 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3574,8 +3101,6 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPol
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3599,8 +3124,6 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3613,13 +3136,11 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-
+      
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3635,14 +3156,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : fdBoundingPoly_;
+        return fdBoundingPoly_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3655,51 +3173,39 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(), getParentForChildren(), isClean());
+        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ =
-            new java.util.ArrayList(
-                landmarks_);
+        landmarks_ = new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark,
-            com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder,
-            com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>
-        landmarksBuilder_;
+        com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
 
     /**
-     *
-     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3707,8 +3213,6 @@ private void ensureLandmarksIsMutable() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3723,8 +3227,6 @@ public int getLandmarksCount() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3739,8 +3241,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(in } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3762,8 +3262,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3771,8 +3269,7 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3783,8 +3280,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3805,8 +3300,6 @@ public Builder addLandmarks(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Lan return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3828,8 +3321,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3848,8 +3339,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3857,8 +3346,7 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3869,8 +3357,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3878,11 +3364,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3890,8 +3376,6 @@ public Builder addAllLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3909,8 +3393,6 @@ public Builder clearLandmarks() { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3928,8 +3410,6 @@ public Builder removeLandmarks(int index) { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3941,8 +3421,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3952,23 +3430,19 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); - } else { + return landmarks_.get(index); } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3976,8 +3450,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3985,13 +3457,10 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4000,46 +3469,37 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_; + private float rollAngle_ ; /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4047,7 +3507,6 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -4055,8 +3514,6 @@ public float getRollAngle() { return rollAngle_; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4064,19 +3521,16 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; - * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4084,20 +3538,17 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; - * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_; + private float panAngle_ ; /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4105,7 +3556,6 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -4113,8 +3563,6 @@ public float getPanAngle() { return panAngle_; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4122,19 +3570,16 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; - * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4142,27 +3587,23 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; - * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_; + private float tiltAngle_ ; /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -4170,53 +3611,44 @@ public float getTiltAngle() { return tiltAngle_; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_; + private float detectionConfidence_ ; /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -4224,51 +3656,42 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_; + private float landmarkingConfidence_ ; /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -4276,36 +3699,30 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -4313,65 +3730,51 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -4379,24 +3782,21 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -4404,65 +3804,51 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4470,24 +3856,21 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4495,65 +3878,51 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4561,24 +3930,21 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4586,65 +3952,51 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4652,24 +4004,21 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p1beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4677,65 +4026,51 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4743,24 +4078,21 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p1beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4768,65 +4100,51 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4834,24 +4152,21 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4859,65 +4174,51 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4925,31 +4226,28 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p1beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4959,12 +4257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p1beta1.FaceAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.FaceAnnotation(); } @@ -4973,16 +4271,16 @@ public static com.google.cloud.vision.v1p1beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4997,4 +4295,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java index 0f9240d2c..81024f41d 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface FaceAnnotationOrBuilder - extends +public interface FaceAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -37,13 +19,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -55,13 +34,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -77,8 +53,6 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -89,13 +63,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -106,13 +77,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -127,18 +95,15 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List getLandmarksList(); + java.util.List + getLandmarksList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -147,8 +112,6 @@ public interface FaceAnnotationOrBuilder */ com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(int index); /** - * - * *
    * Detected face landmarks.
    * 
@@ -157,19 +120,15 @@ public interface FaceAnnotationOrBuilder */ int getLandmarksCount(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -180,8 +139,6 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -189,14 +146,11 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ float getRollAngle(); /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -204,222 +158,170 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ float getPanAngle(); /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ float getTiltAngle(); /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ float getDetectionConfidence(); /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java similarity index 74% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java index 85d7d9ec4..650ece503 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Users describe the type of Google Cloud Vision API tasks to perform over
  * images by using *Feature*s. Each Feature indicates a type of image
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Feature}
  */
-public final class Feature extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Feature extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Feature)
     FeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -47,15 +29,16 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,32 +57,30 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              maxResults_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              model_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maxResults_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,41 +88,36 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Feature.class,
-            com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Feature.class, com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of image feature.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified feature type.
      * 
@@ -150,8 +126,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Run face detection.
      * 
@@ -160,8 +134,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FACE_DETECTION(1), /** - * - * *
      * Run landmark detection.
      * 
@@ -170,8 +142,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LANDMARK_DETECTION(2), /** - * - * *
      * Run logo detection.
      * 
@@ -180,8 +150,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOGO_DETECTION(3), /** - * - * *
      * Run label detection.
      * 
@@ -190,8 +158,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LABEL_DETECTION(4), /** - * - * *
      * Run OCR.
      * 
@@ -200,8 +166,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_DETECTION(5), /** - * - * *
      * Run dense text document OCR. Takes precedence when both
      * DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.
@@ -211,8 +175,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
-     *
-     *
      * 
      * Run computer vision models to compute image safe-search properties.
      * 
@@ -221,8 +183,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ SAFE_SEARCH_DETECTION(6), /** - * - * *
      * Compute a set of image properties, such as the image's dominant colors.
      * 
@@ -231,8 +191,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ IMAGE_PROPERTIES(7), /** - * - * *
      * Run crop hints.
      * 
@@ -241,8 +199,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CROP_HINTS(9), /** - * - * *
      * Run web detection.
      * 
@@ -254,8 +210,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified feature type.
      * 
@@ -264,8 +218,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Run face detection.
      * 
@@ -274,8 +226,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACE_DETECTION_VALUE = 1; /** - * - * *
      * Run landmark detection.
      * 
@@ -284,8 +234,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LANDMARK_DETECTION_VALUE = 2; /** - * - * *
      * Run logo detection.
      * 
@@ -294,8 +242,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOGO_DETECTION_VALUE = 3; /** - * - * *
      * Run label detection.
      * 
@@ -304,8 +250,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LABEL_DETECTION_VALUE = 4; /** - * - * *
      * Run OCR.
      * 
@@ -314,8 +258,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_DETECTION_VALUE = 5; /** - * - * *
      * Run dense text document OCR. Takes precedence when both
      * DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.
@@ -325,8 +267,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Run computer vision models to compute image safe-search properties.
      * 
@@ -335,8 +275,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFE_SEARCH_DETECTION_VALUE = 6; /** - * - * *
      * Compute a set of image properties, such as the image's dominant colors.
      * 
@@ -345,8 +283,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMAGE_PROPERTIES_VALUE = 7; /** - * - * *
      * Run crop hints.
      * 
@@ -355,8 +291,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CROP_HINTS_VALUE = 9; /** - * - * *
      * Run web detection.
      * 
@@ -365,6 +299,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEB_DETECTION_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -389,65 +324,57 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return FACE_DETECTION; - case 2: - return LANDMARK_DETECTION; - case 3: - return LOGO_DETECTION; - case 4: - return LABEL_DETECTION; - case 5: - return TEXT_DETECTION; - case 11: - return DOCUMENT_TEXT_DETECTION; - case 6: - return SAFE_SEARCH_DETECTION; - case 7: - return IMAGE_PROPERTIES; - case 9: - return CROP_HINTS; - case 10: - return WEB_DETECTION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return FACE_DETECTION; + case 2: return LANDMARK_DETECTION; + case 3: return LOGO_DETECTION; + case 4: return LABEL_DETECTION; + case 5: return TEXT_DETECTION; + case 11: return DOCUMENT_TEXT_DETECTION; + case 6: return SAFE_SEARCH_DETECTION; + case 7: return IMAGE_PROPERTIES; + case 9: return CROP_HINTS; + case 10: return WEB_DETECTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p1beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -467,50 +394,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Feature.Type result = - com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p1beta1.Feature.Type result = com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p1beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** - * - * *
    * Maximum number of results of this type.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -521,8 +436,6 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -530,7 +443,6 @@ public int getMaxResults() {
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -539,15 +451,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -555,15 +466,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -572,7 +484,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -584,7 +495,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p1beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -604,10 +516,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p1beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -620,17 +534,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Feature other = - (com.google.cloud.vision.v1p1beta1.Feature) obj; + com.google.cloud.vision.v1p1beta1.Feature other = (com.google.cloud.vision.v1p1beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() != other.getMaxResults()) return false; - if (!getModel().equals(other.getModel())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -653,104 +568,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Users describe the type of Google Cloud Vision API tasks to perform over
    * images by using *Feature*s. Each Feature indicates a type of image
@@ -760,23 +668,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Feature}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Feature)
       com.google.cloud.vision.v1p1beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Feature.class,
-              com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Feature.class, com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Feature.newBuilder()
@@ -784,15 +690,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -806,9 +713,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -827,8 +734,7 @@ public com.google.cloud.vision.v1p1beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Feature result =
-          new com.google.cloud.vision.v1p1beta1.Feature(this);
+      com.google.cloud.vision.v1p1beta1.Feature result = new com.google.cloud.vision.v1p1beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -840,39 +746,38 @@ public com.google.cloud.vision.v1p1beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Feature) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Feature)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -922,65 +827,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Feature.Type result = - com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p1beta1.Feature.Type result = com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p1beta1.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -988,39 +879,33 @@ public Builder setType(com.google.cloud.vision.v1p1beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -1028,36 +913,30 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -1065,8 +944,6 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1074,13 +951,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1089,8 +966,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1098,14 +973,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1113,8 +989,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1122,22 +996,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1145,18 +1017,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1164,23 +1033,23 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1190,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Feature) private static final com.google.cloud.vision.v1p1beta1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Feature(); } @@ -1204,16 +1073,16 @@ public static com.google.cloud.vision.v1p1beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java index 27b501642..a1d7cae6b 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.vision.v1p1beta1.Feature.Type getType(); /** - * - * *
    * Maximum number of results of this type.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -71,13 +44,10 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -85,8 +55,8 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java new file mode 100644 index 000000000..938eae0de --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/geometry.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class GeometryProto { + private GeometryProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p1beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p1beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"G\n\014Boundin" + + "gPoly\0227\n\010vertices\030\001 \003(\0132%.google.cloud.v" + + "ision.v1p1beta1.Vertex\"+\n\010Position\022\t\n\001x\030" + + "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.googl" + + "e.cloud.vision.v1p1beta1B\rGeometryProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/cloud/vision/v1p1beta1;vision\370\001\001b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor, + new java.lang.String[] { "Vertices", }); + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor, + new java.lang.String[] { "X", "Y", "Z", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java similarity index 73% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java index fda846585..056f55504 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,31 @@ private Image( case 0: done = true; break; - case 10: - { - content_ = input.readBytes(); - break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p1beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,33 +85,29 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Image.class, - com.google.cloud.vision.v1p1beta1.Image.Builder.class); + com.google.cloud.vision.v1p1beta1.Image.class, com.google.cloud.vision.v1p1beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -139,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -150,8 +125,6 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.ImageSource source_; /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -159,7 +132,6 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ @java.lang.Override @@ -167,8 +139,6 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -176,18 +146,13 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageSource getSource() { - return source_ == null - ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_; } /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -202,7 +167,6 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +178,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -231,10 +196,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,17 +211,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p1beta1.Image other = (com.google.cloud.vision.v1p1beta1.Image) obj;
 
-    if (!getContent().equals(other.getContent())) return false;
+    if (!getContent()
+        .equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,127 +247,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p1beta1.Image parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Image) com.google.cloud.vision.v1p1beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Image.class, - com.google.cloud.vision.v1p1beta1.Image.Builder.class); + com.google.cloud.vision.v1p1beta1.Image.class, com.google.cloud.vision.v1p1beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Image.newBuilder() @@ -406,15 +366,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override @@ -451,8 +412,7 @@ public com.google.cloud.vision.v1p1beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Image buildPartial() { - com.google.cloud.vision.v1p1beta1.Image result = - new com.google.cloud.vision.v1p1beta1.Image(this); + com.google.cloud.vision.v1p1beta1.Image result = new com.google.cloud.vision.v1p1beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -467,39 +427,38 @@ public com.google.cloud.vision.v1p1beta1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Image) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Image)other); } else { super.mergeFrom(other); return this; @@ -545,8 +504,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -554,7 +511,6 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -562,8 +518,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -571,22 +525,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -594,11 +545,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -606,13 +556,8 @@ public Builder clearContent() { private com.google.cloud.vision.v1p1beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageSource, - com.google.cloud.vision.v1p1beta1.ImageSource.Builder, - com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> - sourceBuilder_; + com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> sourceBuilder_; /** - * - * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -620,15 +565,12 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -636,21 +578,16 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return The source. */ public com.google.cloud.vision.v1p1beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -673,8 +610,6 @@ public Builder setSource(com.google.cloud.vision.v1p1beta1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -695,8 +630,6 @@ public Builder setSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -709,9 +642,7 @@ public Builder mergeSource(com.google.cloud.vision.v1p1beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-              com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder(source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -723,8 +654,6 @@ public Builder mergeSource(com.google.cloud.vision.v1p1beta1.ImageSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -745,8 +674,6 @@ public Builder clearSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -756,13 +683,11 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p1beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p1beta1.ImageSource.Builder getSourceBuilder() {
-
+      
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -775,14 +700,11 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null
-            ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance()
-            : source_;
+        return source_ == null ?
+            com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_;
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -792,24 +714,21 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p1beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.ImageSource,
-            com.google.cloud.vision.v1p1beta1.ImageSource.Builder,
-            com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>
+        com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> 
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.ImageSource,
-                com.google.cloud.vision.v1p1beta1.ImageSource.Builder,
-                com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>(
-                getSource(), getParentForChildren(), isClean());
+        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>(
+                getSource(),
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -819,12 +738,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Image)
   private static final com.google.cloud.vision.v1p1beta1.Image DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Image();
   }
@@ -833,16 +752,16 @@ public static com.google.cloud.vision.v1p1beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Image parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Image(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Image parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Image(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -857,4 +776,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
new file mode 100644
index 000000000..d918478ec
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
@@ -0,0 +1,475 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/vision/v1p1beta1/image_annotator.proto
+
+package com.google.cloud.vision.v1p1beta1;
+
+public final class ImageAnnotatorProto {
+  private ImageAnnotatorProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_Image_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_Property_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n3google/cloud/vision/v1p1beta1/image_an" +
+      "notator.proto\022\035google.cloud.vision.v1p1b" +
+      "eta1\032\034google/api/annotations.proto\032\027goog" +
+      "le/api/client.proto\032\037google/api/field_be" +
+      "havior.proto\032,google/cloud/vision/v1p1be" +
+      "ta1/geometry.proto\0323google/cloud/vision/" +
+      "v1p1beta1/text_annotation.proto\0321google/" +
+      "cloud/vision/v1p1beta1/web_detection.pro" +
+      "to\032\027google/rpc/status.proto\032\027google/type" +
+      "/color.proto\032\030google/type/latlng.proto\"\341" +
+      "\002\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud." +
+      "vision.v1p1beta1.Feature.Type\022\023\n\013max_res" +
+      "ults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TY" +
+      "PE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022" +
+      "LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003" +
+      "\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020" +
+      "\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_S" +
+      "EARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022" +
+      "\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013Im" +
+      "ageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timag" +
+      "e_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n" +
+      "\006source\030\002 \001(\0132*.google.cloud.vision.v1p1" +
+      "beta1.ImageSource\"\233\016\n\016FaceAnnotation\022B\n\r" +
+      "bounding_poly\030\001 \001(\0132+.google.cloud.visio" +
+      "n.v1p1beta1.BoundingPoly\022E\n\020fd_bounding_" +
+      "poly\030\002 \001(\0132+.google.cloud.vision.v1p1bet" +
+      "a1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326.goo" +
+      "gle.cloud.vision.v1p1beta1.FaceAnnotatio" +
+      "n.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_an" +
+      "gle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detecti" +
+      "on_confidence\030\007 \001(\002\022\036\n\026landmarking_confi" +
+      "dence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162).go" +
+      "ogle.cloud.vision.v1p1beta1.Likelihood\022D" +
+      "\n\021sorrow_likelihood\030\n \001(\0162).google.cloud" +
+      ".vision.v1p1beta1.Likelihood\022C\n\020anger_li" +
+      "kelihood\030\013 \001(\0162).google.cloud.vision.v1p" +
+      "1beta1.Likelihood\022F\n\023surprise_likelihood" +
+      "\030\014 \001(\0162).google.cloud.vision.v1p1beta1.L" +
+      "ikelihood\022K\n\030under_exposed_likelihood\030\r " +
+      "\001(\0162).google.cloud.vision.v1p1beta1.Like" +
+      "lihood\022E\n\022blurred_likelihood\030\016 \001(\0162).goo" +
+      "gle.cloud.vision.v1p1beta1.Likelihood\022F\n" +
+      "\023headwear_likelihood\030\017 \001(\0162).google.clou" +
+      "d.vision.v1p1beta1.Likelihood\032\307\007\n\010Landma" +
+      "rk\022I\n\004type\030\003 \001(\0162;.google.cloud.vision.v" +
+      "1p1beta1.FaceAnnotation.Landmark.Type\0229\n" +
+      "\010position\030\004 \001(\0132\'.google.cloud.vision.v1" +
+      "p1beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOWN_LAN" +
+      "DMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024" +
+      "LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_" +
+      "EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026" +
+      "RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BET" +
+      "WEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t" +
+      "\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH" +
+      "_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTO" +
+      "M_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_" +
+      "BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY" +
+      "\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EY" +
+      "E_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_COR" +
+      "NER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIG" +
+      "HT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTO" +
+      "M_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022" +
+      "\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGH" +
+      "T_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_T" +
+      "RAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_" +
+      "EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FORE" +
+      "HEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CH" +
+      "IN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"" +
+      "4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.googl" +
+      "e.type.LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022" +
+      "\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n" +
+      "\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale" +
+      "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001" +
+      "(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001" +
+      "(\002\022B\n\rbounding_poly\030\007 \001(\0132+.google.cloud" +
+      ".vision.v1p1beta1.BoundingPoly\022>\n\tlocati" +
+      "ons\030\010 \003(\0132+.google.cloud.vision.v1p1beta" +
+      "1.LocationInfo\022;\n\nproperties\030\t \003(\0132\'.goo" +
+      "gle.cloud.vision.v1p1beta1.Property\"\274\002\n\024" +
+      "SafeSearchAnnotation\0228\n\005adult\030\001 \001(\0162).go" +
+      "ogle.cloud.vision.v1p1beta1.Likelihood\0228" +
+      "\n\005spoof\030\002 \001(\0162).google.cloud.vision.v1p1" +
+      "beta1.Likelihood\022:\n\007medical\030\003 \001(\0162).goog" +
+      "le.cloud.vision.v1p1beta1.Likelihood\022;\n\010" +
+      "violence\030\004 \001(\0162).google.cloud.vision.v1p" +
+      "1beta1.Likelihood\0227\n\004racy\030\t \001(\0162).google" +
+      ".cloud.vision.v1p1beta1.Likelihood\"a\n\013La" +
+      "tLongRect\022(\n\013min_lat_lng\030\001 \001(\0132\023.google." +
+      "type.LatLng\022(\n\013max_lat_lng\030\002 \001(\0132\023.googl" +
+      "e.type.LatLng\"U\n\tColorInfo\022!\n\005color\030\001 \001(" +
+      "\0132\022.google.type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016" +
+      "pixel_fraction\030\003 \001(\002\"T\n\030DominantColorsAn" +
+      "notation\0228\n\006colors\030\001 \003(\0132(.google.cloud." +
+      "vision.v1p1beta1.ColorInfo\"c\n\017ImagePrope" +
+      "rties\022P\n\017dominant_colors\030\001 \001(\01327.google." +
+      "cloud.vision.v1p1beta1.DominantColorsAnn" +
+      "otation\"\177\n\010CropHint\022B\n\rbounding_poly\030\001 \001" +
+      "(\0132+.google.cloud.vision.v1p1beta1.Bound" +
+      "ingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importanc" +
+      "e_fraction\030\003 \001(\002\"R\n\023CropHintsAnnotation\022" +
+      ";\n\ncrop_hints\030\001 \003(\0132\'.google.cloud.visio" +
+      "n.v1p1beta1.CropHint\"(\n\017CropHintsParams\022" +
+      "\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebDetectionPa" +
+      "rams\022\033\n\023include_geo_results\030\002 \001(\010\"c\n\023Tex" +
+      "tDetectionParams\022.\n&enable_text_detectio" +
+      "n_confidence_score\030\t \001(\010\022\034\n\024advanced_ocr" +
+      "_options\030\013 \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_l" +
+      "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p" +
+      "1beta1.LatLongRect\022\026\n\016language_hints\030\002 \003" +
+      "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c" +
+      "loud.vision.v1p1beta1.CropHintsParams\022O\n" +
+      "\024web_detection_params\030\006 \001(\01321.google.clo" +
+      "ud.vision.v1p1beta1.WebDetectionParams\022Q" +
+      "\n\025text_detection_params\030\014 \001(\01322.google.c" +
+      "loud.vision.v1p1beta1.TextDetectionParam" +
+      "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001(" +
+      "\0132$.google.cloud.vision.v1p1beta1.Image\022" +
+      "8\n\010features\030\002 \003(\0132&.google.cloud.vision." +
+      "v1p1beta1.Feature\022B\n\rimage_context\030\003 \001(\013" +
+      "2+.google.cloud.vision.v1p1beta1.ImageCo" +
+      "ntext\"\302\006\n\025AnnotateImageResponse\022G\n\020face_" +
+      "annotations\030\001 \003(\0132-.google.cloud.vision." +
+      "v1p1beta1.FaceAnnotation\022M\n\024landmark_ann" +
+      "otations\030\002 \003(\0132/.google.cloud.vision.v1p" +
+      "1beta1.EntityAnnotation\022I\n\020logo_annotati" +
+      "ons\030\003 \003(\0132/.google.cloud.vision.v1p1beta" +
+      "1.EntityAnnotation\022J\n\021label_annotations\030" +
+      "\004 \003(\0132/.google.cloud.vision.v1p1beta1.En" +
+      "tityAnnotation\022I\n\020text_annotations\030\005 \003(\013" +
+      "2/.google.cloud.vision.v1p1beta1.EntityA" +
+      "nnotation\022K\n\024full_text_annotation\030\014 \001(\0132" +
+      "-.google.cloud.vision.v1p1beta1.TextAnno" +
+      "tation\022S\n\026safe_search_annotation\030\006 \001(\01323" +
+      ".google.cloud.vision.v1p1beta1.SafeSearc" +
+      "hAnnotation\022S\n\033image_properties_annotati" +
+      "on\030\010 \001(\0132..google.cloud.vision.v1p1beta1" +
+      ".ImageProperties\022Q\n\025crop_hints_annotatio" +
+      "n\030\013 \001(\01322.google.cloud.vision.v1p1beta1." +
+      "CropHintsAnnotation\022B\n\rweb_detection\030\r \001" +
+      "(\0132+.google.cloud.vision.v1p1beta1.WebDe" +
+      "tection\022!\n\005error\030\t \001(\0132\022.google.rpc.Stat" +
+      "us\"h\n\032BatchAnnotateImagesRequest\022J\n\010requ" +
+      "ests\030\001 \003(\01323.google.cloud.vision.v1p1bet" +
+      "a1.AnnotateImageRequestB\003\340A\002\"f\n\033BatchAnn" +
+      "otateImagesResponse\022G\n\tresponses\030\001 \003(\01324" +
+      ".google.cloud.vision.v1p1beta1.AnnotateI" +
+      "mageResponse*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022" +
+      "\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSS" +
+      "IBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\311\002\n\016" +
+      "ImageAnnotator\022\276\001\n\023BatchAnnotateImages\0229" +
+      ".google.cloud.vision.v1p1beta1.BatchAnno" +
+      "tateImagesRequest\032:.google.cloud.vision." +
+      "v1p1beta1.BatchAnnotateImagesResponse\"0\202" +
+      "\323\344\223\002\037\"\032/v1p1beta1/images:annotate:\001*\332A\010r" +
+      "equests\032v\312A\025vision.googleapis.com\322A[http" +
+      "s://www.googleapis.com/auth/cloud-platfo" +
+      "rm,https://www.googleapis.com/auth/cloud" +
+      "-visionB\202\001\n!com.google.cloud.vision.v1p1" +
+      "beta1B\023ImageAnnotatorProtoP\001ZCgoogle.gol" +
+      "ang.org/genproto/googleapis/cloud/vision" +
+      "/v1p1beta1;vision\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(),
+          com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(),
+          com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(),
+          com.google.rpc.StatusProto.getDescriptor(),
+          com.google.type.ColorProto.getDescriptor(),
+          com.google.type.LatLngProto.getDescriptor(),
+        });
+    internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor,
+        new java.lang.String[] { "Type", "MaxResults", "Model", });
+    internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor,
+        new java.lang.String[] { "GcsImageUri", "ImageUri", });
+    internal_static_google_cloud_vision_v1p1beta1_Image_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_Image_descriptor,
+        new java.lang.String[] { "Content", "Source", });
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor,
+        new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", });
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor =
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor,
+        new java.lang.String[] { "Type", "Position", });
+    internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor,
+        new java.lang.String[] { "LatLng", });
+    internal_static_google_cloud_vision_v1p1beta1_Property_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_Property_descriptor,
+        new java.lang.String[] { "Name", "Value", "Uint64Value", });
+    internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor,
+        new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", });
+    internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor,
+        new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", });
+    internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor,
+        new java.lang.String[] { "MinLatLng", "MaxLatLng", });
+    internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor,
+        new java.lang.String[] { "Color", "Score", "PixelFraction", });
+    internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor,
+        new java.lang.String[] { "Colors", });
+    internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor,
+        new java.lang.String[] { "DominantColors", });
+    internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor,
+        new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", });
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor,
+        new java.lang.String[] { "CropHints", });
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor =
+      getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor,
+        new java.lang.String[] { "AspectRatios", });
+    internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor =
+      getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor,
+        new java.lang.String[] { "IncludeGeoResults", });
+    internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor =
+      getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor,
+        new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", });
+    internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor =
+      getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor,
+        new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "WebDetectionParams", "TextDetectionParams", });
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor =
+      getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor,
+        new java.lang.String[] { "Image", "Features", "ImageContext", });
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor =
+      getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor,
+        new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "Error", });
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor,
+        new java.lang.String[] { "Requests", });
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor,
+        new java.lang.String[] { "Responses", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+    com.google.type.ColorProto.getDescriptor();
+    com.google.type.LatLngProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
similarity index 75%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
index 3df8d6e5a..444455c6e 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
- *
- *
  * 
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageContext} */ -public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageContext) ImageContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,90 +54,74 @@ private ImageContext( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = input.readMessage(com.google.cloud.vision.v1p1beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + case 34: { + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; + + break; + } + case 50: { + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.CropHintsParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; + webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); - } - webDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); } - case 98: - { - com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); - } - textDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); - } - - break; + textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -162,7 +129,8 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -171,33 +139,27 @@ private ImageContext( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageContext.class, - com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageContext.class, com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.LatLongRect latLongRect_; /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -205,25 +167,18 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null - ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; } /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
@@ -238,8 +193,6 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -252,15 +205,13 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_; } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -273,15 +224,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -294,7 +242,6 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -302,8 +249,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -316,25 +261,22 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p1beta1.CropHintsParams cropHintsParams_; /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -342,25 +284,18 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -375,14 +310,11 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p1beta1.WebDetectionParams webDetectionParams_; /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -390,25 +322,18 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } /** - * - * *
    * Parameters for web detection.
    * 
@@ -416,22 +341,18 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p1beta1.TextDetectionParams textDetectionParams_; /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -439,25 +360,18 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
@@ -465,13 +379,11 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -483,7 +395,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -509,7 +422,8 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -520,14 +434,16 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCropHintsParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -537,30 +453,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageContext other = - (com.google.cloud.vision.v1p1beta1.ImageContext) obj; + com.google.cloud.vision.v1p1beta1.ImageContext other = (com.google.cloud.vision.v1p1beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect().equals(other.getLatLongRect())) return false; + if (!getLatLongRect() + .equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList() + .equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams() + .equals(other.getCropHintsParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams() + .equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams() + .equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -598,127 +518,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageContext} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageContext) com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageContext.class, - com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageContext.class, com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder() @@ -726,15 +637,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -768,9 +680,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override @@ -789,8 +701,7 @@ public com.google.cloud.vision.v1p1beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageContext result = - new com.google.cloud.vision.v1p1beta1.ImageContext(this); + com.google.cloud.vision.v1p1beta1.ImageContext result = new com.google.cloud.vision.v1p1beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -825,39 +736,38 @@ public com.google.cloud.vision.v1p1beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageContext) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageContext)other); } else { super.mergeFrom(other); return this; @@ -916,52 +826,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> - latLongRectBuilder_; + com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> latLongRectBuilder_; /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ public com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null - ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -982,8 +878,6 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect valu return this; } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1002,8 +896,6 @@ public Builder setLatLongRect( return this; } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1014,9 +906,7 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder(latLongRect_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); } else { latLongRect_ = value; } @@ -1028,8 +918,6 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect va return this; } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1048,8 +936,6 @@ public Builder clearLatLongRect() { return this; } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1057,13 +943,11 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p1beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1074,14 +958,11 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null - ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? + com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; } } /** - * - * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -1089,34 +970,27 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder>( - getLatLongRect(), getParentForChildren(), isClean()); + latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder>( + getLatLongRect(), + getParentForChildren(), + isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1129,15 +1003,13 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1150,15 +1022,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
      * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1171,7 +1040,6 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1179,8 +1047,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1193,16 +1059,14 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1215,23 +1079,21 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints(int index, java.lang.String value) { + public Builder setLanguageHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1244,22 +1106,20 @@ public Builder setLanguageHints(int index, java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints(java.lang.String value) { + public Builder addLanguageHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1272,19 +1132,18 @@ public Builder addLanguageHints(java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints(java.lang.Iterable values) { + public Builder addAllLanguageHints( + java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1297,7 +1156,6 @@ public Builder addAllLanguageHints(java.lang.Iterable values)
      * 
* * repeated string language_hints = 2; - * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1307,8 +1165,6 @@ public Builder clearLanguageHints() { return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1321,15 +1177,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; - * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1338,47 +1194,34 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p1beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> - cropHintsParamsBuilder_; + com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1399,8 +1242,6 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsPar return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1419,8 +1260,6 @@ public Builder setCropHintsParams( return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1431,9 +1270,7 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder(cropHintsParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); } else { cropHintsParams_ = value; } @@ -1445,8 +1282,6 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsP return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1465,8 +1300,6 @@ public Builder clearCropHintsParams() { return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1474,32 +1307,26 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder - getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? + com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1507,17 +1334,14 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder getCropHintsPar * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), getParentForChildren(), isClean()); + cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), + getParentForChildren(), + isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1525,55 +1349,41 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder getCropHintsPar private com.google.cloud.vision.v1p1beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> - webDetectionParamsBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams( - com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { + public Builder setWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1587,8 +1397,6 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1607,22 +1415,17 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams( - com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder(webDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); } else { webDetectionParams_ = value; } @@ -1634,8 +1437,6 @@ public Builder mergeWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1654,42 +1455,33 @@ public Builder clearWebDetectionParams() { return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder - getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? + com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1697,17 +1489,14 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), getParentForChildren(), isClean()); + webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), + getParentForChildren(), + isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1715,55 +1504,41 @@ public Builder clearWebDetectionParams() { private com.google.cloud.vision.v1p1beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, - com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> - textDetectionParamsBuilder_; + com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams( - com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { + public Builder setTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1777,8 +1552,6 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1797,22 +1570,17 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams( - com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder(textDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); } else { textDetectionParams_ = value; } @@ -1824,8 +1592,6 @@ public Builder mergeTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1844,42 +1610,33 @@ public Builder clearTextDetectionParams() { return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder - getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? + com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1887,24 +1644,21 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, - com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, - com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), getParentForChildren(), isClean()); + textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), + getParentForChildren(), + isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1914,12 +1668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageContext) private static final com.google.cloud.vision.v1p1beta1.ImageContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageContext(); } @@ -1928,16 +1682,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1952,4 +1706,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java similarity index 87% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java index f0006462b..ae176ee84 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageContextOrBuilder - extends +public interface ImageContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect(); /** - * - * *
    * lat/long rectangle that specifies the location of the image.
    * 
@@ -59,8 +35,6 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -73,13 +47,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - java.util.List getLanguageHintsList(); + java.util.List + getLanguageHintsList(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -92,13 +64,10 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ int getLanguageHintsCount(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -111,14 +80,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -131,39 +97,31 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString getLanguageHintsBytes(int index); + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -173,32 +131,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
@@ -208,32 +158,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java similarity index 71% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java index 6824970d2..028742231 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -33,14 +15,11 @@ public interface ImageOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -48,13 +27,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -62,13 +38,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; - * * @return The source. */ com.google.cloud.vision.v1p1beta1.ImageSource getSource(); /** - * - * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
similarity index 69%
rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
index f4934c319..2850e0cd1 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
- *
- *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageProperties} */ -public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageProperties) ImagePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageProperties() {} + private ImageProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageProperties( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); - } - dominantColors_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dominantColors_ = input.readMessage(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageProperties.class, - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageProperties.class, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominantColors_; /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null - ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageProperties other = - (com.google.cloud.vision.v1p1beta1.ImageProperties) obj; + com.google.cloud.vision.v1p1beta1.ImageProperties other = (com.google.cloud.vision.v1p1beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors().equals(other.getDominantColors())) return false; + if (!getDominantColors() + .equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageProperties) com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageProperties.class, - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageProperties.class, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder() @@ -367,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override @@ -410,8 +370,7 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageProperties result = - new com.google.cloud.vision.v1p1beta1.ImageProperties(this); + com.google.cloud.vision.v1p1beta1.ImageProperties result = new com.google.cloud.vision.v1p1beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageProperties) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageProperties)other); } else { super.mergeFrom(other); return this; @@ -465,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -489,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> - dominantColorsBuilder_; + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null - ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { + public Builder setDominantColors(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -564,8 +506,6 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -584,22 +524,17 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder(dominantColors_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); } else { dominantColors_ = value; } @@ -611,8 +546,6 @@ public Builder mergeDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -631,42 +564,33 @@ public Builder clearDominantColors() { return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder - getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null - ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -674,24 +598,21 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), getParentForChildren(), isClean()); + dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), + getParentForChildren(), + isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageProperties) private static final com.google.cloud.vision.v1p1beta1.ImageProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageProperties(); } @@ -715,16 +636,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java index 86b792273..ca186d7d1 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImagePropertiesOrBuilder - extends +public interface ImagePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java similarity index 76% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java index 24ddf962c..6649bab9d 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * External image source (Google Cloud Storage image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageSource} */ -public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageSource) ImageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -44,15 +26,16 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ImageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageSource.class, - com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageSource.class, com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** - * - * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -136,7 +113,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ @java.lang.Override @@ -145,15 +121,14 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** - * - * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -164,15 +139,16 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -183,8 +159,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** - * - * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -199,7 +173,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
    * 
* * string image_uri = 2; - * * @return The imageUri. */ @java.lang.Override @@ -208,15 +181,14 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -231,15 +203,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -248,7 +221,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -290,16 +263,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageSource other = - (com.google.cloud.vision.v1p1beta1.ImageSource) obj; + com.google.cloud.vision.v1p1beta1.ImageSource other = (com.google.cloud.vision.v1p1beta1.ImageSource) obj; - if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; + if (!getGcsImageUri() + .equals(other.getGcsImageUri())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,127 +294,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * External image source (Google Cloud Storage image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageSource) com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageSource.class, - com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageSource.class, com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder() @@ -448,15 +413,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override @@ -489,8 +455,7 @@ public com.google.cloud.vision.v1p1beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageSource result = - new com.google.cloud.vision.v1p1beta1.ImageSource(this); + com.google.cloud.vision.v1p1beta1.ImageSource result = new com.google.cloud.vision.v1p1beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -501,39 +466,38 @@ public com.google.cloud.vision.v1p1beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageSource) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageSource)other); } else { super.mergeFrom(other); return this; @@ -581,8 +545,6 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** - * - * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -593,13 +555,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -608,8 +570,6 @@ public java.lang.String getGcsImageUri() { } } /** - * - * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -620,14 +580,15 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -635,8 +596,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { } } /** - * - * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -647,22 +606,20 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
      * 
* * string gcs_image_uri = 1; - * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri(java.lang.String value) { + public Builder setGcsImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** - * - * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -673,18 +630,15 @@ public Builder setGcsImageUri(java.lang.String value) {
      * 
* * string gcs_image_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** - * - * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -695,16 +649,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -712,8 +666,6 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -728,13 +680,13 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 2; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -743,8 +695,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -759,14 +709,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -774,8 +725,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -790,22 +739,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 2; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -820,18 +767,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 2; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -846,23 +790,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -872,12 +816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageSource) private static final com.google.cloud.vision.v1p1beta1.ImageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageSource(); } @@ -886,16 +830,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -910,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java similarity index 76% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java index f277818d6..6ecdd6db2 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageSourceOrBuilder - extends +public interface ImageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -36,13 +18,10 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** - * - * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -53,14 +32,12 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString getGcsImageUriBytes(); + com.google.protobuf.ByteString + getGcsImageUriBytes(); /** - * - * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -75,13 +52,10 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -96,8 +70,8 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java similarity index 72% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java index eb8c51dcc..30513a85c 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LatLongRect} */ -public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LatLongRect extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.LatLongRect) LatLongRectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatLongRect() {} + private LatLongRect() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,39 @@ private LatLongRect( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); } - case 18: - { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); - } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); - } - - break; + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,39 +92,34 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LatLongRect.class, - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p1beta1.LatLongRect.class, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -150,14 +127,11 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ @java.lang.Override @@ -165,8 +139,6 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** - * - * *
    * Min lat/long pair.
    * 
@@ -181,14 +153,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -196,14 +165,11 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ @java.lang.Override @@ -211,8 +177,6 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** - * - * *
    * Max lat/long pair.
    * 
@@ -225,7 +189,6 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -254,10 +218,12 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.LatLongRect other = - (com.google.cloud.vision.v1p1beta1.LatLongRect) obj; + com.google.cloud.vision.v1p1beta1.LatLongRect other = (com.google.cloud.vision.v1p1beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng().equals(other.getMinLatLng())) return false; + if (!getMinLatLng() + .equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng() + .equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LatLongRect} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.LatLongRect) com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LatLongRect.class, - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p1beta1.LatLongRect.class, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder() @@ -435,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override @@ -484,8 +443,7 @@ public com.google.cloud.vision.v1p1beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p1beta1.LatLongRect result = - new com.google.cloud.vision.v1p1beta1.LatLongRect(this); + com.google.cloud.vision.v1p1beta1.LatLongRect result = new com.google.cloud.vision.v1p1beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -504,39 +462,38 @@ public com.google.cloud.vision.v1p1beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.LatLongRect) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.LatLongRect)other); } else { super.mergeFrom(other); return this; @@ -582,31 +539,24 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -617,8 +567,6 @@ public com.google.type.LatLng getMinLatLng() { } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -639,15 +587,14 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng( + com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -658,8 +605,6 @@ public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -670,7 +615,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -682,8 +627,6 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -702,8 +645,6 @@ public Builder clearMinLatLng() { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -711,13 +652,11 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Min lat/long pair.
      * 
@@ -728,12 +667,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -741,14 +679,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); + minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMinLatLng(), + getParentForChildren(), + isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -756,31 +694,24 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -791,8 +722,6 @@ public com.google.type.LatLng getMaxLatLng() { } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -813,15 +742,14 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng( + com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -832,8 +760,6 @@ public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -844,7 +770,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -856,8 +782,6 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -876,8 +800,6 @@ public Builder clearMaxLatLng() { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -885,13 +807,11 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Max lat/long pair.
      * 
@@ -902,12 +822,11 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -915,21 +834,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); + maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMaxLatLng(), + getParentForChildren(), + isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LatLongRect) private static final com.google.cloud.vision.v1p1beta1.LatLongRect DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.LatLongRect(); } @@ -953,16 +872,16 @@ public static com.google.cloud.vision.v1p1beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java index 5bf3c301c..5b7a3f94d 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface LatLongRectOrBuilder - extends +public interface LatLongRectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
@@ -59,32 +35,24 @@ public interface LatLongRectOrBuilder com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java similarity index 71% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java index 8777303f3..aef339b3b 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p1beta1.Likelihood}
  */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unknown likelihood.
    * 
@@ -40,8 +22,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -50,8 +30,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ VERY_UNLIKELY(1), /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -60,8 +38,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNLIKELY(2), /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -70,8 +46,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ POSSIBLE(3), /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -80,8 +54,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ LIKELY(4), /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -93,8 +65,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown likelihood.
    * 
@@ -103,8 +73,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -113,8 +81,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_UNLIKELY_VALUE = 1; /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -123,8 +89,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNLIKELY_VALUE = 2; /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -133,8 +97,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSSIBLE_VALUE = 3; /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -143,8 +105,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIKELY_VALUE = 4; /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -153,6 +113,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_LIKELY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,57 +138,52 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return VERY_UNLIKELY; - case 2: - return UNLIKELY; - case 3: - return POSSIBLE; - case 4: - return LIKELY; - case 5: - return VERY_LIKELY; - default: - return null; + case 0: return UNKNOWN; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -243,3 +199,4 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p1beta1.Likelihood) } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java similarity index 71% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java index 0f5375101..bc899c218 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LocationInfo} */ -public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.LocationInfo) LocationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationInfo() {} + private LocationInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,27 +52,26 @@ private LocationInfo( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); - } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +79,34 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LocationInfo.class, - com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p1beta1.LocationInfo.class, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -136,14 +114,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -151,8 +126,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * lat/long location coordinates.
    * 
@@ -165,7 +138,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -191,7 +164,8 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.LocationInfo other = - (com.google.cloud.vision.v1p1beta1.LocationInfo) obj; + com.google.cloud.vision.v1p1beta1.LocationInfo other = (com.google.cloud.vision.v1p1beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -233,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LocationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.LocationInfo) com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LocationInfo.class, - com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p1beta1.LocationInfo.class, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.LocationInfo.newBuilder() @@ -361,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override @@ -404,8 +370,7 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p1beta1.LocationInfo result = - new com.google.cloud.vision.v1p1beta1.LocationInfo(this); + com.google.cloud.vision.v1p1beta1.LocationInfo result = new com.google.cloud.vision.v1p1beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -419,39 +384,38 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.LocationInfo) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.LocationInfo)other); } else { super.mergeFrom(other); return this; @@ -494,31 +458,24 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -529,8 +486,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -551,15 +506,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -570,8 +524,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -581,7 +533,8 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = + com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -593,8 +546,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -613,8 +564,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -622,13 +571,11 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -639,12 +586,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -652,21 +598,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LocationInfo) private static final com.google.cloud.vision.v1p1beta1.LocationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.LocationInfo(); } @@ -690,16 +636,16 @@ public static com.google.cloud.vision.v1p1beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java index 5915942b9..e5cfd64a4 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface LocationInfoOrBuilder - extends +public interface LocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java similarity index 74% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java index 6a24ce75d..6105d55b5 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Page} */ -public final class Page extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Page extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Page) PageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,50 @@ private Page( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - width_ = input.readInt32(); - break; + case 10: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 24: - { - height_ = input.readInt32(); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blocks_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + blocks_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,8 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -138,33 +115,27 @@ private Page( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Page.class, - com.google.cloud.vision.v1p1beta1.Page.Builder.class); + com.google.cloud.vision.v1p1beta1.Page.class, com.google.cloud.vision.v1p1beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -172,25 +143,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected on the page.
    * 
@@ -198,22 +162,18 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * - * *
    * Page width in pixels.
    * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -224,14 +184,11 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * - * *
    * Page height in pixels.
    * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -242,8 +199,6 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -255,8 +210,6 @@ public java.util.List getBlocksList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -264,13 +217,11 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -282,8 +233,6 @@ public int getBlocksCount() { return blocks_.size(); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -295,8 +244,6 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { return blocks_.get(index); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -304,21 +251,19 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -327,7 +272,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +283,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,19 +310,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,7 +337,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Page)) { return super.equals(obj); @@ -396,13 +346,18 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; - } - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; - if (!getBlocksList().equals(other.getBlocksList())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getBlocksList() + .equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -427,133 +382,125 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Page parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Page} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Page) com.google.cloud.vision.v1p1beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Page.class, - com.google.cloud.vision.v1p1beta1.Page.Builder.class); + com.google.cloud.vision.v1p1beta1.Page.class, com.google.cloud.vision.v1p1beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Page.newBuilder() @@ -561,17 +508,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -597,9 +544,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override @@ -618,8 +565,7 @@ public com.google.cloud.vision.v1p1beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Page buildPartial() { - com.google.cloud.vision.v1p1beta1.Page result = - new com.google.cloud.vision.v1p1beta1.Page(this); + com.google.cloud.vision.v1p1beta1.Page result = new com.google.cloud.vision.v1p1beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -646,39 +592,38 @@ public com.google.cloud.vision.v1p1beta1.Page buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Page) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Page)other); } else { super.mergeFrom(other); return this; @@ -714,10 +659,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlocksFieldBuilder() - : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -754,60 +698,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -841,22 +768,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -868,8 +790,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -888,42 +808,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -931,32 +842,26 @@ public Builder clearProperty() { * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - private int width_; + private int width_ ; /** - * - * *
      * Page width in pixels.
      * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -964,51 +869,42 @@ public int getWidth() { return width_; } /** - * - * *
      * Page width in pixels.
      * 
* * int32 width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Page width in pixels.
      * 
* * int32 width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
      * Page height in pixels.
      * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -1016,60 +912,48 @@ public int getHeight() { return height_; } /** - * - * *
      * Page height in pixels.
      * 
* * int32 height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Page height in pixels.
      * 
* * int32 height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, - com.google.cloud.vision.v1p1beta1.Block.Builder, - com.google.cloud.vision.v1p1beta1.BlockOrBuilder> - blocksBuilder_; + com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder> blocksBuilder_; /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1084,8 +968,6 @@ public java.util.List getBlocksList() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1100,8 +982,6 @@ public int getBlocksCount() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1116,15 +996,14 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1p1beta1.Block value) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1p1beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1138,8 +1017,6 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1p1beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1158,8 +1035,6 @@ public Builder setBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1180,15 +1055,14 @@ public Builder addBlocks(com.google.cloud.vision.v1p1beta1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1p1beta1.Block value) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1p1beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1202,15 +1076,14 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1p1beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder addBlocks(com.google.cloud.vision.v1p1beta1.Block.Builder builderForValue) { + public Builder addBlocks( + com.google.cloud.vision.v1p1beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1221,8 +1094,6 @@ public Builder addBlocks(com.google.cloud.vision.v1p1beta1.Block.Builder builder return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1241,8 +1112,6 @@ public Builder addBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1253,7 +1122,8 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1261,8 +1131,6 @@ public Builder addAllBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1280,8 +1148,6 @@ public Builder clearBlocks() { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1299,44 +1165,39 @@ public Builder removeBlocks(int index) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.Block.Builder getBlocksBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Block.Builder getBlocksBuilder( + int index) { return getBlocksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); - } else { + return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1344,8 +1205,6 @@ public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int i } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1353,62 +1212,54 @@ public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int i * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder(int index) { - return getBlocksFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public java.util.List getBlocksBuilderList() { + public java.util.List + getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, - com.google.cloud.vision.v1p1beta1.Block.Builder, - com.google.cloud.vision.v1p1beta1.BlockOrBuilder> + com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, - com.google.cloud.vision.v1p1beta1.Block.Builder, - com.google.cloud.vision.v1p1beta1.BlockOrBuilder>( - blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1416,43 +1267,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1462,12 +1307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Page) private static final com.google.cloud.vision.v1p1beta1.Page DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Page(); } @@ -1476,16 +1321,16 @@ public static com.google.cloud.vision.v1p1beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1500,4 +1345,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java index 3f6ae7c67..59a47d4bc 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface PageOrBuilder - extends +public interface PageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Page) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
@@ -59,44 +35,35 @@ public interface PageOrBuilder com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * Page width in pixels.
    * 
* * int32 width = 2; - * * @return The width. */ int getWidth(); /** - * - * *
    * Page height in pixels.
    * 
* * int32 height = 3; - * * @return The height. */ int getHeight(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - java.util.List getBlocksList(); + java.util.List + getBlocksList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -105,8 +72,6 @@ public interface PageOrBuilder */ com.google.cloud.vision.v1p1beta1.Block getBlocks(int index); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -115,36 +80,30 @@ public interface PageOrBuilder */ int getBlocksCount(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java similarity index 77% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java index 98f13aea7..ce2093bbb 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Paragraph} */ -public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Paragraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Paragraph) ParagraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Paragraph( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Word.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Word.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -144,33 +118,27 @@ private Paragraph( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Paragraph.class, - com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p1beta1.Paragraph.class, com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
@@ -315,8 +263,6 @@ public java.util.List getWordsList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -324,13 +270,11 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -342,8 +286,6 @@ public int getWordsCount() { return words_.size(); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -355,8 +297,6 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { return words_.get(index); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -364,21 +304,19 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( + int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -387,7 +325,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -422,16 +360,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -441,25 +383,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Paragraph other = - (com.google.cloud.vision.v1p1beta1.Paragraph) obj; + com.google.cloud.vision.v1p1beta1.Paragraph other = (com.google.cloud.vision.v1p1beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,133 +429,125 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Paragraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Paragraph) com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Paragraph.class, - com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p1beta1.Paragraph.class, com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Paragraph.newBuilder() @@ -618,17 +555,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override @@ -677,8 +614,7 @@ public com.google.cloud.vision.v1p1beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p1beta1.Paragraph result = - new com.google.cloud.vision.v1p1beta1.Paragraph(this); + com.google.cloud.vision.v1p1beta1.Paragraph result = new com.google.cloud.vision.v1p1beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -708,39 +644,38 @@ public com.google.cloud.vision.v1p1beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Paragraph) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Paragraph)other); } else { super.mergeFrom(other); return this; @@ -773,10 +708,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -813,60 +747,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -880,8 +799,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -900,22 +817,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -927,8 +839,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -947,42 +857,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -990,17 +891,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1008,13 +906,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1034,15 +927,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1062,21 +952,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,8 +996,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1145,8 +1028,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,9 +1052,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1185,8 +1064,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1219,8 +1096,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,13 +1117,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1273,14 +1146,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1302,41 +1172,32 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Word,
-            com.google.cloud.vision.v1p1beta1.Word.Builder,
-            com.google.cloud.vision.v1p1beta1.WordOrBuilder>
-        wordsBuilder_;
+        com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder> wordsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of words in this paragraph.
      * 
@@ -1351,8 +1212,6 @@ public java.util.List getWordsList() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1367,8 +1226,6 @@ public int getWordsCount() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1383,15 +1240,14 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1p1beta1.Word value) { + public Builder setWords( + int index, com.google.cloud.vision.v1p1beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1405,8 +1261,6 @@ public Builder setWords(int index, com.google.cloud.vision.v1p1beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1425,8 +1279,6 @@ public Builder setWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1447,15 +1299,14 @@ public Builder addWords(com.google.cloud.vision.v1p1beta1.Word value) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1p1beta1.Word value) { + public Builder addWords( + int index, com.google.cloud.vision.v1p1beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1469,15 +1320,14 @@ public Builder addWords(int index, com.google.cloud.vision.v1p1beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder addWords(com.google.cloud.vision.v1p1beta1.Word.Builder builderForValue) { + public Builder addWords( + com.google.cloud.vision.v1p1beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1488,8 +1338,6 @@ public Builder addWords(com.google.cloud.vision.v1p1beta1.Word.Builder builderFo return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1508,8 +1356,6 @@ public Builder addWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1520,7 +1366,8 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1528,8 +1375,6 @@ public Builder addAllWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1547,8 +1392,6 @@ public Builder clearWords() { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1566,44 +1409,39 @@ public Builder removeWords(int index) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.Word.Builder getWordsBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Word.Builder getWordsBuilder( + int index) { return getWordsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( + int index) { if (wordsBuilder_ == null) { - return words_.get(index); - } else { + return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1611,8 +1449,6 @@ public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int ind } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1620,62 +1456,54 @@ public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int ind * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder(int index) { - return getWordsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder( + int index) { + return getWordsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public java.util.List getWordsBuilderList() { + public java.util.List + getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Word, - com.google.cloud.vision.v1p1beta1.Word.Builder, - com.google.cloud.vision.v1p1beta1.WordOrBuilder> + com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Word, - com.google.cloud.vision.v1p1beta1.Word.Builder, - com.google.cloud.vision.v1p1beta1.WordOrBuilder>( - words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder>( + words_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1683,43 +1511,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1729,12 +1551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Paragraph) private static final com.google.cloud.vision.v1p1beta1.Paragraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Paragraph(); } @@ -1743,16 +1565,16 @@ public static com.google.cloud.vision.v1p1beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1767,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java index c191eee90..7e8db9054 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface ParagraphOrBuilder - extends +public interface ParagraphOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -59,8 +35,6 @@ public interface ParagraphOrBuilder com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface ParagraphOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -156,8 +121,6 @@ public interface ParagraphOrBuilder */ com.google.cloud.vision.v1p1beta1.Word getWords(int index); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -166,35 +129,30 @@ public interface ParagraphOrBuilder */ int getWordsCount(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - java.util.List getWordsOrBuilderList(); + java.util.List + getWordsOrBuilderList(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java similarity index 68% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java index c5af9392d..02237f241 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Position}
  */
-public final class Position extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Position extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Position)
     PositionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Position() {}
+  private Position() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          case 29:
-            {
-              z_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            z_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,39 +83,34 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Position.class,
-            com.google.cloud.vision.v1p1beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Position.class, com.google.cloud.vision.v1p1beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -142,14 +121,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -160,14 +136,11 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -176,7 +149,6 @@ public float getZ() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -208,13 +181,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -224,20 +200,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Position other = - (com.google.cloud.vision.v1p1beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; - if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) - return false; + com.google.cloud.vision.v1p1beta1.Position other = (com.google.cloud.vision.v1p1beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; + if (java.lang.Float.floatToIntBits(getZ()) + != java.lang.Float.floatToIntBits( + other.getZ())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -250,114 +228,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -366,23 +340,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Position}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Position)
       com.google.cloud.vision.v1p1beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Position.class,
-              com.google.cloud.vision.v1p1beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Position.class, com.google.cloud.vision.v1p1beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Position.newBuilder()
@@ -390,15 +362,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +406,7 @@ public com.google.cloud.vision.v1p1beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Position result =
-          new com.google.cloud.vision.v1p1beta1.Position(this);
+      com.google.cloud.vision.v1p1beta1.Position result = new com.google.cloud.vision.v1p1beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -446,39 +418,38 @@ public com.google.cloud.vision.v1p1beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Position) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Position)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,16 +496,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -542,51 +510,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -594,51 +553,42 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_; + private float z_ ; /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -646,43 +596,37 @@ public float getZ() { return z_; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Position) private static final com.google.cloud.vision.v1p1beta1.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Position(); } @@ -706,16 +650,16 @@ public static com.google.cloud.vision.v1p1beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +674,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java similarity index 50% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java index c73fbe941..2ba8c03f0 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; -public interface PositionOrBuilder - extends +public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Position) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ float getX(); /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ float getY(); /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ float getZ(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java similarity index 70% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java index 2d8bc5132..497914bdd 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; value_ = ""; @@ -44,15 +26,16 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private Property( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 24: - { - uint64Value_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + case 24: { + + uint64Value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Property.class, - com.google.cloud.vision.v1p1beta1.Property.Builder.class); + com.google.cloud.vision.v1p1beta1.Property.class, com.google.cloud.vision.v1p1beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -194,29 +167,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -227,14 +200,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -243,7 +213,6 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,17 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Property other = - (com.google.cloud.vision.v1p1beta1.Property) obj; + com.google.cloud.vision.v1p1beta1.Property other = (com.google.cloud.vision.v1p1beta1.Property) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (getUint64Value() != other.getUint64Value()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getUint64Value() + != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,133 +291,125 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Property) com.google.cloud.vision.v1p1beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Property.class, - com.google.cloud.vision.v1p1beta1.Property.Builder.class); + com.google.cloud.vision.v1p1beta1.Property.class, com.google.cloud.vision.v1p1beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Property.newBuilder() @@ -452,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p1beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Property buildPartial() { - com.google.cloud.vision.v1p1beta1.Property result = - new com.google.cloud.vision.v1p1beta1.Property(this); + com.google.cloud.vision.v1p1beta1.Property result = new com.google.cloud.vision.v1p1beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -508,39 +473,38 @@ public com.google.cloud.vision.v1p1beta1.Property buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Property) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Property)other); } else { super.mergeFrom(other); return this; @@ -591,20 +555,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,21 +575,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,61 +596,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -697,20 +651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -719,21 +671,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -741,76 +692,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_; + private long uint64Value_ ; /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -818,43 +759,37 @@ public long getUint64Value() { return uint64Value_; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Property) private static final com.google.cloud.vision.v1p1beta1.Property DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Property(); } @@ -878,16 +813,16 @@ public static com.google.cloud.vision.v1p1beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java index 03cdce0c9..ce36f3b76 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ long getUint64Value(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java similarity index 76% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java index cfe331235..5dcbbac7d 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SafeSearchAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -49,15 +31,16 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,48 +59,43 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              adult_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            adult_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              spoof_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            spoof_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              medical_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            medical_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              violence_ = rawValue;
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            violence_ = rawValue;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              racy_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            racy_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,33 +103,29 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class,
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
-   *
-   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -159,16 +133,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -176,22 +146,17 @@ public int getAdultValue() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The adult. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -199,16 +164,12 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -216,94 +177,71 @@ public int getSpoofValue() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The spoof. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The medical. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The violence. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -312,16 +250,12 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -330,19 +264,15 @@ public int getRacyValue() {
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The racy. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -380,19 +311,24 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,13 +338,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other = - (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -442,104 +377,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -548,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class,
-              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder()
@@ -572,15 +497,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +545,7 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation result =
-          new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -634,39 +559,38 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -674,8 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -710,8 +633,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -723,8 +645,6 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
-     *
-     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -732,16 +652,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -749,19 +665,16 @@ public int getAdultValue() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -769,19 +682,15 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -789,7 +698,6 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @param value The adult to set. * @return This builder for chaining. */ @@ -797,14 +705,12 @@ public Builder setAdult(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -812,11 +718,10 @@ public Builder setAdult(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -824,8 +729,6 @@ public Builder clearAdult() { private int spoof_ = 0; /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -833,16 +736,12 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -850,19 +749,16 @@ public int getSpoofValue() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -870,19 +766,15 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -890,7 +782,6 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @param value The spoof to set. * @return This builder for chaining. */ @@ -898,14 +789,12 @@ public Builder setSpoof(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -913,11 +802,10 @@ public Builder setSpoof(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -925,65 +813,51 @@ public Builder clearSpoof() { private int medical_ = 0; /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @param value The medical to set. * @return This builder for chaining. */ @@ -991,24 +865,21 @@ public Builder setMedical(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -1016,65 +887,51 @@ public Builder clearMedical() { private int violence_ = 0; /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @param value The violence to set. * @return This builder for chaining. */ @@ -1082,24 +939,21 @@ public Builder setViolence(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -1107,8 +961,6 @@ public Builder clearViolence() { private int racy_ = 0; /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1117,16 +969,12 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1135,19 +983,16 @@ public int getRacyValue() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1156,19 +1001,15 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = - com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1177,7 +1018,6 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @param value The racy to set. * @return This builder for chaining. */ @@ -1185,14 +1025,12 @@ public Builder setRacy(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1201,18 +1039,17 @@ public Builder setRacy(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1222,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(); } @@ -1236,16 +1073,16 @@ public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java index 3eb92c90c..d86304073 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface SafeSearchAnnotationOrBuilder - extends +public interface SafeSearchAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -33,13 +15,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -47,14 +26,11 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; - * * @return The adult. */ com.google.cloud.vision.v1p1beta1.Likelihood getAdult(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -62,13 +38,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -76,64 +49,49 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; - * * @return The spoof. */ com.google.cloud.vision.v1p1beta1.Likelihood getSpoof(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; - * * @return The medical. */ com.google.cloud.vision.v1p1beta1.Likelihood getMedical(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; - * * @return The violence. */ com.google.cloud.vision.v1p1beta1.Likelihood getViolence(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -142,13 +100,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -157,7 +112,6 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; - * * @return The racy. */ com.google.cloud.vision.v1p1beta1.Likelihood getRacy(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java similarity index 75% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java index f386f3c4d..1f8703351 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Symbol} */ -public final class Symbol extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Symbol extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Symbol) SymbolOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,50 @@ private Symbol( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,39 +104,34 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Symbol.class, - com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p1beta1.Symbol.class, com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -170,25 +139,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -196,16 +158,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -225,7 +184,6 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -233,8 +191,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -254,18 +210,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -294,14 +245,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ @java.lang.Override @@ -310,29 +258,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -343,14 +291,11 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -359,7 +304,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -394,16 +339,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Symbol)) { return super.equals(obj); @@ -422,15 +370,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,133 +405,125 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Symbol} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Symbol) com.google.cloud.vision.v1p1beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Symbol.class, - com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p1beta1.Symbol.class, com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Symbol.newBuilder() @@ -587,15 +531,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override @@ -640,8 +585,7 @@ public com.google.cloud.vision.v1p1beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p1beta1.Symbol result = - new com.google.cloud.vision.v1p1beta1.Symbol(this); + com.google.cloud.vision.v1p1beta1.Symbol result = new com.google.cloud.vision.v1p1beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -662,39 +606,38 @@ public com.google.cloud.vision.v1p1beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Symbol) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Symbol)other); } else { super.mergeFrom(other); return this; @@ -747,55 +690,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,8 +738,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -829,22 +756,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -856,8 +778,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -876,42 +796,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -919,17 +830,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -937,13 +845,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -963,15 +866,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,21 +891,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1040,8 +935,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1074,8 +967,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1100,9 +991,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1114,8 +1003,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1148,8 +1035,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,13 +1056,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1202,14 +1085,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1231,17 +1111,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1249,20 +1126,18 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1271,21 +1146,20 @@ public java.lang.String getText() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1293,76 +1167,66 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1370,43 +1234,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Symbol) private static final com.google.cloud.vision.v1p1beta1.Symbol DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Symbol(); } @@ -1430,16 +1288,16 @@ public static com.google.cloud.vision.v1p1beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,4 +1312,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java index eee18e020..5884bbe30 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface SymbolOrBuilder - extends +public interface SymbolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -59,8 +35,6 @@ public interface SymbolOrBuilder com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,39 +104,31 @@ public interface SymbolOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java similarity index 70% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java index f376b624e..41d265563 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation}
  */
-public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -51,15 +33,16 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,31 +62,28 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p1beta1.Page.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pages_.add(
+                input.readMessage(com.google.cloud.vision.v1p1beta1.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            text_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,7 +91,8 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -120,30 +101,24 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.class,
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder
-      extends
+  public interface DetectedLanguageOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -151,13 +126,10 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -165,58 +137,53 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); } /** - * - * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -235,25 +202,24 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -261,33 +227,29 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -295,7 +257,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +265,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -320,15 +280,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -339,14 +300,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -355,7 +313,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -387,7 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,17 +356,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,102 +382,95 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -527,49 +480,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,16 +529,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance(); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @java.lang.Override @@ -604,8 +550,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage result = - new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -616,53 +561,46 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom( - (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other) { - if (other - == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other) { + if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -689,9 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,8 +639,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,13 +646,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -727,8 +661,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -736,14 +668,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -751,8 +684,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -760,22 +691,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -783,18 +712,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -802,31 +728,28 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -834,41 +757,34 @@ public float getConfidence() { return confidence_; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -881,32 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,89 +832,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DetectedBreakOrBuilder - extends + public interface DetectedBreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ boolean getIsPrefix(); } /** - * - * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedBreak extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1019,25 +921,24 @@ private DetectedBreak( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - isPrefix_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 16: { + + isPrefix_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,41 +946,36 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); } /** - * - * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown break label type.
        * 
@@ -1088,8 +984,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
        * Regular space.
        * 
@@ -1098,8 +992,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SPACE(1), /** - * - * *
        * Sure space (very wide).
        * 
@@ -1108,8 +1000,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SURE_SPACE(2), /** - * - * *
        * Line-wrapping break.
        * 
@@ -1118,8 +1008,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ EOL_SURE_SPACE(3), /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1129,8 +1017,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       HYPHEN(4),
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1142,8 +1028,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown break label type.
        * 
@@ -1152,8 +1036,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
        * Regular space.
        * 
@@ -1162,8 +1044,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPACE_VALUE = 1; /** - * - * *
        * Sure space (very wide).
        * 
@@ -1172,8 +1052,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SURE_SPACE_VALUE = 2; /** - * - * *
        * Line-wrapping break.
        * 
@@ -1182,8 +1060,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EOL_SURE_SPACE_VALUE = 3; /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1193,8 +1069,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int HYPHEN_VALUE = 4;
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1203,6 +1077,7 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_BREAK_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1227,57 +1102,52 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return SPACE; - case 2: - return SURE_SPACE; - case 3: - return EOL_SURE_SPACE; - case 4: - return HYPHEN; - case 5: - return LINE_BREAK; - default: - return null; + case 0: return UNKNOWN; + case 1: return SPACE; + case 2: return SURE_SPACE; + case 3: return EOL_SURE_SPACE; + case 4: return HYPHEN; + case 5: return LINE_BREAK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BreakType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1297,52 +1167,38 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1351,7 +1207,6 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1363,10 +1218,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1381,13 +1235,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1397,16 +1251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() != other.getIsPrefix()) return false; + if (getIsPrefix() + != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1421,101 +1275,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1525,32 +1373,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1558,15 +1401,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1578,14 +1422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1600,8 +1443,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak result = - new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1612,52 +1454,46 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other) { - if (other - == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other) { + if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1683,9 +1519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1697,113 +1531,85 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_; + private boolean isPrefix_ ; /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1811,41 +1617,34 @@ public boolean getIsPrefix() { return isPrefix_; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1858,32 +1657,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak - getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1895,153 +1692,119 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextPropertyOrBuilder - extends + public interface TextPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ int getDetectedLanguagesCount(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + java.util.List getDetectedLanguagesOrBuilderList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** - * - * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TextProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2061,45 +1824,35 @@ private TextProperty( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage>(); - mutable_bitField0_ |= 0x00000001; - } - detectedLanguages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder subBuilder = - null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); - } - detectedBreak_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); - } - - break; + detectedLanguages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2107,7 +1860,8 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -2116,117 +1870,87 @@ private TextProperty( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List - detectedLanguages_; + private java.util.List detectedLanguages_; /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + public java.util.List getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { return detectedLanguages_.get(index); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detectedBreak_; /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -2234,25 +1958,18 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -2260,13 +1977,11 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2278,7 +1993,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2295,11 +2011,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2309,18 +2026,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList() + .equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak() + .equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2347,94 +2065,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2444,32 +2155,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder() @@ -2477,17 +2183,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2507,14 +2213,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2529,8 +2234,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty result = - new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2554,52 +2258,46 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other) { - if (other - == com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other) { + if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2618,10 +2316,9 @@ public Builder mergeFrom( detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetectedLanguagesFieldBuilder() - : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetectedLanguagesFieldBuilder() : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2649,9 +2346,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2660,41 +2355,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - detectedLanguages_ = java.util.Collections.emptyList(); - + private java.util.List detectedLanguages_ = + java.util.Collections.emptyList(); private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage>( - detectedLanguages_); + detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> - detectedLanguagesBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2702,15 +2384,11 @@ private void ensureDetectedLanguagesIsMutable() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2720,18 +2398,13 @@ public int getDetectedLanguagesCount() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2739,15 +2412,11 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDete } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { @@ -2764,20 +2433,14 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( - int index, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2788,18 +2451,13 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public Builder addDetectedLanguages( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2813,15 +2471,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { @@ -2838,19 +2492,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2861,20 +2510,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - int index, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2885,23 +2528,18 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addAllDetectedLanguages( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage> - values) { + java.lang.Iterable values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2909,15 +2547,11 @@ public Builder addAllDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2930,15 +2564,11 @@ public Builder clearDetectedLanguages() { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2951,53 +2581,39 @@ public Builder removeDetectedLanguages(int index) { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - getDetectedLanguagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( + int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); - } else { + return detectedLanguages_.get(index); } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> - getDetectedLanguagesOrBuilderList() { + public java.util.List + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -3005,70 +2621,45 @@ public Builder removeDetectedLanguages(int index) { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder(int index) { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( + int index) { + return getDetectedLanguagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder> - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3080,58 +2671,41 @@ public Builder removeDetectedLanguages(int index) { private com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> - detectedBreakBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return The detectedBreak. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3145,14 +2719,11 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder setDetectedBreak( com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -3166,24 +2737,17 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder( - detectedBreak_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); } else { detectedBreak_ = value; } @@ -3195,14 +2759,11 @@ public Builder mergeDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -3216,68 +2777,52 @@ public Builder clearDetectedBreak() { return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder - getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), getParentForChildren(), isClean()); + detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), + getParentForChildren(), + isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3290,32 +2835,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty - getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3327,17 +2870,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3349,8 +2890,6 @@ public java.util.List getPagesList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3358,13 +2897,11 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3376,8 +2913,6 @@ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3389,8 +2924,6 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { return pages_.get(index); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3398,21 +2931,19 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( + int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3421,29 +2952,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -3452,7 +2983,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3464,7 +2994,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3481,7 +3012,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3494,16 +3026,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation other = - (com.google.cloud.vision.v1p1beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation other = (com.google.cloud.vision.v1p1beta1.TextAnnotation) obj; - if (!getPagesList().equals(other.getPagesList())) return false; - if (!getText().equals(other.getText())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; + if (!getText() + .equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3526,104 +3059,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3637,23 +3163,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation)
       com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.TextAnnotation.class,
-              com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p1beta1.TextAnnotation.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder()
@@ -3661,17 +3185,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3687,9 +3211,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3708,8 +3232,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p1beta1.TextAnnotation result =
-          new com.google.cloud.vision.v1p1beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p1beta1.TextAnnotation result = new com.google.cloud.vision.v1p1beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3729,39 +3252,38 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3769,8 +3291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance()) return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3789,10 +3310,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPagesFieldBuilder()
-                    : null;
+            pagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPagesFieldBuilder() : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3830,28 +3350,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Page,
-            com.google.cloud.vision.v1p1beta1.Page.Builder,
-            com.google.cloud.vision.v1p1beta1.PageOrBuilder>
-        pagesBuilder_;
+        com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder> pagesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3866,8 +3379,6 @@ public java.util.List getPagesList() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3882,8 +3393,6 @@ public int getPagesCount() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3898,15 +3407,14 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1p1beta1.Page value) { + public Builder setPages( + int index, com.google.cloud.vision.v1p1beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,8 +3428,6 @@ public Builder setPages(int index, com.google.cloud.vision.v1p1beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3940,8 +3446,6 @@ public Builder setPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3962,15 +3466,14 @@ public Builder addPages(com.google.cloud.vision.v1p1beta1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1p1beta1.Page value) { + public Builder addPages( + int index, com.google.cloud.vision.v1p1beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3984,15 +3487,14 @@ public Builder addPages(int index, com.google.cloud.vision.v1p1beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder addPages(com.google.cloud.vision.v1p1beta1.Page.Builder builderForValue) { + public Builder addPages( + com.google.cloud.vision.v1p1beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -4003,8 +3505,6 @@ public Builder addPages(com.google.cloud.vision.v1p1beta1.Page.Builder builderFo return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4023,8 +3523,6 @@ public Builder addPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4035,7 +3533,8 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -4043,8 +3542,6 @@ public Builder addAllPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4062,8 +3559,6 @@ public Builder clearPages() { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4081,44 +3576,39 @@ public Builder removePages(int index) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.Page.Builder getPagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.Page.Builder getPagesBuilder( + int index) { return getPagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( + int index) { if (pagesBuilder_ == null) { - return pages_.get(index); - } else { + return pages_.get(index); } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -4126,8 +3616,6 @@ public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int ind } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4135,47 +3623,42 @@ public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int ind * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder(int index) { - return getPagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder( + int index) { + return getPagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public java.util.List getPagesBuilderList() { + public java.util.List + getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Page, - com.google.cloud.vision.v1p1beta1.Page.Builder, - com.google.cloud.vision.v1p1beta1.PageOrBuilder> + com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Page, - com.google.cloud.vision.v1p1beta1.Page.Builder, - com.google.cloud.vision.v1p1beta1.PageOrBuilder>( - pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder>( + pages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); pages_ = null; } return pagesBuilder_; @@ -4183,20 +3666,18 @@ public java.util.List getPagesBu private java.lang.Object text_ = ""; /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -4205,21 +3686,20 @@ public java.lang.String getText() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -4227,68 +3707,61 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4298,12 +3771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation) private static final com.google.cloud.vision.v1p1beta1.TextAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation(); } @@ -4312,16 +3785,16 @@ public static com.google.cloud.vision.v1p1beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4336,4 +3809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java index 84e0b3496..27dd9b9a4 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface TextAnnotationOrBuilder - extends +public interface TextAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - java.util.List getPagesList(); + java.util.List + getPagesList(); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -44,8 +25,6 @@ public interface TextAnnotationOrBuilder */ com.google.cloud.vision.v1p1beta1.Page getPages(int index); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -54,48 +33,41 @@ public interface TextAnnotationOrBuilder */ int getPagesCount(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - java.util.List getPagesOrBuilderList(); + java.util.List + getPagesOrBuilderList(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( + int index); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java new file mode 100644 index 000000000..1889c4718 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/text_annotation.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p1beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p1b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p1beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p1beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p1beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p1beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p1beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p1beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p1beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p1beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p1beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p1b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p1beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p1beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p1beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p1beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p1beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p1beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p1beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p1beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p1beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p1beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p1beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor, + new java.lang.String[] { "Pages", "Text", }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { "Type", "IsPrefix", }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor, + new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java similarity index 51% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java index cb68cab87..b78d85301 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -28,29 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextDetectionParams extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TextDetectionParams() {}
+  private TextDetectionParams() {
+    advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,6 +44,7 @@ private TextDetectionParams(
     if (extensionRegistry == null) {
       throw new java.lang.NullPointerException();
     }
+    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -69,18 +55,27 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72:
-            {
-              enableTextDetectionConfidenceScore_ = input.readBool();
-              break;
+          case 72: {
+
+            enableTextDetectionConfidenceScore_ = input.readBool();
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            advancedOcrOptions_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,33 +83,32 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+      }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.TextDetectionParams.class,
-            com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p1beta1.TextDetectionParams.class, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
-   *
-   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -122,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -130,8 +123,58 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } - private byte memoizedIsInitialized = -1; + public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList advancedOcrOptions_; + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_; + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,10 +186,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -157,9 +204,16 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 9, enableTextDetectionConfidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableTextDetectionConfidenceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdvancedOcrOptionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +223,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextDetectionParams other = - (com.google.cloud.vision.v1p1beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p1beta1.TextDetectionParams other = (com.google.cloud.vision.v1p1beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) - return false; + if (getEnableTextDetectionConfidenceScore() + != other.getEnableTextDetectionConfidenceScore()) return false; + if (!getAdvancedOcrOptionsList() + .equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,113 +246,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTextDetectionConfidenceScore()); + if (getAdvancedOcrOptionsCount() > 0) { + hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.TextDetectionParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -305,23 +355,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.TextDetectionParams}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextDetectionParams)
       com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.TextDetectionParams.class,
-              com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p1beta1.TextDetectionParams.class, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder()
@@ -329,27 +377,30 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       enableTextDetectionConfidenceScore_ = false;
 
+      advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -368,9 +419,14 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p1beta1.TextDetectionParams result =
-          new com.google.cloud.vision.v1p1beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p1beta1.TextDetectionParams result = new com.google.cloud.vision.v1p1beta1.TextDetectionParams(this);
+      int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.advancedOcrOptions_ = advancedOcrOptions_;
       onBuilt();
       return result;
     }
@@ -379,39 +435,38 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextDetectionParams) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextDetectionParams)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -419,11 +474,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance()) return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
+      if (!other.advancedOcrOptions_.isEmpty()) {
+        if (advancedOcrOptions_.isEmpty()) {
+          advancedOcrOptions_ = other.advancedOcrOptions_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureAdvancedOcrOptionsIsMutable();
+          advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+        }
+        onChanged();
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -443,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p1beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p1beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -453,11 +516,10 @@ public Builder mergeFrom(
       }
       return this;
     }
+    private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_;
+    private boolean enableTextDetectionConfidenceScore_ ;
     /**
-     *
-     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -465,7 +527,6 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -473,8 +534,6 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -482,19 +541,16 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -502,18 +558,163 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_.getUnmodifiableView(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index to set the value at. + * @param value The advancedOcrOptions to set. + * @return This builder for chaining. + */ + public Builder setAdvancedOcrOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param values The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAllAdvancedOcrOptions( + java.lang.Iterable values) { + ensureAdvancedOcrOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, advancedOcrOptions_); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return This builder for chaining. + */ + public Builder clearAdvancedOcrOptions() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The bytes of the advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p1beta1.TextDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextDetectionParams(); } @@ -537,16 +738,16 @@ public static com.google.cloud.vision.v1p1beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -561,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java new file mode 100644 index 000000000..7c57f4109 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/image_annotator.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface TextDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * By default, Cloud Vision API only includes confidence score for
+   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
+   * score for TEXT_DETECTION as well.
+   * 
+ * + * bool enable_text_detection_confidence_score = 9; + * @return The enableTextDetectionConfidenceScore. + */ + boolean getEnableTextDetectionConfidenceScore(); + + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + java.util.List + getAdvancedOcrOptionsList(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + int getAdvancedOcrOptionsCount(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + java.lang.String getAdvancedOcrOptions(int index); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index); +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java similarity index 69% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java index 389f91e3c..ce0045a46 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Vertex.class,
-            com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Vertex.class, com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,15 +172,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p1beta1.Vertex other = (com.google.cloud.vision.v1p1beta1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,104 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -328,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Vertex)
       com.google.cloud.vision.v1p1beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Vertex.class,
-              com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Vertex.class, com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Vertex.newBuilder()
@@ -352,15 +323,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -393,8 +365,7 @@ public com.google.cloud.vision.v1p1beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Vertex result =
-          new com.google.cloud.vision.v1p1beta1.Vertex(this);
+      com.google.cloud.vision.v1p1beta1.Vertex result = new com.google.cloud.vision.v1p1beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -405,39 +376,38 @@ public com.google.cloud.vision.v1p1beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Vertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -498,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -550,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Vertex) private static final com.google.cloud.vision.v1p1beta1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Vertex(); } @@ -610,16 +562,16 @@ public static com.google.cloud.vision.v1p1beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java new file mode 100644 index 000000000..555ae1538 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/geometry.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java similarity index 71% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java index 1dcb206cb..7e38690ea 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/web_detection.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection} */ -public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection) WebDetectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,97 +59,67 @@ private WebDetection( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity>(); - mutable_bitField0_ |= 0x00000001; - } - webEntities_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + webEntities_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000004; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage>(); - mutable_bitField0_ |= 0x00000008; - } - pagesWithMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.parser(), - extensionRegistry)); - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000010; - } - visuallySimilarImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + pagesWithMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel>(); - mutable_bitField0_ |= 0x00000020; - } - bestGuessLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.parser(), - extensionRegistry)); - break; + visuallySimilarImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bestGuessLabels_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -174,7 +127,8 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -198,110 +152,90 @@ private WebDetection( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.class, - com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.class, com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder - extends + public interface WebEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebEntity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebEntity() { entityId_ = ""; description_ = ""; @@ -309,15 +243,16 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -336,32 +271,30 @@ private WebEntity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: { - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,39 +302,34 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ @java.lang.Override @@ -410,29 +338,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -443,15 +371,12 @@ public com.google.protobuf.ByteString getEntityIdBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -462,14 +387,11 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -478,29 +400,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -509,7 +431,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -544,7 +466,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -557,18 +480,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) obj; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getDescription().equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,7 +508,8 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -592,94 +518,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -689,32 +608,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebEntity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.newBuilder() @@ -722,15 +636,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -744,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -765,8 +680,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity result = - new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -778,41 +692,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity)other); } else { super.mergeFrom(other); return this; @@ -820,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -852,8 +762,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -865,20 +774,18 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -887,21 +794,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -909,77 +815,67 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { + public Builder setEntityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -987,38 +883,32 @@ public float getScore() { return score_; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1026,20 +916,18 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1048,21 +936,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1070,66 +957,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1142,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(); } @@ -1156,16 +1035,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,85 +1059,75 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebImageOrBuilder - extends + public interface WebImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); } /** - * - * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebImage} */ - public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebImage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,25 +1146,24 @@ private WebImage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + url_ = s; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1303,39 +1171,34 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -1344,29 +1207,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1377,14 +1240,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1393,7 +1253,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,7 +1264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1425,7 +1285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1435,17 +1296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1460,101 +1322,95 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1564,32 +1420,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebImage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebImage) com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.newBuilder() @@ -1597,15 +1448,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1638,8 +1490,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage result = - new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1650,41 +1501,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebImage)other); } else { super.mergeFrom(other); return this; @@ -1692,8 +1540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1720,8 +1567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1733,20 +1579,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1755,21 +1599,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1777,76 +1620,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1854,41 +1687,34 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1901,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(); } @@ -1915,16 +1741,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,143 +1765,113 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebPageOrBuilder - extends + public interface WebPageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ java.lang.String getPageTitle(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString getPageTitleBytes(); + com.google.protobuf.ByteString + getPageTitleBytes(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ int getFullMatchingImagesCount(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2083,15 +1879,11 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2099,14 +1891,10 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2114,14 +1902,10 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ int getPartialMatchingImagesCount(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2129,15 +1913,11 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2145,32 +1925,27 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); } /** - * - * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebPage} */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebPage() { url_ = ""; pageTitle_ = ""; @@ -2180,15 +1955,16 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2208,60 +1984,48 @@ private WebPage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: { - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000001; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2269,7 +2033,8 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2281,33 +2046,27 @@ private WebPage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -2316,29 +2075,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -2349,14 +2108,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -2367,14 +2123,11 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ @java.lang.Override @@ -2383,29 +2136,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2414,95 +2167,73 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2510,18 +2241,13 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2529,19 +2255,14 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2549,17 +2270,13 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } - /** - * - * + /** *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2567,18 +2284,13 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2586,18 +2298,15 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2609,7 +2318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2638,19 +2348,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2660,21 +2370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getPageTitle() + .equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2689,7 +2402,8 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2706,94 +2420,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2803,32 +2510,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebPage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebPage) com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.newBuilder() @@ -2836,18 +2538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2873,9 +2575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2894,8 +2596,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage result = - new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2926,41 +2627,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebPage)other); } else { super.mergeFrom(other); return this; @@ -2968,8 +2666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2999,10 +2696,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -3026,10 +2722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -3054,8 +2749,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3064,25 +2758,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object url_ = ""; /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -3091,21 +2782,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -3113,76 +2803,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -3190,36 +2870,30 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -3227,20 +2901,18 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -3249,21 +2921,20 @@ public java.lang.String getPageTitle() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -3271,98 +2942,80 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle(java.lang.String value) { + public Builder setPageTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3370,16 +3023,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3389,19 +3038,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3409,16 +3053,12 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3435,20 +3075,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3459,19 +3094,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3485,16 +3115,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3511,16 +3137,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3534,20 +3156,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3558,23 +3175,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3582,16 +3195,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3604,16 +3213,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3626,56 +3231,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3683,70 +3274,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3756,27 +3325,19 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3784,12 +3345,9 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3797,8 +3355,6 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3806,9 +3362,7 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3818,8 +3372,6 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3827,12 +3379,9 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3840,8 +3389,6 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3849,9 +3396,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3868,8 +3413,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3877,13 +3420,10 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3894,8 +3434,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3903,12 +3441,9 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3922,8 +3457,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3931,9 +3464,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3950,8 +3481,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3959,9 +3488,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3975,8 +3502,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3984,13 +3509,10 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -4001,8 +3523,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4010,16 +3530,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -4027,8 +3545,6 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4036,9 +3552,7 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -4051,8 +3565,6 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4060,9 +3572,7 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -4075,8 +3585,6 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4084,17 +3592,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4102,21 +3606,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4124,13 +3623,10 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -4138,8 +3634,6 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4147,19 +3641,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4167,20 +3655,14 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4188,26 +3670,18 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4216,7 +3690,6 @@ public Builder removePartialMatchingImages(int index) { } return partialMatchingImagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4229,12 +3702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebPage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(); } @@ -4243,16 +3716,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4267,41 +3740,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebLabelOrBuilder - extends + public interface WebLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4309,13 +3775,10 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4323,30 +3786,27 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebLabel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { label_ = ""; languageCode_ = ""; @@ -4354,15 +3814,16 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4381,27 +3842,25 @@ private WebLabel( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4409,39 +3868,34 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ @java.lang.Override @@ -4450,29 +3904,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4483,8 +3937,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4492,7 +3944,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -4501,15 +3952,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } - /** - * - * + /** *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4517,15 +3967,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4534,7 +3985,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4546,7 +3996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4576,16 +4027,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4607,94 +4059,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4704,32 +4149,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebLabel} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.newBuilder() @@ -4737,15 +4177,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4757,9 +4198,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4778,8 +4219,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4790,41 +4230,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel)other); } else { super.mergeFrom(other); return this; @@ -4832,8 +4269,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4861,8 +4297,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4874,20 +4309,18 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4896,21 +4329,20 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4918,61 +4350,54 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4980,8 +4405,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4989,13 +4412,13 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -5004,8 +4427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5013,14 +4434,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -5028,8 +4450,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5037,22 +4457,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5060,18 +4478,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5079,21 +4494,20 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5106,12 +4520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(); } @@ -5120,16 +4534,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5144,13 +4558,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5158,13 +4571,10 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5172,13 +4582,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5190,8 +4598,6 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5203,8 +4609,6 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5218,424 +4622,321 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - pagesWithMatchingImages_; + private java.util.List pagesWithMatchingImages_; /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List - visuallySimilarImages_; + private java.util.List visuallySimilarImages_; /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5647,7 +4948,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -5676,29 +4978,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, pagesWithMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, visuallySimilarImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5708,21 +5009,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection other = - (com.google.cloud.vision.v1p1beta1.WebDetection) obj; - - if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) - return false; - if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p1beta1.WebDetection other = (com.google.cloud.vision.v1p1beta1.WebDetection) obj; + + if (!getWebEntitiesList() + .equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList() + .equals(other.getPagesWithMatchingImagesList())) return false; + if (!getVisuallySimilarImagesList() + .equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList() + .equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5763,127 +5068,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection) com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.class, - com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.class, com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder() @@ -5891,13 +5187,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5906,7 +5203,6 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5950,9 +5246,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override @@ -5971,8 +5267,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection result = - new com.google.cloud.vision.v1p1beta1.WebDetection(this); + com.google.cloud.vision.v1p1beta1.WebDetection result = new com.google.cloud.vision.v1p1beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6003,8 +5298,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -6037,39 +5331,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection)other); } else { super.mergeFrom(other); return this; @@ -6096,10 +5389,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebEntitiesFieldBuilder() - : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebEntitiesFieldBuilder() : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -6123,10 +5415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -6150,10 +5441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -6177,10 +5467,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPagesWithMatchingImagesFieldBuilder() - : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPagesWithMatchingImagesFieldBuilder() : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -6204,10 +5493,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVisuallySimilarImagesFieldBuilder() - : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVisuallySimilarImagesFieldBuilder() : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -6231,10 +5519,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBestGuessLabelsFieldBuilder() - : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBestGuessLabelsFieldBuilder() : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -6268,38 +5555,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList( - webEntities_); + webEntities_ = new java.util.ArrayList(webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> - webEntitiesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -6307,8 +5584,6 @@ private void ensureWebEntitiesIsMutable() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6323,8 +5598,6 @@ public int getWebEntitiesCount() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6339,8 +5612,6 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(i } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6362,8 +5633,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6371,8 +5640,7 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -6383,8 +5651,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6405,8 +5671,6 @@ public Builder addWebEntities(com.google.cloud.vision.v1p1beta1.WebDetection.Web return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6428,8 +5692,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6448,8 +5710,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6457,8 +5717,7 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -6469,8 +5728,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6478,11 +5735,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -6490,8 +5747,6 @@ public Builder addAllWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6509,8 +5764,6 @@ public Builder clearWebEntities() { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6528,8 +5781,6 @@ public Builder removeWebEntities(int index) { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6541,34 +5792,28 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder - getWebEntitiesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( + int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); - } else { + return webEntities_.get(index); } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -6576,23 +5821,17 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder getWebEn } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder - addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6601,72 +5840,56 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder getWebEn */ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -6674,15 +5897,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -6692,18 +5912,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -6711,15 +5927,12 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6736,19 +5949,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -6759,18 +5968,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6784,15 +5989,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6809,15 +6011,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6831,19 +6030,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6854,22 +6049,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6877,15 +6069,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6898,15 +6087,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6919,53 +6105,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6973,65 +6148,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -7041,39 +6199,28 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -7081,17 +6228,13 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -7101,20 +6244,15 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -7122,17 +6260,13 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -7149,21 +6283,16 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -7174,20 +6303,15 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7201,17 +6325,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -7228,17 +6348,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7252,21 +6368,16 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -7277,24 +6388,20 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -7302,17 +6409,13 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -7325,17 +6428,13 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -7348,59 +6447,45 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7408,71 +6493,51 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7482,37 +6547,26 @@ public Builder removePartialMatchingImages(int index) { return partialMatchingImagesBuilder_; } - private java.util.List - pagesWithMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List pagesWithMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList( - pagesWithMatchingImages_); + pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> - pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -7520,15 +6574,11 @@ private void ensurePagesWithMatchingImagesIsMutable() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7538,18 +6588,13 @@ public int getPagesWithMatchingImagesCount() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -7557,15 +6602,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchi } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { @@ -7582,15 +6623,11 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7604,18 +6641,13 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public Builder addPagesWithMatchingImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7629,15 +6661,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { @@ -7654,15 +6682,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7676,15 +6700,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7698,22 +6718,18 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -7721,15 +6737,11 @@ public Builder addAllPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7742,15 +6754,11 @@ public Builder clearPagesWithMatchingImages() { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7763,52 +6771,39 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder - getPagesWithMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( + int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); - } else { + return pagesWithMatchingImages_.get(index); } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7816,65 +6811,45 @@ public Builder removePagesWithMatchingImages(int index) { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder(int index) { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( + int index) { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7884,37 +6859,26 @@ public Builder removePagesWithMatchingImages(int index) { return pagesWithMatchingImagesBuilder_; } - private java.util.List - visuallySimilarImages_ = java.util.Collections.emptyList(); - + private java.util.List visuallySimilarImages_ = + java.util.Collections.emptyList(); private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList( - visuallySimilarImages_); + visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -7922,15 +6886,11 @@ private void ensureVisuallySimilarImagesIsMutable() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -7940,18 +6900,13 @@ public int getVisuallySimilarImagesCount() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -7959,15 +6914,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimila } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -7984,19 +6935,14 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -8007,18 +6953,13 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public Builder addVisuallySimilarImages( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8032,15 +6973,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -8057,15 +6994,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -8079,19 +7012,14 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -8102,22 +7030,18 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -8125,15 +7049,11 @@ public Builder addAllVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -8146,15 +7066,11 @@ public Builder clearVisuallySimilarImages() { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -8167,53 +7083,39 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - getVisuallySimilarImagesBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( + int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); - } else { + return visuallySimilarImages_.get(index); } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -8221,65 +7123,45 @@ public Builder removeVisuallySimilarImages(int index) { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder(int index) { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( + int index) { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8289,36 +7171,26 @@ public Builder removeVisuallySimilarImages(int index) { return visuallySimilarImagesBuilder_; } - private java.util.List - bestGuessLabels_ = java.util.Collections.emptyList(); - + private java.util.List bestGuessLabels_ = + java.util.Collections.emptyList(); private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList( - bestGuessLabels_); + bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> - bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -8326,14 +7198,11 @@ private void ensureBestGuessLabelsIsMutable() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -8343,14 +7212,11 @@ public int getBestGuessLabelsCount() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8360,14 +7226,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabel } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { @@ -8384,18 +7247,14 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -8406,17 +7265,13 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public Builder addBestGuessLabels( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8430,14 +7285,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { @@ -8454,14 +7306,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -8475,18 +7324,14 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( - int index, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -8497,21 +7342,18 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addAllBestGuessLabels( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -8519,14 +7361,11 @@ public Builder addAllBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -8539,14 +7378,11 @@ public Builder clearBestGuessLabels() { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8559,50 +7395,39 @@ public Builder removeBestGuessLabels(int index) { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder - getBestGuessLabelsBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( + int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); - } else { + return bestGuessLabels_.get(index); } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> - getBestGuessLabelsOrBuilderList() { + public java.util.List + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -8610,62 +7435,45 @@ public Builder removeBestGuessLabels(int index) { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder(int index) { - return getBestGuessLabelsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( + int index) { + return getBestGuessLabelsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -8674,9 +7482,9 @@ public Builder removeBestGuessLabels(int index) { } return bestGuessLabelsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8686,12 +7494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection) private static final com.google.cloud.vision.v1p1beta1.WebDetection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection(); } @@ -8700,16 +7508,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8724,4 +7532,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java index fdf2471d0..476bc2737 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/web_detection.proto package com.google.cloud.vision.v1p1beta1; -public interface WebDetectionOrBuilder - extends +public interface WebDetectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List getWebEntitiesList(); + java.util.List + getWebEntitiesList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -44,8 +25,6 @@ public interface WebDetectionOrBuilder */ com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(int index); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -54,19 +33,15 @@ public interface WebDetectionOrBuilder */ int getWebEntitiesCount(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -77,325 +52,236 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ int getFullMatchingImagesCount(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ int getPartialMatchingImagesCount(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ int getPagesWithMatchingImagesCount(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ int getVisuallySimilarImagesCount(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List getBestGuessLabelsList(); + java.util.List + getBestGuessLabelsList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ int getBestGuessLabelsCount(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java similarity index 69% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java index 9d65c973e..9b87f3a47 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetectionParams} */ -public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetectionParams) WebDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WebDetectionParams() {} + private WebDetectionParams() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: - { - includeGeoResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + includeGeoResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** - * - * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetectionParams other = - (com.google.cloud.vision.v1p1beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p1beta1.WebDetectionParams other = (com.google.cloud.vision.v1p1beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() + != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,133 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetectionParams) com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder() @@ -319,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -358,8 +331,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetectionParams result = - new com.google.cloud.vision.v1p1beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p1beta1.WebDetectionParams result = new com.google.cloud.vision.v1p1beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -369,39 +341,38 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetectionParams) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetectionParams)other); } else { super.mergeFrom(other); return this; @@ -409,8 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance()) return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -433,8 +403,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p1beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -444,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_; + private boolean includeGeoResults_ ; /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -461,43 +427,37 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -507,12 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p1beta1.WebDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetectionParams(); } @@ -521,16 +481,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -545,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..f0d59fa3e --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/image_annotator.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface WebDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java new file mode 100644 index 000000000..e539c00fe --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/web_detection.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p1beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p1bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p1beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p1beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p1beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p1" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p1beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p1beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p1beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p1beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p1beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p1beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor, + new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { "EntityId", "Score", "Description", }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { "Url", "Score", }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { "Label", "LanguageCode", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java similarity index 77% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java index a22f9ac47..01d73d0ac 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** - * - * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Word} */ -public final class Word extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Word extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Word) WordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Word( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - symbols_.add( - input.readMessage( - com.google.cloud.vision.v1p1beta1.Symbol.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + symbols_.add( + input.readMessage(com.google.cloud.vision.v1p1beta1.Symbol.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -144,33 +118,27 @@ private Word( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Word.class, - com.google.cloud.vision.v1p1beta1.Word.Builder.class); + com.google.cloud.vision.v1p1beta1.Word.class, com.google.cloud.vision.v1p1beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the word.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -316,8 +264,6 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -326,13 +272,11 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -345,8 +289,6 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -359,8 +301,6 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -369,21 +309,19 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -392,7 +330,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -427,16 +365,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,7 +388,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Word)) { return super.equals(obj); @@ -455,15 +397,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getSymbolsList().equals(other.getSymbolsList())) return false; + if (!getSymbolsList() + .equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,133 +434,125 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Word parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Word} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Word) com.google.cloud.vision.v1p1beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Word.class, - com.google.cloud.vision.v1p1beta1.Word.Builder.class); + com.google.cloud.vision.v1p1beta1.Word.class, com.google.cloud.vision.v1p1beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Word.newBuilder() @@ -622,17 +560,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override @@ -681,8 +619,7 @@ public com.google.cloud.vision.v1p1beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Word buildPartial() { - com.google.cloud.vision.v1p1beta1.Word result = - new com.google.cloud.vision.v1p1beta1.Word(this); + com.google.cloud.vision.v1p1beta1.Word result = new com.google.cloud.vision.v1p1beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -712,39 +649,38 @@ public com.google.cloud.vision.v1p1beta1.Word buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Word) other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Word)other); } else { super.mergeFrom(other); return this; @@ -777,10 +713,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSymbolsFieldBuilder() - : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSymbolsFieldBuilder() : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -817,60 +752,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -884,8 +804,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -904,22 +822,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -931,8 +844,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -951,42 +862,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -994,17 +896,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1012,13 +911,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1038,15 +932,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1066,21 +957,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1115,8 +1001,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1149,8 +1033,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1175,9 +1057,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1189,8 +1069,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1223,8 +1101,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1246,13 +1122,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1277,14 +1151,11 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1306,41 +1177,32 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly,
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.BoundingPoly,
-                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Symbol,
-            com.google.cloud.vision.v1p1beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>
-        symbolsBuilder_;
+        com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder> symbolsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1356,8 +1218,6 @@ public java.util.List getSymbolsList()
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1373,8 +1233,6 @@ public int getSymbolsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1390,8 +1248,6 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1399,7 +1255,8 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
+    public Builder setSymbols(
+        int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1413,8 +1270,6 @@ public Builder setSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1434,8 +1289,6 @@ public Builder setSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1457,8 +1310,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1466,7 +1317,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
+    public Builder addSymbols(
+        int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1480,8 +1332,6 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1489,7 +1339,8 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol va
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(
+        com.google.cloud.vision.v1p1beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1500,8 +1351,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1521,8 +1370,6 @@ public Builder addSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1534,7 +1381,8 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1542,8 +1390,6 @@ public Builder addAllSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1562,8 +1408,6 @@ public Builder clearSymbols() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1582,8 +1426,6 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1591,12 +1433,11 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(int index) {
+    public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(
+        int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1604,16 +1445,14 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+    public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
+        int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);
-      } else {
+        return symbols_.get(index);  } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1621,8 +1460,8 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsOrBuilderList() {
+    public java.util.List 
+         getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1630,8 +1469,6 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1640,12 +1477,10 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1653,13 +1488,12 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(int index) {
-      return getSymbolsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(
+        int index) {
+      return getSymbolsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1667,38 +1501,32 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsBuilderList() {
+    public java.util.List 
+         getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Symbol,
-            com.google.cloud.vision.v1p1beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>
+        com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder> 
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p1beta1.Symbol,
-                com.google.cloud.vision.v1p1beta1.Symbol.Builder,
-                com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>(
-                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>(
+                symbols_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1706,43 +1534,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1752,12 +1574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Word) private static final com.google.cloud.vision.v1p1beta1.Word DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Word(); } @@ -1766,16 +1588,16 @@ public static com.google.cloud.vision.v1p1beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1790,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java index 7ece23c77..5efeee951 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface WordOrBuilder - extends +public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Word) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
@@ -59,8 +35,6 @@ public interface WordOrBuilder com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,8 +104,6 @@ public interface WordOrBuilder
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -145,10 +111,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsList();
+  java.util.List 
+      getSymbolsList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -158,8 +123,6 @@ public interface WordOrBuilder
    */
   com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index);
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -169,8 +132,6 @@ public interface WordOrBuilder
    */
   int getSymbolsCount();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -178,11 +139,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  java.util.List
+  java.util.List 
       getSymbolsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -190,17 +149,15 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
+  com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto similarity index 100% rename from proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto similarity index 99% rename from proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto index daf6a2d27..729a0fa08 100644 --- a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto @@ -498,6 +498,9 @@ message TextDetectionParams { // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence // score for TEXT_DETECTION as well. bool enable_text_detection_confidence_score = 9; + + // A list of advanced OCR options to fine-tune OCR behavior. + repeated string advanced_ocr_options = 11; } // Image context and/or feature-specific parameters. diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto similarity index 100% rename from proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto similarity index 100% rename from proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 1776beecd..b9d1538f7 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p1beta1.samples; -// [START -// vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [START vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] import com.google.cloud.vision.v1p1beta1.AnnotateImageRequest; import com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse; import com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient; @@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce } } } -// [END -// vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [END vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java index 10430a6c4..70c2d53ea 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java +++ b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java similarity index 96% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java index 238b1be07..e57060cb0 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java +++ b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p2beta1.stub.ImageAnnotatorStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java index 3d5e84f5b..c638cbe7f 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,6 +28,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 485b965c8..038881c03 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -60,9 +60,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java b/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java rename to owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java diff --git a/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java b/owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java similarity index 51% rename from grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java rename to owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java index 4392bcc7f..6f324bd37 100644 --- a/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java +++ b/owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -37,174 +20,132 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p2beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
-            com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
-        getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
-              getBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-                      .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
-              getAsyncBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-                      .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorBlockingStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ImageAnnotatorFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorFutureStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { + public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -214,73 +155,62 @@ public void batchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub - extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -290,28 +220,23 @@ public void batchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -322,21 +247,16 @@ protected ImageAnnotatorBlockingStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -346,25 +266,22 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -375,22 +292,17 @@ protected ImageAnnotatorFutureStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse> - batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -400,9 +312,8 @@ protected ImageAnnotatorFutureStub build(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request); } @@ -411,11 +322,11 @@ protected ImageAnnotatorFutureStub build( private static final int METHODID_BATCH_ANNOTATE_IMAGES = 0; private static final int METHODID_ASYNC_BATCH_ANNOTATE_FILES = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -429,15 +340,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages( - (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>) - responseObserver); + serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_FILES: - serviceImpl.asyncBatchAnnotateFiles( - (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) request, + serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -456,9 +363,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -500,13 +406,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .addMethod(getAsyncBatchAnnotateFilesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .addMethod(getAsyncBatchAnnotateFilesMethod()) + .build(); } } } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java index b6ba4e600..da1800f52 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,43 +55,35 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null;
-              if (inputConfig_ != null) {
-                subBuilder = inputConfig_.toBuilder();
-              }
-              inputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputConfig_);
-                inputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null;
+            if (inputConfig_ != null) {
+              subBuilder = inputConfig_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                responses_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p2beta1.AnnotateImageResponse>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              responses_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(),
-                      extensionRegistry));
-              break;
+            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(inputConfig_);
+              inputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              responses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            responses_.add(
+                input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +91,8 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -125,33 +101,27 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class,
-            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_;
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -159,25 +129,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -192,8 +155,6 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -201,13 +162,10 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -215,13 +173,11 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -233,8 +189,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -246,8 +200,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -261,7 +213,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -290,10 +242,12 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,19 +257,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other = - (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) obj; + com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,104 +296,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.AnnotateFileResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -446,23 +393,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p2beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class,
-              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.newBuilder()
@@ -470,17 +415,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -521,8 +466,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AnnotateFileResponse result =
-          new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p2beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -546,39 +490,38 @@ public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateFileResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -586,8 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.getDefaultInstance()) return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -609,10 +551,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResponsesFieldBuilder()
-                    : null;
+            responsesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResponsesFieldBuilder() : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -637,8 +578,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -647,52 +587,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.InputConfig,
-            com.google.cloud.vision.v1p2beta1.InputConfig.Builder,
-            com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>
-        inputConfigBuilder_;
+        com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> inputConfigBuilder_;
     /**
-     *
-     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -713,8 +639,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig valu return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -733,8 +657,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -745,9 +667,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -759,8 +679,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -779,8 +697,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -788,13 +704,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p2beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -805,14 +719,11 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -820,51 +731,39 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder, - com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder, - com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -872,8 +771,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -888,8 +785,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -904,8 +799,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -927,8 +820,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -936,8 +827,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -948,8 +838,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -970,8 +858,6 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -993,8 +879,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1013,8 +897,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1022,8 +904,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -1034,8 +915,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1043,11 +922,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -1055,8 +934,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1074,8 +951,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1093,8 +968,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1106,8 +979,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1117,23 +988,19 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -1141,8 +1008,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1150,12 +1015,10 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1164,43 +1027,37 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1210,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) private static final com.google.cloud.vision.v1p2beta1.AnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(); } @@ -1224,16 +1081,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,4 +1105,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java index 67f6a9f7c..7e8059852 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AnnotateFileResponseOrBuilder - extends +public interface AnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateFileResponseOrBuilder com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateFileResponseOrBuilder */ com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -89,24 +60,21 @@ public interface AnnotateFileResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java index cb6ae6eea..de64ed09e 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateImageRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,56 +55,48 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p2beta1.Image.Builder subBuilder = null;
-              if (image_ != null) {
-                subBuilder = image_.toBuilder();
-              }
-              image_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.Image.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(image_);
-                image_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p2beta1.Image.Builder subBuilder = null;
+            if (image_ != null) {
+              subBuilder = image_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry));
-              break;
+            image_ = input.readMessage(com.google.cloud.vision.v1p2beta1.Image.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(image_);
+              image_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null;
-              if (imageContext_ != null) {
-                subBuilder = imageContext_.toBuilder();
-              }
-              imageContext_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(imageContext_);
-                imageContext_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null;
+            if (imageContext_ != null) {
+              subBuilder = imageContext_.toBuilder();
+            }
+            imageContext_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(imageContext_);
+              imageContext_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -129,7 +104,8 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -138,33 +114,27 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class,
-            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p2beta1.Image image_;
   /**
-   *
-   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -172,14 +142,11 @@ public boolean hasImage() { return image_ != null; } /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -187,8 +154,6 @@ public com.google.cloud.vision.v1p2beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; } /** - * - * *
    * The image to be processed.
    * 
@@ -203,8 +168,6 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Requested features.
    * 
@@ -216,8 +179,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Requested features.
    * 
@@ -225,13 +186,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -243,8 +202,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Requested features.
    * 
@@ -256,8 +213,6 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Requested features.
    * 
@@ -265,21 +220,19 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -287,25 +240,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image.
    * 
@@ -318,7 +264,6 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -350,13 +296,16 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,22 +315,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other = - (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,104 +363,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -517,23 +460,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class,
-              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.newBuilder()
@@ -541,17 +482,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,9 +518,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -598,8 +539,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AnnotateImageRequest result =
-          new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p2beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -628,39 +568,38 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()) return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -691,10 +629,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -722,8 +659,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -732,52 +668,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p2beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Image,
-            com.google.cloud.vision.v1p2beta1.Image.Builder,
-            com.google.cloud.vision.v1p2beta1.ImageOrBuilder>
-        imageBuilder_;
+        com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder> imageBuilder_;
     /**
-     *
-     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return The image. */ public com.google.cloud.vision.v1p2beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null - ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** - * - * *
      * The image to be processed.
      * 
@@ -798,15 +720,14 @@ public Builder setImage(com.google.cloud.vision.v1p2beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; */ - public Builder setImage(com.google.cloud.vision.v1p2beta1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.vision.v1p2beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -817,8 +738,6 @@ public Builder setImage(com.google.cloud.vision.v1p2beta1.Image.Builder builderF return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -829,9 +748,7 @@ public Builder mergeImage(com.google.cloud.vision.v1p2beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p2beta1.Image.newBuilder(image_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -843,8 +760,6 @@ public Builder mergeImage(com.google.cloud.vision.v1p2beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -863,8 +778,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -872,13 +785,11 @@ public Builder clearImage() { * .google.cloud.vision.v1p2beta1.Image image = 1; */ public com.google.cloud.vision.v1p2beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * The image to be processed.
      * 
@@ -889,14 +800,11 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null - ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? + com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; } } /** - * - * *
      * The image to be processed.
      * 
@@ -904,41 +812,32 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p2beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Image, - com.google.cloud.vision.v1p2beta1.Image.Builder, - com.google.cloud.vision.v1p2beta1.ImageOrBuilder> + com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Image, - com.google.cloud.vision.v1p2beta1.Image.Builder, - com.google.cloud.vision.v1p2beta1.ImageOrBuilder>( - getImage(), getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Requested features.
      * 
@@ -953,8 +852,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Requested features.
      * 
@@ -969,8 +866,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Requested features.
      * 
@@ -985,15 +880,14 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,8 +901,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
@@ -1027,8 +919,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1049,15 +939,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature value) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1071,15 +960,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1090,8 +978,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder bui return this; } /** - * - * *
      * Requested features.
      * 
@@ -1110,8 +996,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1122,7 +1006,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1130,8 +1015,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1149,8 +1032,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Requested features.
      * 
@@ -1168,44 +1049,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1213,8 +1089,6 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Requested features.
      * 
@@ -1222,48 +1096,42 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1271,47 +1139,34 @@ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1332,8 +1187,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p2beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1352,8 +1205,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1364,9 +1215,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1378,8 +1227,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1398,8 +1245,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1407,13 +1252,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p2beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1424,14 +1267,11 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1439,24 +1279,21 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1466,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p2beta1.AnnotateImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(); } @@ -1480,16 +1317,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,4 +1341,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java index a30d33af6..f6610bbce 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AnnotateImageRequestOrBuilder - extends +public interface AnnotateImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; - * * @return The image. */ com.google.cloud.vision.v1p2beta1.Image getImage(); /** - * - * *
    * The image to be processed.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateImageRequestOrBuilder com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateImageRequestOrBuilder */ com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index); /** - * - * *
    * Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AnnotateImageRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p2beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java similarity index 77% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java index 753b92ba0..0d456dc11 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateImageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -47,15 +29,16 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,192 +58,149 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - faceAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + faceAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.FaceAnnotation.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + labelAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - labelAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + textAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - textAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); - } - safeSearchAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); } - case 66: - { - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.ImageProperties.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); - } - - break; + imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); } - case 74: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - break; + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 90: { + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 98: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); } - case 106: - { - com.google.cloud.vision.v1p2beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.vision.v1p2beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); } - case 170: - { - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - break; + break; + } + case 170: { + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -268,7 +208,8 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -289,27 +230,22 @@ private AnnotateImageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -321,8 +257,6 @@ public java.util.List getFaceA return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -330,13 +264,11 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -348,8 +280,6 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -361,8 +291,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -378,8 +306,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -387,13 +313,10 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -401,13 +324,11 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -419,8 +340,6 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -432,8 +351,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -441,16 +358,14 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -458,13 +373,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -472,13 +384,11 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -490,8 +400,6 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -503,8 +411,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -520,8 +426,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -529,13 +433,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -543,13 +444,11 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -561,8 +460,6 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -574,8 +471,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -591,8 +486,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -600,13 +493,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -614,13 +504,11 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -632,8 +520,6 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -645,8 +531,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -662,8 +546,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p2beta1.TextAnnotation fullTextAnnotation_; /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -672,7 +554,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -680,8 +561,6 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -690,18 +569,13 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -712,22 +586,18 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder
-      getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -735,25 +605,18 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -761,22 +624,18 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p2beta1.ImageProperties imagePropertiesAnnotation_; /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -784,25 +643,18 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -810,22 +662,18 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p2beta1.CropHintsAnnotation cropHintsAnnotation_; /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -833,25 +681,18 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -859,22 +700,18 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p2beta1.WebDetection webDetection_; /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -882,25 +719,18 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection() { - return webDetection_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -915,8 +745,6 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -924,7 +752,6 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ @java.lang.Override @@ -932,8 +759,6 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -941,7 +766,6 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ @java.lang.Override @@ -949,8 +773,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -967,15 +789,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p2beta1.ImageAnnotationContext context_;
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ @java.lang.Override @@ -983,26 +802,19 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext() { - return context_ == null - ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -1016,7 +828,6 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1028,7 +839,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1075,45 +887,52 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getImagePropertiesAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getWebDetection());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getContext());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1123,47 +942,57 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other =
-        (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
-    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList()
+        .equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList()
+        .equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList()
+        .equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList()
+        .equals(other.getLabelAnnotationsList())) return false;
+    if (!getTextAnnotationsList()
+        .equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation()
+          .equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation()
+          .equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
-        return false;
+      if (!getImagePropertiesAnnotation()
+          .equals(other.getImagePropertiesAnnotation())) return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation()
+          .equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection().equals(other.getWebDetection())) return false;
+      if (!getWebDetection()
+          .equals(other.getWebDetection())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext().equals(other.getContext())) return false;
+      if (!getContext()
+          .equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1230,127 +1059,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p2beta1.AnnotateImageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateImageResponse) com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.newBuilder() @@ -1358,13 +1177,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1372,7 +1192,6 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1452,9 +1271,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1473,8 +1292,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse result = - new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1564,39 +1382,38 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageResponse)other); } else { super.mergeFrom(other); return this; @@ -1604,8 +1421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()) return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1624,10 +1440,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFaceAnnotationsFieldBuilder() : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1651,10 +1466,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarkAnnotationsFieldBuilder() - : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarkAnnotationsFieldBuilder() : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1678,10 +1492,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogoAnnotationsFieldBuilder() - : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogoAnnotationsFieldBuilder() : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1705,10 +1518,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1732,10 +1544,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTextAnnotationsFieldBuilder() - : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1781,8 +1592,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1791,38 +1601,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList( - faceAnnotations_); + faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsList() { + public java.util.List getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1830,8 +1630,6 @@ private void ensureFaceAnnotationsIsMutable() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1846,8 +1644,6 @@ public int getFaceAnnotationsCount() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1862,8 +1658,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int i } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1885,8 +1679,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1905,8 +1697,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1927,8 +1717,6 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p2beta1.FaceAnnotati return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1950,8 +1738,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1970,8 +1756,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -1990,8 +1774,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2002,7 +1784,8 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2010,8 +1793,6 @@ public Builder addAllFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2029,8 +1810,6 @@ public Builder clearFaceAnnotations() { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2048,8 +1827,6 @@ public Builder removeFaceAnnotations(int index) { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2061,8 +1838,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2072,22 +1847,19 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); - } else { + return faceAnnotations_.get(index); } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2095,8 +1867,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2104,12 +1874,10 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2118,34 +1886,26 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2155,36 +1915,26 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List - landmarkAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List landmarkAnnotations_ = + java.util.Collections.emptyList(); private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList( - landmarkAnnotations_); + landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> - landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2192,14 +1942,11 @@ private void ensureLandmarkAnnotationsIsMutable() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2209,14 +1956,11 @@ public int getLandmarkAnnotationsCount() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2226,14 +1970,11 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { @@ -2250,14 +1991,11 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2271,17 +2009,13 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public Builder addLandmarkAnnotations( - com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2295,14 +2029,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { @@ -2319,14 +2050,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2340,14 +2068,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2361,20 +2086,18 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2382,14 +2105,11 @@ public Builder addAllLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2402,14 +2122,11 @@ public Builder clearLandmarkAnnotations() { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2422,49 +2139,39 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); - } else { + return landmarkAnnotations_.get(index); } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2472,62 +2179,45 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLandmarkAnn } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder - addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2538,34 +2228,25 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList( - logoAnnotations_); + logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> - logoAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2573,8 +2254,6 @@ private void ensureLogoAnnotationsIsMutable() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2589,8 +2268,6 @@ public int getLogoAnnotationsCount() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2605,8 +2282,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2628,8 +2303,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2648,8 +2321,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2670,8 +2341,6 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnota return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2693,8 +2362,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2713,8 +2380,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2733,8 +2398,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2745,7 +2408,8 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2753,8 +2417,6 @@ public Builder addAllLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2772,8 +2434,6 @@ public Builder clearLogoAnnotations() { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2791,8 +2451,6 @@ public Builder removeLogoAnnotations(int index) { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2804,8 +2462,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2815,22 +2471,19 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); - } else { + return logoAnnotations_.get(index); } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2838,8 +2491,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2847,12 +2498,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2861,35 +2510,26 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2900,34 +2540,25 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList( - labelAnnotations_); + labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> - labelAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2935,8 +2566,6 @@ private void ensureLabelAnnotationsIsMutable() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2951,8 +2580,6 @@ public int getLabelAnnotationsCount() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2967,8 +2594,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(in } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -2990,8 +2615,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3010,8 +2633,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3032,8 +2653,6 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnot return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3055,8 +2674,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3075,8 +2692,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3095,8 +2710,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3107,7 +2720,8 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -3115,8 +2729,6 @@ public Builder addAllLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3134,8 +2746,6 @@ public Builder clearLabelAnnotations() { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3153,8 +2763,6 @@ public Builder removeLabelAnnotations(int index) { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3166,8 +2774,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3177,22 +2783,19 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); - } else { + return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3200,8 +2803,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3209,12 +2810,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3223,35 +2822,26 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3262,34 +2852,25 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnota } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = - new java.util.ArrayList( - textAnnotations_); + textAnnotations_ = new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> - textAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3297,8 +2878,6 @@ private void ensureTextAnnotationsIsMutable() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3313,8 +2892,6 @@ public int getTextAnnotationsCount() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3329,8 +2906,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3352,8 +2927,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3372,8 +2945,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3394,8 +2965,6 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnota return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3417,8 +2986,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3437,8 +3004,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3457,8 +3022,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3469,7 +3032,8 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3477,8 +3041,6 @@ public Builder addAllTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3496,8 +3058,6 @@ public Builder clearTextAnnotations() { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3515,8 +3075,6 @@ public Builder removeTextAnnotations(int index) { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3528,8 +3086,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3539,22 +3095,19 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); - } else { + return textAnnotations_.get(index); } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3562,8 +3115,6 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3571,12 +3122,10 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3585,35 +3134,26 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3625,13 +3165,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p2beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation, - com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> - fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3640,15 +3175,12 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3657,21 +3189,16 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3695,8 +3222,6 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnnot
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3718,8 +3243,6 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3733,9 +3256,7 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-              com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3747,8 +3268,6 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnn
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3770,8 +3289,6 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3782,13 +3299,11 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-
+      
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3798,19 +3313,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder
-        getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null
-            ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance()
-            : fullTextAnnotation_;
+        return fullTextAnnotation_ == null ?
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3821,17 +3332,14 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnot
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.TextAnnotation,
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder,
-            com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>
+        com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> 
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.TextAnnotation,
-                com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder,
-                com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(), getParentForChildren(), isClean());
+        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(),
+                getParentForChildren(),
+                isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3839,55 +3347,41 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnot
 
     private com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation,
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder,
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>
-        safeSearchAnnotationBuilder_;
+        com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
     /**
-     *
-     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation( - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3901,8 +3395,6 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3921,23 +3413,17 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation( - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder( - safeSearchAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3949,8 +3435,6 @@ public Builder mergeSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3969,42 +3453,33 @@ public Builder clearSafeSearchAnnotation() { return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder - getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4012,17 +3487,14 @@ public Builder clearSafeSearchAnnotation() { * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), getParentForChildren(), isClean()); + safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), + getParentForChildren(), + isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4030,55 +3502,41 @@ public Builder clearSafeSearchAnnotation() { private com.google.cloud.vision.v1p2beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> - imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation( - com.google.cloud.vision.v1p2beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4092,8 +3550,6 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4112,23 +3568,17 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation( - com.google.cloud.vision.v1p2beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder( - imagePropertiesAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4140,8 +3590,6 @@ public Builder mergeImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4160,42 +3608,33 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p2beta1.ImageProperties.Builder - getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? + com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4203,17 +3642,14 @@ public Builder clearImagePropertiesAnnotation() { * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), getParentForChildren(), isClean()); + imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), + getParentForChildren(), + isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4221,55 +3657,41 @@ public Builder clearImagePropertiesAnnotation() { private com.google.cloud.vision.v1p2beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> - cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4283,8 +3705,6 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4303,22 +3723,17 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4330,8 +3745,6 @@ public Builder mergeCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4350,42 +3763,33 @@ public Builder clearCropHintsAnnotation() { return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder - getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4393,17 +3797,14 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), getParentForChildren(), isClean()); + cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), + getParentForChildren(), + isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -4411,47 +3812,34 @@ public Builder clearCropHintsAnnotation() { private com.google.cloud.vision.v1p2beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, - com.google.cloud.vision.v1p2beta1.WebDetection.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> - webDetectionBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> webDetectionBuilder_; /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ public com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4472,8 +3860,6 @@ public Builder setWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection va return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4492,8 +3878,6 @@ public Builder setWebDetection( return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4504,9 +3888,7 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder(webDetection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); } else { webDetection_ = value; } @@ -4518,8 +3900,6 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4538,8 +3918,6 @@ public Builder clearWebDetection() { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4547,13 +3925,11 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p2beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4564,14 +3940,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? + com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -4579,17 +3952,14 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, - com.google.cloud.vision.v1p2beta1.WebDetection.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, - com.google.cloud.vision.v1p2beta1.WebDetection.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder>( - getWebDetection(), getParentForChildren(), isClean()); + webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder>( + getWebDetection(), + getParentForChildren(), + isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -4597,11 +3967,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4609,15 +3976,12 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr
      * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4625,7 +3989,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -4636,8 +3999,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4660,8 +4021,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4670,7 +4029,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4681,8 +4041,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4694,7 +4052,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4706,8 +4065,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4728,8 +4085,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4739,13 +4094,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4758,12 +4111,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4773,14 +4125,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -4788,49 +4140,36 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p2beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>
-        contextBuilder_;
+        com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return The context. */ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4852,8 +4191,6 @@ public Builder setContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationConte
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4873,8 +4210,6 @@ public Builder setContext(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4886,9 +4221,7 @@ public Builder mergeContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder(context_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -4900,8 +4233,6 @@ public Builder mergeContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationCon
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4921,8 +4252,6 @@ public Builder clearContext() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4931,13 +4260,11 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder getContextBuilder() {
-
+      
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4949,14 +4276,11 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null
-            ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance()
-            : context_;
+        return context_ == null ?
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4965,24 +4289,21 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>
+        com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder> 
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
-                com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
-                com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>(
-                getContext(), getParentForChildren(), isClean());
+        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>(
+                getContext(),
+                getParentForChildren(),
+                isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4992,12 +4313,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p2beta1.AnnotateImageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse();
   }
@@ -5006,16 +4327,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateImageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateImageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateImageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateImageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5030,4 +4351,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
similarity index 89%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
index bd3c783d8..c9055eb12 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface AnnotateImageResponseOrBuilder
-    extends
+public interface AnnotateImageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - java.util.List getFaceAnnotationsList(); + java.util.List + getFaceAnnotationsList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -44,8 +25,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int index); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -54,40 +33,34 @@ public interface AnnotateImageResponseOrBuilder */ int getFaceAnnotationsCount(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List getLandmarkAnnotationsList(); + java.util.List + getLandmarkAnnotationsList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,8 +69,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations(int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -106,19 +77,15 @@ public interface AnnotateImageResponseOrBuilder */ int getLandmarkAnnotationsCount(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -129,18 +96,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List getLogoAnnotationsList(); + java.util.List + getLogoAnnotationsList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -149,8 +113,6 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -159,19 +121,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -182,18 +140,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - java.util.List getLabelAnnotationsList(); + java.util.List + getLabelAnnotationsList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -202,8 +157,6 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -212,19 +165,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -235,18 +184,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - java.util.List getTextAnnotationsList(); + java.util.List + getTextAnnotationsList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -255,8 +201,6 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -265,19 +209,15 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ int getTextAnnotationsCount(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -288,8 +228,6 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -298,13 +236,10 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -313,13 +248,10 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -332,104 +264,78 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -439,32 +345,24 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -474,8 +372,6 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -483,13 +379,10 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -497,13 +390,10 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -515,34 +405,26 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; - * * @return The context. */ com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
index 8f99b0f7a..2b086d817 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
- *
- *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,61 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry)); - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +116,8 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -153,33 +126,27 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -187,25 +154,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -220,8 +180,6 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -233,8 +191,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -242,13 +198,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -260,8 +214,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -273,8 +225,6 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -282,21 +232,19 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -304,25 +252,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -337,14 +278,11 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -352,25 +290,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -383,7 +314,6 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -418,16 +349,20 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,26 +372,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other = - (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -491,127 +429,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.newBuilder() @@ -619,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -682,8 +610,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest result = - new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -717,39 +644,38 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -757,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -780,10 +705,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -814,8 +738,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -824,52 +747,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder, - com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -890,8 +799,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig valu return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -910,8 +817,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -922,9 +827,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -936,8 +839,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -956,8 +857,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -965,13 +864,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p2beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -982,14 +879,11 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -997,41 +891,32 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder, - com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder, - com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1046,8 +931,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1062,8 +945,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1078,15 +959,14 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1100,8 +980,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1120,8 +998,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1142,15 +1018,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1164,15 +1039,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1183,8 +1057,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder bui return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1203,8 +1075,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1215,7 +1085,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1223,8 +1094,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1242,8 +1111,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1261,44 +1128,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1306,8 +1168,6 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1315,48 +1175,42 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, - com.google.cloud.vision.v1p2beta1.Feature.Builder, - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1364,47 +1218,34 @@ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1425,8 +1266,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p2beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1445,8 +1284,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1457,9 +1294,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1471,8 +1306,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1491,8 +1324,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1500,13 +1331,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p2beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1517,14 +1346,11 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1532,17 +1358,14 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder, - com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1550,47 +1373,34 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1611,8 +1421,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig va return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1631,8 +1439,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1643,9 +1449,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1657,8 +1461,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1677,8 +1479,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1686,13 +1486,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p2beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1703,14 +1501,11 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1718,24 +1513,21 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1745,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(); } @@ -1759,16 +1551,16 @@ public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1783,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java index e8267e787..4052046dc 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AsyncAnnotateFileRequestOrBuilder - extends +public interface AsyncAnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AsyncAnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AsyncAnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p2beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -146,32 +106,24 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java index 9ba955e9a..58dc4e62a 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncAnnotateFileResponse() {} + private AsyncAnnotateFileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other = - (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.newBuilder() @@ -366,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -409,8 +370,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse result = - new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -424,39 +384,38 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse)other); } else { super.mergeFrom(other); return this; @@ -464,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -488,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -501,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -562,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig va return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -582,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -594,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -608,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -628,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -637,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p2beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -654,14 +586,11 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -669,24 +598,21 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(); } @@ -710,16 +636,16 @@ public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java index 0d15fea40..a910bcfd7 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AsyncAnnotateFileResponseOrBuilder - extends +public interface AsyncAnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java index 4e884bc2c..9133d4c8d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsyncBatchAnnotateFilesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,22 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requests_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              requests_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              requests_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requests_.add(
+                input.readMessage(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +78,8 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -110,97 +88,72 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
-            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
-   *
-   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -209,7 +162,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -235,7 +188,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,104 +229,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -380,23 +326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
-              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -404,17 +348,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,14 +372,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -450,8 +393,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest result =
-          new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -470,50 +412,46 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other
-          == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -532,10 +470,9 @@ public Builder mergeFrom(
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRequestsFieldBuilder()
-                    : null;
+            requestsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRequestsFieldBuilder() : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -560,9 +497,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -571,40 +506,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List requests_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ =
-            new java.util.ArrayList(
-                requests_);
+        requests_ = new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest,
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder,
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>
-        requestsBuilder_;
+        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -612,15 +535,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -630,15 +549,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -648,15 +563,11 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(in } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { @@ -673,19 +584,14 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( - int index, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -696,15 +602,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -720,15 +622,11 @@ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRe return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { @@ -745,15 +643,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -767,19 +661,14 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( - int index, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -790,22 +679,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -813,15 +698,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -834,15 +715,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -855,53 +732,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -909,74 +772,56 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -986,32 +831,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,8 +866,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..f2aa927ea --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java index 6eb6c66be..88364f0ab 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,22 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +77,8 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -109,27 +87,22 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -138,13 +111,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getResponsesList() {
+  public java.util.List getResponsesList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -153,14 +123,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -173,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -187,8 +152,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -203,7 +166,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -229,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -269,147 +233,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -445,8 +396,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,50 +415,46 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other) { - if (other - == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other) { + if (other == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -527,10 +473,9 @@ public Builder mergeFrom( responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -555,9 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,30 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -597,8 +531,7 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesList() {
+    public java.util.List getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -606,8 +539,6 @@ private void ensureResponsesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -623,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -640,8 +569,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -664,8 +591,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -674,8 +599,7 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index,
-        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -686,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -709,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileR
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -733,8 +653,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -754,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -764,8 +680,7 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index,
-        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -776,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -786,11 +699,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -798,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -818,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -838,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -852,8 +759,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -861,17 +766,14 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder
-        getResponsesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
+        int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -879,9 +781,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -889,8 +790,6 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -898,15 +797,11 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder
-        addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -916,14 +811,10 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
      */
     public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -931,30 +822,27 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse,
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse,
-                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -964,32 +852,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstance() {
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1001,8 +887,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 1d476e0d1..f16c1193c 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder
-    extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
index 00e9dbf50..fa3f30598 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
- *
- *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -108,95 +87,72 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -205,7 +161,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -231,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.newBuilder() @@ -399,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -445,8 +391,7 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,39 +410,38 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other) { - if (other - == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -526,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -554,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -605,15 +533,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -623,15 +547,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -641,15 +561,11 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int in } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { @@ -666,15 +582,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -688,15 +600,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -712,15 +620,11 @@ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AnnotateImageReques return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { @@ -737,15 +641,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -759,15 +659,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -781,22 +677,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -804,15 +696,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -825,15 +713,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -846,52 +730,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -899,72 +770,56 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(); } @@ -989,16 +843,16 @@ public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..b068595ed --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface BatchAnnotateImagesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java index 55a02773d..bdc96fcca 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -136,13 +110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -150,13 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -168,8 +137,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -181,8 +148,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -196,7 +161,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -222,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.newBuilder() @@ -390,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -436,8 +391,7 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +410,38 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -496,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other) { - if (other - == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -517,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -545,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,38 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -595,8 +533,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -611,8 +547,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -627,8 +561,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -650,8 +582,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,8 +589,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -671,8 +600,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -693,8 +620,6 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -716,8 +641,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -736,8 +659,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -745,8 +666,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -757,8 +677,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -766,11 +684,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -778,8 +696,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -797,8 +713,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -816,8 +730,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -829,8 +741,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -840,23 +750,19 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -864,8 +770,6 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -873,12 +777,10 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -887,43 +789,37 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(); } @@ -948,16 +843,16 @@ public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +867,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java index 76e8bf1c6..3615f5a29 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface BatchAnnotateImagesResponseOrBuilder - extends +public interface BatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -44,8 +25,6 @@ public interface BatchAnnotateImagesResponseOrBuilder */ com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -54,24 +33,21 @@ public interface BatchAnnotateImagesResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java similarity index 77% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java index 0d9750a21..70eabde18 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Block} */ -public final class Block extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Block extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Block) BlockOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -44,15 +26,16 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,71 +55,59 @@ private Block( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paragraphs_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Paragraph.parser(), extensionRegistry)); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - blockType_ = rawValue; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 45: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + paragraphs_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Paragraph.parser(), extensionRegistry)); + break; + } + case 32: { + int rawValue = input.readEnum(); + + blockType_ = rawValue; + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +115,8 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -153,35 +125,29 @@ private Block( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Block.class, - com.google.cloud.vision.v1p2beta1.Block.Builder.class); + com.google.cloud.vision.v1p2beta1.Block.class, com.google.cloud.vision.v1p2beta1.Block.Builder.class); } /** - * - * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.Block.BlockType} */ - public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown block type.
      * 
@@ -190,8 +156,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Regular text block.
      * 
@@ -200,8 +164,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(1), /** - * - * *
      * Table block.
      * 
@@ -210,8 +172,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(2), /** - * - * *
      * Image block.
      * 
@@ -220,8 +180,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ PICTURE(3), /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -230,8 +188,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ RULER(4), /** - * - * *
      * Barcode block.
      * 
@@ -243,8 +199,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown block type.
      * 
@@ -253,8 +207,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Regular text block.
      * 
@@ -263,8 +215,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 1; /** - * - * *
      * Table block.
      * 
@@ -273,8 +223,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 2; /** - * - * *
      * Image block.
      * 
@@ -283,8 +231,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PICTURE_VALUE = 3; /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -293,8 +239,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RULER_VALUE = 4; /** - * - * *
      * Barcode block.
      * 
@@ -303,6 +247,7 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BARCODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -327,55 +272,52 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return TEXT; - case 2: - return TABLE; - case 3: - return PICTURE; - case 4: - return RULER; - case 5: - return BARCODE; - default: - return null; + case 0: return UNKNOWN; + case 1: return TEXT; + case 2: return TABLE; + case 3: return PICTURE; + case 4: return RULER; + case 5: return BARCODE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlockType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p2beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -395,14 +337,11 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -410,25 +349,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the block.
    * 
@@ -436,16 +368,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -465,7 +394,6 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -473,8 +401,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -494,18 +420,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -534,8 +455,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -547,8 +466,6 @@ public java.util.List getParagraphs return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -556,13 +473,11 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -574,8 +489,6 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -587,8 +500,6 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -596,57 +507,46 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Block.BlockType result = - com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p2beta1.Block.BlockType result = com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -655,7 +555,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -667,7 +566,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -693,19 +593,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p2beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -715,7 +620,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Block)) { return super.equals(obj); @@ -724,16 +629,20 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getParagraphsList().equals(other.getParagraphsList())) return false; + if (!getParagraphsList() + .equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -760,133 +669,125 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Block} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Block) com.google.cloud.vision.v1p2beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Block.class, - com.google.cloud.vision.v1p2beta1.Block.Builder.class); + com.google.cloud.vision.v1p2beta1.Block.class, com.google.cloud.vision.v1p2beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Block.newBuilder() @@ -894,17 +795,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -934,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override @@ -955,8 +856,7 @@ public com.google.cloud.vision.v1p2beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block buildPartial() { - com.google.cloud.vision.v1p2beta1.Block result = - new com.google.cloud.vision.v1p2beta1.Block(this); + com.google.cloud.vision.v1p2beta1.Block result = new com.google.cloud.vision.v1p2beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -987,39 +887,38 @@ public com.google.cloud.vision.v1p2beta1.Block buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Block) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Block)other); } else { super.mergeFrom(other); return this; @@ -1052,10 +951,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParagraphsFieldBuilder() - : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParagraphsFieldBuilder() : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -1095,60 +993,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,8 +1045,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1182,22 +1063,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1209,8 +1085,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1229,42 +1103,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1272,17 +1137,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1290,13 +1152,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1316,15 +1173,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1344,21 +1198,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1393,8 +1242,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1427,8 +1274,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1453,9 +1298,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1467,8 +1310,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1501,8 +1342,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1524,13 +1363,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1555,14 +1392,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1584,42 +1418,32 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ =
-            new java.util.ArrayList(paragraphs_);
+        paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Paragraph,
-            com.google.cloud.vision.v1p2beta1.Paragraph.Builder,
-            com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>
-        paragraphsBuilder_;
+        com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> paragraphsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1634,8 +1458,6 @@ public java.util.List getParagraphs } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1650,8 +1472,6 @@ public int getParagraphsCount() { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1666,15 +1486,14 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { + public Builder setParagraphs( + int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1688,8 +1507,6 @@ public Builder setParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1708,8 +1525,6 @@ public Builder setParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1730,15 +1545,14 @@ public Builder addParagraphs(com.google.cloud.vision.v1p2beta1.Paragraph value) return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { + public Builder addParagraphs( + int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1752,8 +1566,6 @@ public Builder addParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1772,8 +1584,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1792,8 +1602,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1804,7 +1612,8 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1812,8 +1621,6 @@ public Builder addAllParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1831,8 +1638,6 @@ public Builder clearParagraphs() { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1850,44 +1655,39 @@ public Builder removeParagraphs(int index) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.Paragraph.Builder getParagraphsBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Paragraph.Builder getParagraphsBuilder( + int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); - } else { + return paragraphs_.get(index); } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1895,8 +1695,6 @@ public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1904,48 +1702,42 @@ public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder(int index) { - return getParagraphsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder( + int index) { + return getParagraphsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Paragraph, - com.google.cloud.vision.v1p2beta1.Paragraph.Builder, - com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Paragraph, - com.google.cloud.vision.v1p2beta1.Paragraph.Builder, - com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>( - paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>( + paragraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1953,67 +1745,51 @@ public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Block.BlockType result = - com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); - return result == null - ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.Block.BlockType result = com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); + return result == null ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED : result; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @param value The blockType to set. * @return This builder for chaining. */ @@ -2021,39 +1797,33 @@ public Builder setBlockType(com.google.cloud.vision.v1p2beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -2061,43 +1831,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2107,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Block) private static final com.google.cloud.vision.v1p2beta1.Block DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Block(); } @@ -2121,16 +1885,16 @@ public static com.google.cloud.vision.v1p2beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2145,4 +1909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java index 268b7964d..ef09321b5 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface BlockOrBuilder - extends +public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Block) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
@@ -59,8 +35,6 @@ public interface BlockOrBuilder com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface BlockOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - java.util.List getParagraphsList(); + java.util.List + getParagraphsList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -156,8 +121,6 @@ public interface BlockOrBuilder */ com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -166,61 +129,49 @@ public interface BlockOrBuilder */ int getParagraphsCount(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType(); /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java index a8c3d87e4..68010ef4b 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BoundingPoly} */ -public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BoundingPoly) BoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,31 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.NormalizedVertex.parser(), - extensionRegistry)); - break; + vertices_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Vertex.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + normalizedVertices_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +87,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -122,27 +100,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.GeometryProto - .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.GeometryProto - .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BoundingPoly.class, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p2beta1.BoundingPoly.class, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -154,8 +127,6 @@ public java.util.List getVerticesList( return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -163,13 +134,11 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -181,8 +150,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -194,8 +161,6 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -203,15 +168,14 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -219,13 +183,10 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -233,13 +194,11 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -251,8 +210,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -264,8 +221,6 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -279,7 +234,6 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -308,11 +263,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,16 +278,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BoundingPoly other = - (com.google.cloud.vision.v1p2beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p2beta1.BoundingPoly other = (com.google.cloud.vision.v1p2beta1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,127 +313,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BoundingPoly) com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.GeometryProto - .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.GeometryProto - .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BoundingPoly.class, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p2beta1.BoundingPoly.class, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder() @@ -484,18 +432,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.GeometryProto - .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -536,8 +484,7 @@ public com.google.cloud.vision.v1p2beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p2beta1.BoundingPoly result = - new com.google.cloud.vision.v1p2beta1.BoundingPoly(this); + com.google.cloud.vision.v1p2beta1.BoundingPoly result = new com.google.cloud.vision.v1p2beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -565,39 +512,38 @@ public com.google.cloud.vision.v1p2beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BoundingPoly) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -624,10 +570,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -651,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNormalizedVerticesFieldBuilder() - : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNormalizedVerticesFieldBuilder() : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -688,28 +632,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, - com.google.cloud.vision.v1p2beta1.Vertex.Builder, - com.google.cloud.vision.v1p2beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -724,8 +661,6 @@ public java.util.List getVerticesList( } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -740,8 +675,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -756,15 +689,14 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.vision.v1p2beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,8 +710,6 @@ public Builder setVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -798,8 +728,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -820,15 +748,14 @@ public Builder addVertices(com.google.cloud.vision.v1p2beta1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.vision.v1p2beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -842,15 +769,14 @@ public Builder addVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.vision.v1p2beta1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.vision.v1p2beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -861,8 +787,6 @@ public Builder addVertices(com.google.cloud.vision.v1p2beta1.Vertex.Builder buil return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -881,8 +805,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -893,7 +815,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -901,8 +824,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -920,8 +841,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -939,44 +858,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -984,8 +898,6 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(in } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -993,83 +905,67 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, - com.google.cloud.vision.v1p2beta1.Vertex.Builder, - com.google.cloud.vision.v1p2beta1.VertexOrBuilder> + com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, - com.google.cloud.vision.v1p2beta1.Vertex.Builder, - com.google.cloud.vision.v1p2beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList( - normalizedVertices_); + normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, - com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -1077,14 +973,11 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -1094,14 +987,11 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1111,14 +1001,11 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices( } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { @@ -1135,14 +1022,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1156,14 +1040,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1179,14 +1060,11 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p2beta1.Normalize return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { @@ -1203,14 +1081,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1224,14 +1099,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1245,20 +1117,18 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1266,14 +1136,11 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1286,14 +1153,11 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1306,49 +1170,39 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1356,62 +1210,45 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder getNormalizedV } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, - com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, - com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1420,9 +1257,9 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1432,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BoundingPoly) private static final com.google.cloud.vision.v1p2beta1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BoundingPoly(); } @@ -1446,16 +1283,16 @@ public static com.google.cloud.vision.v1p2beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1307,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java index 39c943fd8..b173fb638 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,40 +33,34 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( + int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List getNormalizedVerticesList(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -96,8 +69,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -106,19 +77,15 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java index 05262e2c8..dd9c2689b 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.ColorInfo}
  */
-public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ColorInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ColorInfo)
     ColorInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ColorInfo() {}
+  private ColorInfo() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,37 +53,36 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Color.Builder subBuilder = null;
-              if (color_ != null) {
-                subBuilder = color_.toBuilder();
-              }
-              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(color_);
-                color_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 21:
-            {
-              score_ = input.readFloat();
-              break;
+          case 10: {
+            com.google.type.Color.Builder subBuilder = null;
+            if (color_ != null) {
+              subBuilder = color_.toBuilder();
             }
-          case 29:
-            {
-              pixelFraction_ = input.readFloat();
-              break;
+            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(color_);
+              color_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 21: {
+
+            score_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            pixelFraction_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,39 +90,34 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.ColorInfo.class,
-            com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p2beta1.ColorInfo.class, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
-   *
-   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ @java.lang.Override @@ -147,14 +125,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
    * RGB components of the color.
    * 
@@ -178,14 +151,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -196,15 +166,12 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -213,7 +180,6 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -245,13 +212,16 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,22 +231,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ColorInfo other = - (com.google.cloud.vision.v1p2beta1.ColorInfo) obj; + com.google.cloud.vision.v1p2beta1.ColorInfo other = (com.google.cloud.vision.v1p2beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,112 +265,107 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -406,23 +373,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.ColorInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ColorInfo)
       com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.ColorInfo.class,
-              com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p2beta1.ColorInfo.class, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.ColorInfo.newBuilder()
@@ -430,15 +395,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -477,8 +443,7 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p2beta1.ColorInfo result =
-          new com.google.cloud.vision.v1p2beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p2beta1.ColorInfo result = new com.google.cloud.vision.v1p2beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -494,39 +459,38 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.ColorInfo) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.ColorInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -575,31 +539,24 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
-        colorBuilder_;
+        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
     /**
-     *
-     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return The color. */ public com.google.type.Color getColor() { @@ -610,8 +567,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
      * RGB components of the color.
      * 
@@ -632,15 +587,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor(com.google.type.Color.Builder builderForValue) { + public Builder setColor( + com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -651,8 +605,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -662,7 +614,8 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = + com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -674,8 +627,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -694,8 +645,6 @@ public Builder clearColor() { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -703,13 +652,11 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
      * RGB components of the color.
      * 
@@ -720,12 +667,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? + com.google.type.Color.getDefaultInstance() : color_; } } /** - * - * *
      * RGB components of the color.
      * 
@@ -733,29 +679,26 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); + colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getColor(), + getParentForChildren(), + isClean()); color_ = null; } return colorBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -763,52 +706,43 @@ public float getScore() { return score_; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_; + private float pixelFraction_ ; /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -816,45 +750,39 @@ public float getPixelFraction() { return pixelFraction_; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ColorInfo) private static final com.google.cloud.vision.v1p2beta1.ColorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ColorInfo(); } @@ -878,16 +806,16 @@ public static com.google.cloud.vision.v1p2beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java index c4f8a0a15..f8504f6f4 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ColorInfoOrBuilder - extends +public interface ColorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
    * RGB components of the color.
    * 
@@ -59,28 +35,22 @@ public interface ColorInfoOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java index 45f99819a..0c67762e0 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHint} */ -public final class CropHint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHint) CropHintOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CropHint() {} + private CropHint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,39 +52,36 @@ private CropHint( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; + case 10: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 29: - { - importanceFraction_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 29: { + + importanceFraction_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +89,35 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHint.class, - com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHint.class, com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -149,26 +125,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -184,14 +153,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -202,15 +168,12 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -219,7 +182,6 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -251,13 +214,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,22 +233,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHint other = - (com.google.cloud.vision.v1p2beta1.CropHint) obj; + com.google.cloud.vision.v1p2beta1.CropHint other = (com.google.cloud.vision.v1p2beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,135 +267,128 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHint) com.google.cloud.vision.v1p2beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHint.class, - com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHint.class, com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHint.newBuilder() @@ -435,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override @@ -482,8 +444,7 @@ public com.google.cloud.vision.v1p2beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHint result = - new com.google.cloud.vision.v1p2beta1.CropHint(this); + com.google.cloud.vision.v1p2beta1.CropHint result = new com.google.cloud.vision.v1p2beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -499,39 +460,38 @@ public com.google.cloud.vision.v1p2beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHint) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHint)other); } else { super.mergeFrom(other); return this; @@ -580,49 +540,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -644,8 +591,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -665,8 +610,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -678,9 +621,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -692,8 +633,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -713,8 +652,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -723,13 +660,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -741,14 +676,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -757,32 +689,26 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -790,52 +716,43 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_; + private float importanceFraction_ ; /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -843,45 +760,39 @@ public float getImportanceFraction() { return importanceFraction_; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHint) private static final com.google.cloud.vision.v1p2beta1.CropHint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHint(); } @@ -905,16 +816,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java index c51f34a68..dd3ed9e88 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintOrBuilder - extends +public interface CropHintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -62,28 +38,22 @@ public interface CropHintOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java index 098cb32e2..1d0643eb5 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cropHints_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.CropHint.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cropHints_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.CropHint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -105,27 +87,22 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** - * - * *
    * Crop hint results.
    * 
@@ -137,8 +114,6 @@ public java.util.List getCropHintsLi return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -146,13 +121,11 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -164,8 +137,6 @@ public int getCropHintsCount() { return cropHints_.size(); } /** - * - * *
    * Crop hint results.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** - * - * *
    * Crop hint results.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other = - (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) obj; - if (!getCropHintsList().equals(other.getCropHintsList())) return false; + if (!getCropHintsList() + .equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHintsAnnotation) com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation result = - new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance()) return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCropHintsFieldBuilder() - : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCropHintsFieldBuilder() : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = - new java.util.ArrayList(cropHints_); + cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, - com.google.cloud.vision.v1p2beta1.CropHint.Builder, - com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> - cropHintsBuilder_; + com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> cropHintsBuilder_; /** - * - * *
      * Crop hint results.
      * 
@@ -585,8 +533,6 @@ public java.util.List getCropHintsLi } } /** - * - * *
      * Crop hint results.
      * 
@@ -601,8 +547,6 @@ public int getCropHintsCount() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -617,15 +561,14 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public Builder setCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHint value) { + public Builder setCropHints( + int index, com.google.cloud.vision.v1p2beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,8 +582,6 @@ public Builder setCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -659,8 +600,6 @@ public Builder setCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -681,15 +620,14 @@ public Builder addCropHints(com.google.cloud.vision.v1p2beta1.CropHint value) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public Builder addCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHint value) { + public Builder addCropHints( + int index, com.google.cloud.vision.v1p2beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,8 +641,6 @@ public Builder addCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -723,8 +659,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -743,8 +677,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -755,7 +687,8 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -763,8 +696,6 @@ public Builder addAllCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -782,8 +713,6 @@ public Builder clearCropHints() { return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -801,44 +730,39 @@ public Builder removeCropHints(int index) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHint.Builder getCropHintsBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.CropHint.Builder getCropHintsBuilder( + int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); - } else { + return cropHints_.get(index); } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -846,8 +770,6 @@ public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** - * - * *
      * Crop hint results.
      * 
@@ -855,55 +777,49 @@ public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder(int index) { - return getCropHintsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder( + int index) { + return getCropHintsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, - com.google.cloud.vision.v1p2beta1.CropHint.Builder, - com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, - com.google.cloud.vision.v1p2beta1.CropHint.Builder, - com.google.cloud.vision.v1p2beta1.CropHintOrBuilder>( - cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder>( + cropHints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cropHints_ = null; } return cropHintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p2beta1.CropHintsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(); } @@ -927,16 +843,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java index 64687d241..5aeb3fb43 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintsAnnotationOrBuilder - extends +public interface CropHintsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - java.util.List getCropHintsList(); + java.util.List + getCropHintsList(); /** - * - * *
    * Crop hint results.
    * 
@@ -44,8 +25,6 @@ public interface CropHintsAnnotationOrBuilder */ com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index); /** - * - * *
    * Crop hint results.
    * 
@@ -54,24 +33,21 @@ public interface CropHintsAnnotationOrBuilder */ int getCropHintsCount(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java index b18ed2a48..9d91ec287 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsParams} */ -public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHintsParams) CropHintsParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +54,34 @@ private CropHintsParams( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + aspectRatios_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - aspectRatios_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -117,27 +99,22 @@ private CropHintsParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsParams.class, - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsParams.class, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -148,16 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List getAspectRatiosList() { + public java.util.List + getAspectRatiosList() { return aspectRatios_; } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -168,15 +143,12 @@ public java.util.List getAspectRatiosList() {
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -187,18 +159,15 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } - private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -234,7 +204,8 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -246,15 +217,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHintsParams other = - (com.google.cloud.vision.v1p2beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p2beta1.CropHintsParams other = (com.google.cloud.vision.v1p2beta1.CropHintsParams) obj; - if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList() + .equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,126 +247,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHintsParams) com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsParams.class, - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsParams.class, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder() @@ -403,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -442,8 +405,7 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHintsParams result = - new com.google.cloud.vision.v1p2beta1.CropHintsParams(this); + com.google.cloud.vision.v1p2beta1.CropHintsParams result = new com.google.cloud.vision.v1p2beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -458,39 +420,38 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsParams) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsParams)other); } else { super.mergeFrom(other); return this; @@ -498,8 +459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance()) return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -529,8 +489,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,20 +498,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); - private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -563,17 +518,14 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ - public java.util.List getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(aspectRatios_) - : aspectRatios_; + public java.util.List + getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -584,15 +536,12 @@ public java.util.List getAspectRatiosList() {
      * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -603,7 +552,6 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -611,8 +559,6 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -623,20 +569,18 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios(int index, float value) { + public Builder setAspectRatios( + int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -647,7 +591,6 @@ public Builder setAspectRatios(int index, float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -658,8 +601,6 @@ public Builder addAspectRatios(float value) { return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -670,19 +611,18 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios(java.lang.Iterable values) { + public Builder addAllAspectRatios( + java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aspectRatios_); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -693,7 +633,6 @@ public Builder addAllAspectRatios(java.lang.Iterable
      * 
* * repeated float aspect_ratios = 1; - * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -702,9 +641,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsParams) private static final com.google.cloud.vision.v1p2beta1.CropHintsParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHintsParams(); } @@ -728,16 +667,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java index 4d6543639..74f0fc357 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintsParamsOrBuilder - extends +public interface CropHintsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -36,13 +18,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -53,13 +32,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -70,7 +46,6 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java index 461ad9774..ee8b9f8e0 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DominantColorsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - colors_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.ColorInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + colors_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.ColorInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -105,27 +87,22 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,8 +114,6 @@ public java.util.List getColorsList return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -146,13 +121,11 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -164,8 +137,6 @@ public int getColorsCount() { return colors_.size(); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other = - (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) obj; - if (!getColorsList().equals(other.getColorsList())) return false; + if (!getColorsList() + .equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.DominantColorsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation result = - new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance()) return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColorsFieldBuilder() - : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, - com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> - colorsBuilder_; + com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> colorsBuilder_; /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -584,8 +533,6 @@ public java.util.List getColorsList } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,8 +547,6 @@ public int getColorsCount() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -616,15 +561,14 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder setColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { + public Builder setColors( + int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +582,6 @@ public Builder setColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -658,8 +600,6 @@ public Builder setColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -680,15 +620,14 @@ public Builder addColors(com.google.cloud.vision.v1p2beta1.ColorInfo value) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder addColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { + public Builder addColors( + int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,15 +641,14 @@ public Builder addColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder addColors(com.google.cloud.vision.v1p2beta1.ColorInfo.Builder builderForValue) { + public Builder addColors( + com.google.cloud.vision.v1p2beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -721,8 +659,6 @@ public Builder addColors(com.google.cloud.vision.v1p2beta1.ColorInfo.Builder bui return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -741,8 +677,6 @@ public Builder addColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -753,7 +687,8 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -761,8 +696,6 @@ public Builder addAllColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -780,8 +713,6 @@ public Builder clearColors() { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -799,44 +730,39 @@ public Builder removeColors(int index) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder getColorsBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder getColorsBuilder( + int index) { return getColorsFieldBuilder().getBuilder(index); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { if (colorsBuilder_ == null) { - return colors_.get(index); - } else { + return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,8 +770,6 @@ public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(i } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -853,55 +777,49 @@ public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(i * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder(int index) { - return getColorsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, - com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, - com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder>( - colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder>( + colors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); colors_ = null; } return colorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(); } @@ -925,16 +843,16 @@ public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java index 68ef945d1..69e28e73e 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface DominantColorsAnnotationOrBuilder - extends +public interface DominantColorsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - java.util.List getColorsList(); + java.util.List + getColorsList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -44,8 +25,6 @@ public interface DominantColorsAnnotationOrBuilder */ com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -54,24 +33,21 @@ public interface DominantColorsAnnotationOrBuilder */ int getColorsCount(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java similarity index 79% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java index 2fa79c31b..d7eb4eb89 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.EntityAnnotation} */ -public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.EntityAnnotation) EntityAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -47,15 +29,16 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,88 +58,77 @@ private EntityAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + locale_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; - } - case 53: - { - topicality_ = input.readFloat(); - break; + description_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + case 53: { + + topicality_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 58: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.LocationInfo.parser(), extensionRegistry)); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - properties_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Property.parser(), extensionRegistry)); - break; + locations_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + properties_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Property.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -164,7 +136,8 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -176,27 +149,22 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -204,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -213,15 +180,14 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -229,15 +195,16 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -248,15 +215,12 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ @java.lang.Override @@ -265,30 +229,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -299,14 +263,11 @@ public com.google.protobuf.ByteString getLocaleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -315,29 +276,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +309,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -366,8 +324,6 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -377,7 +333,6 @@ public float getScore() {
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -388,8 +343,6 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -399,7 +352,6 @@ public float getConfidence() {
    * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -410,15 +362,12 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -426,26 +375,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -461,8 +403,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -478,8 +418,6 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -491,13 +429,11 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -513,8 +449,6 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -530,8 +464,6 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -543,15 +475,14 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -564,8 +495,6 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -574,13 +503,11 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -593,8 +520,6 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -607,8 +532,6 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -617,12 +540,12 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+  public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -634,7 +557,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -681,22 +605,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -706,29 +636,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.EntityAnnotation other =
-        (com.google.cloud.vision.v1p2beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p2beta1.EntityAnnotation other = (com.google.cloud.vision.v1p2beta1.EntityAnnotation) obj;
 
-    if (!getMid().equals(other.getMid())) return false;
-    if (!getLocale().equals(other.getLocale())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getMid()
+        .equals(other.getMid())) return false;
+    if (!getLocale()
+        .equals(other.getLocale())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly()
+          .equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList().equals(other.getLocationsList())) return false;
-    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
+    if (!getLocationsList()
+        .equals(other.getLocationsList())) return false;
+    if (!getPropertiesList()
+        .equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -747,11 +685,14 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -770,126 +711,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.EntityAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.EntityAnnotation) com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.EntityAnnotation.newBuilder() @@ -897,18 +829,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -946,9 +878,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -967,8 +899,7 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.EntityAnnotation result = - new com.google.cloud.vision.v1p2beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p2beta1.EntityAnnotation result = new com.google.cloud.vision.v1p2beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -1007,39 +938,38 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.EntityAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.EntityAnnotation)other); } else { super.mergeFrom(other); return this; @@ -1047,8 +977,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1091,10 +1020,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1118,10 +1046,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1146,8 +1073,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1156,13 +1082,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mid_ = ""; /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1170,13 +1093,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1185,8 +1108,6 @@ public java.lang.String getMid() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1194,14 +1115,15 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1209,8 +1131,6 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1218,22 +1138,20 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1241,18 +1159,15 @@ public Builder setMid(java.lang.String value) {
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1260,16 +1175,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1277,21 +1192,19 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object locale_ = ""; /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1300,22 +1213,21 @@ public java.lang.String getLocale() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The bytes for locale. */ - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -1323,64 +1235,57 @@ public com.google.protobuf.ByteString getLocaleBytes() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale(java.lang.String value) { + public Builder setLocale( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes(com.google.protobuf.ByteString value) { + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1388,20 +1293,18 @@ public Builder setLocaleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1410,21 +1313,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1432,76 +1334,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1509,45 +1401,37 @@ public float getScore() { return score_; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1557,7 +1441,6 @@ public Builder clearScore() {
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1565,8 +1448,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1576,19 +1457,16 @@ public float getConfidence() {
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1598,20 +1476,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_; + private float topicality_ ; /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1621,7 +1496,6 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -1629,8 +1503,6 @@ public float getTopicality() { return topicality_; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1640,19 +1512,16 @@ public float getTopicality() {
      * 
* * float topicality = 6; - * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1662,11 +1531,10 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; - * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1674,49 +1542,36 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1738,8 +1593,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1759,8 +1612,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1772,9 +1623,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1786,8 +1635,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1807,8 +1654,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1817,13 +1662,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1835,14 +1678,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1851,42 +1691,32 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ =
-            new java.util.ArrayList(locations_);
+        locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.LocationInfo,
-            com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>
-        locationsBuilder_;
+        com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder> locationsBuilder_;
 
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1905,8 +1735,6 @@ public java.util.List getLocatio
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1925,8 +1753,6 @@ public int getLocationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1945,8 +1771,6 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1957,7 +1781,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
+    public Builder setLocations(
+        int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1971,8 +1796,6 @@ public Builder setLocations(int index, com.google.cloud.vision.v1p2beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1995,8 +1818,6 @@ public Builder setLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2021,8 +1842,6 @@ public Builder addLocations(com.google.cloud.vision.v1p2beta1.LocationInfo value
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2033,7 +1852,8 @@ public Builder addLocations(com.google.cloud.vision.v1p2beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
+    public Builder addLocations(
+        int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2047,8 +1867,6 @@ public Builder addLocations(int index, com.google.cloud.vision.v1p2beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2071,8 +1889,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2095,8 +1911,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2111,7 +1925,8 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -2119,8 +1934,6 @@ public Builder addAllLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2142,8 +1955,6 @@ public Builder clearLocations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2165,8 +1976,6 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2177,12 +1986,11 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilder(
+        int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2196,14 +2004,11 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);
-      } else {
+        return locations_.get(index);  } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2214,8 +2019,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsOrBuilderList() {
+    public java.util.List 
+         getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2223,8 +2028,6 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2236,12 +2039,10 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2252,13 +2053,12 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder(int index) {
-      return getLocationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder(
+        int index) {
+      return getLocationsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2269,48 +2069,38 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsBuilderList() {
+    public java.util.List 
+         getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.LocationInfo,
-            com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>
+        com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder> 
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.LocationInfo,
-                com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
-                com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>(
-                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>(
+                locations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ =
-            new java.util.ArrayList(properties_);
+        properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Property,
-            com.google.cloud.vision.v1p2beta1.Property.Builder,
-            com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>
-        propertiesBuilder_;
+        com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder> propertiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2326,8 +2116,6 @@ public java.util.List getPropertiesL
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2343,8 +2131,6 @@ public int getPropertiesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2360,8 +2146,6 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2369,7 +2153,8 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public Builder setProperties(int index, com.google.cloud.vision.v1p2beta1.Property value) {
+    public Builder setProperties(
+        int index, com.google.cloud.vision.v1p2beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2383,8 +2168,6 @@ public Builder setProperties(int index, com.google.cloud.vision.v1p2beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2404,8 +2187,6 @@ public Builder setProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2427,8 +2208,6 @@ public Builder addProperties(com.google.cloud.vision.v1p2beta1.Property value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2436,7 +2215,8 @@ public Builder addProperties(com.google.cloud.vision.v1p2beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public Builder addProperties(int index, com.google.cloud.vision.v1p2beta1.Property value) {
+    public Builder addProperties(
+        int index, com.google.cloud.vision.v1p2beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2450,8 +2230,6 @@ public Builder addProperties(int index, com.google.cloud.vision.v1p2beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2471,8 +2249,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2492,8 +2268,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2505,7 +2279,8 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2513,8 +2288,6 @@ public Builder addAllProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2533,8 +2306,6 @@ public Builder clearProperties() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2553,8 +2324,6 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2562,12 +2331,11 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(
+        int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2575,16 +2343,14 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
+        int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);
-      } else {
+        return properties_.get(index);  } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2592,8 +2358,8 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesOrBuilderList() {
+    public java.util.List 
+         getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2601,8 +2367,6 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2611,12 +2375,10 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2624,13 +2386,12 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(int index) {
-      return getPropertiesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(
+        int index) {
+      return getPropertiesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2638,30 +2399,27 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesBuilderList() {
+    public java.util.List 
+         getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Property,
-            com.google.cloud.vision.v1p2beta1.Property.Builder,
-            com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder> 
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.Property,
-                com.google.cloud.vision.v1p2beta1.Property.Builder,
-                com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>(
-                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>(
+                properties_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2671,12 +2429,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p2beta1.EntityAnnotation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.EntityAnnotation();
   }
@@ -2685,16 +2443,16 @@ public static com.google.cloud.vision.v1p2beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public EntityAnnotation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new EntityAnnotation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntityAnnotation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new EntityAnnotation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2709,4 +2467,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
index a74d6b734..5d6d50377 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface EntityAnnotationOrBuilder
-    extends
+public interface EntityAnnotationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -33,13 +15,10 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -47,79 +26,64 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ java.lang.String getLocale(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ - com.google.protobuf.ByteString getLocaleBytes(); + com.google.protobuf.ByteString + getLocaleBytes(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -129,14 +93,11 @@ public interface EntityAnnotationOrBuilder
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -146,40 +107,31 @@ public interface EntityAnnotationOrBuilder
    * 
* * float topicality = 6; - * * @return The topicality. */ float getTopicality(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -190,8 +142,6 @@ public interface EntityAnnotationOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -202,10 +152,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  java.util.List getLocationsList();
+  java.util.List 
+      getLocationsList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -218,8 +167,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index);
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -232,8 +179,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getLocationsCount();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -244,11 +189,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  java.util.List
+  java.util.List 
       getLocationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -259,11 +202,10 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
+  com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -271,10 +213,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  java.util.List getPropertiesList();
+  java.util.List 
+      getPropertiesList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -284,8 +225,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p2beta1.Property getProperties(int index);
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -295,8 +234,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -304,11 +241,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  java.util.List
+  java.util.List 
       getPropertiesOrBuilderList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -316,5 +251,6 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
+  com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
similarity index 77%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
index e414cdc95..d82c429d0 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
- *
- *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation} */ -public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.FaceAnnotation) FaceAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -50,15 +32,16 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,133 +61,115 @@ private FaceAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); - } - fdBoundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark>(); - mutable_bitField0_ |= 0x00000001; - } - landmarks_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.parser(), - extensionRegistry)); - break; - } - case 37: - { - rollAngle_ = input.readFloat(); - break; - } - case 45: - { - panAngle_ = input.readFloat(); - break; - } - case 53: - { - tiltAngle_ = input.readFloat(); - break; - } - case 61: - { - detectionConfidence_ = input.readFloat(); - break; + + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); } - case 69: - { - landmarkingConfidence_ = input.readFloat(); - break; + fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); } - case 72: - { - int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + landmarks_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); + break; + } + case 37: { - sorrowLikelihood_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + rollAngle_ = input.readFloat(); + break; + } + case 45: { - angerLikelihood_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + panAngle_ = input.readFloat(); + break; + } + case 53: { - surpriseLikelihood_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); + tiltAngle_ = input.readFloat(); + break; + } + case 61: { - underExposedLikelihood_ = rawValue; - break; - } - case 112: - { - int rawValue = input.readEnum(); + detectionConfidence_ = input.readFloat(); + break; + } + case 69: { - blurredLikelihood_ = rawValue; - break; - } - case 120: - { - int rawValue = input.readEnum(); + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + joyLikelihood_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); + + sorrowLikelihood_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + angerLikelihood_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + surpriseLikelihood_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + underExposedLikelihood_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + blurredLikelihood_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + headwearLikelihood_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -212,7 +177,8 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -221,79 +187,61 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder - extends + public interface LandmarkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return The position. */ com.google.cloud.vision.v1p2beta1.Position getPosition(); /** - * - * *
      * Face landmark position.
      * 
@@ -303,39 +251,37 @@ public interface LandmarkOrBuilder com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Landmark extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -354,36 +300,32 @@ private Landmark( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.vision.v1p2beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p2beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; + position_ = input.readMessage(com.google.cloud.vision.v1p2beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -391,31 +333,27 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); } /** - * - * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -425,10 +363,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -437,8 +374,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_LANDMARK(0), /** - * - * *
        * Left eye.
        * 
@@ -447,8 +382,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE(1), /** - * - * *
        * Right eye.
        * 
@@ -457,8 +390,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE(2), /** - * - * *
        * Left of left eyebrow.
        * 
@@ -467,8 +398,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_LEFT_EYEBROW(3), /** - * - * *
        * Right of left eyebrow.
        * 
@@ -477,8 +406,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_LEFT_EYEBROW(4), /** - * - * *
        * Left of right eyebrow.
        * 
@@ -487,8 +414,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_RIGHT_EYEBROW(5), /** - * - * *
        * Right of right eyebrow.
        * 
@@ -497,8 +422,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_RIGHT_EYEBROW(6), /** - * - * *
        * Midpoint between eyes.
        * 
@@ -507,8 +430,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MIDPOINT_BETWEEN_EYES(7), /** - * - * *
        * Nose tip.
        * 
@@ -517,8 +438,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_TIP(8), /** - * - * *
        * Upper lip.
        * 
@@ -527,8 +446,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UPPER_LIP(9), /** - * - * *
        * Lower lip.
        * 
@@ -537,8 +454,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOWER_LIP(10), /** - * - * *
        * Mouth left.
        * 
@@ -547,8 +462,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_LEFT(11), /** - * - * *
        * Mouth right.
        * 
@@ -557,8 +470,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_RIGHT(12), /** - * - * *
        * Mouth center.
        * 
@@ -567,8 +478,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_CENTER(13), /** - * - * *
        * Nose, bottom right.
        * 
@@ -577,8 +486,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_RIGHT(14), /** - * - * *
        * Nose, bottom left.
        * 
@@ -587,8 +494,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_LEFT(15), /** - * - * *
        * Nose, bottom center.
        * 
@@ -597,8 +502,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_CENTER(16), /** - * - * *
        * Left eye, top boundary.
        * 
@@ -607,8 +510,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_TOP_BOUNDARY(17), /** - * - * *
        * Left eye, right corner.
        * 
@@ -617,8 +518,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_RIGHT_CORNER(18), /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -627,8 +526,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** - * - * *
        * Left eye, left corner.
        * 
@@ -637,8 +534,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_LEFT_CORNER(20), /** - * - * *
        * Right eye, top boundary.
        * 
@@ -647,8 +542,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_TOP_BOUNDARY(21), /** - * - * *
        * Right eye, right corner.
        * 
@@ -657,8 +550,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_RIGHT_CORNER(22), /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -667,8 +558,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** - * - * *
        * Right eye, left corner.
        * 
@@ -677,8 +566,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_LEFT_CORNER(24), /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -687,8 +574,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -697,8 +582,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** - * - * *
        * Left ear tragion.
        * 
@@ -707,8 +590,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EAR_TRAGION(27), /** - * - * *
        * Right ear tragion.
        * 
@@ -717,8 +598,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EAR_TRAGION(28), /** - * - * *
        * Left eye pupil.
        * 
@@ -727,8 +606,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_PUPIL(29), /** - * - * *
        * Right eye pupil.
        * 
@@ -737,8 +614,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_PUPIL(30), /** - * - * *
        * Forehead glabella.
        * 
@@ -747,8 +622,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FOREHEAD_GLABELLA(31), /** - * - * *
        * Chin gnathion.
        * 
@@ -757,8 +630,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_GNATHION(32), /** - * - * *
        * Chin left gonion.
        * 
@@ -767,8 +638,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_LEFT_GONION(33), /** - * - * *
        * Chin right gonion.
        * 
@@ -780,8 +649,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -790,8 +657,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** - * - * *
        * Left eye.
        * 
@@ -800,8 +665,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_VALUE = 1; /** - * - * *
        * Right eye.
        * 
@@ -810,8 +673,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_VALUE = 2; /** - * - * *
        * Left of left eyebrow.
        * 
@@ -820,8 +681,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** - * - * *
        * Right of left eyebrow.
        * 
@@ -830,8 +689,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** - * - * *
        * Left of right eyebrow.
        * 
@@ -840,8 +697,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** - * - * *
        * Right of right eyebrow.
        * 
@@ -850,8 +705,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** - * - * *
        * Midpoint between eyes.
        * 
@@ -860,8 +713,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** - * - * *
        * Nose tip.
        * 
@@ -870,8 +721,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_TIP_VALUE = 8; /** - * - * *
        * Upper lip.
        * 
@@ -880,8 +729,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPPER_LIP_VALUE = 9; /** - * - * *
        * Lower lip.
        * 
@@ -890,8 +737,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOWER_LIP_VALUE = 10; /** - * - * *
        * Mouth left.
        * 
@@ -900,8 +745,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_LEFT_VALUE = 11; /** - * - * *
        * Mouth right.
        * 
@@ -910,8 +753,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_RIGHT_VALUE = 12; /** - * - * *
        * Mouth center.
        * 
@@ -920,8 +761,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_CENTER_VALUE = 13; /** - * - * *
        * Nose, bottom right.
        * 
@@ -930,8 +769,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** - * - * *
        * Nose, bottom left.
        * 
@@ -940,8 +777,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** - * - * *
        * Nose, bottom center.
        * 
@@ -950,8 +785,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** - * - * *
        * Left eye, top boundary.
        * 
@@ -960,8 +793,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** - * - * *
        * Left eye, right corner.
        * 
@@ -970,8 +801,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -980,8 +809,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** - * - * *
        * Left eye, left corner.
        * 
@@ -990,8 +817,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** - * - * *
        * Right eye, top boundary.
        * 
@@ -1000,8 +825,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** - * - * *
        * Right eye, right corner.
        * 
@@ -1010,8 +833,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -1020,8 +841,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** - * - * *
        * Right eye, left corner.
        * 
@@ -1030,8 +849,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -1040,8 +857,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -1050,8 +865,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** - * - * *
        * Left ear tragion.
        * 
@@ -1060,8 +873,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** - * - * *
        * Right ear tragion.
        * 
@@ -1070,8 +881,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** - * - * *
        * Left eye pupil.
        * 
@@ -1080,8 +889,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** - * - * *
        * Right eye pupil.
        * 
@@ -1090,8 +897,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** - * - * *
        * Forehead glabella.
        * 
@@ -1100,8 +905,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** - * - * *
        * Chin gnathion.
        * 
@@ -1110,8 +913,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_GNATHION_VALUE = 32; /** - * - * *
        * Chin left gonion.
        * 
@@ -1120,8 +921,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** - * - * *
        * Chin right gonion.
        * 
@@ -1130,6 +929,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_RIGHT_GONION_VALUE = 34; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1154,115 +954,81 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return UNKNOWN_LANDMARK; - case 1: - return LEFT_EYE; - case 2: - return RIGHT_EYE; - case 3: - return LEFT_OF_LEFT_EYEBROW; - case 4: - return RIGHT_OF_LEFT_EYEBROW; - case 5: - return LEFT_OF_RIGHT_EYEBROW; - case 6: - return RIGHT_OF_RIGHT_EYEBROW; - case 7: - return MIDPOINT_BETWEEN_EYES; - case 8: - return NOSE_TIP; - case 9: - return UPPER_LIP; - case 10: - return LOWER_LIP; - case 11: - return MOUTH_LEFT; - case 12: - return MOUTH_RIGHT; - case 13: - return MOUTH_CENTER; - case 14: - return NOSE_BOTTOM_RIGHT; - case 15: - return NOSE_BOTTOM_LEFT; - case 16: - return NOSE_BOTTOM_CENTER; - case 17: - return LEFT_EYE_TOP_BOUNDARY; - case 18: - return LEFT_EYE_RIGHT_CORNER; - case 19: - return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: - return LEFT_EYE_LEFT_CORNER; - case 21: - return RIGHT_EYE_TOP_BOUNDARY; - case 22: - return RIGHT_EYE_RIGHT_CORNER; - case 23: - return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: - return RIGHT_EYE_LEFT_CORNER; - case 25: - return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: - return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: - return LEFT_EAR_TRAGION; - case 28: - return RIGHT_EAR_TRAGION; - case 29: - return LEFT_EYE_PUPIL; - case 30: - return RIGHT_EYE_PUPIL; - case 31: - return FOREHEAD_GLABELLA; - case 32: - return CHIN_GNATHION; - case 33: - return CHIN_LEFT_GONION; - case 34: - return CHIN_RIGHT_GONION; - default: - return null; + case 0: return UNKNOWN_LANDMARK; + case 1: return LEFT_EYE; + case 2: return RIGHT_EYE; + case 3: return LEFT_OF_LEFT_EYEBROW; + case 4: return RIGHT_OF_LEFT_EYEBROW; + case 5: return LEFT_OF_RIGHT_EYEBROW; + case 6: return RIGHT_OF_RIGHT_EYEBROW; + case 7: return MIDPOINT_BETWEEN_EYES; + case 8: return NOSE_TIP; + case 9: return UPPER_LIP; + case 10: return LOWER_LIP; + case 11: return MOUTH_LEFT; + case 12: return MOUTH_RIGHT; + case 13: return MOUTH_CENTER; + case 14: return NOSE_BOTTOM_RIGHT; + case 15: return NOSE_BOTTOM_LEFT; + case 16: return NOSE_BOTTOM_CENTER; + case 17: return LEFT_EYE_TOP_BOUNDARY; + case 18: return LEFT_EYE_RIGHT_CORNER; + case 19: return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: return LEFT_EYE_LEFT_CORNER; + case 21: return RIGHT_EYE_TOP_BOUNDARY; + case 22: return RIGHT_EYE_RIGHT_CORNER; + case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: return RIGHT_EYE_LEFT_CORNER; + case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: return LEFT_EAR_TRAGION; + case 28: return RIGHT_EAR_TRAGION; + case 29: return LEFT_EYE_PUPIL; + case 30: return RIGHT_EYE_PUPIL; + case 31: return FOREHEAD_GLABELLA; + case 32: return CHIN_GNATHION; + case 33: return CHIN_LEFT_GONION; + case 34: return CHIN_RIGHT_GONION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1282,52 +1048,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.Position position_; /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return Whether the position field is set. */ @java.lang.Override @@ -1335,25 +1087,18 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Position getPosition() { - return position_ == null - ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; } /** - * - * *
      * Face landmark position.
      * 
@@ -1366,7 +1111,6 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1378,10 +1122,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1396,13 +1139,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1412,18 +1155,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other = - (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1448,94 +1191,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1545,32 +1281,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.newBuilder() @@ -1578,15 +1309,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1602,9 +1334,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1623,8 +1355,7 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark result = - new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1639,41 +1370,38 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark)other); } else { super.mergeFrom(other); return this; @@ -1681,8 +1409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1708,8 +1435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1721,67 +1447,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1789,24 +1499,21 @@ public Builder setType(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1814,47 +1521,34 @@ public Builder clearType() { private com.google.cloud.vision.v1p2beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, - com.google.cloud.vision.v1p2beta1.Position.Builder, - com.google.cloud.vision.v1p2beta1.PositionOrBuilder> - positionBuilder_; + com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder> positionBuilder_; /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; - * * @return The position. */ public com.google.cloud.vision.v1p2beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** - * - * *
        * Face landmark position.
        * 
@@ -1875,8 +1569,6 @@ public Builder setPosition(com.google.cloud.vision.v1p2beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1895,8 +1587,6 @@ public Builder setPosition( return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1907,9 +1597,7 @@ public Builder mergePosition(com.google.cloud.vision.v1p2beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p2beta1.Position.newBuilder(position_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } @@ -1921,8 +1609,6 @@ public Builder mergePosition(com.google.cloud.vision.v1p2beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1941,8 +1627,6 @@ public Builder clearPosition() { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1950,13 +1634,11 @@ public Builder clearPosition() { * .google.cloud.vision.v1p2beta1.Position position = 4; */ public com.google.cloud.vision.v1p2beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Face landmark position.
        * 
@@ -1967,14 +1649,11 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; } } /** - * - * *
        * Face landmark position.
        * 
@@ -1982,22 +1661,18 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p2beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, - com.google.cloud.vision.v1p2beta1.Position.Builder, - com.google.cloud.vision.v1p2beta1.PositionOrBuilder> + com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, - com.google.cloud.vision.v1p2beta1.Position.Builder, - com.google.cloud.vision.v1p2beta1.PositionOrBuilder>( - getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2010,12 +1685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(); } @@ -2024,16 +1699,16 @@ public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2048,13 +1723,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2066,7 +1740,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2074,8 +1747,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2087,18 +1758,13 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2119,8 +1785,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p2beta1.BoundingPoly fdBoundingPoly_;
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2131,7 +1795,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -2139,8 +1802,6 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2151,18 +1812,13 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2182,8 +1838,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
@@ -2191,13 +1845,10 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2205,14 +1856,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2224,8 +1872,6 @@ public int getLandmarksCount() { return landmarks_.size(); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2237,8 +1883,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2254,8 +1898,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -2263,7 +1905,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -2274,8 +1915,6 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -2283,7 +1922,6 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -2294,15 +1932,12 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -2313,14 +1948,11 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -2331,14 +1963,11 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2349,257 +1978,193 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2611,7 +2176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2648,8 +2214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (surpriseLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2668,50 +2233,64 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2721,33 +2300,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.FaceAnnotation other = - (com.google.cloud.vision.v1p2beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p2beta1.FaceAnnotation other = (com.google.cloud.vision.v1p2beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly() + .equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getLandmarksList() + .equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2779,15 +2365,20 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2807,127 +2398,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.FaceAnnotation) com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.FaceAnnotation.newBuilder() @@ -2935,17 +2517,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2995,9 +2577,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -3016,8 +2598,7 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.FaceAnnotation result = - new com.google.cloud.vision.v1p2beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p2beta1.FaceAnnotation result = new com.google.cloud.vision.v1p2beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -3058,39 +2639,38 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation)other); } else { super.mergeFrom(other); return this; @@ -3098,8 +2678,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -3124,10 +2703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarksFieldBuilder() - : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarksFieldBuilder() : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -3197,18 +2775,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3220,15 +2792,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3240,21 +2809,16 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3281,8 +2845,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3307,8 +2869,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3325,9 +2885,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3339,8 +2897,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3365,8 +2921,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3380,13 +2934,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3403,14 +2955,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3424,17 +2973,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3442,13 +2988,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p2beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
-        fdBoundingPolyBuilder_;
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3459,15 +3000,12 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3478,21 +3016,16 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3518,8 +3051,6 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3543,8 +3074,6 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3560,9 +3089,7 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3574,8 +3101,6 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPol
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3599,8 +3124,6 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3613,13 +3136,11 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-
+      
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3635,14 +3156,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : fdBoundingPoly_;
+        return fdBoundingPoly_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3655,51 +3173,39 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(), getParentForChildren(), isClean());
+        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ =
-            new java.util.ArrayList(
-                landmarks_);
+        landmarks_ = new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark,
-            com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder,
-            com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>
-        landmarksBuilder_;
+        com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
 
     /**
-     *
-     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3707,8 +3213,6 @@ private void ensureLandmarksIsMutable() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3723,8 +3227,6 @@ public int getLandmarksCount() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3739,8 +3241,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(in } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3762,8 +3262,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3771,8 +3269,7 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3783,8 +3280,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3805,8 +3300,6 @@ public Builder addLandmarks(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Lan return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3828,8 +3321,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3848,8 +3339,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3857,8 +3346,7 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3869,8 +3357,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3878,11 +3364,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3890,8 +3376,6 @@ public Builder addAllLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3909,8 +3393,6 @@ public Builder clearLandmarks() { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3928,8 +3410,6 @@ public Builder removeLandmarks(int index) { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3941,8 +3421,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3952,23 +3430,19 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); - } else { + return landmarks_.get(index); } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3976,8 +3450,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3985,13 +3457,10 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4000,46 +3469,37 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_; + private float rollAngle_ ; /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4047,7 +3507,6 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -4055,8 +3514,6 @@ public float getRollAngle() { return rollAngle_; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4064,19 +3521,16 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; - * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4084,20 +3538,17 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; - * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_; + private float panAngle_ ; /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4105,7 +3556,6 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -4113,8 +3563,6 @@ public float getPanAngle() { return panAngle_; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4122,19 +3570,16 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; - * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4142,27 +3587,23 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; - * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_; + private float tiltAngle_ ; /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -4170,53 +3611,44 @@ public float getTiltAngle() { return tiltAngle_; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_; + private float detectionConfidence_ ; /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -4224,51 +3656,42 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_; + private float landmarkingConfidence_ ; /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -4276,36 +3699,30 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -4313,65 +3730,51 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -4379,24 +3782,21 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -4404,65 +3804,51 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4470,24 +3856,21 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4495,65 +3878,51 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4561,24 +3930,21 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4586,65 +3952,51 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4652,24 +4004,21 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p2beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4677,65 +4026,51 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4743,24 +4078,21 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p2beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4768,65 +4100,51 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4834,24 +4152,21 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4859,65 +4174,51 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4925,31 +4226,28 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p2beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4959,12 +4257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p2beta1.FaceAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.FaceAnnotation(); } @@ -4973,16 +4271,16 @@ public static com.google.cloud.vision.v1p2beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4997,4 +4295,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java index 516577ebe..84e2c7755 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface FaceAnnotationOrBuilder - extends +public interface FaceAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -37,13 +19,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -55,13 +34,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -77,8 +53,6 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -89,13 +63,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -106,13 +77,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -127,18 +95,15 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List getLandmarksList(); + java.util.List + getLandmarksList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -147,8 +112,6 @@ public interface FaceAnnotationOrBuilder */ com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(int index); /** - * - * *
    * Detected face landmarks.
    * 
@@ -157,19 +120,15 @@ public interface FaceAnnotationOrBuilder */ int getLandmarksCount(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -180,8 +139,6 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -189,14 +146,11 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ float getRollAngle(); /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -204,222 +158,170 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ float getPanAngle(); /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ float getTiltAngle(); /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ float getDetectionConfidence(); /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java index 9b70f5a74..9c2050f8a 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Feature}
  */
-public final class Feature extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Feature extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Feature)
     FeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -46,15 +28,16 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,30 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              maxResults_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              model_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maxResults_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,41 +87,36 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Feature.class,
-            com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Feature.class, com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified feature type.
      * 
@@ -149,8 +125,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Run face detection.
      * 
@@ -159,8 +133,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FACE_DETECTION(1), /** - * - * *
      * Run landmark detection.
      * 
@@ -169,8 +141,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LANDMARK_DETECTION(2), /** - * - * *
      * Run logo detection.
      * 
@@ -179,8 +149,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOGO_DETECTION(3), /** - * - * *
      * Run label detection.
      * 
@@ -189,8 +157,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LABEL_DETECTION(4), /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -201,8 +167,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     TEXT_DETECTION(5),
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -212,8 +176,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -223,8 +185,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     SAFE_SEARCH_DETECTION(6),
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -234,8 +194,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     IMAGE_PROPERTIES(7),
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -244,8 +202,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CROP_HINTS(9), /** - * - * *
      * Run web detection.
      * 
@@ -257,8 +213,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified feature type.
      * 
@@ -267,8 +221,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Run face detection.
      * 
@@ -277,8 +229,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACE_DETECTION_VALUE = 1; /** - * - * *
      * Run landmark detection.
      * 
@@ -287,8 +237,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LANDMARK_DETECTION_VALUE = 2; /** - * - * *
      * Run logo detection.
      * 
@@ -297,8 +245,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOGO_DETECTION_VALUE = 3; /** - * - * *
      * Run label detection.
      * 
@@ -307,8 +253,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LABEL_DETECTION_VALUE = 4; /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -319,8 +263,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -330,8 +272,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -341,8 +281,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -352,8 +290,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -362,8 +298,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CROP_HINTS_VALUE = 9; /** - * - * *
      * Run web detection.
      * 
@@ -372,6 +306,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEB_DETECTION_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -396,65 +331,57 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return FACE_DETECTION; - case 2: - return LANDMARK_DETECTION; - case 3: - return LOGO_DETECTION; - case 4: - return LABEL_DETECTION; - case 5: - return TEXT_DETECTION; - case 11: - return DOCUMENT_TEXT_DETECTION; - case 6: - return SAFE_SEARCH_DETECTION; - case 7: - return IMAGE_PROPERTIES; - case 9: - return CROP_HINTS; - case 10: - return WEB_DETECTION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return FACE_DETECTION; + case 2: return LANDMARK_DETECTION; + case 3: return LOGO_DETECTION; + case 4: return LABEL_DETECTION; + case 5: return TEXT_DETECTION; + case 11: return DOCUMENT_TEXT_DETECTION; + case 6: return SAFE_SEARCH_DETECTION; + case 7: return IMAGE_PROPERTIES; + case 9: return CROP_HINTS; + case 10: return WEB_DETECTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p2beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -474,51 +401,39 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Feature.Type result = - com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p2beta1.Feature.Type result = com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p2beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -529,8 +444,6 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -538,7 +451,6 @@ public int getMaxResults() {
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -547,15 +459,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -563,15 +474,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -580,7 +492,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -592,7 +503,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p2beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -612,10 +524,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p2beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -628,17 +542,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Feature other = - (com.google.cloud.vision.v1p2beta1.Feature) obj; + com.google.cloud.vision.v1p2beta1.Feature other = (com.google.cloud.vision.v1p2beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() != other.getMaxResults()) return false; - if (!getModel().equals(other.getModel())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -661,104 +576,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -767,23 +675,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Feature}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Feature)
       com.google.cloud.vision.v1p2beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Feature.class,
-              com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Feature.class, com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Feature.newBuilder()
@@ -791,15 +697,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -813,9 +720,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -834,8 +741,7 @@ public com.google.cloud.vision.v1p2beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Feature result =
-          new com.google.cloud.vision.v1p2beta1.Feature(this);
+      com.google.cloud.vision.v1p2beta1.Feature result = new com.google.cloud.vision.v1p2beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -847,39 +753,38 @@ public com.google.cloud.vision.v1p2beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Feature) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Feature)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -929,65 +834,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Feature.Type result = - com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p2beta1.Feature.Type result = com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p2beta1.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -995,40 +886,34 @@ public Builder setType(com.google.cloud.vision.v1p2beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -1036,38 +921,32 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -1075,8 +954,6 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1084,13 +961,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1099,8 +976,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1108,14 +983,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1123,8 +999,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1132,22 +1006,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1155,18 +1027,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1174,23 +1043,23 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Feature) private static final com.google.cloud.vision.v1p2beta1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Feature(); } @@ -1214,16 +1083,16 @@ public static com.google.cloud.vision.v1p2beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,4 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java index 0eed6b0ec..92349771e 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java @@ -1,70 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.vision.v1p2beta1.Feature.Type getType(); /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -72,13 +45,10 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -86,8 +56,8 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java similarity index 75% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java index f1a74935f..45689a4ff 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsDestination.class, - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsDestination.class, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -134,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -143,15 +120,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -168,15 +144,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -185,7 +162,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -221,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.GcsDestination other = - (com.google.cloud.vision.v1p2beta1.GcsDestination) obj; + com.google.cloud.vision.v1p2beta1.GcsDestination other = (com.google.cloud.vision.v1p2beta1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,127 +225,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.GcsDestination) com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsDestination.class, - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsDestination.class, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder() @@ -376,15 +344,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override @@ -415,8 +384,7 @@ public com.google.cloud.vision.v1p2beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p2beta1.GcsDestination result = - new com.google.cloud.vision.v1p2beta1.GcsDestination(this); + com.google.cloud.vision.v1p2beta1.GcsDestination result = new com.google.cloud.vision.v1p2beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -426,39 +394,38 @@ public com.google.cloud.vision.v1p2beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -466,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -503,8 +469,6 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -521,13 +485,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -536,8 +500,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -554,14 +516,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -569,8 +532,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -587,22 +548,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -619,18 +578,15 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -647,23 +603,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -673,12 +629,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsDestination) private static final com.google.cloud.vision.v1p2beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.GcsDestination(); } @@ -687,16 +643,16 @@ public static com.google.cloud.vision.v1p2beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,4 +667,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java index 9d30f494e..43add1f4d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -42,13 +24,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -65,8 +44,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java similarity index 70% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java index fce20fbc2..35f4b9c6f 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsSource.class, - com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsSource.class, com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.GcsSource other = - (com.google.cloud.vision.v1p2beta1.GcsSource) obj; + com.google.cloud.vision.v1p2beta1.GcsSource other = (com.google.cloud.vision.v1p2beta1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.GcsSource) com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsSource.class, - com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsSource.class, com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.vision.v1p2beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p2beta1.GcsSource result = - new com.google.cloud.vision.v1p2beta1.GcsSource(this); + com.google.cloud.vision.v1p2beta1.GcsSource result = new com.google.cloud.vision.v1p2beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.vision.v1p2beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsSource) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -482,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -505,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -528,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsSource) private static final com.google.cloud.vision.v1p2beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.GcsSource(); } @@ -616,16 +573,16 @@ public static com.google.cloud.vision.v1p2beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java similarity index 52% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java index 553bb3a7b..5a6aa6e02 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java new file mode 100644 index 000000000..7a71f64d4 --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class GeometryProto { + private GeometryProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p2beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p2beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + + "d.vision.v1p2beta1.Vertex\022L\n\023normalized_" + + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + + "2beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.goog" + + "le.cloud.vision.v1p2beta1B\rGeometryProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor, + new java.lang.String[] { "Vertices", "NormalizedVertices", }); + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor, + new java.lang.String[] { "X", "Y", "Z", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java index 3bca324b5..c69354d21 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,31 @@ private Image( case 0: done = true; break; - case 10: - { - content_ = input.readBytes(); - break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p2beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,33 +85,29 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Image.class, - com.google.cloud.vision.v1p2beta1.Image.Builder.class); + com.google.cloud.vision.v1p2beta1.Image.class, com.google.cloud.vision.v1p2beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -139,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -150,8 +125,6 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.ImageSource source_; /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -159,7 +132,6 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ @java.lang.Override @@ -167,8 +139,6 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -176,18 +146,13 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageSource getSource() { - return source_ == null - ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -202,7 +167,6 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +178,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -231,10 +196,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,17 +211,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p2beta1.Image other = (com.google.cloud.vision.v1p2beta1.Image) obj;
 
-    if (!getContent().equals(other.getContent())) return false;
+    if (!getContent()
+        .equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,127 +247,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p2beta1.Image parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Image) com.google.cloud.vision.v1p2beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Image.class, - com.google.cloud.vision.v1p2beta1.Image.Builder.class); + com.google.cloud.vision.v1p2beta1.Image.class, com.google.cloud.vision.v1p2beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Image.newBuilder() @@ -406,15 +366,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override @@ -451,8 +412,7 @@ public com.google.cloud.vision.v1p2beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Image buildPartial() { - com.google.cloud.vision.v1p2beta1.Image result = - new com.google.cloud.vision.v1p2beta1.Image(this); + com.google.cloud.vision.v1p2beta1.Image result = new com.google.cloud.vision.v1p2beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -467,39 +427,38 @@ public com.google.cloud.vision.v1p2beta1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Image) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Image)other); } else { super.mergeFrom(other); return this; @@ -545,8 +504,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -554,7 +511,6 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -562,8 +518,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -571,22 +525,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -594,11 +545,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -606,13 +556,8 @@ public Builder clearContent() { private com.google.cloud.vision.v1p2beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageSource, - com.google.cloud.vision.v1p2beta1.ImageSource.Builder, - com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> - sourceBuilder_; + com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> sourceBuilder_; /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -620,15 +565,12 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -636,21 +578,16 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return The source. */ public com.google.cloud.vision.v1p2beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -673,8 +610,6 @@ public Builder setSource(com.google.cloud.vision.v1p2beta1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -695,8 +630,6 @@ public Builder setSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -709,9 +642,7 @@ public Builder mergeSource(com.google.cloud.vision.v1p2beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-              com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder(source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -723,8 +654,6 @@ public Builder mergeSource(com.google.cloud.vision.v1p2beta1.ImageSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -745,8 +674,6 @@ public Builder clearSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -756,13 +683,11 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p2beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p2beta1.ImageSource.Builder getSourceBuilder() {
-
+      
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -775,14 +700,11 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null
-            ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance()
-            : source_;
+        return source_ == null ?
+            com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_;
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -792,24 +714,21 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p2beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.ImageSource,
-            com.google.cloud.vision.v1p2beta1.ImageSource.Builder,
-            com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>
+        com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> 
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.ImageSource,
-                com.google.cloud.vision.v1p2beta1.ImageSource.Builder,
-                com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>(
-                getSource(), getParentForChildren(), isClean());
+        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>(
+                getSource(),
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -819,12 +738,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Image)
   private static final com.google.cloud.vision.v1p2beta1.Image DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Image();
   }
@@ -833,16 +752,16 @@ public static com.google.cloud.vision.v1p2beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Image parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Image(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Image parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Image(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -857,4 +776,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
similarity index 70%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
index 66d7efe85..003d2004a 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
- *
- *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageAnnotationContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageNumber_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            uri_ = s;
+            break;
+          }
+          case 16: {
+
+            pageNumber_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class,
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
-   *
-   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -188,7 +162,6 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other = - (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) obj; - if (!getUri().equals(other.getUri())) return false; - if (getPageNumber() != other.getPageNumber()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,104 +237,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -366,23 +334,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class,
-              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder()
@@ -390,15 +356,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -431,8 +398,7 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p2beta1.ImageAnnotationContext result =
-          new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p2beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -443,39 +409,38 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageAnnotationContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance()) return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -511,8 +475,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -524,20 +487,18 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
-     *
-     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -546,21 +507,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -568,77 +528,67 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_; + private int pageNumber_ ; /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -646,45 +596,39 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,12 +638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p2beta1.ImageAnnotationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(); } @@ -708,16 +652,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java index 92b987576..52853ae62 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java @@ -1,63 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageAnnotationContextOrBuilder - extends +public interface ImageAnnotationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..802ad3341 --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java @@ -0,0 +1,645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p2beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p2b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032,google/cloud/vision/v1p2be" + + "ta1/geometry.proto\0323google/cloud/vision/" + + "v1p2beta1/text_annotation.proto\0321google/" + + "cloud/vision/v1p2beta1/web_detection.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\037google/protobuf/timestamp.proto\032\027google" + + "/rpc/status.proto\032\027google/type/color.pro" + + "to\032\030google/type/latlng.proto\"\341\002\n\007Feature" + + "\0229\n\004type\030\001 \001(\0162+.google.cloud.vision.v1p" + + "2beta1.Feature.Type\022\023\n\013max_results\030\002 \001(\005" + + "\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMARK_D" + + "ETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_" + + "DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUM" + + "ENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_DETE" + + "CTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP_HI" + + "NTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013ImageSource\022" + + "\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 \001(" + + "\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n\006source\030\002 " + + "\001(\0132*.google.cloud.vision.v1p2beta1.Imag" + + "eSource\"\233\016\n\016FaceAnnotation\022B\n\rbounding_p" + + "oly\030\001 \001(\0132+.google.cloud.vision.v1p2beta" + + "1.BoundingPoly\022E\n\020fd_bounding_poly\030\002 \001(\013" + + "2+.google.cloud.vision.v1p2beta1.Boundin" + + "gPoly\022I\n\tlandmarks\030\003 \003(\01326.google.cloud." + + "vision.v1p2beta1.FaceAnnotation.Landmark" + + "\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_angle\030\005 \001(\002\022" + + "\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detection_confide" + + "nce\030\007 \001(\002\022\036\n\026landmarking_confidence\030\010 \001(" + + "\002\022A\n\016joy_likelihood\030\t \001(\0162).google.cloud" + + ".vision.v1p2beta1.Likelihood\022D\n\021sorrow_l" + + "ikelihood\030\n \001(\0162).google.cloud.vision.v1" + + "p2beta1.Likelihood\022C\n\020anger_likelihood\030\013" + + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + + "elihood\022F\n\023surprise_likelihood\030\014 \001(\0162).g" + + "oogle.cloud.vision.v1p2beta1.Likelihood\022" + + "K\n\030under_exposed_likelihood\030\r \001(\0162).goog" + + "le.cloud.vision.v1p2beta1.Likelihood\022E\n\022" + + "blurred_likelihood\030\016 \001(\0162).google.cloud." + + "vision.v1p2beta1.Likelihood\022F\n\023headwear_" + + "likelihood\030\017 \001(\0162).google.cloud.vision.v" + + "1p2beta1.Likelihood\032\307\007\n\010Landmark\022I\n\004type" + + "\030\003 \001(\0162;.google.cloud.vision.v1p2beta1.F" + + "aceAnnotation.Landmark.Type\0229\n\010position\030" + + "\004 \001(\0132\'.google.cloud.vision.v1p2beta1.Po" + + "sition\"\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n" + + "\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LE" + + "FT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022" + + "\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_R" + + "IGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020" + + "\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_" + + "LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020" + + "\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022" + + "\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CEN" + + "TER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT" + + "_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_B" + + "OUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026R" + + "IGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIG" + + "HT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY" + + "\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EY" + + "EBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_" + + "UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025" + + "\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020" + + "\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABE" + + "LLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GO" + + "NION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014Locatio" + + "nInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type.Lat" + + "Lng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n\020EntityAnn" + + "otation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013" + + "description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\022\n\nconf" + + "idence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001(\002\022B\n\rboun" + + "ding_poly\030\007 \001(\0132+.google.cloud.vision.v1" + + "p2beta1.BoundingPoly\022>\n\tlocations\030\010 \003(\0132" + + "+.google.cloud.vision.v1p2beta1.Location" + + "Info\022;\n\nproperties\030\t \003(\0132\'.google.cloud." + + "vision.v1p2beta1.Property\"\274\002\n\024SafeSearch" + + "Annotation\0228\n\005adult\030\001 \001(\0162).google.cloud" + + ".vision.v1p2beta1.Likelihood\0228\n\005spoof\030\002 " + + "\001(\0162).google.cloud.vision.v1p2beta1.Like" + + "lihood\022:\n\007medical\030\003 \001(\0162).google.cloud.v" + + "ision.v1p2beta1.Likelihood\022;\n\010violence\030\004" + + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + + "elihood\0227\n\004racy\030\t \001(\0162).google.cloud.vis" + + "ion.v1p2beta1.Likelihood\"a\n\013LatLongRect\022" + + "(\n\013min_lat_lng\030\001 \001(\0132\023.google.type.LatLn" + + "g\022(\n\013max_lat_lng\030\002 \001(\0132\023.google.type.Lat" + + "Lng\"U\n\tColorInfo\022!\n\005color\030\001 \001(\0132\022.google" + + ".type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016pixel_frac" + + "tion\030\003 \001(\002\"T\n\030DominantColorsAnnotation\0228" + + "\n\006colors\030\001 \003(\0132(.google.cloud.vision.v1p" + + "2beta1.ColorInfo\"c\n\017ImageProperties\022P\n\017d" + + "ominant_colors\030\001 \001(\01327.google.cloud.visi" + + "on.v1p2beta1.DominantColorsAnnotation\"\177\n" + + "\010CropHint\022B\n\rbounding_poly\030\001 \001(\0132+.googl" + + "e.cloud.vision.v1p2beta1.BoundingPoly\022\022\n" + + "\nconfidence\030\002 \001(\002\022\033\n\023importance_fraction" + + "\030\003 \001(\002\"R\n\023CropHintsAnnotation\022;\n\ncrop_hi" + + "nts\030\001 \003(\0132\'.google.cloud.vision.v1p2beta" + + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + + "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + + "Params\022.\n&enable_text_detection_confiden" + + "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + + " \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_long_rect\030\001" + + " \001(\0132*.google.cloud.vision.v1p2beta1.Lat" + + "LongRect\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop" + + "_hints_params\030\004 \001(\0132..google.cloud.visio" + + "n.v1p2beta1.CropHintsParams\022O\n\024web_detec" + + "tion_params\030\006 \001(\01321.google.cloud.vision." + + "v1p2beta1.WebDetectionParams\022Q\n\025text_det" + + "ection_params\030\014 \001(\01322.google.cloud.visio" + + "n.v1p2beta1.TextDetectionParams\"\311\001\n\024Anno" + + "tateImageRequest\0223\n\005image\030\001 \001(\0132$.google" + + ".cloud.vision.v1p2beta1.Image\0228\n\010feature" + + "s\030\002 \003(\0132&.google.cloud.vision.v1p2beta1." + + "Feature\022B\n\rimage_context\030\003 \001(\0132+.google." + + "cloud.vision.v1p2beta1.ImageContext\":\n\026I" + + "mageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013pa" + + "ge_number\030\002 \001(\005\"\212\007\n\025AnnotateImageRespons" + + "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo" + + "ud.vision.v1p2beta1.FaceAnnotation\022M\n\024la" + + "ndmark_annotations\030\002 \003(\0132/.google.cloud." + + "vision.v1p2beta1.EntityAnnotation\022I\n\020log" + + "o_annotations\030\003 \003(\0132/.google.cloud.visio" + + "n.v1p2beta1.EntityAnnotation\022J\n\021label_an" + + "notations\030\004 \003(\0132/.google.cloud.vision.v1" + + "p2beta1.EntityAnnotation\022I\n\020text_annotat" + + "ions\030\005 \003(\0132/.google.cloud.vision.v1p2bet" + + "a1.EntityAnnotation\022K\n\024full_text_annotat" + + "ion\030\014 \001(\0132-.google.cloud.vision.v1p2beta" + + "1.TextAnnotation\022S\n\026safe_search_annotati" + + "on\030\006 \001(\01323.google.cloud.vision.v1p2beta1" + + ".SafeSearchAnnotation\022S\n\033image_propertie" + + "s_annotation\030\010 \001(\0132..google.cloud.vision" + + ".v1p2beta1.ImageProperties\022Q\n\025crop_hints" + + "_annotation\030\013 \001(\01322.google.cloud.vision." + + "v1p2beta1.CropHintsAnnotation\022B\n\rweb_det" + + "ection\030\r \001(\0132+.google.cloud.vision.v1p2b" + + "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl" + + "e.rpc.Status\022F\n\007context\030\025 \001(\01325.google.c" + + "loud.vision.v1p2beta1.ImageAnnotationCon" + + "text\"\241\001\n\024AnnotateFileResponse\022@\n\014input_c" + + "onfig\030\001 \001(\0132*.google.cloud.vision.v1p2be" + + "ta1.InputConfig\022G\n\tresponses\030\002 \003(\01324.goo" + + "gle.cloud.vision.v1p2beta1.AnnotateImage" + + "Response\"h\n\032BatchAnnotateImagesRequest\022J" + + "\n\010requests\030\001 \003(\01323.google.cloud.vision.v" + + "1p2beta1.AnnotateImageRequestB\003\340A\002\"f\n\033Ba" + + "tchAnnotateImagesResponse\022G\n\tresponses\030\001" + + " \003(\01324.google.cloud.vision.v1p2beta1.Ann" + + "otateImageResponse\"\236\002\n\030AsyncAnnotateFile" + + "Request\022@\n\014input_config\030\001 \001(\0132*.google.c" + + "loud.vision.v1p2beta1.InputConfig\0228\n\010fea" + + "tures\030\002 \003(\0132&.google.cloud.vision.v1p2be" + + "ta1.Feature\022B\n\rimage_context\030\003 \001(\0132+.goo" + + "gle.cloud.vision.v1p2beta1.ImageContext\022" + + "B\n\routput_config\030\004 \001(\0132+.google.cloud.vi" + + "sion.v1p2beta1.OutputConfig\"_\n\031AsyncAnno" + + "tateFileResponse\022B\n\routput_config\030\001 \001(\0132" + + "+.google.cloud.vision.v1p2beta1.OutputCo" + + "nfig\"p\n\036AsyncBatchAnnotateFilesRequest\022N" + + "\n\010requests\030\001 \003(\01327.google.cloud.vision.v" + + "1p2beta1.AsyncAnnotateFileRequestB\003\340A\002\"n" + + "\n\037AsyncBatchAnnotateFilesResponse\022K\n\tres" + + "ponses\030\001 \003(\01328.google.cloud.vision.v1p2b" + + "eta1.AsyncAnnotateFileResponse\"^\n\013InputC" + + "onfig\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud" + + ".vision.v1p2beta1.GcsSource\022\021\n\tmime_type" + + "\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destinatio" + + "n\030\001 \001(\0132-.google.cloud.vision.v1p2beta1." + + "GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGc" + + "sSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013" + + "\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n\005sta" + + "te\030\001 \001(\01626.google.cloud.vision.v1p2beta1" + + ".OperationMetadata.State\022/\n\013create_time\030" + + "\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CR" + + "EATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCEL" + + "LED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY" + + "_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022" + + "\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016ImageAn" + + "notator\022\276\001\n\023BatchAnnotateImages\0229.google" + + ".cloud.vision.v1p2beta1.BatchAnnotateIma" + + "gesRequest\032:.google.cloud.vision.v1p2bet" + + "a1.BatchAnnotateImagesResponse\"0\202\323\344\223\002\037\"\032" + + "/v1p2beta1/images:annotate:\001*\332A\010requests" + + "\022\351\001\n\027AsyncBatchAnnotateFiles\022=.google.cl" + + "oud.vision.v1p2beta1.AsyncBatchAnnotateF" + + "ilesRequest\032\035.google.longrunning.Operati" + + "on\"p\202\323\344\223\002(\"#/v1p2beta1/files:asyncBatchA" + + "nnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnno" + + "tateFilesResponse\022\021OperationMetadata\032v\312A" + + "\025vision.googleapis.com\322A[https://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/cloud-visionB\202\001\n" + + "!com.google.cloud.vision.v1p2beta1B\023Imag" + + "eAnnotatorProtoP\001ZCgoogle.golang.org/gen" + + "proto/googleapis/cloud/vision/v1p2beta1;" + + "vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor, + new java.lang.String[] { "Type", "MaxResults", "Model", }); + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor, + new java.lang.String[] { "GcsImageUri", "ImageUri", }); + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor, + new java.lang.String[] { "Content", "Source", }); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor, + new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", }); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { "Type", "Position", }); + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor, + new java.lang.String[] { "LatLng", }); + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor, + new java.lang.String[] { "Name", "Value", "Uint64Value", }); + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor, + new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor, + new java.lang.String[] { "MinLatLng", "MaxLatLng", }); + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor, + new java.lang.String[] { "Color", "Score", "PixelFraction", }); + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { "Colors", }); + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor, + new java.lang.String[] { "DominantColors", }); + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor, + new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { "CropHints", }); + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor, + new java.lang.String[] { "AspectRatios", }); + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor, + new java.lang.String[] { "IncludeGeoResults", }); + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor, + new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor, + new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "WebDetectionParams", "TextDetectionParams", }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { "Image", "Features", "ImageContext", }); + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { "Uri", "PageNumber", }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "Error", "Context", }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { "InputConfig", "Responses", }); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { "OutputConfig", }); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "MimeType", }); + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BatchSize", }); + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor, + new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java index 90678ae9c..9c1a91377 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageContext} */ -public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageContext) ImageContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,90 +54,74 @@ private ImageContext( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = input.readMessage(com.google.cloud.vision.v1p2beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + case 34: { + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; + + break; + } + case 50: { + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.CropHintsParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; + webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); - } - webDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); } - case 98: - { - com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); - } - textDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); - } - - break; + textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -162,7 +129,8 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -171,33 +139,27 @@ private ImageContext( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageContext.class, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageContext.class, com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.LatLongRect latLongRect_; /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -205,25 +167,18 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null - ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; } /** - * - * *
    * Not used.
    * 
@@ -238,8 +193,6 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -252,15 +205,13 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_; } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -273,15 +224,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -294,7 +242,6 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -302,8 +249,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -316,25 +261,22 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.CropHintsParams cropHintsParams_; /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -342,25 +284,18 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -375,14 +310,11 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p2beta1.WebDetectionParams webDetectionParams_; /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -390,25 +322,18 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } /** - * - * *
    * Parameters for web detection.
    * 
@@ -416,22 +341,18 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p2beta1.TextDetectionParams textDetectionParams_; /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -439,25 +360,18 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
@@ -465,13 +379,11 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -483,7 +395,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -509,7 +422,8 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -520,14 +434,16 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCropHintsParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -537,30 +453,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageContext other = - (com.google.cloud.vision.v1p2beta1.ImageContext) obj; + com.google.cloud.vision.v1p2beta1.ImageContext other = (com.google.cloud.vision.v1p2beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect().equals(other.getLatLongRect())) return false; + if (!getLatLongRect() + .equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList() + .equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams() + .equals(other.getCropHintsParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams() + .equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams() + .equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -598,127 +518,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageContext} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageContext) com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageContext.class, - com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageContext.class, com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder() @@ -726,15 +637,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -768,9 +680,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override @@ -789,8 +701,7 @@ public com.google.cloud.vision.v1p2beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageContext result = - new com.google.cloud.vision.v1p2beta1.ImageContext(this); + com.google.cloud.vision.v1p2beta1.ImageContext result = new com.google.cloud.vision.v1p2beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -825,39 +736,38 @@ public com.google.cloud.vision.v1p2beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageContext) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageContext)other); } else { super.mergeFrom(other); return this; @@ -916,52 +826,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> - latLongRectBuilder_; + com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> latLongRectBuilder_; /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ public com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null - ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** - * - * *
      * Not used.
      * 
@@ -982,8 +878,6 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect valu return this; } /** - * - * *
      * Not used.
      * 
@@ -1002,8 +896,6 @@ public Builder setLatLongRect( return this; } /** - * - * *
      * Not used.
      * 
@@ -1014,9 +906,7 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder(latLongRect_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); } else { latLongRect_ = value; } @@ -1028,8 +918,6 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect va return this; } /** - * - * *
      * Not used.
      * 
@@ -1048,8 +936,6 @@ public Builder clearLatLongRect() { return this; } /** - * - * *
      * Not used.
      * 
@@ -1057,13 +943,11 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p2beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** - * - * *
      * Not used.
      * 
@@ -1074,14 +958,11 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null - ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? + com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; } } /** - * - * *
      * Not used.
      * 
@@ -1089,34 +970,27 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder>( - getLatLongRect(), getParentForChildren(), isClean()); + latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder>( + getLatLongRect(), + getParentForChildren(), + isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1129,15 +1003,13 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1150,15 +1022,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
      * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1171,7 +1040,6 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1179,8 +1047,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1193,16 +1059,14 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1215,23 +1079,21 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints(int index, java.lang.String value) { + public Builder setLanguageHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1244,22 +1106,20 @@ public Builder setLanguageHints(int index, java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints(java.lang.String value) { + public Builder addLanguageHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1272,19 +1132,18 @@ public Builder addLanguageHints(java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints(java.lang.Iterable values) { + public Builder addAllLanguageHints( + java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1297,7 +1156,6 @@ public Builder addAllLanguageHints(java.lang.Iterable values)
      * 
* * repeated string language_hints = 2; - * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1307,8 +1165,6 @@ public Builder clearLanguageHints() { return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1321,15 +1177,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; - * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1338,47 +1194,34 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p2beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> - cropHintsParamsBuilder_; + com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1399,8 +1242,6 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsPar return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1419,8 +1260,6 @@ public Builder setCropHintsParams( return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1431,9 +1270,7 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder(cropHintsParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); } else { cropHintsParams_ = value; } @@ -1445,8 +1282,6 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsP return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1465,8 +1300,6 @@ public Builder clearCropHintsParams() { return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1474,32 +1307,26 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder - getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? + com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1507,17 +1334,14 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder getCropHintsPar * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), getParentForChildren(), isClean()); + cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), + getParentForChildren(), + isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1525,55 +1349,41 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder getCropHintsPar private com.google.cloud.vision.v1p2beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> - webDetectionParamsBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams( - com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { + public Builder setWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1587,8 +1397,6 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1607,22 +1415,17 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams( - com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder(webDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); } else { webDetectionParams_ = value; } @@ -1634,8 +1437,6 @@ public Builder mergeWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1654,42 +1455,33 @@ public Builder clearWebDetectionParams() { return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder - getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? + com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1697,17 +1489,14 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), getParentForChildren(), isClean()); + webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), + getParentForChildren(), + isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1715,55 +1504,41 @@ public Builder clearWebDetectionParams() { private com.google.cloud.vision.v1p2beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, - com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> - textDetectionParamsBuilder_; + com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams( - com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { + public Builder setTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1777,8 +1552,6 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1797,22 +1570,17 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams( - com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder(textDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); } else { textDetectionParams_ = value; } @@ -1824,8 +1592,6 @@ public Builder mergeTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1844,42 +1610,33 @@ public Builder clearTextDetectionParams() { return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder - getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? + com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -1887,24 +1644,21 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, - com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, - com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), getParentForChildren(), isClean()); + textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), + getParentForChildren(), + isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1914,12 +1668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageContext) private static final com.google.cloud.vision.v1p2beta1.ImageContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageContext(); } @@ -1928,16 +1682,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1952,4 +1706,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java similarity index 87% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java index 34bf53b4a..c99820b85 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageContextOrBuilder - extends +public interface ImageContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect(); /** - * - * *
    * Not used.
    * 
@@ -59,8 +35,6 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -73,13 +47,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - java.util.List getLanguageHintsList(); + java.util.List + getLanguageHintsList(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -92,13 +64,10 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ int getLanguageHintsCount(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -111,14 +80,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -131,39 +97,31 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString getLanguageHintsBytes(int index); + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -173,32 +131,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
@@ -208,32 +158,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java index c9abae3ef..4f42706d0 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -33,14 +15,11 @@ public interface ImageOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -48,13 +27,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -62,13 +38,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; - * * @return The source. */ com.google.cloud.vision.v1p2beta1.ImageSource getSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
similarity index 69%
rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
index fbde8ee89..bb8c98f29 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
+++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
- *
- *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageProperties} */ -public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageProperties) ImagePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageProperties() {} + private ImageProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageProperties( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); - } - dominantColors_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dominantColors_ = input.readMessage(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageProperties.class, - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageProperties.class, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominantColors_; /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null - ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageProperties other = - (com.google.cloud.vision.v1p2beta1.ImageProperties) obj; + com.google.cloud.vision.v1p2beta1.ImageProperties other = (com.google.cloud.vision.v1p2beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors().equals(other.getDominantColors())) return false; + if (!getDominantColors() + .equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageProperties) com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageProperties.class, - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageProperties.class, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder() @@ -367,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override @@ -410,8 +370,7 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageProperties result = - new com.google.cloud.vision.v1p2beta1.ImageProperties(this); + com.google.cloud.vision.v1p2beta1.ImageProperties result = new com.google.cloud.vision.v1p2beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageProperties) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageProperties)other); } else { super.mergeFrom(other); return this; @@ -465,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -489,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> - dominantColorsBuilder_; + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null - ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { + public Builder setDominantColors(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -564,8 +506,6 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -584,22 +524,17 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder(dominantColors_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); } else { dominantColors_ = value; } @@ -611,8 +546,6 @@ public Builder mergeDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -631,42 +564,33 @@ public Builder clearDominantColors() { return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder - getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null - ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -674,24 +598,21 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), getParentForChildren(), isClean()); + dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), + getParentForChildren(), + isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageProperties) private static final com.google.cloud.vision.v1p2beta1.ImageProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageProperties(); } @@ -715,16 +636,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java index 220625d91..f0c47ac28 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImagePropertiesOrBuilder - extends +public interface ImagePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java similarity index 77% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java index 07305f9c4..286311c4d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageSource} */ -public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageSource) ImageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -44,15 +26,16 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ImageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageSource.class, - com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageSource.class, com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -135,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ @java.lang.Override @@ -144,15 +120,14 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -162,15 +137,16 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -181,8 +157,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -201,7 +175,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
    * 
* * string image_uri = 2; - * * @return The imageUri. */ @java.lang.Override @@ -210,15 +183,14 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -237,15 +209,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -254,7 +227,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -296,16 +269,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageSource other = - (com.google.cloud.vision.v1p2beta1.ImageSource) obj; + com.google.cloud.vision.v1p2beta1.ImageSource other = (com.google.cloud.vision.v1p2beta1.ImageSource) obj; - if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; + if (!getGcsImageUri() + .equals(other.getGcsImageUri())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +300,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageSource) com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageSource.class, - com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageSource.class, com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder() @@ -454,15 +419,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p2beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageSource result = - new com.google.cloud.vision.v1p2beta1.ImageSource(this); + com.google.cloud.vision.v1p2beta1.ImageSource result = new com.google.cloud.vision.v1p2beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -507,39 +472,38 @@ public com.google.cloud.vision.v1p2beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageSource) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageSource)other); } else { super.mergeFrom(other); return this; @@ -587,8 +551,6 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -598,13 +560,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -613,8 +575,6 @@ public java.lang.String getGcsImageUri() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -624,14 +584,15 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -639,8 +600,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,22 +609,20 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
      * 
* * string gcs_image_uri = 1; - * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri(java.lang.String value) { + public Builder setGcsImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -675,18 +632,15 @@ public Builder setGcsImageUri(java.lang.String value) {
      * 
* * string gcs_image_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -696,16 +650,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -713,8 +667,6 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -733,13 +685,13 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 2; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -748,8 +700,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -768,14 +718,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -783,8 +734,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -803,22 +752,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 2; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -837,18 +784,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 2; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -867,23 +811,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageSource) private static final com.google.cloud.vision.v1p2beta1.ImageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageSource(); } @@ -907,16 +851,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java index 004968c2c..9d0c37d2b 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageSourceOrBuilder - extends +public interface ImageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -35,13 +17,10 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -51,14 +30,12 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString getGcsImageUriBytes(); + com.google.protobuf.ByteString + getGcsImageUriBytes(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -77,13 +54,10 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -102,8 +76,8 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java index ef68d9c85..6ed2447f6 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; + gcsSource_ = input.readMessage(com.google.cloud.vision.v1p2beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +86,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.InputConfig.class, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.InputConfig.class, com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.GcsSource gcsSource_; /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -147,25 +121,18 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -180,15 +147,12 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -197,30 +161,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -229,7 +193,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -258,7 +222,8 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); @@ -271,19 +236,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.InputConfig other = - (com.google.cloud.vision.v1p2beta1.InputConfig) obj; + com.google.cloud.vision.v1p2beta1.InputConfig other = (com.google.cloud.vision.v1p2beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; } - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,127 +272,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.InputConfig) com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.InputConfig.class, - com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.InputConfig.class, com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder() @@ -434,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +437,7 @@ public com.google.cloud.vision.v1p2beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p2beta1.InputConfig result = - new com.google.cloud.vision.v1p2beta1.InputConfig(this); + com.google.cloud.vision.v1p2beta1.InputConfig result = new com.google.cloud.vision.v1p2beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -495,39 +452,38 @@ public com.google.cloud.vision.v1p2beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.InputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -574,47 +530,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, - com.google.cloud.vision.v1p2beta1.GcsSource.Builder, - com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -635,8 +578,6 @@ public Builder setGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -655,8 +596,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -667,9 +606,7 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); } else { gcsSource_ = value; } @@ -681,8 +618,6 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -701,8 +636,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -710,13 +643,11 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p2beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -727,14 +658,11 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null - ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? + com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -742,17 +670,14 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, - com.google.cloud.vision.v1p2beta1.GcsSource.Builder, - com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, - com.google.cloud.vision.v1p2beta1.GcsSource.Builder, - com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder>( - getGcsSource(), getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder>( + getGcsSource(), + getParentForChildren(), + isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -760,21 +685,19 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private java.lang.Object mimeType_ = ""; /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -783,22 +706,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -806,71 +728,64 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.InputConfig) private static final com.google.cloud.vision.v1p2beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.InputConfig(); } @@ -894,16 +809,16 @@ public static com.google.cloud.vision.v1p2beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java index d396c59df..5a669943d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -59,29 +35,24 @@ public interface InputConfigOrBuilder com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java index 601603829..d28d73c98 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LatLongRect} */ -public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LatLongRect extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.LatLongRect) LatLongRectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatLongRect() {} + private LatLongRect() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,39 @@ private LatLongRect( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); } - case 18: - { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); - } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); - } - - break; + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,39 +92,34 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LatLongRect.class, - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p2beta1.LatLongRect.class, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -150,14 +127,11 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ @java.lang.Override @@ -165,8 +139,6 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** - * - * *
    * Min lat/long pair.
    * 
@@ -181,14 +153,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -196,14 +165,11 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ @java.lang.Override @@ -211,8 +177,6 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** - * - * *
    * Max lat/long pair.
    * 
@@ -225,7 +189,6 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -254,10 +218,12 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.LatLongRect other = - (com.google.cloud.vision.v1p2beta1.LatLongRect) obj; + com.google.cloud.vision.v1p2beta1.LatLongRect other = (com.google.cloud.vision.v1p2beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng().equals(other.getMinLatLng())) return false; + if (!getMinLatLng() + .equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng() + .equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LatLongRect} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.LatLongRect) com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LatLongRect.class, - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p2beta1.LatLongRect.class, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder() @@ -435,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override @@ -484,8 +443,7 @@ public com.google.cloud.vision.v1p2beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p2beta1.LatLongRect result = - new com.google.cloud.vision.v1p2beta1.LatLongRect(this); + com.google.cloud.vision.v1p2beta1.LatLongRect result = new com.google.cloud.vision.v1p2beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -504,39 +462,38 @@ public com.google.cloud.vision.v1p2beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.LatLongRect) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.LatLongRect)other); } else { super.mergeFrom(other); return this; @@ -582,31 +539,24 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -617,8 +567,6 @@ public com.google.type.LatLng getMinLatLng() { } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -639,15 +587,14 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng( + com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -658,8 +605,6 @@ public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -670,7 +615,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -682,8 +627,6 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -702,8 +645,6 @@ public Builder clearMinLatLng() { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -711,13 +652,11 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Min lat/long pair.
      * 
@@ -728,12 +667,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -741,14 +679,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); + minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMinLatLng(), + getParentForChildren(), + isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -756,31 +694,24 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -791,8 +722,6 @@ public com.google.type.LatLng getMaxLatLng() { } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -813,15 +742,14 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng( + com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -832,8 +760,6 @@ public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -844,7 +770,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -856,8 +782,6 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -876,8 +800,6 @@ public Builder clearMaxLatLng() { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -885,13 +807,11 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Max lat/long pair.
      * 
@@ -902,12 +822,11 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -915,21 +834,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); + maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMaxLatLng(), + getParentForChildren(), + isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LatLongRect) private static final com.google.cloud.vision.v1p2beta1.LatLongRect DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.LatLongRect(); } @@ -953,16 +872,16 @@ public static com.google.cloud.vision.v1p2beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java index 4d02ae0d0..185c7c87d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface LatLongRectOrBuilder - extends +public interface LatLongRectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
@@ -59,32 +35,24 @@ public interface LatLongRectOrBuilder com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java index aed4f959f..c71722615 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p2beta1.Likelihood}
  */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unknown likelihood.
    * 
@@ -40,8 +22,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -50,8 +30,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ VERY_UNLIKELY(1), /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -60,8 +38,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNLIKELY(2), /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -70,8 +46,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ POSSIBLE(3), /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -80,8 +54,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ LIKELY(4), /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -93,8 +65,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown likelihood.
    * 
@@ -103,8 +73,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -113,8 +81,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_UNLIKELY_VALUE = 1; /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -123,8 +89,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNLIKELY_VALUE = 2; /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -133,8 +97,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSSIBLE_VALUE = 3; /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -143,8 +105,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIKELY_VALUE = 4; /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -153,6 +113,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_LIKELY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,57 +138,52 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return VERY_UNLIKELY; - case 2: - return UNLIKELY; - case 3: - return POSSIBLE; - case 4: - return LIKELY; - case 5: - return VERY_LIKELY; - default: - return null; + case 0: return UNKNOWN; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -243,3 +199,4 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p2beta1.Likelihood) } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java index 047662a94..1e302763a 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LocationInfo} */ -public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.LocationInfo) LocationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationInfo() {} + private LocationInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,27 +52,26 @@ private LocationInfo( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); - } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +79,34 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LocationInfo.class, - com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p2beta1.LocationInfo.class, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -136,14 +114,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -151,8 +126,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * lat/long location coordinates.
    * 
@@ -165,7 +138,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -191,7 +164,8 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.LocationInfo other = - (com.google.cloud.vision.v1p2beta1.LocationInfo) obj; + com.google.cloud.vision.v1p2beta1.LocationInfo other = (com.google.cloud.vision.v1p2beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -233,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LocationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.LocationInfo) com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LocationInfo.class, - com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p2beta1.LocationInfo.class, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.LocationInfo.newBuilder() @@ -361,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override @@ -404,8 +370,7 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p2beta1.LocationInfo result = - new com.google.cloud.vision.v1p2beta1.LocationInfo(this); + com.google.cloud.vision.v1p2beta1.LocationInfo result = new com.google.cloud.vision.v1p2beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -419,39 +384,38 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.LocationInfo) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.LocationInfo)other); } else { super.mergeFrom(other); return this; @@ -494,31 +458,24 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -529,8 +486,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -551,15 +506,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -570,8 +524,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -581,7 +533,8 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = + com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -593,8 +546,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -613,8 +564,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -622,13 +571,11 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -639,12 +586,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -652,21 +598,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LocationInfo) private static final com.google.cloud.vision.v1p2beta1.LocationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.LocationInfo(); } @@ -690,16 +636,16 @@ public static com.google.cloud.vision.v1p2beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java index 6cd11637f..3504a4c08 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface LocationInfoOrBuilder - extends +public interface LocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java similarity index 67% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java index 09eab1e23..f2dc1dea7 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NormalizedVertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,23 +54,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,39 +78,34 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.NormalizedVertex.class,
-            com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p2beta1.NormalizedVertex.class, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.NormalizedVertex other = - (com.google.cloud.vision.v1p2beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p2beta1.NormalizedVertex other = (com.google.cloud.vision.v1p2beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -333,23 +307,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.NormalizedVertex)
       com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.NormalizedVertex.class,
-              com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p2beta1.NormalizedVertex.class, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.NormalizedVertex.newBuilder()
@@ -357,15 +329,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -398,8 +371,7 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p2beta1.NormalizedVertex result =
-          new com.google.cloud.vision.v1p2beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p2beta1.NormalizedVertex result = new com.google.cloud.vision.v1p2beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -410,39 +382,38 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -450,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()) return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -477,8 +447,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -488,16 +457,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -505,51 +471,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -557,43 +514,37 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p2beta1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.NormalizedVertex(); } @@ -617,16 +568,16 @@ public static com.google.cloud.vision.v1p2beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..24008b11d --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java index 01c6d272a..f4945b6d3 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,45 @@ private OperationMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +99,36 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OperationMetadata.class, - com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p2beta1.OperationMetadata.class, com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); } /** - * - * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.OperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -164,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is received.
      * 
@@ -174,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * Request is actively being processed.
      * 
@@ -184,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing is done.
      * 
@@ -194,8 +161,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DONE(3), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -207,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -217,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is received.
      * 
@@ -227,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * Request is actively being processed.
      * 
@@ -237,8 +196,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing is done.
      * 
@@ -247,8 +204,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -257,6 +212,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,55 +237,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATED; - case 2: - return RUNNING; - case 3: - return DONE; - case 4: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATED; + case 2: return RUNNING; + case 3: return DONE; + case 4: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.OperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,52 +301,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -402,14 +340,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -417,8 +352,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the batch request was received.
    * 
@@ -433,14 +366,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -448,14 +378,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -463,8 +390,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the operation result was last updated.
    * 
@@ -477,7 +402,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,10 +413,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -510,16 +433,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -529,22 +453,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.OperationMetadata other = - (com.google.cloud.vision.v1p2beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p2beta1.OperationMetadata other = (com.google.cloud.vision.v1p2beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -573,126 +498,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.OperationMetadata) com.google.cloud.vision.v1p2beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OperationMetadata.class, - com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p2beta1.OperationMetadata.class, com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.OperationMetadata.newBuilder() @@ -700,15 +616,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -730,9 +647,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -751,8 +668,7 @@ public com.google.cloud.vision.v1p2beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p2beta1.OperationMetadata result = - new com.google.cloud.vision.v1p2beta1.OperationMetadata(this); + com.google.cloud.vision.v1p2beta1.OperationMetadata result = new com.google.cloud.vision.v1p2beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -772,39 +688,38 @@ public com.google.cloud.vision.v1p2beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -812,8 +727,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p2beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.OperationMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -842,8 +756,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -855,67 +768,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -923,24 +820,21 @@ public Builder setState(com.google.cloud.vision.v1p2beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -948,47 +842,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1009,15 +890,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1028,8 +908,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1040,7 +918,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1052,8 +930,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1072,8 +948,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1081,13 +955,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1098,14 +970,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1113,17 +982,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1131,47 +997,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1192,15 +1045,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1211,8 +1063,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1223,7 +1073,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1235,8 +1085,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1255,8 +1103,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1264,13 +1110,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1281,14 +1125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1296,24 +1137,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1161,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OperationMetadata) private static final com.google.cloud.vision.v1p2beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.OperationMetadata(); } @@ -1337,16 +1175,16 @@ public static com.google.cloud.vision.v1p2beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1199,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java index c94dbdea6..c13f6c14c 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
@@ -84,32 +54,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java similarity index 73% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java index 5f96b3843..fc22563ed 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); - } - gcsDestination_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); } - case 16: - { - batchSize_ = input.readInt32(); - break; + gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p2beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + batchSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +84,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OutputConfig.class, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.OutputConfig.class, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.GcsDestination gcsDestination_; /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -143,25 +119,18 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -176,8 +145,6 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** - * - * *
    * The max number of response protos to put into each output JSON file on GCS.
    * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -190,7 +157,6 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -199,7 +165,6 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -228,10 +194,12 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,19 +209,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.OutputConfig other = - (com.google.cloud.vision.v1p2beta1.OutputConfig) obj; + com.google.cloud.vision.v1p2beta1.OutputConfig other = (com.google.cloud.vision.v1p2beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; } - if (getBatchSize() != other.getBatchSize()) return false; + if (getBatchSize() + != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,127 +245,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.OutputConfig) com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OutputConfig.class, - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.OutputConfig.class, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder() @@ -404,15 +364,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override @@ -449,8 +410,7 @@ public com.google.cloud.vision.v1p2beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p2beta1.OutputConfig result = - new com.google.cloud.vision.v1p2beta1.OutputConfig(this); + com.google.cloud.vision.v1p2beta1.OutputConfig result = new com.google.cloud.vision.v1p2beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -465,39 +425,38 @@ public com.google.cloud.vision.v1p2beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -543,47 +502,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ public com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -604,8 +550,6 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinatio return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -624,8 +568,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -636,9 +578,7 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); } else { gcsDestination_ = value; } @@ -650,8 +590,6 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinat return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -670,8 +608,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -679,13 +615,11 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p2beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -696,14 +630,11 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? + com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -711,26 +642,21 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder>( - getGcsDestination(), getParentForChildren(), isClean()); + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder>( + getGcsDestination(), + getParentForChildren(), + isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_; + private int batchSize_ ; /** - * - * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -743,7 +669,6 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -751,8 +676,6 @@ public int getBatchSize() { return batchSize_; } /** - * - * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -765,19 +688,16 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; - * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** - * - * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -790,18 +710,17 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; - * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -811,12 +730,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OutputConfig) private static final com.google.cloud.vision.v1p2beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.OutputConfig(); } @@ -825,16 +744,16 @@ public static com.google.cloud.vision.v1p2beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -849,4 +768,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java index 3a2e5212d..1cf4dce48 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -59,8 +35,6 @@ public interface OutputConfigOrBuilder com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * The max number of response protos to put into each output JSON file on GCS.
    * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -73,7 +47,6 @@ public interface OutputConfigOrBuilder
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ int getBatchSize(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java similarity index 75% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java index 19d5cd6bf..768c6ddcc 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Page} */ -public final class Page extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Page extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Page) PageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,50 @@ private Page( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - width_ = input.readInt32(); - break; + case 10: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 24: - { - height_ = input.readInt32(); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blocks_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + blocks_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,8 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -138,33 +115,27 @@ private Page( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Page.class, - com.google.cloud.vision.v1p2beta1.Page.Builder.class); + com.google.cloud.vision.v1p2beta1.Page.class, com.google.cloud.vision.v1p2beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -172,25 +143,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected on the page.
    * 
@@ -198,23 +162,19 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -225,15 +185,12 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -244,8 +201,6 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -257,8 +212,6 @@ public java.util.List getBlocksList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -266,13 +219,11 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -284,8 +235,6 @@ public int getBlocksCount() { return blocks_.size(); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -297,8 +246,6 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { return blocks_.get(index); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -306,21 +253,19 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -329,7 +274,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -367,19 +312,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389,7 +339,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Page)) { return super.equals(obj); @@ -398,13 +348,18 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; - } - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; - if (!getBlocksList().equals(other.getBlocksList())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getBlocksList() + .equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,133 +384,125 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Page parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Page} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Page) com.google.cloud.vision.v1p2beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Page.class, - com.google.cloud.vision.v1p2beta1.Page.Builder.class); + com.google.cloud.vision.v1p2beta1.Page.class, com.google.cloud.vision.v1p2beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Page.newBuilder() @@ -563,17 +510,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override @@ -620,8 +567,7 @@ public com.google.cloud.vision.v1p2beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Page buildPartial() { - com.google.cloud.vision.v1p2beta1.Page result = - new com.google.cloud.vision.v1p2beta1.Page(this); + com.google.cloud.vision.v1p2beta1.Page result = new com.google.cloud.vision.v1p2beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -648,39 +594,38 @@ public com.google.cloud.vision.v1p2beta1.Page buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Page) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Page)other); } else { super.mergeFrom(other); return this; @@ -716,10 +661,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlocksFieldBuilder() - : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -756,60 +700,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -823,8 +752,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -843,22 +770,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -870,8 +792,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -890,42 +810,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -933,33 +844,27 @@ public Builder clearProperty() { * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - private int width_; + private int width_ ; /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -967,54 +872,45 @@ public int getWidth() { return width_; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -1022,62 +918,50 @@ public int getHeight() { return height_; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, - com.google.cloud.vision.v1p2beta1.Block.Builder, - com.google.cloud.vision.v1p2beta1.BlockOrBuilder> - blocksBuilder_; + com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder> blocksBuilder_; /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1092,8 +976,6 @@ public java.util.List getBlocksList() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1108,8 +990,6 @@ public int getBlocksCount() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1124,15 +1004,14 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1p2beta1.Block value) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1p2beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1146,8 +1025,6 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1p2beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1166,8 +1043,6 @@ public Builder setBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1188,15 +1063,14 @@ public Builder addBlocks(com.google.cloud.vision.v1p2beta1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1p2beta1.Block value) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1p2beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1210,15 +1084,14 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1p2beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder addBlocks(com.google.cloud.vision.v1p2beta1.Block.Builder builderForValue) { + public Builder addBlocks( + com.google.cloud.vision.v1p2beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1229,8 +1102,6 @@ public Builder addBlocks(com.google.cloud.vision.v1p2beta1.Block.Builder builder return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1249,8 +1120,6 @@ public Builder addBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1261,7 +1130,8 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1269,8 +1139,6 @@ public Builder addAllBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1288,8 +1156,6 @@ public Builder clearBlocks() { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1307,44 +1173,39 @@ public Builder removeBlocks(int index) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.Block.Builder getBlocksBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Block.Builder getBlocksBuilder( + int index) { return getBlocksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); - } else { + return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1352,8 +1213,6 @@ public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int i } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1361,62 +1220,54 @@ public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int i * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder(int index) { - return getBlocksFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public java.util.List getBlocksBuilderList() { + public java.util.List + getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, - com.google.cloud.vision.v1p2beta1.Block.Builder, - com.google.cloud.vision.v1p2beta1.BlockOrBuilder> + com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, - com.google.cloud.vision.v1p2beta1.Block.Builder, - com.google.cloud.vision.v1p2beta1.BlockOrBuilder>( - blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1424,43 +1275,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1470,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Page) private static final com.google.cloud.vision.v1p2beta1.Page DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Page(); } @@ -1484,16 +1329,16 @@ public static com.google.cloud.vision.v1p2beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java similarity index 76% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java index 5f6fef305..4e569749e 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface PageOrBuilder - extends +public interface PageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Page) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
@@ -59,46 +35,37 @@ public interface PageOrBuilder com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ int getWidth(); /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ int getHeight(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - java.util.List getBlocksList(); + java.util.List + getBlocksList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -107,8 +74,6 @@ public interface PageOrBuilder */ com.google.cloud.vision.v1p2beta1.Block getBlocks(int index); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -117,36 +82,30 @@ public interface PageOrBuilder */ int getBlocksCount(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java similarity index 77% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java index b92eb3e5f..2a133c878 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Paragraph} */ -public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Paragraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Paragraph) ParagraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Paragraph( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Word.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Word.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -144,33 +118,27 @@ private Paragraph( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Paragraph.class, - com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p2beta1.Paragraph.class, com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
@@ -315,8 +263,6 @@ public java.util.List getWordsList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -324,13 +270,11 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -342,8 +286,6 @@ public int getWordsCount() { return words_.size(); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -355,8 +297,6 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { return words_.get(index); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -364,21 +304,19 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( + int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -387,7 +325,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -422,16 +360,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -441,25 +383,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Paragraph other = - (com.google.cloud.vision.v1p2beta1.Paragraph) obj; + com.google.cloud.vision.v1p2beta1.Paragraph other = (com.google.cloud.vision.v1p2beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,133 +429,125 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Paragraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Paragraph) com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Paragraph.class, - com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p2beta1.Paragraph.class, com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Paragraph.newBuilder() @@ -618,17 +555,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override @@ -677,8 +614,7 @@ public com.google.cloud.vision.v1p2beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p2beta1.Paragraph result = - new com.google.cloud.vision.v1p2beta1.Paragraph(this); + com.google.cloud.vision.v1p2beta1.Paragraph result = new com.google.cloud.vision.v1p2beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -708,39 +644,38 @@ public com.google.cloud.vision.v1p2beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Paragraph) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Paragraph)other); } else { super.mergeFrom(other); return this; @@ -773,10 +708,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -813,60 +747,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -880,8 +799,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -900,22 +817,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -927,8 +839,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -947,42 +857,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -990,17 +891,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1008,13 +906,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1034,15 +927,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1062,21 +952,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,8 +996,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1145,8 +1028,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,9 +1052,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1185,8 +1064,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1219,8 +1096,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,13 +1117,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1273,14 +1146,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1302,41 +1172,32 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Word,
-            com.google.cloud.vision.v1p2beta1.Word.Builder,
-            com.google.cloud.vision.v1p2beta1.WordOrBuilder>
-        wordsBuilder_;
+        com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder> wordsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of words in this paragraph.
      * 
@@ -1351,8 +1212,6 @@ public java.util.List getWordsList() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1367,8 +1226,6 @@ public int getWordsCount() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1383,15 +1240,14 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1p2beta1.Word value) { + public Builder setWords( + int index, com.google.cloud.vision.v1p2beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1405,8 +1261,6 @@ public Builder setWords(int index, com.google.cloud.vision.v1p2beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1425,8 +1279,6 @@ public Builder setWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1447,15 +1299,14 @@ public Builder addWords(com.google.cloud.vision.v1p2beta1.Word value) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1p2beta1.Word value) { + public Builder addWords( + int index, com.google.cloud.vision.v1p2beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1469,15 +1320,14 @@ public Builder addWords(int index, com.google.cloud.vision.v1p2beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder addWords(com.google.cloud.vision.v1p2beta1.Word.Builder builderForValue) { + public Builder addWords( + com.google.cloud.vision.v1p2beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1488,8 +1338,6 @@ public Builder addWords(com.google.cloud.vision.v1p2beta1.Word.Builder builderFo return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1508,8 +1356,6 @@ public Builder addWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1520,7 +1366,8 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1528,8 +1375,6 @@ public Builder addAllWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1547,8 +1392,6 @@ public Builder clearWords() { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1566,44 +1409,39 @@ public Builder removeWords(int index) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.Word.Builder getWordsBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Word.Builder getWordsBuilder( + int index) { return getWordsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( + int index) { if (wordsBuilder_ == null) { - return words_.get(index); - } else { + return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1611,8 +1449,6 @@ public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int ind } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1620,62 +1456,54 @@ public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int ind * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder(int index) { - return getWordsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder( + int index) { + return getWordsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public java.util.List getWordsBuilderList() { + public java.util.List + getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Word, - com.google.cloud.vision.v1p2beta1.Word.Builder, - com.google.cloud.vision.v1p2beta1.WordOrBuilder> + com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Word, - com.google.cloud.vision.v1p2beta1.Word.Builder, - com.google.cloud.vision.v1p2beta1.WordOrBuilder>( - words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder>( + words_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1683,43 +1511,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1729,12 +1551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Paragraph) private static final com.google.cloud.vision.v1p2beta1.Paragraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Paragraph(); } @@ -1743,16 +1565,16 @@ public static com.google.cloud.vision.v1p2beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1767,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java index db6c1ac1e..e989fcc67 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface ParagraphOrBuilder - extends +public interface ParagraphOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -59,8 +35,6 @@ public interface ParagraphOrBuilder com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface ParagraphOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -156,8 +121,6 @@ public interface ParagraphOrBuilder */ com.google.cloud.vision.v1p2beta1.Word getWords(int index); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -166,35 +129,30 @@ public interface ParagraphOrBuilder */ int getWordsCount(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - java.util.List getWordsOrBuilderList(); + java.util.List + getWordsOrBuilderList(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java similarity index 68% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java index 105b80b93..15b9ceea3 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Position}
  */
-public final class Position extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Position extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Position)
     PositionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Position() {}
+  private Position() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          case 29:
-            {
-              z_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            z_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,39 +83,34 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Position.class,
-            com.google.cloud.vision.v1p2beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Position.class, com.google.cloud.vision.v1p2beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -142,14 +121,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -160,14 +136,11 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -176,7 +149,6 @@ public float getZ() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -208,13 +181,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -224,20 +200,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Position other = - (com.google.cloud.vision.v1p2beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; - if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) - return false; + com.google.cloud.vision.v1p2beta1.Position other = (com.google.cloud.vision.v1p2beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; + if (java.lang.Float.floatToIntBits(getZ()) + != java.lang.Float.floatToIntBits( + other.getZ())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -250,114 +228,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -366,23 +340,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Position}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Position)
       com.google.cloud.vision.v1p2beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Position.class,
-              com.google.cloud.vision.v1p2beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Position.class, com.google.cloud.vision.v1p2beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Position.newBuilder()
@@ -390,15 +362,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +406,7 @@ public com.google.cloud.vision.v1p2beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Position result =
-          new com.google.cloud.vision.v1p2beta1.Position(this);
+      com.google.cloud.vision.v1p2beta1.Position result = new com.google.cloud.vision.v1p2beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -446,39 +418,38 @@ public com.google.cloud.vision.v1p2beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Position) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Position)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,16 +496,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -542,51 +510,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -594,51 +553,42 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_; + private float z_ ; /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -646,43 +596,37 @@ public float getZ() { return z_; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Position) private static final com.google.cloud.vision.v1p2beta1.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Position(); } @@ -706,16 +650,16 @@ public static com.google.cloud.vision.v1p2beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +674,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java similarity index 50% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java index 7c6b6a2d7..333b07f75 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; -public interface PositionOrBuilder - extends +public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Position) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ float getX(); /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ float getY(); /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ float getZ(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java similarity index 70% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java index 74f922ac0..e8ee49620 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; value_ = ""; @@ -44,15 +26,16 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private Property( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 24: - { - uint64Value_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + case 24: { + + uint64Value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Property.class, - com.google.cloud.vision.v1p2beta1.Property.Builder.class); + com.google.cloud.vision.v1p2beta1.Property.class, com.google.cloud.vision.v1p2beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -194,29 +167,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -227,14 +200,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -243,7 +213,6 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,17 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Property other = - (com.google.cloud.vision.v1p2beta1.Property) obj; + com.google.cloud.vision.v1p2beta1.Property other = (com.google.cloud.vision.v1p2beta1.Property) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (getUint64Value() != other.getUint64Value()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getUint64Value() + != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,133 +291,125 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Property) com.google.cloud.vision.v1p2beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Property.class, - com.google.cloud.vision.v1p2beta1.Property.Builder.class); + com.google.cloud.vision.v1p2beta1.Property.class, com.google.cloud.vision.v1p2beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Property.newBuilder() @@ -452,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p2beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Property buildPartial() { - com.google.cloud.vision.v1p2beta1.Property result = - new com.google.cloud.vision.v1p2beta1.Property(this); + com.google.cloud.vision.v1p2beta1.Property result = new com.google.cloud.vision.v1p2beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -508,39 +473,38 @@ public com.google.cloud.vision.v1p2beta1.Property buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Property) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Property)other); } else { super.mergeFrom(other); return this; @@ -591,20 +555,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,21 +575,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,61 +596,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -697,20 +651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -719,21 +671,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -741,76 +692,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_; + private long uint64Value_ ; /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -818,43 +759,37 @@ public long getUint64Value() { return uint64Value_; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Property) private static final com.google.cloud.vision.v1p2beta1.Property DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Property(); } @@ -878,16 +813,16 @@ public static com.google.cloud.vision.v1p2beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java index 3bfc54cbb..a6559a942 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ long getUint64Value(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java similarity index 76% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java index 18ef2ad4d..5bce1f628 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SafeSearchAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -49,15 +31,16 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,48 +59,43 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              adult_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            adult_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              spoof_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            spoof_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              medical_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            medical_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              violence_ = rawValue;
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            violence_ = rawValue;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              racy_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            racy_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,33 +103,29 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class,
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
-   *
-   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -159,16 +133,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -176,22 +146,17 @@ public int getAdultValue() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The adult. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -199,16 +164,12 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -216,94 +177,71 @@ public int getSpoofValue() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The spoof. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The medical. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The violence. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -312,16 +250,12 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -330,19 +264,15 @@ public int getRacyValue() {
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The racy. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -380,19 +311,24 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,13 +338,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other = - (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -442,104 +377,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -548,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class,
-              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder()
@@ -572,15 +497,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +545,7 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation result =
-          new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -634,39 +559,38 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -674,8 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -710,8 +633,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -723,8 +645,6 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
-     *
-     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -732,16 +652,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -749,19 +665,16 @@ public int getAdultValue() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -769,19 +682,15 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -789,7 +698,6 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @param value The adult to set. * @return This builder for chaining. */ @@ -797,14 +705,12 @@ public Builder setAdult(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -812,11 +718,10 @@ public Builder setAdult(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -824,8 +729,6 @@ public Builder clearAdult() { private int spoof_ = 0; /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -833,16 +736,12 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -850,19 +749,16 @@ public int getSpoofValue() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -870,19 +766,15 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -890,7 +782,6 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @param value The spoof to set. * @return This builder for chaining. */ @@ -898,14 +789,12 @@ public Builder setSpoof(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -913,11 +802,10 @@ public Builder setSpoof(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -925,65 +813,51 @@ public Builder clearSpoof() { private int medical_ = 0; /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @param value The medical to set. * @return This builder for chaining. */ @@ -991,24 +865,21 @@ public Builder setMedical(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -1016,65 +887,51 @@ public Builder clearMedical() { private int violence_ = 0; /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @param value The violence to set. * @return This builder for chaining. */ @@ -1082,24 +939,21 @@ public Builder setViolence(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -1107,8 +961,6 @@ public Builder clearViolence() { private int racy_ = 0; /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1117,16 +969,12 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1135,19 +983,16 @@ public int getRacyValue() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1156,19 +1001,15 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = - com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1177,7 +1018,6 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @param value The racy to set. * @return This builder for chaining. */ @@ -1185,14 +1025,12 @@ public Builder setRacy(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1201,18 +1039,17 @@ public Builder setRacy(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1222,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(); } @@ -1236,16 +1073,16 @@ public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java index b7959304a..2f97a54c6 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface SafeSearchAnnotationOrBuilder - extends +public interface SafeSearchAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -33,13 +15,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -47,14 +26,11 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; - * * @return The adult. */ com.google.cloud.vision.v1p2beta1.Likelihood getAdult(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -62,13 +38,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -76,64 +49,49 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; - * * @return The spoof. */ com.google.cloud.vision.v1p2beta1.Likelihood getSpoof(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; - * * @return The medical. */ com.google.cloud.vision.v1p2beta1.Likelihood getMedical(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; - * * @return The violence. */ com.google.cloud.vision.v1p2beta1.Likelihood getViolence(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -142,13 +100,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -157,7 +112,6 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; - * * @return The racy. */ com.google.cloud.vision.v1p2beta1.Likelihood getRacy(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java similarity index 75% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java index 11bcca814..a0ee829c9 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Symbol} */ -public final class Symbol extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Symbol extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Symbol) SymbolOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,50 @@ private Symbol( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,39 +104,34 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Symbol.class, - com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p2beta1.Symbol.class, com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -170,25 +139,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -196,16 +158,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -225,7 +184,6 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -233,8 +191,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -254,18 +210,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -294,14 +245,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ @java.lang.Override @@ -310,29 +258,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -343,14 +291,11 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -359,7 +304,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -394,16 +339,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Symbol)) { return super.equals(obj); @@ -422,15 +370,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,133 +405,125 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Symbol} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Symbol) com.google.cloud.vision.v1p2beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Symbol.class, - com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p2beta1.Symbol.class, com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Symbol.newBuilder() @@ -587,15 +531,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override @@ -640,8 +585,7 @@ public com.google.cloud.vision.v1p2beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p2beta1.Symbol result = - new com.google.cloud.vision.v1p2beta1.Symbol(this); + com.google.cloud.vision.v1p2beta1.Symbol result = new com.google.cloud.vision.v1p2beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -662,39 +606,38 @@ public com.google.cloud.vision.v1p2beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Symbol) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Symbol)other); } else { super.mergeFrom(other); return this; @@ -747,55 +690,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,8 +738,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -829,22 +756,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -856,8 +778,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -876,42 +796,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -919,17 +830,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -937,13 +845,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -963,15 +866,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,21 +891,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1040,8 +935,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1074,8 +967,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1100,9 +991,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1114,8 +1003,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1148,8 +1035,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,13 +1056,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1202,14 +1085,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1231,17 +1111,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1249,20 +1126,18 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1271,21 +1146,20 @@ public java.lang.String getText() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1293,76 +1167,66 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1370,43 +1234,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Symbol) private static final com.google.cloud.vision.v1p2beta1.Symbol DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Symbol(); } @@ -1430,16 +1288,16 @@ public static com.google.cloud.vision.v1p2beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,4 +1312,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java index 4203ec3f5..a192c7ee7 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface SymbolOrBuilder - extends +public interface SymbolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -59,8 +35,6 @@ public interface SymbolOrBuilder com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,39 +104,31 @@ public interface SymbolOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java similarity index 70% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java index 90abf3293..a75c31a23 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation}
  */
-public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -51,15 +33,16 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,31 +62,28 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p2beta1.Page.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pages_.add(
+                input.readMessage(com.google.cloud.vision.v1p2beta1.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            text_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,7 +91,8 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -120,30 +101,24 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.class,
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder
-      extends
+  public interface DetectedLanguageOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -151,13 +126,10 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -165,58 +137,53 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); } /** - * - * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -235,25 +202,24 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -261,33 +227,29 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -295,7 +257,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +265,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -320,15 +280,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -339,14 +300,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -355,7 +313,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -387,7 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,17 +356,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,102 +382,95 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -527,49 +480,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,16 +529,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance(); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @java.lang.Override @@ -604,8 +550,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage result = - new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -616,53 +561,46 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom( - (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other) { - if (other - == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other) { + if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -689,9 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,8 +639,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,13 +646,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -727,8 +661,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -736,14 +668,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -751,8 +684,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -760,22 +691,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -783,18 +712,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -802,31 +728,28 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -834,41 +757,34 @@ public float getConfidence() { return confidence_; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -881,32 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,89 +832,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DetectedBreakOrBuilder - extends + public interface DetectedBreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ boolean getIsPrefix(); } /** - * - * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedBreak extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1019,25 +921,24 @@ private DetectedBreak( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - isPrefix_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 16: { + + isPrefix_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,41 +946,36 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); } /** - * - * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown break label type.
        * 
@@ -1088,8 +984,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
        * Regular space.
        * 
@@ -1098,8 +992,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SPACE(1), /** - * - * *
        * Sure space (very wide).
        * 
@@ -1108,8 +1000,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SURE_SPACE(2), /** - * - * *
        * Line-wrapping break.
        * 
@@ -1118,8 +1008,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ EOL_SURE_SPACE(3), /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1129,8 +1017,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       HYPHEN(4),
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1142,8 +1028,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown break label type.
        * 
@@ -1152,8 +1036,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
        * Regular space.
        * 
@@ -1162,8 +1044,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPACE_VALUE = 1; /** - * - * *
        * Sure space (very wide).
        * 
@@ -1172,8 +1052,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SURE_SPACE_VALUE = 2; /** - * - * *
        * Line-wrapping break.
        * 
@@ -1182,8 +1060,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EOL_SURE_SPACE_VALUE = 3; /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1193,8 +1069,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int HYPHEN_VALUE = 4;
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1203,6 +1077,7 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_BREAK_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1227,57 +1102,52 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return SPACE; - case 2: - return SURE_SPACE; - case 3: - return EOL_SURE_SPACE; - case 4: - return HYPHEN; - case 5: - return LINE_BREAK; - default: - return null; + case 0: return UNKNOWN; + case 1: return SPACE; + case 2: return SURE_SPACE; + case 3: return EOL_SURE_SPACE; + case 4: return HYPHEN; + case 5: return LINE_BREAK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BreakType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1297,52 +1167,38 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1351,7 +1207,6 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1363,10 +1218,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1381,13 +1235,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1397,16 +1251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() != other.getIsPrefix()) return false; + if (getIsPrefix() + != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1421,101 +1275,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1525,32 +1373,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1558,15 +1401,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1578,14 +1422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1600,8 +1443,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak result = - new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1612,52 +1454,46 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other) { - if (other - == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other) { + if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1683,9 +1519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1697,113 +1531,85 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_; + private boolean isPrefix_ ; /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1811,41 +1617,34 @@ public boolean getIsPrefix() { return isPrefix_; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1858,32 +1657,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak - getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1895,153 +1692,119 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextPropertyOrBuilder - extends + public interface TextPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ int getDetectedLanguagesCount(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + java.util.List getDetectedLanguagesOrBuilderList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** - * - * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TextProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2061,45 +1824,35 @@ private TextProperty( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage>(); - mutable_bitField0_ |= 0x00000001; - } - detectedLanguages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder subBuilder = - null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); - } - detectedBreak_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); - } - - break; + detectedLanguages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2107,7 +1860,8 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -2116,117 +1870,87 @@ private TextProperty( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List - detectedLanguages_; + private java.util.List detectedLanguages_; /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + public java.util.List getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { return detectedLanguages_.get(index); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detectedBreak_; /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -2234,25 +1958,18 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -2260,13 +1977,11 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2278,7 +1993,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2295,11 +2011,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2309,18 +2026,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList() + .equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak() + .equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2347,94 +2065,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2444,32 +2155,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder() @@ -2477,17 +2183,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2507,14 +2213,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2529,8 +2234,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty result = - new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2554,52 +2258,46 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other) { - if (other - == com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other) { + if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2618,10 +2316,9 @@ public Builder mergeFrom( detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetectedLanguagesFieldBuilder() - : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetectedLanguagesFieldBuilder() : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2649,9 +2346,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2660,41 +2355,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - detectedLanguages_ = java.util.Collections.emptyList(); - + private java.util.List detectedLanguages_ = + java.util.Collections.emptyList(); private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage>( - detectedLanguages_); + detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> - detectedLanguagesBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2702,15 +2384,11 @@ private void ensureDetectedLanguagesIsMutable() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2720,18 +2398,13 @@ public int getDetectedLanguagesCount() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2739,15 +2412,11 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDete } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { @@ -2764,20 +2433,14 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( - int index, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2788,18 +2451,13 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public Builder addDetectedLanguages( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2813,15 +2471,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { @@ -2838,19 +2492,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2861,20 +2510,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - int index, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2885,23 +2528,18 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addAllDetectedLanguages( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage> - values) { + java.lang.Iterable values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2909,15 +2547,11 @@ public Builder addAllDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2930,15 +2564,11 @@ public Builder clearDetectedLanguages() { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2951,53 +2581,39 @@ public Builder removeDetectedLanguages(int index) { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - getDetectedLanguagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( + int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); - } else { + return detectedLanguages_.get(index); } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> - getDetectedLanguagesOrBuilderList() { + public java.util.List + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -3005,70 +2621,45 @@ public Builder removeDetectedLanguages(int index) { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder(int index) { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( + int index) { + return getDetectedLanguagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder> - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3080,58 +2671,41 @@ public Builder removeDetectedLanguages(int index) { private com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> - detectedBreakBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return The detectedBreak. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3145,14 +2719,11 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder setDetectedBreak( com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -3166,24 +2737,17 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder( - detectedBreak_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); } else { detectedBreak_ = value; } @@ -3195,14 +2759,11 @@ public Builder mergeDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -3216,68 +2777,52 @@ public Builder clearDetectedBreak() { return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder - getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), getParentForChildren(), isClean()); + detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), + getParentForChildren(), + isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3290,32 +2835,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty - getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3327,17 +2870,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3349,8 +2890,6 @@ public java.util.List getPagesList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3358,13 +2897,11 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3376,8 +2913,6 @@ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3389,8 +2924,6 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { return pages_.get(index); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3398,21 +2931,19 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( + int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3421,29 +2952,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -3452,7 +2983,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3464,7 +2994,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3481,7 +3012,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3494,16 +3026,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation other = - (com.google.cloud.vision.v1p2beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation other = (com.google.cloud.vision.v1p2beta1.TextAnnotation) obj; - if (!getPagesList().equals(other.getPagesList())) return false; - if (!getText().equals(other.getText())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; + if (!getText() + .equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3526,104 +3059,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3637,23 +3163,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation)
       com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.TextAnnotation.class,
-              com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p2beta1.TextAnnotation.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder()
@@ -3661,17 +3185,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3687,9 +3211,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3708,8 +3232,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p2beta1.TextAnnotation result =
-          new com.google.cloud.vision.v1p2beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p2beta1.TextAnnotation result = new com.google.cloud.vision.v1p2beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3729,39 +3252,38 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3769,8 +3291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance()) return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3789,10 +3310,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPagesFieldBuilder()
-                    : null;
+            pagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPagesFieldBuilder() : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3830,28 +3350,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Page,
-            com.google.cloud.vision.v1p2beta1.Page.Builder,
-            com.google.cloud.vision.v1p2beta1.PageOrBuilder>
-        pagesBuilder_;
+        com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder> pagesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3866,8 +3379,6 @@ public java.util.List getPagesList() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3882,8 +3393,6 @@ public int getPagesCount() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3898,15 +3407,14 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1p2beta1.Page value) { + public Builder setPages( + int index, com.google.cloud.vision.v1p2beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,8 +3428,6 @@ public Builder setPages(int index, com.google.cloud.vision.v1p2beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3940,8 +3446,6 @@ public Builder setPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3962,15 +3466,14 @@ public Builder addPages(com.google.cloud.vision.v1p2beta1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1p2beta1.Page value) { + public Builder addPages( + int index, com.google.cloud.vision.v1p2beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3984,15 +3487,14 @@ public Builder addPages(int index, com.google.cloud.vision.v1p2beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder addPages(com.google.cloud.vision.v1p2beta1.Page.Builder builderForValue) { + public Builder addPages( + com.google.cloud.vision.v1p2beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -4003,8 +3505,6 @@ public Builder addPages(com.google.cloud.vision.v1p2beta1.Page.Builder builderFo return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4023,8 +3523,6 @@ public Builder addPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4035,7 +3533,8 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -4043,8 +3542,6 @@ public Builder addAllPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4062,8 +3559,6 @@ public Builder clearPages() { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4081,44 +3576,39 @@ public Builder removePages(int index) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.Page.Builder getPagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.Page.Builder getPagesBuilder( + int index) { return getPagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( + int index) { if (pagesBuilder_ == null) { - return pages_.get(index); - } else { + return pages_.get(index); } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -4126,8 +3616,6 @@ public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int ind } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4135,47 +3623,42 @@ public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int ind * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder(int index) { - return getPagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder( + int index) { + return getPagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public java.util.List getPagesBuilderList() { + public java.util.List + getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Page, - com.google.cloud.vision.v1p2beta1.Page.Builder, - com.google.cloud.vision.v1p2beta1.PageOrBuilder> + com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Page, - com.google.cloud.vision.v1p2beta1.Page.Builder, - com.google.cloud.vision.v1p2beta1.PageOrBuilder>( - pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder>( + pages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); pages_ = null; } return pagesBuilder_; @@ -4183,20 +3666,18 @@ public java.util.List getPagesBu private java.lang.Object text_ = ""; /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -4205,21 +3686,20 @@ public java.lang.String getText() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -4227,68 +3707,61 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4298,12 +3771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation) private static final com.google.cloud.vision.v1p2beta1.TextAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation(); } @@ -4312,16 +3785,16 @@ public static com.google.cloud.vision.v1p2beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4336,4 +3809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java index 9634db00e..993383596 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface TextAnnotationOrBuilder - extends +public interface TextAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - java.util.List getPagesList(); + java.util.List + getPagesList(); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -44,8 +25,6 @@ public interface TextAnnotationOrBuilder */ com.google.cloud.vision.v1p2beta1.Page getPages(int index); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -54,48 +33,41 @@ public interface TextAnnotationOrBuilder */ int getPagesCount(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - java.util.List getPagesOrBuilderList(); + java.util.List + getPagesOrBuilderList(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( + int index); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java new file mode 100644 index 000000000..0dbe58817 --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/text_annotation.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p2beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p2b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p2beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p2beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p2beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p2beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p2beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p2beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p2beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p2beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p2beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p2b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p2beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p2beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p2beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p2beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p2beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p2beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p2beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p2beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p2beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p2beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p2beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor, + new java.lang.String[] { "Pages", "Text", }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { "Type", "IsPrefix", }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor, + new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java similarity index 51% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java index e9606418c..a62c85f83 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -28,29 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextDetectionParams extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TextDetectionParams() {}
+  private TextDetectionParams() {
+    advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,6 +44,7 @@ private TextDetectionParams(
     if (extensionRegistry == null) {
       throw new java.lang.NullPointerException();
     }
+    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -69,18 +55,27 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72:
-            {
-              enableTextDetectionConfidenceScore_ = input.readBool();
-              break;
+          case 72: {
+
+            enableTextDetectionConfidenceScore_ = input.readBool();
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            advancedOcrOptions_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,33 +83,32 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+      }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.TextDetectionParams.class,
-            com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p2beta1.TextDetectionParams.class, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
-   *
-   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -122,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -130,8 +123,58 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } - private byte memoizedIsInitialized = -1; + public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList advancedOcrOptions_; + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_; + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,10 +186,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -157,9 +204,16 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 9, enableTextDetectionConfidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableTextDetectionConfidenceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdvancedOcrOptionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +223,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextDetectionParams other = - (com.google.cloud.vision.v1p2beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p2beta1.TextDetectionParams other = (com.google.cloud.vision.v1p2beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) - return false; + if (getEnableTextDetectionConfidenceScore() + != other.getEnableTextDetectionConfidenceScore()) return false; + if (!getAdvancedOcrOptionsList() + .equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,113 +246,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTextDetectionConfidenceScore()); + if (getAdvancedOcrOptionsCount() > 0) { + hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.TextDetectionParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -305,23 +355,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.TextDetectionParams}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextDetectionParams)
       com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.TextDetectionParams.class,
-              com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p2beta1.TextDetectionParams.class, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder()
@@ -329,27 +377,30 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       enableTextDetectionConfidenceScore_ = false;
 
+      advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -368,9 +419,14 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p2beta1.TextDetectionParams result =
-          new com.google.cloud.vision.v1p2beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p2beta1.TextDetectionParams result = new com.google.cloud.vision.v1p2beta1.TextDetectionParams(this);
+      int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.advancedOcrOptions_ = advancedOcrOptions_;
       onBuilt();
       return result;
     }
@@ -379,39 +435,38 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextDetectionParams) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextDetectionParams)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -419,11 +474,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance()) return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
+      if (!other.advancedOcrOptions_.isEmpty()) {
+        if (advancedOcrOptions_.isEmpty()) {
+          advancedOcrOptions_ = other.advancedOcrOptions_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureAdvancedOcrOptionsIsMutable();
+          advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+        }
+        onChanged();
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -443,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p2beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p2beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -453,11 +516,10 @@ public Builder mergeFrom(
       }
       return this;
     }
+    private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_;
+    private boolean enableTextDetectionConfidenceScore_ ;
     /**
-     *
-     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -465,7 +527,6 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -473,8 +534,6 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -482,19 +541,16 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -502,18 +558,163 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_.getUnmodifiableView(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index to set the value at. + * @param value The advancedOcrOptions to set. + * @return This builder for chaining. + */ + public Builder setAdvancedOcrOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param values The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAllAdvancedOcrOptions( + java.lang.Iterable values) { + ensureAdvancedOcrOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, advancedOcrOptions_); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return This builder for chaining. + */ + public Builder clearAdvancedOcrOptions() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The bytes of the advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p2beta1.TextDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextDetectionParams(); } @@ -537,16 +738,16 @@ public static com.google.cloud.vision.v1p2beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -561,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java new file mode 100644 index 000000000..a4c66feb3 --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface TextDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * By default, Cloud Vision API only includes confidence score for
+   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
+   * score for TEXT_DETECTION as well.
+   * 
+ * + * bool enable_text_detection_confidence_score = 9; + * @return The enableTextDetectionConfidenceScore. + */ + boolean getEnableTextDetectionConfidenceScore(); + + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + java.util.List + getAdvancedOcrOptionsList(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + int getAdvancedOcrOptionsCount(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + java.lang.String getAdvancedOcrOptions(int index); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java similarity index 69% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java index f652cd971..17505587f 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Vertex.class,
-            com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Vertex.class, com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,15 +172,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p2beta1.Vertex other = (com.google.cloud.vision.v1p2beta1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,104 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -328,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Vertex)
       com.google.cloud.vision.v1p2beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Vertex.class,
-              com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Vertex.class, com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Vertex.newBuilder()
@@ -352,15 +323,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -393,8 +365,7 @@ public com.google.cloud.vision.v1p2beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Vertex result =
-          new com.google.cloud.vision.v1p2beta1.Vertex(this);
+      com.google.cloud.vision.v1p2beta1.Vertex result = new com.google.cloud.vision.v1p2beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -405,39 +376,38 @@ public com.google.cloud.vision.v1p2beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Vertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -498,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -550,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Vertex) private static final com.google.cloud.vision.v1p2beta1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Vertex(); } @@ -610,16 +562,16 @@ public static com.google.cloud.vision.v1p2beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java new file mode 100644 index 000000000..e57428d2a --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java similarity index 71% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java index 76c4c2700..ef9fa9675 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/web_detection.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection} */ -public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection) WebDetectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,97 +59,67 @@ private WebDetection( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity>(); - mutable_bitField0_ |= 0x00000001; - } - webEntities_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + webEntities_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000004; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage>(); - mutable_bitField0_ |= 0x00000008; - } - pagesWithMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.parser(), - extensionRegistry)); - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000010; - } - visuallySimilarImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + pagesWithMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel>(); - mutable_bitField0_ |= 0x00000020; - } - bestGuessLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.parser(), - extensionRegistry)); - break; + visuallySimilarImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bestGuessLabels_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -174,7 +127,8 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -198,110 +152,90 @@ private WebDetection( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.class, - com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.class, com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder - extends + public interface WebEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebEntity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebEntity() { entityId_ = ""; description_ = ""; @@ -309,15 +243,16 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -336,32 +271,30 @@ private WebEntity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: { - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,39 +302,34 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ @java.lang.Override @@ -410,29 +338,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -443,15 +371,12 @@ public com.google.protobuf.ByteString getEntityIdBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -462,14 +387,11 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -478,29 +400,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -509,7 +431,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -544,7 +466,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -557,18 +480,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) obj; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getDescription().equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,7 +508,8 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -592,94 +518,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -689,32 +608,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebEntity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.newBuilder() @@ -722,15 +636,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -744,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -765,8 +680,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity result = - new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -778,41 +692,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity)other); } else { super.mergeFrom(other); return this; @@ -820,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -852,8 +762,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -865,20 +774,18 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -887,21 +794,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -909,77 +815,67 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { + public Builder setEntityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -987,38 +883,32 @@ public float getScore() { return score_; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1026,20 +916,18 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1048,21 +936,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1070,66 +957,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1142,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(); } @@ -1156,16 +1035,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,85 +1059,75 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebImageOrBuilder - extends + public interface WebImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); } /** - * - * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebImage} */ - public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebImage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,25 +1146,24 @@ private WebImage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + url_ = s; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1303,39 +1171,34 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -1344,29 +1207,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1377,14 +1240,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1393,7 +1253,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,7 +1264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1425,7 +1285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1435,17 +1296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1460,101 +1322,95 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1564,32 +1420,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebImage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebImage) com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.newBuilder() @@ -1597,15 +1448,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1638,8 +1490,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage result = - new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1650,41 +1501,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebImage)other); } else { super.mergeFrom(other); return this; @@ -1692,8 +1540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1720,8 +1567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1733,20 +1579,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1755,21 +1599,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1777,76 +1620,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1854,41 +1687,34 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1901,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(); } @@ -1915,16 +1741,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,143 +1765,113 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebPageOrBuilder - extends + public interface WebPageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ java.lang.String getPageTitle(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString getPageTitleBytes(); + com.google.protobuf.ByteString + getPageTitleBytes(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ int getFullMatchingImagesCount(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2083,15 +1879,11 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2099,14 +1891,10 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2114,14 +1902,10 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ int getPartialMatchingImagesCount(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2129,15 +1913,11 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2145,32 +1925,27 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); } /** - * - * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebPage} */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebPage() { url_ = ""; pageTitle_ = ""; @@ -2180,15 +1955,16 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2208,60 +1984,48 @@ private WebPage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: { - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000001; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2269,7 +2033,8 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2281,33 +2046,27 @@ private WebPage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -2316,29 +2075,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -2349,14 +2108,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -2367,14 +2123,11 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ @java.lang.Override @@ -2383,29 +2136,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2414,95 +2167,73 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2510,18 +2241,13 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2529,19 +2255,14 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2549,17 +2270,13 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } - /** - * - * + /** *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2567,18 +2284,13 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2586,18 +2298,15 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2609,7 +2318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2638,19 +2348,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2660,21 +2370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getPageTitle() + .equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2689,7 +2402,8 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2706,94 +2420,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2803,32 +2510,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebPage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebPage) com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.newBuilder() @@ -2836,18 +2538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2873,9 +2575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2894,8 +2596,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage result = - new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2926,41 +2627,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebPage)other); } else { super.mergeFrom(other); return this; @@ -2968,8 +2666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2999,10 +2696,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -3026,10 +2722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -3054,8 +2749,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3064,25 +2758,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object url_ = ""; /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -3091,21 +2782,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -3113,76 +2803,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -3190,36 +2870,30 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -3227,20 +2901,18 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -3249,21 +2921,20 @@ public java.lang.String getPageTitle() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -3271,98 +2942,80 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle(java.lang.String value) { + public Builder setPageTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3370,16 +3023,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3389,19 +3038,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3409,16 +3053,12 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3435,20 +3075,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3459,19 +3094,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3485,16 +3115,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3511,16 +3137,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3534,20 +3156,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3558,23 +3175,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3582,16 +3195,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3604,16 +3213,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3626,56 +3231,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3683,70 +3274,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3756,27 +3325,19 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3784,12 +3345,9 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3797,8 +3355,6 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3806,9 +3362,7 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3818,8 +3372,6 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3827,12 +3379,9 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3840,8 +3389,6 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3849,9 +3396,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3868,8 +3413,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3877,13 +3420,10 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3894,8 +3434,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3903,12 +3441,9 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3922,8 +3457,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3931,9 +3464,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3950,8 +3481,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3959,9 +3488,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3975,8 +3502,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3984,13 +3509,10 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -4001,8 +3523,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4010,16 +3530,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -4027,8 +3545,6 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4036,9 +3552,7 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -4051,8 +3565,6 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4060,9 +3572,7 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -4075,8 +3585,6 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4084,17 +3592,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4102,21 +3606,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4124,13 +3623,10 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -4138,8 +3634,6 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4147,19 +3641,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4167,20 +3655,14 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4188,26 +3670,18 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4216,7 +3690,6 @@ public Builder removePartialMatchingImages(int index) { } return partialMatchingImagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4229,12 +3702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebPage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(); } @@ -4243,16 +3716,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4267,41 +3740,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebLabelOrBuilder - extends + public interface WebLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4309,13 +3775,10 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4323,30 +3786,27 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebLabel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { label_ = ""; languageCode_ = ""; @@ -4354,15 +3814,16 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4381,27 +3842,25 @@ private WebLabel( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4409,39 +3868,34 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ @java.lang.Override @@ -4450,29 +3904,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4483,8 +3937,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4492,7 +3944,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -4501,15 +3952,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } - /** - * - * + /** *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4517,15 +3967,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4534,7 +3985,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4546,7 +3996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4576,16 +4027,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4607,94 +4059,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4704,32 +4149,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebLabel} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.newBuilder() @@ -4737,15 +4177,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4757,9 +4198,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4778,8 +4219,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4790,41 +4230,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel)other); } else { super.mergeFrom(other); return this; @@ -4832,8 +4269,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4861,8 +4297,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4874,20 +4309,18 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4896,21 +4329,20 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4918,61 +4350,54 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4980,8 +4405,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4989,13 +4412,13 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -5004,8 +4427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5013,14 +4434,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -5028,8 +4450,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5037,22 +4457,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5060,18 +4478,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5079,21 +4494,20 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5106,12 +4520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(); } @@ -5120,16 +4534,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5144,13 +4558,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5158,13 +4571,10 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5172,13 +4582,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5190,8 +4598,6 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5203,8 +4609,6 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5218,424 +4622,321 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - pagesWithMatchingImages_; + private java.util.List pagesWithMatchingImages_; /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List - visuallySimilarImages_; + private java.util.List visuallySimilarImages_; /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5647,7 +4948,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -5676,29 +4978,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, pagesWithMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, visuallySimilarImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5708,21 +5009,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection other = - (com.google.cloud.vision.v1p2beta1.WebDetection) obj; - - if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) - return false; - if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p2beta1.WebDetection other = (com.google.cloud.vision.v1p2beta1.WebDetection) obj; + + if (!getWebEntitiesList() + .equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList() + .equals(other.getPagesWithMatchingImagesList())) return false; + if (!getVisuallySimilarImagesList() + .equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList() + .equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5763,127 +5068,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection) com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.class, - com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.class, com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder() @@ -5891,13 +5187,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5906,7 +5203,6 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5950,9 +5246,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override @@ -5971,8 +5267,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection result = - new com.google.cloud.vision.v1p2beta1.WebDetection(this); + com.google.cloud.vision.v1p2beta1.WebDetection result = new com.google.cloud.vision.v1p2beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6003,8 +5298,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -6037,39 +5331,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection)other); } else { super.mergeFrom(other); return this; @@ -6096,10 +5389,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebEntitiesFieldBuilder() - : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebEntitiesFieldBuilder() : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -6123,10 +5415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -6150,10 +5441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -6177,10 +5467,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPagesWithMatchingImagesFieldBuilder() - : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPagesWithMatchingImagesFieldBuilder() : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -6204,10 +5493,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVisuallySimilarImagesFieldBuilder() - : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVisuallySimilarImagesFieldBuilder() : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -6231,10 +5519,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBestGuessLabelsFieldBuilder() - : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBestGuessLabelsFieldBuilder() : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -6268,38 +5555,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList( - webEntities_); + webEntities_ = new java.util.ArrayList(webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> - webEntitiesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -6307,8 +5584,6 @@ private void ensureWebEntitiesIsMutable() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6323,8 +5598,6 @@ public int getWebEntitiesCount() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6339,8 +5612,6 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(i } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6362,8 +5633,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6371,8 +5640,7 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -6383,8 +5651,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6405,8 +5671,6 @@ public Builder addWebEntities(com.google.cloud.vision.v1p2beta1.WebDetection.Web return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6428,8 +5692,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6448,8 +5710,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6457,8 +5717,7 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -6469,8 +5728,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6478,11 +5735,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -6490,8 +5747,6 @@ public Builder addAllWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6509,8 +5764,6 @@ public Builder clearWebEntities() { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6528,8 +5781,6 @@ public Builder removeWebEntities(int index) { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6541,34 +5792,28 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder - getWebEntitiesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( + int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); - } else { + return webEntities_.get(index); } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -6576,23 +5821,17 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder getWebEn } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder - addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6601,72 +5840,56 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder getWebEn */ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -6674,15 +5897,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -6692,18 +5912,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -6711,15 +5927,12 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6736,19 +5949,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -6759,18 +5968,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6784,15 +5989,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6809,15 +6011,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6831,19 +6030,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6854,22 +6049,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6877,15 +6069,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6898,15 +6087,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6919,53 +6105,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6973,65 +6148,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -7041,39 +6199,28 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -7081,17 +6228,13 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -7101,20 +6244,15 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -7122,17 +6260,13 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -7149,21 +6283,16 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -7174,20 +6303,15 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7201,17 +6325,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -7228,17 +6348,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7252,21 +6368,16 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -7277,24 +6388,20 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -7302,17 +6409,13 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -7325,17 +6428,13 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -7348,59 +6447,45 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7408,71 +6493,51 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7482,37 +6547,26 @@ public Builder removePartialMatchingImages(int index) { return partialMatchingImagesBuilder_; } - private java.util.List - pagesWithMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List pagesWithMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList( - pagesWithMatchingImages_); + pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> - pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -7520,15 +6574,11 @@ private void ensurePagesWithMatchingImagesIsMutable() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7538,18 +6588,13 @@ public int getPagesWithMatchingImagesCount() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -7557,15 +6602,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchi } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { @@ -7582,15 +6623,11 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7604,18 +6641,13 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public Builder addPagesWithMatchingImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7629,15 +6661,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { @@ -7654,15 +6682,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7676,15 +6700,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7698,22 +6718,18 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -7721,15 +6737,11 @@ public Builder addAllPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7742,15 +6754,11 @@ public Builder clearPagesWithMatchingImages() { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7763,52 +6771,39 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder - getPagesWithMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( + int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); - } else { + return pagesWithMatchingImages_.get(index); } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7816,65 +6811,45 @@ public Builder removePagesWithMatchingImages(int index) { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder(int index) { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( + int index) { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7884,37 +6859,26 @@ public Builder removePagesWithMatchingImages(int index) { return pagesWithMatchingImagesBuilder_; } - private java.util.List - visuallySimilarImages_ = java.util.Collections.emptyList(); - + private java.util.List visuallySimilarImages_ = + java.util.Collections.emptyList(); private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList( - visuallySimilarImages_); + visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -7922,15 +6886,11 @@ private void ensureVisuallySimilarImagesIsMutable() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -7940,18 +6900,13 @@ public int getVisuallySimilarImagesCount() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -7959,15 +6914,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimila } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -7984,19 +6935,14 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -8007,18 +6953,13 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public Builder addVisuallySimilarImages( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8032,15 +6973,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -8057,15 +6994,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -8079,19 +7012,14 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -8102,22 +7030,18 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -8125,15 +7049,11 @@ public Builder addAllVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -8146,15 +7066,11 @@ public Builder clearVisuallySimilarImages() { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -8167,53 +7083,39 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - getVisuallySimilarImagesBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( + int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); - } else { + return visuallySimilarImages_.get(index); } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -8221,65 +7123,45 @@ public Builder removeVisuallySimilarImages(int index) { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder(int index) { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( + int index) { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8289,36 +7171,26 @@ public Builder removeVisuallySimilarImages(int index) { return visuallySimilarImagesBuilder_; } - private java.util.List - bestGuessLabels_ = java.util.Collections.emptyList(); - + private java.util.List bestGuessLabels_ = + java.util.Collections.emptyList(); private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList( - bestGuessLabels_); + bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> - bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -8326,14 +7198,11 @@ private void ensureBestGuessLabelsIsMutable() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -8343,14 +7212,11 @@ public int getBestGuessLabelsCount() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8360,14 +7226,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabel } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { @@ -8384,18 +7247,14 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -8406,17 +7265,13 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public Builder addBestGuessLabels( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8430,14 +7285,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { @@ -8454,14 +7306,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -8475,18 +7324,14 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( - int index, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -8497,21 +7342,18 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addAllBestGuessLabels( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -8519,14 +7361,11 @@ public Builder addAllBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -8539,14 +7378,11 @@ public Builder clearBestGuessLabels() { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8559,50 +7395,39 @@ public Builder removeBestGuessLabels(int index) { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder - getBestGuessLabelsBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( + int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); - } else { + return bestGuessLabels_.get(index); } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> - getBestGuessLabelsOrBuilderList() { + public java.util.List + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -8610,62 +7435,45 @@ public Builder removeBestGuessLabels(int index) { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder(int index) { - return getBestGuessLabelsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( + int index) { + return getBestGuessLabelsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -8674,9 +7482,9 @@ public Builder removeBestGuessLabels(int index) { } return bestGuessLabelsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8686,12 +7494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection) private static final com.google.cloud.vision.v1p2beta1.WebDetection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection(); } @@ -8700,16 +7508,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8724,4 +7532,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java index 462d62839..be22ed9f4 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/web_detection.proto package com.google.cloud.vision.v1p2beta1; -public interface WebDetectionOrBuilder - extends +public interface WebDetectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List getWebEntitiesList(); + java.util.List + getWebEntitiesList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -44,8 +25,6 @@ public interface WebDetectionOrBuilder */ com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(int index); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -54,19 +33,15 @@ public interface WebDetectionOrBuilder */ int getWebEntitiesCount(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -77,325 +52,236 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ int getFullMatchingImagesCount(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ int getPartialMatchingImagesCount(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ int getPagesWithMatchingImagesCount(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ int getVisuallySimilarImagesCount(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List getBestGuessLabelsList(); + java.util.List + getBestGuessLabelsList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ int getBestGuessLabelsCount(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java similarity index 69% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java index 6b53bb692..08326401d 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetectionParams} */ -public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetectionParams) WebDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WebDetectionParams() {} + private WebDetectionParams() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: - { - includeGeoResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + includeGeoResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** - * - * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetectionParams other = - (com.google.cloud.vision.v1p2beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p2beta1.WebDetectionParams other = (com.google.cloud.vision.v1p2beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() + != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,133 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetectionParams) com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder() @@ -319,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -358,8 +331,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetectionParams result = - new com.google.cloud.vision.v1p2beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p2beta1.WebDetectionParams result = new com.google.cloud.vision.v1p2beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -369,39 +341,38 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetectionParams) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetectionParams)other); } else { super.mergeFrom(other); return this; @@ -409,8 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance()) return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -433,8 +403,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p2beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -444,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_; + private boolean includeGeoResults_ ; /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -461,43 +427,37 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -507,12 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p2beta1.WebDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetectionParams(); } @@ -521,16 +481,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -545,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..f47b8b19f --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface WebDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java new file mode 100644 index 000000000..05dfa37be --- /dev/null +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/web_detection.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p2beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p2bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p2beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p2beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p2beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p2" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p2beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p2beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p2beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p2beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p2beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor, + new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { "EntityId", "Score", "Description", }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { "Url", "Score", }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { "Label", "LanguageCode", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java similarity index 77% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java index f0f94883f..35213ba52 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** - * - * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Word} */ -public final class Word extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Word extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Word) WordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Word( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - symbols_.add( - input.readMessage( - com.google.cloud.vision.v1p2beta1.Symbol.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + symbols_.add( + input.readMessage(com.google.cloud.vision.v1p2beta1.Symbol.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -144,33 +118,27 @@ private Word( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Word.class, - com.google.cloud.vision.v1p2beta1.Word.Builder.class); + com.google.cloud.vision.v1p2beta1.Word.class, com.google.cloud.vision.v1p2beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the word.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -316,8 +264,6 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -326,13 +272,11 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -345,8 +289,6 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -359,8 +301,6 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -369,21 +309,19 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -392,7 +330,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -427,16 +365,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,7 +388,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Word)) { return super.equals(obj); @@ -455,15 +397,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getSymbolsList().equals(other.getSymbolsList())) return false; + if (!getSymbolsList() + .equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,133 +434,125 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Word parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Word} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Word) com.google.cloud.vision.v1p2beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Word.class, - com.google.cloud.vision.v1p2beta1.Word.Builder.class); + com.google.cloud.vision.v1p2beta1.Word.class, com.google.cloud.vision.v1p2beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Word.newBuilder() @@ -622,17 +560,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override @@ -681,8 +619,7 @@ public com.google.cloud.vision.v1p2beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Word buildPartial() { - com.google.cloud.vision.v1p2beta1.Word result = - new com.google.cloud.vision.v1p2beta1.Word(this); + com.google.cloud.vision.v1p2beta1.Word result = new com.google.cloud.vision.v1p2beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -712,39 +649,38 @@ public com.google.cloud.vision.v1p2beta1.Word buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Word) other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Word)other); } else { super.mergeFrom(other); return this; @@ -777,10 +713,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSymbolsFieldBuilder() - : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSymbolsFieldBuilder() : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -817,60 +752,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -884,8 +804,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -904,22 +822,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -931,8 +844,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -951,42 +862,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -994,17 +896,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1012,13 +911,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1038,15 +932,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1066,21 +957,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1115,8 +1001,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1149,8 +1033,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1175,9 +1057,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1189,8 +1069,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1223,8 +1101,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1246,13 +1122,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1277,14 +1151,11 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1306,41 +1177,32 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly,
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.BoundingPoly,
-                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Symbol,
-            com.google.cloud.vision.v1p2beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>
-        symbolsBuilder_;
+        com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder> symbolsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1356,8 +1218,6 @@ public java.util.List getSymbolsList()
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1373,8 +1233,6 @@ public int getSymbolsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1390,8 +1248,6 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1399,7 +1255,8 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
+    public Builder setSymbols(
+        int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1413,8 +1270,6 @@ public Builder setSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1434,8 +1289,6 @@ public Builder setSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1457,8 +1310,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1466,7 +1317,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
+    public Builder addSymbols(
+        int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1480,8 +1332,6 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1489,7 +1339,8 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol va
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(
+        com.google.cloud.vision.v1p2beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1500,8 +1351,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1521,8 +1370,6 @@ public Builder addSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1534,7 +1381,8 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1542,8 +1390,6 @@ public Builder addAllSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1562,8 +1408,6 @@ public Builder clearSymbols() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1582,8 +1426,6 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1591,12 +1433,11 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(
+        int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1604,16 +1445,14 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+    public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
+        int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);
-      } else {
+        return symbols_.get(index);  } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1621,8 +1460,8 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsOrBuilderList() {
+    public java.util.List 
+         getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1630,8 +1469,6 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1640,12 +1477,10 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1653,13 +1488,12 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(int index) {
-      return getSymbolsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(
+        int index) {
+      return getSymbolsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1667,38 +1501,32 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsBuilderList() {
+    public java.util.List 
+         getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Symbol,
-            com.google.cloud.vision.v1p2beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>
+        com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder> 
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p2beta1.Symbol,
-                com.google.cloud.vision.v1p2beta1.Symbol.Builder,
-                com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>(
-                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>(
+                symbols_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1706,43 +1534,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1752,12 +1574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Word) private static final com.google.cloud.vision.v1p2beta1.Word DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Word(); } @@ -1766,16 +1588,16 @@ public static com.google.cloud.vision.v1p2beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1790,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java index c656db95c..a02556d31 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface WordOrBuilder - extends +public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Word) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
@@ -59,8 +35,6 @@ public interface WordOrBuilder com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,8 +104,6 @@ public interface WordOrBuilder
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -145,10 +111,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsList();
+  java.util.List 
+      getSymbolsList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -158,8 +123,6 @@ public interface WordOrBuilder
    */
   com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index);
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -169,8 +132,6 @@ public interface WordOrBuilder
    */
   int getSymbolsCount();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -178,11 +139,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  java.util.List
+  java.util.List 
       getSymbolsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -190,17 +149,15 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
+  com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto similarity index 100% rename from proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto similarity index 99% rename from proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto index eaf5abf05..5fc3163c7 100644 --- a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto @@ -529,6 +529,9 @@ message TextDetectionParams { // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence // score for TEXT_DETECTION as well. bool enable_text_detection_confidence_score = 9; + + // A list of advanced OCR options to fine-tune OCR behavior. + repeated string advanced_ocr_options = 11; } // Image context and/or feature-specific parameters. diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto similarity index 100% rename from proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto similarity index 100% rename from proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto rename to owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index 757a420d9..c2608974e 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p2beta1.samples; -// [START -// vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [START vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] import com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest; import com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse; import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient; @@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr } } } -// [END -// vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [END vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 11ef012c1..26672a50b 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p2beta1.samples; -// [START -// vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [START vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] import com.google.cloud.vision.v1p2beta1.AnnotateImageRequest; import com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse; import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient; @@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce } } } -// [END -// vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [END vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java index 44a6355ac..e96ffd1d3 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java similarity index 96% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java index fc248ff6a..dabd18442 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p3beta1.stub.ImageAnnotatorStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java similarity index 92% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java index 62156f45d..014f35949 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -218,7 +218,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -261,7 +261,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -304,7 +304,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -337,7 +337,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -370,7 +370,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -405,7 +405,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -437,7 +437,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -472,7 +472,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -508,7 +508,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -551,7 +551,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -582,7 +582,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -612,7 +612,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -643,7 +643,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -674,8 +674,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -713,8 +713,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -747,8 +747,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -784,7 +784,7 @@ public final UnaryCallable updateProductSet *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -818,7 +818,7 @@ public final void deleteProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -851,7 +851,7 @@ public final void deleteProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -885,7 +885,7 @@ public final void deleteProductSet(DeleteProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -915,9 +915,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -959,9 +959,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1003,9 +1003,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1038,9 +1038,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1072,7 +1072,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1107,7 +1107,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1139,7 +1139,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1174,7 +1174,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1210,7 +1210,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1251,7 +1251,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1282,7 +1282,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1312,7 +1312,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1343,7 +1343,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1377,12 +1377,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1421,12 +1421,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1462,12 +1462,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1502,7 +1502,7 @@ public final UnaryCallable updateProductCallable( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1537,7 +1537,7 @@ public final void deleteProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1571,7 +1571,7 @@ public final void deleteProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1606,7 +1606,7 @@ public final void deleteProduct(DeleteProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1644,11 +1644,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1701,11 +1701,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1758,11 +1758,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1803,11 +1803,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1846,7 +1846,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1886,7 +1886,7 @@ public final void deleteReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1925,7 +1925,7 @@ public final void deleteReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1963,7 +1963,7 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1996,8 +1996,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2032,8 +2032,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2066,8 +2066,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2103,8 +2103,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2140,8 +2140,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2184,7 +2184,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2219,7 +2219,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2252,7 +2252,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2285,7 +2285,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2321,7 +2321,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2361,7 +2361,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2401,7 +2401,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2441,7 +2441,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2478,7 +2478,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2513,7 +2513,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2546,7 +2546,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2583,7 +2583,7 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2620,7 +2620,7 @@ public final void removeProductFromProductSet(ProductSetName name, String produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2657,7 +2657,7 @@ public final void removeProductFromProductSet(String name, ProductName product) *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2691,7 +2691,7 @@ public final void removeProductFromProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2723,7 +2723,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2757,7 +2757,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2793,7 +2793,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2827,7 +2827,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2864,7 +2864,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2901,7 +2901,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -3162,10 +3162,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3215,10 +3212,7 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3239,10 +3233,7 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3291,10 +3282,7 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3314,11 +3302,8 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3339,9 +3324,7 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3374,11 +3357,8 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3398,11 +3378,8 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3423,9 +3400,7 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3458,11 +3433,8 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java index 46e8ae4f7..08546d8c5 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p3beta1.stub.ProductSearchStubSettings; @@ -48,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -167,8 +168,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -371,8 +371,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -398,8 +397,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java index 39a9e1a8c..b5933ac50 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java @@ -63,6 +63,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java index e75814f71..e1bdbc66b 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,6 +28,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java index 2156152ce..157452e74 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java @@ -33,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java index 409fa4804..b130522a3 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java @@ -60,9 +60,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java index e5ba04f4b..fe9301393 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java +++ b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java @@ -95,9 +95,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -159,8 +159,7 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -365,8 +364,7 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -383,13 +381,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -496,8 +492,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -669,8 +664,7 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -680,8 +674,7 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1063,8 +1056,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1090,8 +1082,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java b/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java rename to owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java diff --git a/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java b/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java similarity index 51% rename from grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java rename to owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java index c2e01c785..78d31aefc 100644 --- a/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java +++ b/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p3beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -37,174 +20,132 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p3beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
-            com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
-        getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
-              getBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-                      .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
-              getAsyncBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-                      .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorBlockingStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ImageAnnotatorFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorFutureStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { + public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -214,73 +155,62 @@ public void batchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub - extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -290,28 +220,23 @@ public void batchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -322,21 +247,16 @@ protected ImageAnnotatorBlockingStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -346,25 +266,22 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -375,22 +292,17 @@ protected ImageAnnotatorFutureStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse> - batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -400,9 +312,8 @@ protected ImageAnnotatorFutureStub build(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request); } @@ -411,11 +322,11 @@ protected ImageAnnotatorFutureStub build( private static final int METHODID_BATCH_ANNOTATE_IMAGES = 0; private static final int METHODID_ASYNC_BATCH_ANNOTATE_FILES = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -429,15 +340,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages( - (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>) - responseObserver); + serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_FILES: - serviceImpl.asyncBatchAnnotateFiles( - (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) request, + serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -456,9 +363,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -500,13 +406,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .addMethod(getAsyncBatchAnnotateFilesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .addMethod(getAsyncBatchAnnotateFilesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java b/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java similarity index 51% rename from grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java rename to owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java index dc9a16d94..1cffb8449 100644 --- a/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java +++ b/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p3beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -44,893 +27,609 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p3beta1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
-            com.google.cloud.vision.v1p3beta1.ProductSet>
-        getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod =
-              getCreateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.CreateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-                      .build();
+          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+              .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
-      getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
-      getListProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
-            com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
-        getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
+    io.grpc.MethodDescriptor getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod =
-              getListProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductSetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-                      .build();
+          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+              .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getGetProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
-            com.google.cloud.vision.v1p3beta1.ProductSet>
-        getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
+    io.grpc.MethodDescriptor getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod =
-              getGetProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.GetProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-                      .build();
+          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+              .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ProductSet>
-      getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
-            com.google.cloud.vision.v1p3beta1.ProductSet>
-        getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod =
-              getUpdateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+              .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-        getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod =
-              getDeleteProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+              .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1p3beta1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getCreateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.CreateProductRequest,
-            com.google.cloud.vision.v1p3beta1.Product>
-        getCreateProductMethod;
+  public static io.grpc.MethodDescriptor getCreateProductMethod() {
+    io.grpc.MethodDescriptor getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod =
-              getCreateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.CreateProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-                      .build();
+          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+              .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductsRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductsResponse>
-      getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductsRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductsResponse>
-      getListProductsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.ListProductsRequest,
-            com.google.cloud.vision.v1p3beta1.ListProductsResponse>
-        getListProductsMethod;
+  public static io.grpc.MethodDescriptor getListProductsMethod() {
+    io.grpc.MethodDescriptor getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod =
-              getListProductsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
-                      .build();
+          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
+              .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1p3beta1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getGetProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.GetProductRequest,
-            com.google.cloud.vision.v1p3beta1.Product>
-        getGetProductMethod;
+  public static io.grpc.MethodDescriptor getGetProductMethod() {
+    io.grpc.MethodDescriptor getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod =
-              getGetProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.GetProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-                      .build();
+          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+              .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
-          com.google.cloud.vision.v1p3beta1.Product>
-      getUpdateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
-            com.google.cloud.vision.v1p3beta1.Product>
-        getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
+    io.grpc.MethodDescriptor getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod =
-              getUpdateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.UpdateProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+              .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
-        getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
+    io.grpc.MethodDescriptor getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod =
-              getDeleteProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.DeleteProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+              .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1p3beta1.ReferenceImage>
-      getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1p3beta1.ReferenceImage>
-      getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
-            com.google.cloud.vision.v1p3beta1.ReferenceImage>
-        getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod =
-              getCreateReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ReferenceImage
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-                      .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+              .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest,
-            com.google.protobuf.Empty>
-        getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod =
-              getDeleteReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-                      .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+              .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
-            com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
-        getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
-            == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod =
-              getListReferenceImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-                      .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+              .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1p3beta1.ReferenceImage>
-      getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1p3beta1.ReferenceImage>
-      getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
-            com.google.cloud.vision.v1p3beta1.ReferenceImage>
-        getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod =
-              getGetReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ReferenceImage
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-                      .build();
+          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+              .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
-          com.google.protobuf.Empty>
-      getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
-          com.google.protobuf.Empty>
-      getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
-            com.google.protobuf.Empty>
-        getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod =
-              getAddProductToProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-                      .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+              .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
-          com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
-          com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
-            com.google.protobuf.Empty>
-        getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod =
-            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod =
-                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
-              getRemoveProductFromProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-                      .build();
+        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+              .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
-            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
-        getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod =
-                ProductSearchGrpc.getListProductsInProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod =
-              getListProductsInProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-                      .build();
+        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+              .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
-          com.google.longrunning.Operation>
-      getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
-          com.google.longrunning.Operation>
-      getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
-            com.google.longrunning.Operation>
-        getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod =
-              getImportProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-                      .build();
+          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+              .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchStub(channel, callOptions);
+        }
+      };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchBlockingStub(channel, callOptions);
+        }
+      };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ProductSearchFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchFutureStub(channel, callOptions);
+        }
+      };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -944,11 +643,9 @@ public ProductSearchFutureStub newStub(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public abstract static class ProductSearchImplBase implements io.grpc.BindableService { + public static abstract class ProductSearchImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -956,17 +653,12 @@ public abstract static class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductSetMethod(), responseObserver); + public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -974,34 +666,24 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductSetsMethod(), responseObserver); + public void listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProductSetMethod(), responseObserver); + public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1011,17 +693,12 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductSetMethod(), responseObserver); + public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1030,16 +707,12 @@ public void updateProductSet(
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1049,48 +722,36 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1p3beta1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1p3beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsMethod(), responseObserver); + public void listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1p3beta1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -1105,16 +766,12 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1124,16 +781,12 @@ public void updateProduct(
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1152,17 +805,12 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReferenceImageMethod(), responseObserver); + public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1173,16 +821,12 @@ public void createReferenceImage(
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1191,34 +835,24 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReferenceImageMethod(), responseObserver); + public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1227,32 +861,24 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1261,18 +887,12 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1285,140 +905,144 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest, - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest, + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateProductRequest, - com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateProductRequest, + com.google.cloud.vision.v1p3beta1.Product>( + this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductsRequest, - com.google.cloud.vision.v1p3beta1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductsRequest, + com.google.cloud.vision.v1p3beta1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetProductRequest, - com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetProductRequest, + com.google.cloud.vision.v1p3beta1.Product>( + this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.UpdateProductRequest, - com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.UpdateProductRequest, + com.google.cloud.vision.v1p3beta1.Product>( + this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteProductRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteProductRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest, - com.google.cloud.vision.v1p3beta1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest, + com.google.cloud.vision.v1p3beta1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest, - com.google.cloud.vision.v1p3beta1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest, + com.google.cloud.vision.v1p3beta1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_PRODUCT_SETS))) .build(); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1432,20 +1056,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub - extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1453,19 +1076,13 @@ protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1473,38 +1090,26 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1514,19 +1119,13 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1535,18 +1134,13 @@ public void updateProductSet(
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1556,53 +1150,39 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1p3beta1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1p3beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1p3beta1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -1617,18 +1197,13 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1638,18 +1213,13 @@ public void updateProduct(
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1668,19 +1238,13 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1691,18 +1255,13 @@ public void createReferenceImage(
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1711,38 +1270,26 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1751,36 +1298,26 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1789,20 +1326,13 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse> - responseObserver) { + public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1815,19 +1345,14 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1841,9 +1366,9 @@ public void importProductSets(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1854,8 +1379,6 @@ protected ProductSearchBlockingStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1863,15 +1386,12 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1879,30 +1399,24 @@ public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1912,15 +1426,12 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1929,15 +1440,12 @@ public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet(
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1947,45 +1455,36 @@ public com.google.protobuf.Empty deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product createProduct( - com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts( - com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product getProduct( - com.google.cloud.vision.v1p3beta1.GetProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -2000,15 +1499,12 @@ public com.google.cloud.vision.v1p3beta1.Product getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product updateProduct( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2018,15 +1514,12 @@ public com.google.cloud.vision.v1p3beta1.Product updateProduct(
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2045,15 +1538,12 @@ public com.google.protobuf.Empty deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2064,15 +1554,12 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage(
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2081,30 +1568,24 @@ public com.google.protobuf.Empty deleteReferenceImage(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2113,30 +1594,24 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2145,16 +1620,12 @@ public com.google.protobuf.Empty removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - listProductsInProductSet( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2167,16 +1638,13 @@ public com.google.protobuf.Empty removeProductFromProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -2190,9 +1658,9 @@ public com.google.longrunning.Operation importProductSets(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2203,8 +1671,6 @@ protected ProductSearchFutureStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -2212,16 +1678,13 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ProductSet> - createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProductSet( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -2229,32 +1692,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse> - listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductSets( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ProductSet> - getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProductSet( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -2264,16 +1721,13 @@ protected ProductSearchFutureStub build(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ProductSet> - updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProductSet( + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -2282,15 +1736,13 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProductSet( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -2300,48 +1752,39 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.Product> - createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProduct( + com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ListProductsResponse> - listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProducts( + com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.Product> - getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProduct( + com.google.cloud.vision.v1p3beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -2356,16 +1799,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.Product> - updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProduct( + com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2375,15 +1815,13 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProduct( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2402,17 +1840,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ReferenceImage> - createReferenceImage( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReferenceImage( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2423,16 +1857,13 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteReferenceImage( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2441,32 +1872,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse> - listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listReferenceImages( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ReferenceImage> - getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture getReferenceImage( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2475,32 +1900,26 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - addProductToProductSet( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture addProductToProductSet( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2509,17 +1928,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse> - listProductsInProductSet( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2532,8 +1947,8 @@ protected ProductSearchFutureStub build(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture importProductSets( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request); } @@ -2558,11 +1973,11 @@ protected ProductSearchFutureStub build( private static final int METHODID_LIST_PRODUCTS_IN_PRODUCT_SET = 16; private static final int METHODID_IMPORT_PRODUCT_SETS = 17; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ProductSearchImplBase serviceImpl; private final int methodId; @@ -2576,108 +1991,75 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_PRODUCT_SET: - serviceImpl.createProductSet( - (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProductSet((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCT_SETS: - serviceImpl.listProductSets( - (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>) - responseObserver); + serviceImpl.listProductSets((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT_SET: - serviceImpl.getProductSet( - (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getProductSet((com.google.cloud.vision.v1p3beta1.GetProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT_SET: - serviceImpl.updateProductSet( - (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProductSet((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT_SET: - serviceImpl.deleteProductSet( - (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) request, + serviceImpl.deleteProductSet((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PRODUCT: - serviceImpl.createProduct( - (com.google.cloud.vision.v1p3beta1.CreateProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProduct((com.google.cloud.vision.v1p3beta1.CreateProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS: - serviceImpl.listProducts( - (com.google.cloud.vision.v1p3beta1.ListProductsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listProducts((com.google.cloud.vision.v1p3beta1.ListProductsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT: - serviceImpl.getProduct( - (com.google.cloud.vision.v1p3beta1.GetProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getProduct((com.google.cloud.vision.v1p3beta1.GetProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT: - serviceImpl.updateProduct( - (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProduct((com.google.cloud.vision.v1p3beta1.UpdateProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT: - serviceImpl.deleteProduct( - (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) request, + serviceImpl.deleteProduct((com.google.cloud.vision.v1p3beta1.DeleteProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_REFERENCE_IMAGE: - serviceImpl.createReferenceImage( - (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createReferenceImage((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_REFERENCE_IMAGE: - serviceImpl.deleteReferenceImage( - (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) request, + serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_REFERENCE_IMAGES: - serviceImpl.listReferenceImages( - (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>) - responseObserver); + serviceImpl.listReferenceImages((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_REFERENCE_IMAGE: - serviceImpl.getReferenceImage( - (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getReferenceImage((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ADD_PRODUCT_TO_PRODUCT_SET: - serviceImpl.addProductToProductSet( - (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) request, + serviceImpl.addProductToProductSet((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET: - serviceImpl.removeProductFromProductSet( - (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) request, + serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET: - serviceImpl.listProductsInProductSet( - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>) - responseObserver); + serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_PRODUCT_SETS: - serviceImpl.importProductSets( - (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) request, + serviceImpl.importProductSets((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -2696,9 +2078,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ProductSearchBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ProductSearchBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProductSearchBaseDescriptorSupplier() {} @java.lang.Override @@ -2740,29 +2121,27 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ProductSearchGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) - .addMethod(getCreateProductSetMethod()) - .addMethod(getListProductSetsMethod()) - .addMethod(getGetProductSetMethod()) - .addMethod(getUpdateProductSetMethod()) - .addMethod(getDeleteProductSetMethod()) - .addMethod(getCreateProductMethod()) - .addMethod(getListProductsMethod()) - .addMethod(getGetProductMethod()) - .addMethod(getUpdateProductMethod()) - .addMethod(getDeleteProductMethod()) - .addMethod(getCreateReferenceImageMethod()) - .addMethod(getDeleteReferenceImageMethod()) - .addMethod(getListReferenceImagesMethod()) - .addMethod(getGetReferenceImageMethod()) - .addMethod(getAddProductToProductSetMethod()) - .addMethod(getRemoveProductFromProductSetMethod()) - .addMethod(getListProductsInProductSetMethod()) - .addMethod(getImportProductSetsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) + .addMethod(getCreateProductSetMethod()) + .addMethod(getListProductSetsMethod()) + .addMethod(getGetProductSetMethod()) + .addMethod(getUpdateProductSetMethod()) + .addMethod(getDeleteProductSetMethod()) + .addMethod(getCreateProductMethod()) + .addMethod(getListProductsMethod()) + .addMethod(getGetProductMethod()) + .addMethod(getUpdateProductMethod()) + .addMethod(getDeleteProductMethod()) + .addMethod(getCreateReferenceImageMethod()) + .addMethod(getDeleteReferenceImageMethod()) + .addMethod(getListReferenceImagesMethod()) + .addMethod(getGetReferenceImageMethod()) + .addMethod(getAddProductToProductSetMethod()) + .addMethod(getRemoveProductFromProductSetMethod()) + .addMethod(getListProductsInProductSetMethod()) + .addMethod(getImportProductSetsMethod()) + .build(); } } } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java similarity index 64% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java index 35f2f7b6b..56e1397e1 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AddProductToProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -44,15 +26,16 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,18 +153,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -201,33 +168,31 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -236,7 +201,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -278,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AddProductToProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.newBuilder() @@ -437,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance(); } @@ -479,8 +435,7 @@ public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -491,50 +446,46 @@ public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other) { + if (other == com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -562,9 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -628,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -702,24 +631,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -728,25 +653,22 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -754,80 +676,67 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,32 +746,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,8 +781,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..bf1c105b2 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface AddProductToProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java index 49bf28320..0f7da8e9b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,43 +55,35 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null;
-              if (inputConfig_ != null) {
-                subBuilder = inputConfig_.toBuilder();
-              }
-              inputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputConfig_);
-                inputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null;
+            if (inputConfig_ != null) {
+              subBuilder = inputConfig_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                responses_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p3beta1.AnnotateImageResponse>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              responses_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(),
-                      extensionRegistry));
-              break;
+            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(inputConfig_);
+              inputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              responses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            responses_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +91,8 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -125,33 +101,27 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class,
-            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_;
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -159,25 +129,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -192,8 +155,6 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -201,13 +162,10 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -215,13 +173,11 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -233,8 +189,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -246,8 +200,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -261,7 +213,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -290,10 +242,12 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,19 +257,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other = - (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) obj; + com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,104 +296,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AnnotateFileResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -446,23 +393,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p3beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class,
-              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.newBuilder()
@@ -470,17 +415,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -521,8 +466,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AnnotateFileResponse result =
-          new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p3beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -546,39 +490,38 @@ public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateFileResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -586,8 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.getDefaultInstance()) return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -609,10 +551,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResponsesFieldBuilder()
-                    : null;
+            responsesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResponsesFieldBuilder() : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -637,8 +578,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -647,52 +587,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.InputConfig,
-            com.google.cloud.vision.v1p3beta1.InputConfig.Builder,
-            com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>
-        inputConfigBuilder_;
+        com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> inputConfigBuilder_;
     /**
-     *
-     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -713,8 +639,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig valu return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -733,8 +657,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -745,9 +667,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -759,8 +679,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -779,8 +697,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -788,13 +704,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p3beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -805,14 +719,11 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -820,51 +731,39 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder, - com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder, - com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -872,8 +771,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -888,8 +785,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -904,8 +799,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -927,8 +820,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -936,8 +827,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -948,8 +838,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -970,8 +858,6 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -993,8 +879,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1013,8 +897,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1022,8 +904,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -1034,8 +915,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1043,11 +922,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -1055,8 +934,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1074,8 +951,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1093,8 +968,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1106,8 +979,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1117,23 +988,19 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -1141,8 +1008,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1150,12 +1015,10 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to images found within the file.
      * 
@@ -1164,43 +1027,37 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1210,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) private static final com.google.cloud.vision.v1p3beta1.AnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(); } @@ -1224,16 +1081,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,4 +1105,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java index 0b905ca00..4802be97c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AnnotateFileResponseOrBuilder - extends +public interface AnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateFileResponseOrBuilder com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateFileResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to images found within the file.
    * 
@@ -89,24 +60,21 @@ public interface AnnotateFileResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java index 2b224a9b9..859820998 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateImageRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,56 +55,48 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p3beta1.Image.Builder subBuilder = null;
-              if (image_ != null) {
-                subBuilder = image_.toBuilder();
-              }
-              image_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.Image.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(image_);
-                image_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p3beta1.Image.Builder subBuilder = null;
+            if (image_ != null) {
+              subBuilder = image_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry));
-              break;
+            image_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Image.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(image_);
+              image_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null;
-              if (imageContext_ != null) {
-                subBuilder = imageContext_.toBuilder();
-              }
-              imageContext_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(imageContext_);
-                imageContext_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null;
+            if (imageContext_ != null) {
+              subBuilder = imageContext_.toBuilder();
+            }
+            imageContext_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(imageContext_);
+              imageContext_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -129,7 +104,8 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -138,33 +114,27 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class,
-            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p3beta1.Image image_;
   /**
-   *
-   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -172,14 +142,11 @@ public boolean hasImage() { return image_ != null; } /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -187,8 +154,6 @@ public com.google.cloud.vision.v1p3beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; } /** - * - * *
    * The image to be processed.
    * 
@@ -203,8 +168,6 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Requested features.
    * 
@@ -216,8 +179,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Requested features.
    * 
@@ -225,13 +186,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -243,8 +202,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Requested features.
    * 
@@ -256,8 +213,6 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Requested features.
    * 
@@ -265,21 +220,19 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -287,25 +240,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image.
    * 
@@ -318,7 +264,6 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -350,13 +296,16 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,22 +315,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other = - (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,104 +363,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -517,23 +460,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class,
-              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.newBuilder()
@@ -541,17 +482,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,9 +518,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -598,8 +539,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AnnotateImageRequest result =
-          new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p3beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -628,39 +568,38 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()) return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -691,10 +629,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -722,8 +659,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -732,52 +668,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p3beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Image,
-            com.google.cloud.vision.v1p3beta1.Image.Builder,
-            com.google.cloud.vision.v1p3beta1.ImageOrBuilder>
-        imageBuilder_;
+        com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder> imageBuilder_;
     /**
-     *
-     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return The image. */ public com.google.cloud.vision.v1p3beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null - ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** - * - * *
      * The image to be processed.
      * 
@@ -798,15 +720,14 @@ public Builder setImage(com.google.cloud.vision.v1p3beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; */ - public Builder setImage(com.google.cloud.vision.v1p3beta1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.vision.v1p3beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -817,8 +738,6 @@ public Builder setImage(com.google.cloud.vision.v1p3beta1.Image.Builder builderF return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -829,9 +748,7 @@ public Builder mergeImage(com.google.cloud.vision.v1p3beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p3beta1.Image.newBuilder(image_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -843,8 +760,6 @@ public Builder mergeImage(com.google.cloud.vision.v1p3beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -863,8 +778,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -872,13 +785,11 @@ public Builder clearImage() { * .google.cloud.vision.v1p3beta1.Image image = 1; */ public com.google.cloud.vision.v1p3beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * The image to be processed.
      * 
@@ -889,14 +800,11 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null - ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? + com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; } } /** - * - * *
      * The image to be processed.
      * 
@@ -904,41 +812,32 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p3beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Image, - com.google.cloud.vision.v1p3beta1.Image.Builder, - com.google.cloud.vision.v1p3beta1.ImageOrBuilder> + com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Image, - com.google.cloud.vision.v1p3beta1.Image.Builder, - com.google.cloud.vision.v1p3beta1.ImageOrBuilder>( - getImage(), getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Requested features.
      * 
@@ -953,8 +852,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Requested features.
      * 
@@ -969,8 +866,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Requested features.
      * 
@@ -985,15 +880,14 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,8 +901,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
@@ -1027,8 +919,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1049,15 +939,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature value) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1071,15 +960,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1090,8 +978,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder bui return this; } /** - * - * *
      * Requested features.
      * 
@@ -1110,8 +996,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1122,7 +1006,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1130,8 +1015,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1149,8 +1032,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Requested features.
      * 
@@ -1168,44 +1049,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1213,8 +1089,6 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Requested features.
      * 
@@ -1222,48 +1096,42 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1271,47 +1139,34 @@ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1332,8 +1187,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p3beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1352,8 +1205,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1364,9 +1215,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1378,8 +1227,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1398,8 +1245,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1407,13 +1252,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p3beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1424,14 +1267,11 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1439,24 +1279,21 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1466,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p3beta1.AnnotateImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(); } @@ -1480,16 +1317,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,4 +1341,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java index c3c16055a..1d1e24c31 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AnnotateImageRequestOrBuilder - extends +public interface AnnotateImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; - * * @return The image. */ com.google.cloud.vision.v1p3beta1.Image getImage(); /** - * - * *
    * The image to be processed.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateImageRequestOrBuilder com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateImageRequestOrBuilder */ com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index); /** - * - * *
    * Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AnnotateImageRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p3beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java index 078af9152..1a12c846a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateImageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,223 +59,171 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - faceAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + faceAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.FaceAnnotation.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + labelAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - labelAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + textAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - textAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); - } - safeSearchAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); } - case 66: - { - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImageProperties.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); - } - - break; + imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); } - case 74: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - break; + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 90: { + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 98: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); } - case 106: - { - com.google.cloud.vision.v1p3beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.vision.v1p3beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); } - case 114: - { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); - } - break; + break; + } + case 114: { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); } - case 170: - { - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - break; + break; + } + case 170: { + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); } - case 178: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation>(); - mutable_bitField0_ |= 0x00000010; - } - localizedObjectAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.parser(), - extensionRegistry)); - break; + context_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 178: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -300,7 +231,8 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -318,34 +250,28 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -357,8 +283,6 @@ public java.util.List getFaceA return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -366,13 +290,11 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -384,8 +306,6 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -397,8 +317,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -414,8 +332,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -423,13 +339,10 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -437,13 +350,11 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -455,8 +366,6 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -468,8 +377,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -477,16 +384,14 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -494,13 +399,10 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -508,13 +410,11 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -526,8 +426,6 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -539,8 +437,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -556,8 +452,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -565,13 +459,10 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -579,13 +470,11 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -597,8 +486,6 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -610,8 +497,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -625,99 +510,73 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List - localizedObjectAnnotations_; + private java.util.List localizedObjectAnnotations_; /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> + public java.util.List getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { return localizedObjectAnnotations_.get(index); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -725,13 +584,10 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedO * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -739,13 +595,11 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedO * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -757,8 +611,6 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -770,8 +622,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -787,8 +637,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p3beta1.TextAnnotation fullTextAnnotation_; /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -797,7 +645,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -805,8 +652,6 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -815,18 +660,13 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -837,22 +677,18 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder
-      getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -860,25 +696,18 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -886,22 +715,18 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p3beta1.ImageProperties imagePropertiesAnnotation_; /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -909,25 +734,18 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -935,22 +753,18 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p3beta1.CropHintsAnnotation cropHintsAnnotation_; /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -958,25 +772,18 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -984,22 +791,18 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p3beta1.WebDetection webDetection_; /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -1007,25 +810,18 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection() { - return webDetection_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -1040,14 +836,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1p3beta1.ProductSearchResults productSearchResults_; /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -1055,25 +848,18 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } /** - * - * *
    * If present, product search has completed successfully.
    * 
@@ -1081,16 +867,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchRe * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1098,7 +881,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchRe
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1106,8 +888,6 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1115,7 +895,6 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ @java.lang.Override @@ -1123,8 +902,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1141,15 +918,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p3beta1.ImageAnnotationContext context_;
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ @java.lang.Override @@ -1157,26 +931,19 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext() { - return context_ == null - ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -1190,7 +957,6 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1202,7 +968,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1255,54 +1022,60 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getImagePropertiesAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              22, localizedObjectAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1312,53 +1085,64 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other =
-        (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
-      return false;
-    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList()
+        .equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList()
+        .equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList()
+        .equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList()
+        .equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList()
+        .equals(other.getLocalizedObjectAnnotationsList())) return false;
+    if (!getTextAnnotationsList()
+        .equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation()
+          .equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation()
+          .equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
-        return false;
+      if (!getImagePropertiesAnnotation()
+          .equals(other.getImagePropertiesAnnotation())) return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation()
+          .equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection().equals(other.getWebDetection())) return false;
+      if (!getWebDetection()
+          .equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults()
+          .equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext().equals(other.getContext())) return false;
+      if (!getContext()
+          .equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1433,127 +1217,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.AnnotateImageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateImageResponse) com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.newBuilder() @@ -1561,13 +1335,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1576,7 +1351,6 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1689,8 +1463,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse result = - new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1730,8 +1503,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1795,39 +1567,38 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageResponse)other); } else { super.mergeFrom(other); return this; @@ -1835,8 +1606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()) return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1855,10 +1625,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFaceAnnotationsFieldBuilder() : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1882,10 +1651,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarkAnnotationsFieldBuilder() - : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarkAnnotationsFieldBuilder() : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1909,10 +1677,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogoAnnotationsFieldBuilder() - : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogoAnnotationsFieldBuilder() : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1936,10 +1703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1963,10 +1729,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocalizedObjectAnnotationsFieldBuilder() - : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocalizedObjectAnnotationsFieldBuilder() : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1990,10 +1755,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTextAnnotationsFieldBuilder() - : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -2042,8 +1806,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2052,38 +1815,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList( - faceAnnotations_); + faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsList() { + public java.util.List getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -2091,8 +1844,6 @@ private void ensureFaceAnnotationsIsMutable() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2107,8 +1858,6 @@ public int getFaceAnnotationsCount() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2123,8 +1872,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int i } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2146,8 +1893,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2166,8 +1911,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2188,8 +1931,6 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p3beta1.FaceAnnotati return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2211,8 +1952,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2231,8 +1970,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2251,8 +1988,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2263,7 +1998,8 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2271,8 +2007,6 @@ public Builder addAllFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2290,8 +2024,6 @@ public Builder clearFaceAnnotations() { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2309,8 +2041,6 @@ public Builder removeFaceAnnotations(int index) { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2322,8 +2052,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2333,22 +2061,19 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); - } else { + return faceAnnotations_.get(index); } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2356,8 +2081,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2365,12 +2088,10 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2379,34 +2100,26 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2416,36 +2129,26 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List - landmarkAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List landmarkAnnotations_ = + java.util.Collections.emptyList(); private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList( - landmarkAnnotations_); + landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> - landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2453,14 +2156,11 @@ private void ensureLandmarkAnnotationsIsMutable() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2470,14 +2170,11 @@ public int getLandmarkAnnotationsCount() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2487,14 +2184,11 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { @@ -2511,14 +2205,11 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2532,17 +2223,13 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public Builder addLandmarkAnnotations( - com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2556,14 +2243,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { @@ -2580,14 +2264,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2601,14 +2282,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2622,20 +2300,18 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2643,14 +2319,11 @@ public Builder addAllLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2663,14 +2336,11 @@ public Builder clearLandmarkAnnotations() { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2683,49 +2353,39 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); - } else { + return landmarkAnnotations_.get(index); } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2733,62 +2393,45 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLandmarkAnn } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder - addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2799,34 +2442,25 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList( - logoAnnotations_); + logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> - logoAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2834,8 +2468,6 @@ private void ensureLogoAnnotationsIsMutable() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2850,8 +2482,6 @@ public int getLogoAnnotationsCount() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2866,8 +2496,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2889,8 +2517,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2909,8 +2535,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2931,8 +2555,6 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnota return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2954,8 +2576,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2974,8 +2594,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2994,8 +2612,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3006,7 +2622,8 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -3014,8 +2631,6 @@ public Builder addAllLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3033,8 +2648,6 @@ public Builder clearLogoAnnotations() { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3052,8 +2665,6 @@ public Builder removeLogoAnnotations(int index) { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3065,8 +2676,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3076,22 +2685,19 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); - } else { + return logoAnnotations_.get(index); } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3099,8 +2705,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3108,12 +2712,10 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3122,35 +2724,26 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3161,34 +2754,25 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList( - labelAnnotations_); + labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> - labelAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -3196,8 +2780,6 @@ private void ensureLabelAnnotationsIsMutable() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3212,8 +2794,6 @@ public int getLabelAnnotationsCount() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3228,8 +2808,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(in } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3251,8 +2829,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3271,8 +2847,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3293,8 +2867,6 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnot return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3316,8 +2888,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3336,8 +2906,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3356,8 +2924,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3368,7 +2934,8 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -3376,8 +2943,6 @@ public Builder addAllLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3395,8 +2960,6 @@ public Builder clearLabelAnnotations() { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3414,8 +2977,6 @@ public Builder removeLabelAnnotations(int index) { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3427,8 +2988,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3438,22 +2997,19 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); - } else { + return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3461,8 +3017,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3470,12 +3024,10 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3484,35 +3036,26 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3522,38 +3065,27 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnota return labelAnnotationsBuilder_; } - private java.util.List - localizedObjectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List localizedObjectAnnotations_ = + java.util.Collections.emptyList(); private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList( - localizedObjectAnnotations_); + localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> - localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3561,16 +3093,12 @@ private void ensureLocalizedObjectAnnotationsIsMutable() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3580,19 +3108,14 @@ public int getLocalizedObjectAnnotationsCount() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation - getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3600,16 +3123,12 @@ public int getLocalizedObjectAnnotationsCount() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { @@ -3626,20 +3145,15 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.set(index, builderForValue.build()); @@ -3650,19 +3164,14 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public Builder addLocalizedObjectAnnotations( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3676,16 +3185,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { @@ -3702,16 +3207,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3725,20 +3226,15 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.add(index, builderForValue.build()); @@ -3749,23 +3245,19 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addAllLocalizedObjectAnnotations( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3773,16 +3265,12 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3795,16 +3283,12 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3817,56 +3301,42 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder - getLocalizedObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( + int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); - } else { + return localizedObjectAnnotations_.get(index); } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3874,70 +3344,48 @@ public Builder removeLocalizedObjectAnnotations(int index) { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder(int index) { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( + int index) { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3948,34 +3396,25 @@ public Builder removeLocalizedObjectAnnotations(int index) { } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList( - textAnnotations_); + textAnnotations_ = new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> - textAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3983,8 +3422,6 @@ private void ensureTextAnnotationsIsMutable() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3999,8 +3436,6 @@ public int getTextAnnotationsCount() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4015,8 +3450,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4038,8 +3471,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4058,8 +3489,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4080,8 +3509,6 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnota return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4103,8 +3530,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4123,8 +3548,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4143,8 +3566,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4155,7 +3576,8 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -4163,8 +3585,6 @@ public Builder addAllTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4182,8 +3602,6 @@ public Builder clearTextAnnotations() { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4201,8 +3619,6 @@ public Builder removeTextAnnotations(int index) { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4214,8 +3630,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4225,22 +3639,19 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); - } else { + return textAnnotations_.get(index); } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4248,8 +3659,6 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4257,12 +3666,10 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4271,35 +3678,26 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -4311,13 +3709,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p3beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation, - com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> - fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4326,15 +3719,12 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4343,21 +3733,16 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4381,8 +3766,6 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnnot
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4404,8 +3787,6 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4419,9 +3800,7 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-              com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -4433,8 +3812,6 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnn
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4456,8 +3833,6 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4468,13 +3843,11 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-
+      
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4484,19 +3857,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder
-        getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null
-            ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance()
-            : fullTextAnnotation_;
+        return fullTextAnnotation_ == null ?
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4507,17 +3876,14 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnot
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.TextAnnotation,
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder,
-            com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>
+        com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> 
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.TextAnnotation,
-                com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder,
-                com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(), getParentForChildren(), isClean());
+        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(),
+                getParentForChildren(),
+                isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -4525,55 +3891,41 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnot
 
     private com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation,
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder,
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>
-        safeSearchAnnotationBuilder_;
+        com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
     /**
-     *
-     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation( - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4587,8 +3939,6 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4607,23 +3957,17 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation( - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder( - safeSearchAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -4635,8 +3979,6 @@ public Builder mergeSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4655,42 +3997,33 @@ public Builder clearSafeSearchAnnotation() { return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder - getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4698,17 +4031,14 @@ public Builder clearSafeSearchAnnotation() { * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), getParentForChildren(), isClean()); + safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), + getParentForChildren(), + isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4716,55 +4046,41 @@ public Builder clearSafeSearchAnnotation() { private com.google.cloud.vision.v1p3beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> - imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation( - com.google.cloud.vision.v1p3beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4778,8 +4094,6 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4798,23 +4112,17 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation( - com.google.cloud.vision.v1p3beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder( - imagePropertiesAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4826,8 +4134,6 @@ public Builder mergeImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4846,42 +4152,33 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p3beta1.ImageProperties.Builder - getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? + com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4889,17 +4186,14 @@ public Builder clearImagePropertiesAnnotation() { * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), getParentForChildren(), isClean()); + imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), + getParentForChildren(), + isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4907,55 +4201,41 @@ public Builder clearImagePropertiesAnnotation() { private com.google.cloud.vision.v1p3beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> - cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4969,8 +4249,6 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4989,22 +4267,17 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -5016,8 +4289,6 @@ public Builder mergeCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -5036,42 +4307,33 @@ public Builder clearCropHintsAnnotation() { return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder - getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -5079,17 +4341,14 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), getParentForChildren(), isClean()); + cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), + getParentForChildren(), + isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -5097,47 +4356,34 @@ public Builder clearCropHintsAnnotation() { private com.google.cloud.vision.v1p3beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, - com.google.cloud.vision.v1p3beta1.WebDetection.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> - webDetectionBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> webDetectionBuilder_; /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ public com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5158,8 +4404,6 @@ public Builder setWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection va return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5178,8 +4422,6 @@ public Builder setWebDetection( return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5190,9 +4432,7 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder(webDetection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); } else { webDetection_ = value; } @@ -5204,8 +4444,6 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5224,8 +4462,6 @@ public Builder clearWebDetection() { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5233,13 +4469,11 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p3beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5250,14 +4484,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? + com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5265,17 +4496,14 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, - com.google.cloud.vision.v1p3beta1.WebDetection.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, - com.google.cloud.vision.v1p3beta1.WebDetection.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder>( - getWebDetection(), getParentForChildren(), isClean()); + webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder>( + getWebDetection(), + getParentForChildren(), + isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -5283,55 +4511,41 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.cloud.vision.v1p3beta1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> - productSearchResultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public Builder setProductSearchResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { + public Builder setProductSearchResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5345,8 +4559,6 @@ public Builder setProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5365,23 +4577,17 @@ public Builder setProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { + public Builder mergeProductSearchResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder( - productSearchResults_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); } else { productSearchResults_ = value; } @@ -5393,8 +4599,6 @@ public Builder mergeProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5413,42 +4617,33 @@ public Builder clearProductSearchResults() { return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder - getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? + com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5456,17 +4651,14 @@ public Builder clearProductSearchResults() { * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), getParentForChildren(), isClean()); + productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), + getParentForChildren(), + isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -5474,11 +4666,8 @@ public Builder clearProductSearchResults() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5486,15 +4675,12 @@ public Builder clearProductSearchResults() {
      * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5502,7 +4688,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -5513,8 +4698,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5537,8 +4720,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5547,7 +4728,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -5558,8 +4740,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5571,7 +4751,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -5583,8 +4764,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5605,8 +4784,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5616,13 +4793,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5635,12 +4810,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5650,14 +4824,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -5665,49 +4839,36 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p3beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>
-        contextBuilder_;
+        com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return The context. */ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5729,8 +4890,6 @@ public Builder setContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationConte
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5750,8 +4909,6 @@ public Builder setContext(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5763,9 +4920,7 @@ public Builder mergeContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder(context_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -5777,8 +4932,6 @@ public Builder mergeContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationCon
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5798,8 +4951,6 @@ public Builder clearContext() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5808,13 +4959,11 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder getContextBuilder() {
-
+      
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5826,14 +4975,11 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null
-            ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance()
-            : context_;
+        return context_ == null ?
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5842,24 +4988,21 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>
+        com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder> 
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
-                com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
-                com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>(
-                getContext(), getParentForChildren(), isClean());
+        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>(
+                getContext(),
+                getParentForChildren(),
+                isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5869,12 +5012,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p3beta1.AnnotateImageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse();
   }
@@ -5883,16 +5026,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateImageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateImageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateImageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateImageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5907,4 +5050,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
index 13c512f89..84d2c0a38 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface AnnotateImageResponseOrBuilder
-    extends
+public interface AnnotateImageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - java.util.List getFaceAnnotationsList(); + java.util.List + getFaceAnnotationsList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -44,8 +25,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int index); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -54,40 +33,34 @@ public interface AnnotateImageResponseOrBuilder */ int getFaceAnnotationsCount(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List getLandmarkAnnotationsList(); + java.util.List + getLandmarkAnnotationsList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,8 +69,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations(int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -106,19 +77,15 @@ public interface AnnotateImageResponseOrBuilder */ int getLandmarkAnnotationsCount(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -129,18 +96,15 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List getLogoAnnotationsList(); + java.util.List + getLogoAnnotationsList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -149,8 +113,6 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -159,19 +121,15 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -182,18 +140,15 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - java.util.List getLabelAnnotationsList(); + java.util.List + getLabelAnnotationsList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -202,8 +157,6 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -212,19 +165,15 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -235,88 +184,64 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ int getLocalizedObjectAnnotationsCount(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - java.util.List getTextAnnotationsList(); + java.util.List + getTextAnnotationsList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -325,8 +250,6 @@ com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAn */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -335,19 +258,15 @@ com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAn */ int getTextAnnotationsCount(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -358,8 +277,6 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -368,13 +285,10 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -383,13 +297,10 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -402,104 +313,78 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -509,32 +394,24 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -544,44 +421,33 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder(); + com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -589,13 +455,10 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -603,13 +466,10 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -621,34 +481,26 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; - * * @return The context. */ com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
index b4b8d1ca5..074be7e82 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,61 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry)); - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +116,8 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -153,33 +126,27 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -187,25 +154,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -220,8 +180,6 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -233,8 +191,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -242,13 +198,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -260,8 +214,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -273,8 +225,6 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -282,21 +232,19 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -304,25 +252,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -337,14 +278,11 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -352,25 +290,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -383,7 +314,6 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -418,16 +349,20 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,26 +372,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other = - (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -491,127 +429,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.newBuilder() @@ -619,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -682,8 +610,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest result = - new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -717,39 +644,38 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -757,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -780,10 +705,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -814,8 +738,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -824,52 +747,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder, - com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -890,8 +799,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig valu return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -910,8 +817,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -922,9 +827,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -936,8 +839,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -956,8 +857,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -965,13 +864,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p3beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -982,14 +879,11 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -997,41 +891,32 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder, - com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder, - com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1046,8 +931,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1062,8 +945,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1078,15 +959,14 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1100,8 +980,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1120,8 +998,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1142,15 +1018,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1164,15 +1039,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1183,8 +1057,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder bui return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1203,8 +1075,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1215,7 +1085,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1223,8 +1094,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1242,8 +1111,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1261,44 +1128,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1306,8 +1168,6 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1315,48 +1175,42 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, - com.google.cloud.vision.v1p3beta1.Feature.Builder, - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1364,47 +1218,34 @@ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1425,8 +1266,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p3beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1445,8 +1284,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1457,9 +1294,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1471,8 +1306,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1491,8 +1324,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1500,13 +1331,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p3beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1517,14 +1346,11 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1532,17 +1358,14 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder, - com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1550,47 +1373,34 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1611,8 +1421,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig va return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1631,8 +1439,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1643,9 +1449,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1657,8 +1461,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1677,8 +1479,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1686,13 +1486,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p3beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1703,14 +1501,11 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1718,24 +1513,21 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1745,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(); } @@ -1759,16 +1551,16 @@ public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1783,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java index 5c6512e7e..bfb260d58 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AsyncAnnotateFileRequestOrBuilder - extends +public interface AsyncAnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AsyncAnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AsyncAnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p3beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -146,32 +106,24 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java index 5a434e56d..412076dc1 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncAnnotateFileResponse() {} + private AsyncAnnotateFileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other = - (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.newBuilder() @@ -366,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -409,8 +370,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse result = - new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -424,39 +384,38 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse)other); } else { super.mergeFrom(other); return this; @@ -464,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -488,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -501,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -562,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig va return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -582,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -594,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -608,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -628,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -637,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p3beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -654,14 +586,11 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -669,24 +598,21 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(); } @@ -710,16 +636,16 @@ public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java index 858f55504..5cf4065ed 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AsyncAnnotateFileResponseOrBuilder - extends +public interface AsyncAnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java index d72f205d7..0a5f39d1f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsyncBatchAnnotateFilesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,22 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requests_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              requests_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              requests_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requests_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +78,8 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -110,97 +88,72 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
-            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
-   *
-   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -209,7 +162,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -235,7 +188,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,104 +229,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -380,23 +326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
-              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -404,17 +348,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,14 +372,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -450,8 +393,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest result =
-          new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -470,50 +412,46 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other
-          == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -532,10 +470,9 @@ public Builder mergeFrom(
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRequestsFieldBuilder()
-                    : null;
+            requestsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRequestsFieldBuilder() : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -560,9 +497,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -571,40 +506,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List requests_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ =
-            new java.util.ArrayList(
-                requests_);
+        requests_ = new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest,
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder,
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>
-        requestsBuilder_;
+        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -612,15 +535,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -630,15 +549,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -648,15 +563,11 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(in } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { @@ -673,19 +584,14 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( - int index, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -696,15 +602,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -720,15 +622,11 @@ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRe return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { @@ -745,15 +643,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -767,19 +661,14 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( - int index, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -790,22 +679,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -813,15 +698,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -834,15 +715,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -855,53 +732,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -909,74 +772,56 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -986,32 +831,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,8 +866,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..d6d57acfd --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java index bd6dc7aa1..f4c257d07 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,22 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +77,8 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -109,27 +87,22 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -138,13 +111,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getResponsesList() {
+  public java.util.List getResponsesList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -153,14 +123,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -173,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -187,8 +152,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -203,7 +166,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -229,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -269,147 +233,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -445,8 +396,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,50 +415,46 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other) { - if (other - == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other) { + if (other == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -527,10 +473,9 @@ public Builder mergeFrom( responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -555,9 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,30 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -597,8 +531,7 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesList() {
+    public java.util.List getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -606,8 +539,6 @@ private void ensureResponsesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -623,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -640,8 +569,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -664,8 +591,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -674,8 +599,7 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index,
-        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -686,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -709,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileR
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -733,8 +653,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -754,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -764,8 +680,7 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index,
-        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -776,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -786,11 +699,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -798,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -818,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -838,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -852,8 +759,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -861,17 +766,14 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder
-        getResponsesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
+        int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -879,9 +781,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -889,8 +790,6 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -898,15 +797,11 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder
-        addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -916,14 +811,10 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
      */
     public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -931,30 +822,27 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse,
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse,
-                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -964,32 +852,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstance() {
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1001,8 +887,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 7f5581cfd..67cf67b37 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder
-    extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
index bfc8f4ccd..e78683043 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -108,95 +87,72 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -205,7 +161,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -231,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.newBuilder() @@ -399,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -445,8 +391,7 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,39 +410,38 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -526,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -554,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -605,15 +533,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -623,15 +547,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -641,15 +561,11 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int in } } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { @@ -666,15 +582,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -688,15 +600,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -712,15 +620,11 @@ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AnnotateImageReques return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { @@ -737,15 +641,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -759,15 +659,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -781,22 +677,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -804,15 +696,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -825,15 +713,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -846,52 +730,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -899,72 +770,56 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getReques } } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(); } @@ -989,16 +843,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..b669bf8f4 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface BatchAnnotateImagesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index); + /** + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java index 593e3733c..658f0d445 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -136,13 +110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -150,13 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -168,8 +137,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -181,8 +148,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -196,7 +161,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -222,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.newBuilder() @@ -390,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -436,8 +391,7 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +410,38 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -496,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other) { - if (other - == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -517,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -545,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,38 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -595,8 +533,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -611,8 +547,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -627,8 +561,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -650,8 +582,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,8 +589,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -671,8 +600,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -693,8 +620,6 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -716,8 +641,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -736,8 +659,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -745,8 +666,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -757,8 +677,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -766,11 +684,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -778,8 +696,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -797,8 +713,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -816,8 +730,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -829,8 +741,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -840,23 +750,19 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -864,8 +770,6 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -873,12 +777,10 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -887,43 +789,37 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(); } @@ -948,16 +843,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +867,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java index 1380cef10..7b145922c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface BatchAnnotateImagesResponseOrBuilder - extends +public interface BatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -44,8 +25,6 @@ public interface BatchAnnotateImagesResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -54,24 +33,21 @@ public interface BatchAnnotateImagesResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java index dcae3480c..881734218 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchOperationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,50 +55,45 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
+            }
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,41 +101,36 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class,
-            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -166,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is actively being processed.
      * 
@@ -176,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROCESSING(1), /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -187,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCESSFUL(2),
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -197,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -212,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -222,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is actively being processed.
      * 
@@ -232,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROCESSING_VALUE = 1; /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -243,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -253,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -265,6 +220,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -289,55 +245,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return PROCESSING;
-        case 2:
-          return SUCCESSFUL;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return PROCESSING;
+        case 2: return SUCCESSFUL;
+        case 3: return FAILED;
+        case 4: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -357,52 +309,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -410,14 +348,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -425,8 +360,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -441,8 +374,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -450,7 +381,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -458,8 +388,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -467,7 +395,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -475,8 +402,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -491,7 +416,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -503,10 +427,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (state_
-        != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
-            .getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (state_ != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -524,16 +447,17 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_
-        != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+    if (state_ != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -543,22 +467,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other =
-        (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other = (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -587,104 +512,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -693,23 +610,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
       com.google.cloud.vision.v1p3beta1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class,
-              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.newBuilder()
@@ -717,15 +632,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -747,9 +663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -768,8 +684,7 @@ public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata result =
-          new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata result = new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -789,39 +704,38 @@ public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchOperationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -829,8 +743,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -859,8 +772,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -872,67 +784,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -940,24 +836,21 @@ public Builder setState(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -965,47 +858,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1026,15 +906,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1045,8 +924,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1057,7 +934,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1069,8 +946,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1089,8 +964,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1098,13 +971,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1115,14 +986,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1130,17 +998,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1148,13 +1013,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1162,15 +1022,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1178,7 +1035,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1189,8 +1045,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1213,8 +1067,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1223,7 +1075,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1234,8 +1087,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1248,7 +1099,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1260,8 +1111,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1282,8 +1131,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1293,13 +1140,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1312,12 +1157,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1327,24 +1171,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1354,12 +1195,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1p3beta1.BatchOperationMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata();
   }
@@ -1368,16 +1209,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchOperationMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchOperationMetadata(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchOperationMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchOperationMetadata(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1392,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
index 74f2e8d49..a85a94371 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
@@ -1,80 +1,50 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface BatchOperationMetadataOrBuilder
-    extends
+public interface BatchOperationMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -84,8 +54,6 @@ public interface BatchOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +61,10 @@ public interface BatchOperationMetadataOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchOperationMetadataOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
similarity index 77%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
index bae0e4af1..2be514108 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/text_annotation.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Block} */ -public final class Block extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Block extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Block) BlockOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -44,15 +26,16 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,71 +55,59 @@ private Block( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paragraphs_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Paragraph.parser(), extensionRegistry)); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - blockType_ = rawValue; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 45: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + paragraphs_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Paragraph.parser(), extensionRegistry)); + break; + } + case 32: { + int rawValue = input.readEnum(); + + blockType_ = rawValue; + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +115,8 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -153,35 +125,29 @@ private Block( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Block.class, - com.google.cloud.vision.v1p3beta1.Block.Builder.class); + com.google.cloud.vision.v1p3beta1.Block.class, com.google.cloud.vision.v1p3beta1.Block.Builder.class); } /** - * - * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.Block.BlockType} */ - public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown block type.
      * 
@@ -190,8 +156,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Regular text block.
      * 
@@ -200,8 +164,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(1), /** - * - * *
      * Table block.
      * 
@@ -210,8 +172,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(2), /** - * - * *
      * Image block.
      * 
@@ -220,8 +180,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ PICTURE(3), /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -230,8 +188,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ RULER(4), /** - * - * *
      * Barcode block.
      * 
@@ -243,8 +199,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown block type.
      * 
@@ -253,8 +207,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Regular text block.
      * 
@@ -263,8 +215,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 1; /** - * - * *
      * Table block.
      * 
@@ -273,8 +223,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 2; /** - * - * *
      * Image block.
      * 
@@ -283,8 +231,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PICTURE_VALUE = 3; /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -293,8 +239,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RULER_VALUE = 4; /** - * - * *
      * Barcode block.
      * 
@@ -303,6 +247,7 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BARCODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -327,55 +272,52 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return TEXT; - case 2: - return TABLE; - case 3: - return PICTURE; - case 4: - return RULER; - case 5: - return BARCODE; - default: - return null; + case 0: return UNKNOWN; + case 1: return TEXT; + case 2: return TABLE; + case 3: return PICTURE; + case 4: return RULER; + case 5: return BARCODE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlockType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p3beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -395,14 +337,11 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -410,25 +349,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the block.
    * 
@@ -436,16 +368,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -465,7 +394,6 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -473,8 +401,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -494,18 +420,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -534,8 +455,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -547,8 +466,6 @@ public java.util.List getParagraphs return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -556,13 +473,11 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -574,8 +489,6 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -587,8 +500,6 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -596,57 +507,46 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Block.BlockType result = - com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p3beta1.Block.BlockType result = com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -655,7 +555,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -667,7 +566,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -693,19 +593,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p3beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -715,7 +620,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Block)) { return super.equals(obj); @@ -724,16 +629,20 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getParagraphsList().equals(other.getParagraphsList())) return false; + if (!getParagraphsList() + .equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -760,133 +669,125 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Block} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Block) com.google.cloud.vision.v1p3beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Block.class, - com.google.cloud.vision.v1p3beta1.Block.Builder.class); + com.google.cloud.vision.v1p3beta1.Block.class, com.google.cloud.vision.v1p3beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Block.newBuilder() @@ -894,17 +795,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -934,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override @@ -955,8 +856,7 @@ public com.google.cloud.vision.v1p3beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block buildPartial() { - com.google.cloud.vision.v1p3beta1.Block result = - new com.google.cloud.vision.v1p3beta1.Block(this); + com.google.cloud.vision.v1p3beta1.Block result = new com.google.cloud.vision.v1p3beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -987,39 +887,38 @@ public com.google.cloud.vision.v1p3beta1.Block buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Block) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Block)other); } else { super.mergeFrom(other); return this; @@ -1052,10 +951,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParagraphsFieldBuilder() - : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParagraphsFieldBuilder() : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -1095,60 +993,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,8 +1045,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1182,22 +1063,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1209,8 +1085,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1229,42 +1103,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1272,17 +1137,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1290,13 +1152,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1316,15 +1173,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1344,21 +1198,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1393,8 +1242,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1427,8 +1274,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1453,9 +1298,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1467,8 +1310,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1501,8 +1342,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1524,13 +1363,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1555,14 +1392,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1584,42 +1418,32 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ =
-            new java.util.ArrayList(paragraphs_);
+        paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Paragraph,
-            com.google.cloud.vision.v1p3beta1.Paragraph.Builder,
-            com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>
-        paragraphsBuilder_;
+        com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> paragraphsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1634,8 +1458,6 @@ public java.util.List getParagraphs } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1650,8 +1472,6 @@ public int getParagraphsCount() { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1666,15 +1486,14 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { + public Builder setParagraphs( + int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1688,8 +1507,6 @@ public Builder setParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1708,8 +1525,6 @@ public Builder setParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1730,15 +1545,14 @@ public Builder addParagraphs(com.google.cloud.vision.v1p3beta1.Paragraph value) return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { + public Builder addParagraphs( + int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1752,8 +1566,6 @@ public Builder addParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1772,8 +1584,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1792,8 +1602,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1804,7 +1612,8 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1812,8 +1621,6 @@ public Builder addAllParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1831,8 +1638,6 @@ public Builder clearParagraphs() { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1850,44 +1655,39 @@ public Builder removeParagraphs(int index) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.Paragraph.Builder getParagraphsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Paragraph.Builder getParagraphsBuilder( + int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); - } else { + return paragraphs_.get(index); } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1895,8 +1695,6 @@ public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1904,48 +1702,42 @@ public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder(int index) { - return getParagraphsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder( + int index) { + return getParagraphsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Paragraph, - com.google.cloud.vision.v1p3beta1.Paragraph.Builder, - com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Paragraph, - com.google.cloud.vision.v1p3beta1.Paragraph.Builder, - com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>( - paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>( + paragraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1953,67 +1745,51 @@ public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Block.BlockType result = - com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); - return result == null - ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.Block.BlockType result = com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); + return result == null ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED : result; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @param value The blockType to set. * @return This builder for chaining. */ @@ -2021,39 +1797,33 @@ public Builder setBlockType(com.google.cloud.vision.v1p3beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -2061,43 +1831,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2107,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Block) private static final com.google.cloud.vision.v1p3beta1.Block DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Block(); } @@ -2121,16 +1885,16 @@ public static com.google.cloud.vision.v1p3beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2145,4 +1909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java index 8bf00ab53..1a5ecb47b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface BlockOrBuilder - extends +public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Block) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
@@ -59,8 +35,6 @@ public interface BlockOrBuilder com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface BlockOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - java.util.List getParagraphsList(); + java.util.List + getParagraphsList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -156,8 +121,6 @@ public interface BlockOrBuilder */ com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -166,61 +129,49 @@ public interface BlockOrBuilder */ int getParagraphsCount(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType(); /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java index 377b0d334..851eac3e8 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BoundingPoly} */ -public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BoundingPoly) BoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,31 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.NormalizedVertex.parser(), - extensionRegistry)); - break; + vertices_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Vertex.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + normalizedVertices_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +87,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -122,27 +100,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.GeometryProto - .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.GeometryProto - .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BoundingPoly.class, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p3beta1.BoundingPoly.class, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -154,8 +127,6 @@ public java.util.List getVerticesList( return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -163,13 +134,11 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -181,8 +150,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -194,8 +161,6 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -203,15 +168,14 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -219,13 +183,10 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -233,13 +194,11 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -251,8 +210,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -264,8 +221,6 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -279,7 +234,6 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -308,11 +263,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,16 +278,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BoundingPoly other = - (com.google.cloud.vision.v1p3beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p3beta1.BoundingPoly other = (com.google.cloud.vision.v1p3beta1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,127 +313,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BoundingPoly) com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.GeometryProto - .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.GeometryProto - .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BoundingPoly.class, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p3beta1.BoundingPoly.class, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder() @@ -484,18 +432,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.GeometryProto - .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -536,8 +484,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p3beta1.BoundingPoly result = - new com.google.cloud.vision.v1p3beta1.BoundingPoly(this); + com.google.cloud.vision.v1p3beta1.BoundingPoly result = new com.google.cloud.vision.v1p3beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -565,39 +512,38 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BoundingPoly) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -624,10 +570,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -651,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNormalizedVerticesFieldBuilder() - : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNormalizedVerticesFieldBuilder() : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -688,28 +632,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, - com.google.cloud.vision.v1p3beta1.Vertex.Builder, - com.google.cloud.vision.v1p3beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -724,8 +661,6 @@ public java.util.List getVerticesList( } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -740,8 +675,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -756,15 +689,14 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.vision.v1p3beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,8 +710,6 @@ public Builder setVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -798,8 +728,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -820,15 +748,14 @@ public Builder addVertices(com.google.cloud.vision.v1p3beta1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.vision.v1p3beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -842,15 +769,14 @@ public Builder addVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.vision.v1p3beta1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.vision.v1p3beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -861,8 +787,6 @@ public Builder addVertices(com.google.cloud.vision.v1p3beta1.Vertex.Builder buil return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -881,8 +805,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -893,7 +815,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -901,8 +824,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -920,8 +841,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -939,44 +858,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -984,8 +898,6 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(in } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -993,83 +905,67 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, - com.google.cloud.vision.v1p3beta1.Vertex.Builder, - com.google.cloud.vision.v1p3beta1.VertexOrBuilder> + com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, - com.google.cloud.vision.v1p3beta1.Vertex.Builder, - com.google.cloud.vision.v1p3beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList( - normalizedVertices_); + normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, - com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -1077,14 +973,11 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -1094,14 +987,11 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1111,14 +1001,11 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices( } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { @@ -1135,14 +1022,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1156,14 +1040,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1179,14 +1060,11 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p3beta1.Normalize return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { @@ -1203,14 +1081,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1224,14 +1099,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1245,20 +1117,18 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1266,14 +1136,11 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1286,14 +1153,11 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1306,49 +1170,39 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1356,62 +1210,45 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder getNormalizedV } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, - com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, - com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1420,9 +1257,9 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1432,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BoundingPoly) private static final com.google.cloud.vision.v1p3beta1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BoundingPoly(); } @@ -1446,16 +1283,16 @@ public static com.google.cloud.vision.v1p3beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1307,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java index 7e03032f3..8fa2aef81 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,40 +33,34 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( + int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List getNormalizedVerticesList(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -96,8 +69,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -106,19 +77,15 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java index 2763544cb..c33bedf34 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ColorInfo}
  */
-public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ColorInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ColorInfo)
     ColorInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ColorInfo() {}
+  private ColorInfo() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,37 +53,36 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Color.Builder subBuilder = null;
-              if (color_ != null) {
-                subBuilder = color_.toBuilder();
-              }
-              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(color_);
-                color_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 21:
-            {
-              score_ = input.readFloat();
-              break;
+          case 10: {
+            com.google.type.Color.Builder subBuilder = null;
+            if (color_ != null) {
+              subBuilder = color_.toBuilder();
             }
-          case 29:
-            {
-              pixelFraction_ = input.readFloat();
-              break;
+            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(color_);
+              color_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 21: {
+
+            score_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            pixelFraction_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,39 +90,34 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ColorInfo.class,
-            com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ColorInfo.class, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
-   *
-   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ @java.lang.Override @@ -147,14 +125,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
    * RGB components of the color.
    * 
@@ -178,14 +151,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -196,15 +166,12 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -213,7 +180,6 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -245,13 +212,16 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,22 +231,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ColorInfo other = - (com.google.cloud.vision.v1p3beta1.ColorInfo) obj; + com.google.cloud.vision.v1p3beta1.ColorInfo other = (com.google.cloud.vision.v1p3beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,112 +265,107 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -406,23 +373,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ColorInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ColorInfo)
       com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ColorInfo.class,
-              com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ColorInfo.class, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ColorInfo.newBuilder()
@@ -430,15 +395,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -477,8 +443,7 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ColorInfo result =
-          new com.google.cloud.vision.v1p3beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p3beta1.ColorInfo result = new com.google.cloud.vision.v1p3beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -494,39 +459,38 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ColorInfo) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ColorInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -575,31 +539,24 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
-        colorBuilder_;
+        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
     /**
-     *
-     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return The color. */ public com.google.type.Color getColor() { @@ -610,8 +567,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
      * RGB components of the color.
      * 
@@ -632,15 +587,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor(com.google.type.Color.Builder builderForValue) { + public Builder setColor( + com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -651,8 +605,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -662,7 +614,8 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = + com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -674,8 +627,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -694,8 +645,6 @@ public Builder clearColor() { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -703,13 +652,11 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
      * RGB components of the color.
      * 
@@ -720,12 +667,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? + com.google.type.Color.getDefaultInstance() : color_; } } /** - * - * *
      * RGB components of the color.
      * 
@@ -733,29 +679,26 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); + colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getColor(), + getParentForChildren(), + isClean()); color_ = null; } return colorBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -763,52 +706,43 @@ public float getScore() { return score_; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_; + private float pixelFraction_ ; /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -816,45 +750,39 @@ public float getPixelFraction() { return pixelFraction_; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ColorInfo) private static final com.google.cloud.vision.v1p3beta1.ColorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ColorInfo(); } @@ -878,16 +806,16 @@ public static com.google.cloud.vision.v1p3beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java index aaca36e64..9273013cf 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ColorInfoOrBuilder - extends +public interface ColorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
    * RGB components of the color.
    * 
@@ -59,28 +35,22 @@ public interface ColorInfoOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java index 16f47bbcf..beee2d52d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductRequest} */ -public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateProductRequest) CreateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -44,15 +26,16 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,43 +93,36 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, - com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,16 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.Product product_; /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -214,34 +178,23 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { @@ -251,8 +204,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -261,7 +212,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * string product_id = 3; - * * @return The productId. */ @java.lang.Override @@ -270,15 +220,14 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -287,15 +236,16 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -304,7 +254,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -339,7 +289,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -352,20 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateProductRequest other = - (com.google.cloud.vision.v1p3beta1.CreateProductRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateProductRequest other = (com.google.cloud.vision.v1p3beta1.CreateProductRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } - if (!getProductId().equals(other.getProductId())) return false; + if (!getProductId() + .equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,127 +344,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.CreateProductRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateProductRequest) com.google.cloud.vision.v1p3beta1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, - com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateProductRequest.newBuilder() @@ -519,15 +462,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override @@ -566,8 +510,7 @@ public com.google.cloud.vision.v1p3beta1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateProductRequest result = - new com.google.cloud.vision.v1p3beta1.CreateProductRequest(this); + com.google.cloud.vision.v1p3beta1.CreateProductRequest result = new com.google.cloud.vision.v1p3beta1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -583,39 +526,38 @@ public com.google.cloud.vision.v1p3beta1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -655,8 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.CreateProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -668,24 +608,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -694,25 +630,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,73 +653,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -794,58 +714,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { @@ -861,17 +762,14 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -882,23 +780,17 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder buil return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -910,15 +802,11 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -932,64 +820,48 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -997,8 +869,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() private java.lang.Object productId_ = ""; /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1007,13 +877,13 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * string product_id = 3; - * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -1022,8 +892,6 @@ public java.lang.String getProductId() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1032,14 +900,15 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; - * * @return The bytes for productId. */ - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -1047,8 +916,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1057,22 +924,20 @@ public com.google.protobuf.ByteString getProductIdBytes() {
      * 
* * string product_id = 3; - * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId(java.lang.String value) { + public Builder setProductId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1081,18 +946,15 @@ public Builder setProductId(java.lang.String value) {
      * 
* * string product_id = 3; - * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1101,23 +963,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; - * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1127,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) private static final com.google.cloud.vision.v1p3beta1.CreateProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateProductRequest(); } @@ -1141,16 +1003,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java index e261ebf09..9804a4951 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateProductRequestOrBuilder - extends +public interface CreateProductRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -108,13 +67,10 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The productId. */ java.lang.String getProductId(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -123,8 +79,8 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ - com.google.protobuf.ByteString getProductIdBytes(); + com.google.protobuf.ByteString + getProductIdBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java index 4f3f30d85..ea635434a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -44,15 +26,16 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + productSet_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productSetId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -259,7 +210,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -285,15 +234,16 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other = (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductSet() + .equals(other.getProductSet())) return false; } - if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!getProductSetId() + .equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateProductSetRequest) com.google.cloud.vision.v1p3beta1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest result = new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -581,39 +524,38 @@ public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet( com.google.cloud.vision.v1p3beta1.ProductSet.Builder builderForValue) { @@ -876,23 +773,17 @@ public Builder setProductSet( return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -904,15 +795,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet valu return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -926,64 +813,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -991,8 +862,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil private java.lang.Object productSetId_ = ""; /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1001,13 +870,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * string product_set_id = 3; - * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -1016,8 +885,6 @@ public java.lang.String getProductSetId() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1026,14 +893,15 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -1041,8 +909,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1051,22 +917,20 @@ public com.google.protobuf.ByteString getProductSetIdBytes() {
      * 
* * string product_set_id = 3; - * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId(java.lang.String value) { + public Builder setProductSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1075,18 +939,15 @@ public Builder setProductSetId(java.lang.String value) {
      * 
* * string product_set_id = 3; - * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1095,23 +956,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; - * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.CreateProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(); } @@ -1135,16 +996,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java index 6bb87e0fe..fc0c0172f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateProductSetRequestOrBuilder - extends +public interface CreateProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -106,13 +65,10 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ java.lang.String getProductSetId(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -121,8 +77,8 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString getProductSetIdBytes(); + com.google.protobuf.ByteString + getProductSetIdBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java index bf7df291b..42b61b891 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -44,15 +26,16 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); - } - - break; + referenceImage_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceImageId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,43 +93,36 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,17 +166,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ReferenceImage referenceImage_; /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -215,36 +179,25 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage() { - return referenceImage_ == null - ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -254,8 +207,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -264,7 +215,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ @java.lang.Override @@ -273,15 +223,14 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -290,15 +239,16 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -307,7 +257,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +292,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -355,20 +306,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other = - (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage().equals(other.getReferenceImage())) return false; + if (!getReferenceImage() + .equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId() + .equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -394,127 +347,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.newBuilder() @@ -522,15 +465,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,14 +492,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance(); } @@ -570,8 +513,7 @@ public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest result = - new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -587,39 +529,38 @@ public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -627,9 +568,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -660,9 +599,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,24 +611,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -700,25 +633,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -726,73 +656,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -800,61 +717,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p3beta1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> - referenceImageBuilder_; + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImageBuilder_; /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null - ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -870,16 +768,12 @@ public Builder setReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImag return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage( com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder builderForValue) { @@ -893,24 +787,18 @@ public Builder setReferenceImage( return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder(referenceImage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); } else { referenceImage_ = value; } @@ -922,16 +810,12 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceIm return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -945,67 +829,51 @@ public Builder clearReferenceImage() { return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null - ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? + com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( - getReferenceImage(), getParentForChildren(), isClean()); + referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + getReferenceImage(), + getParentForChildren(), + isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -1013,8 +881,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma private java.lang.Object referenceImageId_ = ""; /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1023,13 +889,13 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma
      * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -1038,8 +904,6 @@ public java.lang.String getReferenceImageId() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1048,14 +912,15 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -1063,8 +928,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1073,22 +936,20 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() {
      * 
* * string reference_image_id = 3; - * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId(java.lang.String value) { + public Builder setReferenceImageId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1097,18 +958,15 @@ public Builder setReferenceImageId(java.lang.String value) {
      * 
* * string reference_image_id = 3; - * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1117,23 +975,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1143,13 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) - private static final com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(); } @@ -1158,16 +1015,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1039,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java index 77b1a7577..25fdcd678 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java @@ -1,108 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateReferenceImageRequestOrBuilder - extends +public interface CreateReferenceImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -111,13 +70,10 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -126,8 +82,8 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString getReferenceImageIdBytes(); + com.google.protobuf.ByteString + getReferenceImageIdBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java index 264d4cd4e..4446c72f0 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHint} */ -public final class CropHint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHint) CropHintOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CropHint() {} + private CropHint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,39 +52,36 @@ private CropHint( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; + case 10: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 29: - { - importanceFraction_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 29: { + + importanceFraction_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +89,35 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHint.class, - com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHint.class, com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -149,26 +125,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -184,14 +153,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -202,15 +168,12 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -219,7 +182,6 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -251,13 +214,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,22 +233,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHint other = - (com.google.cloud.vision.v1p3beta1.CropHint) obj; + com.google.cloud.vision.v1p3beta1.CropHint other = (com.google.cloud.vision.v1p3beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,135 +267,128 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHint) com.google.cloud.vision.v1p3beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHint.class, - com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHint.class, com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHint.newBuilder() @@ -435,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override @@ -482,8 +444,7 @@ public com.google.cloud.vision.v1p3beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHint result = - new com.google.cloud.vision.v1p3beta1.CropHint(this); + com.google.cloud.vision.v1p3beta1.CropHint result = new com.google.cloud.vision.v1p3beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -499,39 +460,38 @@ public com.google.cloud.vision.v1p3beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHint) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHint)other); } else { super.mergeFrom(other); return this; @@ -580,49 +540,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -644,8 +591,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -665,8 +610,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -678,9 +621,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -692,8 +633,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -713,8 +652,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -723,13 +660,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -741,14 +676,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -757,32 +689,26 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -790,52 +716,43 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_; + private float importanceFraction_ ; /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -843,45 +760,39 @@ public float getImportanceFraction() { return importanceFraction_; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHint) private static final com.google.cloud.vision.v1p3beta1.CropHint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHint(); } @@ -905,16 +816,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java index 2a5482582..bfc39c882 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintOrBuilder - extends +public interface CropHintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -62,28 +38,22 @@ public interface CropHintOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java index d425a204a..d34e538fd 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cropHints_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.CropHint.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cropHints_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.CropHint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -105,27 +87,22 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** - * - * *
    * Crop hint results.
    * 
@@ -137,8 +114,6 @@ public java.util.List getCropHintsLi return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -146,13 +121,11 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -164,8 +137,6 @@ public int getCropHintsCount() { return cropHints_.size(); } /** - * - * *
    * Crop hint results.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** - * - * *
    * Crop hint results.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other = - (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) obj; - if (!getCropHintsList().equals(other.getCropHintsList())) return false; + if (!getCropHintsList() + .equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHintsAnnotation) com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation result = - new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance()) return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCropHintsFieldBuilder() - : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCropHintsFieldBuilder() : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = - new java.util.ArrayList(cropHints_); + cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, - com.google.cloud.vision.v1p3beta1.CropHint.Builder, - com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> - cropHintsBuilder_; + com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> cropHintsBuilder_; /** - * - * *
      * Crop hint results.
      * 
@@ -585,8 +533,6 @@ public java.util.List getCropHintsLi } } /** - * - * *
      * Crop hint results.
      * 
@@ -601,8 +547,6 @@ public int getCropHintsCount() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -617,15 +561,14 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public Builder setCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHint value) { + public Builder setCropHints( + int index, com.google.cloud.vision.v1p3beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,8 +582,6 @@ public Builder setCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -659,8 +600,6 @@ public Builder setCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -681,15 +620,14 @@ public Builder addCropHints(com.google.cloud.vision.v1p3beta1.CropHint value) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public Builder addCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHint value) { + public Builder addCropHints( + int index, com.google.cloud.vision.v1p3beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,8 +641,6 @@ public Builder addCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -723,8 +659,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -743,8 +677,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -755,7 +687,8 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -763,8 +696,6 @@ public Builder addAllCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -782,8 +713,6 @@ public Builder clearCropHints() { return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -801,44 +730,39 @@ public Builder removeCropHints(int index) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHint.Builder getCropHintsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.CropHint.Builder getCropHintsBuilder( + int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); - } else { + return cropHints_.get(index); } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -846,8 +770,6 @@ public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** - * - * *
      * Crop hint results.
      * 
@@ -855,55 +777,49 @@ public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder(int index) { - return getCropHintsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder( + int index) { + return getCropHintsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, - com.google.cloud.vision.v1p3beta1.CropHint.Builder, - com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, - com.google.cloud.vision.v1p3beta1.CropHint.Builder, - com.google.cloud.vision.v1p3beta1.CropHintOrBuilder>( - cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder>( + cropHints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cropHints_ = null; } return cropHintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p3beta1.CropHintsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(); } @@ -927,16 +843,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java index f4bac2f8a..9192acbf2 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintsAnnotationOrBuilder - extends +public interface CropHintsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - java.util.List getCropHintsList(); + java.util.List + getCropHintsList(); /** - * - * *
    * Crop hint results.
    * 
@@ -44,8 +25,6 @@ public interface CropHintsAnnotationOrBuilder */ com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index); /** - * - * *
    * Crop hint results.
    * 
@@ -54,24 +33,21 @@ public interface CropHintsAnnotationOrBuilder */ int getCropHintsCount(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java index 87c797acf..35f411c11 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsParams} */ -public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHintsParams) CropHintsParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +54,34 @@ private CropHintsParams( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + aspectRatios_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - aspectRatios_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -117,27 +99,22 @@ private CropHintsParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsParams.class, - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsParams.class, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -148,16 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List getAspectRatiosList() { + public java.util.List + getAspectRatiosList() { return aspectRatios_; } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -168,15 +143,12 @@ public java.util.List getAspectRatiosList() {
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -187,18 +159,15 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } - private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -234,7 +204,8 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -246,15 +217,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHintsParams other = - (com.google.cloud.vision.v1p3beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p3beta1.CropHintsParams other = (com.google.cloud.vision.v1p3beta1.CropHintsParams) obj; - if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList() + .equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,126 +247,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHintsParams) com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsParams.class, - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsParams.class, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder() @@ -403,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -442,8 +405,7 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHintsParams result = - new com.google.cloud.vision.v1p3beta1.CropHintsParams(this); + com.google.cloud.vision.v1p3beta1.CropHintsParams result = new com.google.cloud.vision.v1p3beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -458,39 +420,38 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsParams) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsParams)other); } else { super.mergeFrom(other); return this; @@ -498,8 +459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance()) return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -529,8 +489,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,20 +498,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); - private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -563,17 +518,14 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ - public java.util.List getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(aspectRatios_) - : aspectRatios_; + public java.util.List + getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -584,15 +536,12 @@ public java.util.List getAspectRatiosList() {
      * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -603,7 +552,6 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -611,8 +559,6 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -623,20 +569,18 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios(int index, float value) { + public Builder setAspectRatios( + int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -647,7 +591,6 @@ public Builder setAspectRatios(int index, float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -658,8 +601,6 @@ public Builder addAspectRatios(float value) { return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -670,19 +611,18 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios(java.lang.Iterable values) { + public Builder addAllAspectRatios( + java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aspectRatios_); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -693,7 +633,6 @@ public Builder addAllAspectRatios(java.lang.Iterable
      * 
* * repeated float aspect_ratios = 1; - * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -702,9 +641,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsParams) private static final com.google.cloud.vision.v1p3beta1.CropHintsParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHintsParams(); } @@ -728,16 +667,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java index 8d8ffc963..a653d0de7 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintsParamsOrBuilder - extends +public interface CropHintsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -36,13 +18,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -53,13 +32,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -70,7 +46,6 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java index c3f304c10..719318c2a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductRequest} */ -public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteProductRequest) DeleteProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteProductRequest other = - (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteProductRequest other = (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteProductRequest) com.google.cloud.vision.v1p3beta1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteProductRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteProductRequest result = - new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest result = new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) private static final com.google.cloud.vision.v1p3beta1.DeleteProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..7f8ba581a --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java index 8241bf6f6..8235fd8f9 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other = (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) com.google.cloud.vision.v1p3beta1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest result = new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..0467f25bc --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java index afba79bde..8a6f19c9c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other = - (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest result = - new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - private static final com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..da3ee934e --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java index fce51d52e..8ea9a6af6 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DominantColorsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - colors_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.ColorInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + colors_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.ColorInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -105,27 +87,22 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,8 +114,6 @@ public java.util.List getColorsList return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -146,13 +121,11 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -164,8 +137,6 @@ public int getColorsCount() { return colors_.size(); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other = - (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) obj; - if (!getColorsList().equals(other.getColorsList())) return false; + if (!getColorsList() + .equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DominantColorsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation result = - new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance()) return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColorsFieldBuilder() - : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, - com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> - colorsBuilder_; + com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> colorsBuilder_; /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -584,8 +533,6 @@ public java.util.List getColorsList } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,8 +547,6 @@ public int getColorsCount() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -616,15 +561,14 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder setColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { + public Builder setColors( + int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +582,6 @@ public Builder setColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -658,8 +600,6 @@ public Builder setColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -680,15 +620,14 @@ public Builder addColors(com.google.cloud.vision.v1p3beta1.ColorInfo value) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder addColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { + public Builder addColors( + int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,15 +641,14 @@ public Builder addColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder addColors(com.google.cloud.vision.v1p3beta1.ColorInfo.Builder builderForValue) { + public Builder addColors( + com.google.cloud.vision.v1p3beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -721,8 +659,6 @@ public Builder addColors(com.google.cloud.vision.v1p3beta1.ColorInfo.Builder bui return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -741,8 +677,6 @@ public Builder addColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -753,7 +687,8 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -761,8 +696,6 @@ public Builder addAllColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -780,8 +713,6 @@ public Builder clearColors() { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -799,44 +730,39 @@ public Builder removeColors(int index) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder getColorsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder getColorsBuilder( + int index) { return getColorsFieldBuilder().getBuilder(index); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { if (colorsBuilder_ == null) { - return colors_.get(index); - } else { + return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,8 +770,6 @@ public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(i } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -853,55 +777,49 @@ public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(i * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder(int index) { - return getColorsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, - com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, - com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder>( - colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder>( + colors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); colors_ = null; } return colorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(); } @@ -925,16 +843,16 @@ public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java index 6bf850b19..56cf0dfcc 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface DominantColorsAnnotationOrBuilder - extends +public interface DominantColorsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - java.util.List getColorsList(); + java.util.List + getColorsList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -44,8 +25,6 @@ public interface DominantColorsAnnotationOrBuilder */ com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -54,24 +33,21 @@ public interface DominantColorsAnnotationOrBuilder */ int getColorsCount(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java similarity index 79% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java index 39ffe2992..b3aa0bcc4 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.EntityAnnotation} */ -public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.EntityAnnotation) EntityAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -47,15 +29,16 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,88 +58,77 @@ private EntityAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + locale_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; - } - case 53: - { - topicality_ = input.readFloat(); - break; + description_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + case 53: { + + topicality_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 58: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.LocationInfo.parser(), extensionRegistry)); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - properties_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Property.parser(), extensionRegistry)); - break; + locations_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + properties_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Property.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -164,7 +136,8 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -176,27 +149,22 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -204,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -213,15 +180,14 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -229,15 +195,16 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -248,15 +215,12 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ @java.lang.Override @@ -265,30 +229,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -299,14 +263,11 @@ public com.google.protobuf.ByteString getLocaleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -315,29 +276,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +309,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -366,8 +324,6 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -377,7 +333,6 @@ public float getScore() {
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -388,8 +343,6 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -399,7 +352,6 @@ public float getConfidence() {
    * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -410,15 +362,12 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -426,26 +375,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -461,8 +403,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -478,8 +418,6 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -491,13 +429,11 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -513,8 +449,6 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -530,8 +464,6 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -543,15 +475,14 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -564,8 +495,6 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -574,13 +503,11 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -593,8 +520,6 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -607,8 +532,6 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -617,12 +540,12 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+  public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -634,7 +557,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -681,22 +605,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -706,29 +636,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.EntityAnnotation other =
-        (com.google.cloud.vision.v1p3beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p3beta1.EntityAnnotation other = (com.google.cloud.vision.v1p3beta1.EntityAnnotation) obj;
 
-    if (!getMid().equals(other.getMid())) return false;
-    if (!getLocale().equals(other.getLocale())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getMid()
+        .equals(other.getMid())) return false;
+    if (!getLocale()
+        .equals(other.getLocale())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly()
+          .equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList().equals(other.getLocationsList())) return false;
-    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
+    if (!getLocationsList()
+        .equals(other.getLocationsList())) return false;
+    if (!getPropertiesList()
+        .equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -747,11 +685,14 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -770,126 +711,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.EntityAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.EntityAnnotation) com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.EntityAnnotation.newBuilder() @@ -897,18 +829,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -946,9 +878,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -967,8 +899,7 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.EntityAnnotation result = - new com.google.cloud.vision.v1p3beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p3beta1.EntityAnnotation result = new com.google.cloud.vision.v1p3beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -1007,39 +938,38 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.EntityAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.EntityAnnotation)other); } else { super.mergeFrom(other); return this; @@ -1047,8 +977,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1091,10 +1020,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1118,10 +1046,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1146,8 +1073,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1156,13 +1082,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mid_ = ""; /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1170,13 +1093,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1185,8 +1108,6 @@ public java.lang.String getMid() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1194,14 +1115,15 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1209,8 +1131,6 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1218,22 +1138,20 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1241,18 +1159,15 @@ public Builder setMid(java.lang.String value) {
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1260,16 +1175,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1277,21 +1192,19 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object locale_ = ""; /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1300,22 +1213,21 @@ public java.lang.String getLocale() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The bytes for locale. */ - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -1323,64 +1235,57 @@ public com.google.protobuf.ByteString getLocaleBytes() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale(java.lang.String value) { + public Builder setLocale( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes(com.google.protobuf.ByteString value) { + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1388,20 +1293,18 @@ public Builder setLocaleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1410,21 +1313,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1432,76 +1334,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1509,45 +1401,37 @@ public float getScore() { return score_; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1557,7 +1441,6 @@ public Builder clearScore() {
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1565,8 +1448,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1576,19 +1457,16 @@ public float getConfidence() {
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1598,20 +1476,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_; + private float topicality_ ; /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1621,7 +1496,6 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -1629,8 +1503,6 @@ public float getTopicality() { return topicality_; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1640,19 +1512,16 @@ public float getTopicality() {
      * 
* * float topicality = 6; - * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1662,11 +1531,10 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; - * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1674,49 +1542,36 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1738,8 +1593,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1759,8 +1612,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1772,9 +1623,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1786,8 +1635,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1807,8 +1654,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1817,13 +1662,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1835,14 +1678,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1851,42 +1691,32 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ =
-            new java.util.ArrayList(locations_);
+        locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.LocationInfo,
-            com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>
-        locationsBuilder_;
+        com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder> locationsBuilder_;
 
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1905,8 +1735,6 @@ public java.util.List getLocatio
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1925,8 +1753,6 @@ public int getLocationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1945,8 +1771,6 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1957,7 +1781,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
+    public Builder setLocations(
+        int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1971,8 +1796,6 @@ public Builder setLocations(int index, com.google.cloud.vision.v1p3beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1995,8 +1818,6 @@ public Builder setLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2021,8 +1842,6 @@ public Builder addLocations(com.google.cloud.vision.v1p3beta1.LocationInfo value
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2033,7 +1852,8 @@ public Builder addLocations(com.google.cloud.vision.v1p3beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
+    public Builder addLocations(
+        int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2047,8 +1867,6 @@ public Builder addLocations(int index, com.google.cloud.vision.v1p3beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2071,8 +1889,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2095,8 +1911,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2111,7 +1925,8 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -2119,8 +1934,6 @@ public Builder addAllLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2142,8 +1955,6 @@ public Builder clearLocations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2165,8 +1976,6 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2177,12 +1986,11 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilder(
+        int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2196,14 +2004,11 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);
-      } else {
+        return locations_.get(index);  } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2214,8 +2019,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsOrBuilderList() {
+    public java.util.List 
+         getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2223,8 +2028,6 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2236,12 +2039,10 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2252,13 +2053,12 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder(int index) {
-      return getLocationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder(
+        int index) {
+      return getLocationsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2269,48 +2069,38 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsBuilderList() {
+    public java.util.List 
+         getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.LocationInfo,
-            com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>
+        com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder> 
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.LocationInfo,
-                com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
-                com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>(
-                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>(
+                locations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ =
-            new java.util.ArrayList(properties_);
+        properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Property,
-            com.google.cloud.vision.v1p3beta1.Property.Builder,
-            com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>
-        propertiesBuilder_;
+        com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder> propertiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2326,8 +2116,6 @@ public java.util.List getPropertiesL
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2343,8 +2131,6 @@ public int getPropertiesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2360,8 +2146,6 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2369,7 +2153,8 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public Builder setProperties(int index, com.google.cloud.vision.v1p3beta1.Property value) {
+    public Builder setProperties(
+        int index, com.google.cloud.vision.v1p3beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2383,8 +2168,6 @@ public Builder setProperties(int index, com.google.cloud.vision.v1p3beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2404,8 +2187,6 @@ public Builder setProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2427,8 +2208,6 @@ public Builder addProperties(com.google.cloud.vision.v1p3beta1.Property value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2436,7 +2215,8 @@ public Builder addProperties(com.google.cloud.vision.v1p3beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public Builder addProperties(int index, com.google.cloud.vision.v1p3beta1.Property value) {
+    public Builder addProperties(
+        int index, com.google.cloud.vision.v1p3beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2450,8 +2230,6 @@ public Builder addProperties(int index, com.google.cloud.vision.v1p3beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2471,8 +2249,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2492,8 +2268,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2505,7 +2279,8 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2513,8 +2288,6 @@ public Builder addAllProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2533,8 +2306,6 @@ public Builder clearProperties() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2553,8 +2324,6 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2562,12 +2331,11 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(
+        int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2575,16 +2343,14 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
+        int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);
-      } else {
+        return properties_.get(index);  } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2592,8 +2358,8 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesOrBuilderList() {
+    public java.util.List 
+         getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2601,8 +2367,6 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2611,12 +2375,10 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2624,13 +2386,12 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(int index) {
-      return getPropertiesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(
+        int index) {
+      return getPropertiesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2638,30 +2399,27 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesBuilderList() {
+    public java.util.List 
+         getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Property,
-            com.google.cloud.vision.v1p3beta1.Property.Builder,
-            com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder> 
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.Property,
-                com.google.cloud.vision.v1p3beta1.Property.Builder,
-                com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>(
-                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>(
+                properties_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2671,12 +2429,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p3beta1.EntityAnnotation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.EntityAnnotation();
   }
@@ -2685,16 +2443,16 @@ public static com.google.cloud.vision.v1p3beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public EntityAnnotation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new EntityAnnotation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntityAnnotation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new EntityAnnotation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2709,4 +2467,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
index 08df3bf07..a8b7a9b69 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface EntityAnnotationOrBuilder
-    extends
+public interface EntityAnnotationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -33,13 +15,10 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -47,79 +26,64 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ java.lang.String getLocale(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ - com.google.protobuf.ByteString getLocaleBytes(); + com.google.protobuf.ByteString + getLocaleBytes(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -129,14 +93,11 @@ public interface EntityAnnotationOrBuilder
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -146,40 +107,31 @@ public interface EntityAnnotationOrBuilder
    * 
* * float topicality = 6; - * * @return The topicality. */ float getTopicality(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -190,8 +142,6 @@ public interface EntityAnnotationOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -202,10 +152,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  java.util.List getLocationsList();
+  java.util.List 
+      getLocationsList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -218,8 +167,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index);
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -232,8 +179,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getLocationsCount();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -244,11 +189,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  java.util.List
+  java.util.List 
       getLocationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -259,11 +202,10 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
+  com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -271,10 +213,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  java.util.List getPropertiesList();
+  java.util.List 
+      getPropertiesList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -284,8 +225,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p3beta1.Property getProperties(int index);
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -295,8 +234,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -304,11 +241,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  java.util.List
+  java.util.List 
       getPropertiesOrBuilderList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -316,5 +251,6 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
+  com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
similarity index 77%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
index 8d1e5cc90..2df9bc020 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation} */ -public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.FaceAnnotation) FaceAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -50,15 +32,16 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,133 +61,115 @@ private FaceAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); - } - fdBoundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark>(); - mutable_bitField0_ |= 0x00000001; - } - landmarks_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.parser(), - extensionRegistry)); - break; - } - case 37: - { - rollAngle_ = input.readFloat(); - break; - } - case 45: - { - panAngle_ = input.readFloat(); - break; - } - case 53: - { - tiltAngle_ = input.readFloat(); - break; - } - case 61: - { - detectionConfidence_ = input.readFloat(); - break; + + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); } - case 69: - { - landmarkingConfidence_ = input.readFloat(); - break; + fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); } - case 72: - { - int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + landmarks_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); + break; + } + case 37: { - sorrowLikelihood_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + rollAngle_ = input.readFloat(); + break; + } + case 45: { - angerLikelihood_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + panAngle_ = input.readFloat(); + break; + } + case 53: { - surpriseLikelihood_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); + tiltAngle_ = input.readFloat(); + break; + } + case 61: { - underExposedLikelihood_ = rawValue; - break; - } - case 112: - { - int rawValue = input.readEnum(); + detectionConfidence_ = input.readFloat(); + break; + } + case 69: { - blurredLikelihood_ = rawValue; - break; - } - case 120: - { - int rawValue = input.readEnum(); + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + joyLikelihood_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); + + sorrowLikelihood_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + angerLikelihood_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + surpriseLikelihood_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + underExposedLikelihood_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + blurredLikelihood_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + headwearLikelihood_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -212,7 +177,8 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -221,79 +187,61 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder - extends + public interface LandmarkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return The position. */ com.google.cloud.vision.v1p3beta1.Position getPosition(); /** - * - * *
      * Face landmark position.
      * 
@@ -303,39 +251,37 @@ public interface LandmarkOrBuilder com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Landmark extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -354,36 +300,32 @@ private Landmark( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.vision.v1p3beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p3beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; + position_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -391,31 +333,27 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); } /** - * - * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -425,10 +363,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -437,8 +374,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_LANDMARK(0), /** - * - * *
        * Left eye.
        * 
@@ -447,8 +382,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE(1), /** - * - * *
        * Right eye.
        * 
@@ -457,8 +390,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE(2), /** - * - * *
        * Left of left eyebrow.
        * 
@@ -467,8 +398,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_LEFT_EYEBROW(3), /** - * - * *
        * Right of left eyebrow.
        * 
@@ -477,8 +406,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_LEFT_EYEBROW(4), /** - * - * *
        * Left of right eyebrow.
        * 
@@ -487,8 +414,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_RIGHT_EYEBROW(5), /** - * - * *
        * Right of right eyebrow.
        * 
@@ -497,8 +422,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_RIGHT_EYEBROW(6), /** - * - * *
        * Midpoint between eyes.
        * 
@@ -507,8 +430,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MIDPOINT_BETWEEN_EYES(7), /** - * - * *
        * Nose tip.
        * 
@@ -517,8 +438,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_TIP(8), /** - * - * *
        * Upper lip.
        * 
@@ -527,8 +446,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UPPER_LIP(9), /** - * - * *
        * Lower lip.
        * 
@@ -537,8 +454,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOWER_LIP(10), /** - * - * *
        * Mouth left.
        * 
@@ -547,8 +462,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_LEFT(11), /** - * - * *
        * Mouth right.
        * 
@@ -557,8 +470,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_RIGHT(12), /** - * - * *
        * Mouth center.
        * 
@@ -567,8 +478,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_CENTER(13), /** - * - * *
        * Nose, bottom right.
        * 
@@ -577,8 +486,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_RIGHT(14), /** - * - * *
        * Nose, bottom left.
        * 
@@ -587,8 +494,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_LEFT(15), /** - * - * *
        * Nose, bottom center.
        * 
@@ -597,8 +502,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_CENTER(16), /** - * - * *
        * Left eye, top boundary.
        * 
@@ -607,8 +510,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_TOP_BOUNDARY(17), /** - * - * *
        * Left eye, right corner.
        * 
@@ -617,8 +518,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_RIGHT_CORNER(18), /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -627,8 +526,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** - * - * *
        * Left eye, left corner.
        * 
@@ -637,8 +534,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_LEFT_CORNER(20), /** - * - * *
        * Right eye, top boundary.
        * 
@@ -647,8 +542,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_TOP_BOUNDARY(21), /** - * - * *
        * Right eye, right corner.
        * 
@@ -657,8 +550,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_RIGHT_CORNER(22), /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -667,8 +558,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** - * - * *
        * Right eye, left corner.
        * 
@@ -677,8 +566,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_LEFT_CORNER(24), /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -687,8 +574,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -697,8 +582,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** - * - * *
        * Left ear tragion.
        * 
@@ -707,8 +590,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EAR_TRAGION(27), /** - * - * *
        * Right ear tragion.
        * 
@@ -717,8 +598,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EAR_TRAGION(28), /** - * - * *
        * Left eye pupil.
        * 
@@ -727,8 +606,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_PUPIL(29), /** - * - * *
        * Right eye pupil.
        * 
@@ -737,8 +614,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_PUPIL(30), /** - * - * *
        * Forehead glabella.
        * 
@@ -747,8 +622,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FOREHEAD_GLABELLA(31), /** - * - * *
        * Chin gnathion.
        * 
@@ -757,8 +630,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_GNATHION(32), /** - * - * *
        * Chin left gonion.
        * 
@@ -767,8 +638,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_LEFT_GONION(33), /** - * - * *
        * Chin right gonion.
        * 
@@ -780,8 +649,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -790,8 +657,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** - * - * *
        * Left eye.
        * 
@@ -800,8 +665,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_VALUE = 1; /** - * - * *
        * Right eye.
        * 
@@ -810,8 +673,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_VALUE = 2; /** - * - * *
        * Left of left eyebrow.
        * 
@@ -820,8 +681,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** - * - * *
        * Right of left eyebrow.
        * 
@@ -830,8 +689,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** - * - * *
        * Left of right eyebrow.
        * 
@@ -840,8 +697,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** - * - * *
        * Right of right eyebrow.
        * 
@@ -850,8 +705,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** - * - * *
        * Midpoint between eyes.
        * 
@@ -860,8 +713,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** - * - * *
        * Nose tip.
        * 
@@ -870,8 +721,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_TIP_VALUE = 8; /** - * - * *
        * Upper lip.
        * 
@@ -880,8 +729,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPPER_LIP_VALUE = 9; /** - * - * *
        * Lower lip.
        * 
@@ -890,8 +737,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOWER_LIP_VALUE = 10; /** - * - * *
        * Mouth left.
        * 
@@ -900,8 +745,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_LEFT_VALUE = 11; /** - * - * *
        * Mouth right.
        * 
@@ -910,8 +753,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_RIGHT_VALUE = 12; /** - * - * *
        * Mouth center.
        * 
@@ -920,8 +761,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_CENTER_VALUE = 13; /** - * - * *
        * Nose, bottom right.
        * 
@@ -930,8 +769,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** - * - * *
        * Nose, bottom left.
        * 
@@ -940,8 +777,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** - * - * *
        * Nose, bottom center.
        * 
@@ -950,8 +785,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** - * - * *
        * Left eye, top boundary.
        * 
@@ -960,8 +793,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** - * - * *
        * Left eye, right corner.
        * 
@@ -970,8 +801,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -980,8 +809,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** - * - * *
        * Left eye, left corner.
        * 
@@ -990,8 +817,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** - * - * *
        * Right eye, top boundary.
        * 
@@ -1000,8 +825,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** - * - * *
        * Right eye, right corner.
        * 
@@ -1010,8 +833,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -1020,8 +841,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** - * - * *
        * Right eye, left corner.
        * 
@@ -1030,8 +849,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -1040,8 +857,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -1050,8 +865,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** - * - * *
        * Left ear tragion.
        * 
@@ -1060,8 +873,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** - * - * *
        * Right ear tragion.
        * 
@@ -1070,8 +881,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** - * - * *
        * Left eye pupil.
        * 
@@ -1080,8 +889,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** - * - * *
        * Right eye pupil.
        * 
@@ -1090,8 +897,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** - * - * *
        * Forehead glabella.
        * 
@@ -1100,8 +905,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** - * - * *
        * Chin gnathion.
        * 
@@ -1110,8 +913,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_GNATHION_VALUE = 32; /** - * - * *
        * Chin left gonion.
        * 
@@ -1120,8 +921,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** - * - * *
        * Chin right gonion.
        * 
@@ -1130,6 +929,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_RIGHT_GONION_VALUE = 34; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1154,115 +954,81 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return UNKNOWN_LANDMARK; - case 1: - return LEFT_EYE; - case 2: - return RIGHT_EYE; - case 3: - return LEFT_OF_LEFT_EYEBROW; - case 4: - return RIGHT_OF_LEFT_EYEBROW; - case 5: - return LEFT_OF_RIGHT_EYEBROW; - case 6: - return RIGHT_OF_RIGHT_EYEBROW; - case 7: - return MIDPOINT_BETWEEN_EYES; - case 8: - return NOSE_TIP; - case 9: - return UPPER_LIP; - case 10: - return LOWER_LIP; - case 11: - return MOUTH_LEFT; - case 12: - return MOUTH_RIGHT; - case 13: - return MOUTH_CENTER; - case 14: - return NOSE_BOTTOM_RIGHT; - case 15: - return NOSE_BOTTOM_LEFT; - case 16: - return NOSE_BOTTOM_CENTER; - case 17: - return LEFT_EYE_TOP_BOUNDARY; - case 18: - return LEFT_EYE_RIGHT_CORNER; - case 19: - return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: - return LEFT_EYE_LEFT_CORNER; - case 21: - return RIGHT_EYE_TOP_BOUNDARY; - case 22: - return RIGHT_EYE_RIGHT_CORNER; - case 23: - return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: - return RIGHT_EYE_LEFT_CORNER; - case 25: - return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: - return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: - return LEFT_EAR_TRAGION; - case 28: - return RIGHT_EAR_TRAGION; - case 29: - return LEFT_EYE_PUPIL; - case 30: - return RIGHT_EYE_PUPIL; - case 31: - return FOREHEAD_GLABELLA; - case 32: - return CHIN_GNATHION; - case 33: - return CHIN_LEFT_GONION; - case 34: - return CHIN_RIGHT_GONION; - default: - return null; + case 0: return UNKNOWN_LANDMARK; + case 1: return LEFT_EYE; + case 2: return RIGHT_EYE; + case 3: return LEFT_OF_LEFT_EYEBROW; + case 4: return RIGHT_OF_LEFT_EYEBROW; + case 5: return LEFT_OF_RIGHT_EYEBROW; + case 6: return RIGHT_OF_RIGHT_EYEBROW; + case 7: return MIDPOINT_BETWEEN_EYES; + case 8: return NOSE_TIP; + case 9: return UPPER_LIP; + case 10: return LOWER_LIP; + case 11: return MOUTH_LEFT; + case 12: return MOUTH_RIGHT; + case 13: return MOUTH_CENTER; + case 14: return NOSE_BOTTOM_RIGHT; + case 15: return NOSE_BOTTOM_LEFT; + case 16: return NOSE_BOTTOM_CENTER; + case 17: return LEFT_EYE_TOP_BOUNDARY; + case 18: return LEFT_EYE_RIGHT_CORNER; + case 19: return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: return LEFT_EYE_LEFT_CORNER; + case 21: return RIGHT_EYE_TOP_BOUNDARY; + case 22: return RIGHT_EYE_RIGHT_CORNER; + case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: return RIGHT_EYE_LEFT_CORNER; + case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: return LEFT_EAR_TRAGION; + case 28: return RIGHT_EAR_TRAGION; + case 29: return LEFT_EYE_PUPIL; + case 30: return RIGHT_EYE_PUPIL; + case 31: return FOREHEAD_GLABELLA; + case 32: return CHIN_GNATHION; + case 33: return CHIN_LEFT_GONION; + case 34: return CHIN_RIGHT_GONION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1282,52 +1048,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.Position position_; /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return Whether the position field is set. */ @java.lang.Override @@ -1335,25 +1087,18 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Position getPosition() { - return position_ == null - ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; } /** - * - * *
      * Face landmark position.
      * 
@@ -1366,7 +1111,6 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1378,10 +1122,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1396,13 +1139,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1412,18 +1155,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other = - (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1448,94 +1191,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1545,32 +1281,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.newBuilder() @@ -1578,15 +1309,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1602,9 +1334,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1623,8 +1355,7 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark result = - new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1639,41 +1370,38 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark)other); } else { super.mergeFrom(other); return this; @@ -1681,8 +1409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1708,8 +1435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1721,67 +1447,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1789,24 +1499,21 @@ public Builder setType(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1814,47 +1521,34 @@ public Builder clearType() { private com.google.cloud.vision.v1p3beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, - com.google.cloud.vision.v1p3beta1.Position.Builder, - com.google.cloud.vision.v1p3beta1.PositionOrBuilder> - positionBuilder_; + com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder> positionBuilder_; /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; - * * @return The position. */ public com.google.cloud.vision.v1p3beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** - * - * *
        * Face landmark position.
        * 
@@ -1875,8 +1569,6 @@ public Builder setPosition(com.google.cloud.vision.v1p3beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1895,8 +1587,6 @@ public Builder setPosition( return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1907,9 +1597,7 @@ public Builder mergePosition(com.google.cloud.vision.v1p3beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p3beta1.Position.newBuilder(position_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } @@ -1921,8 +1609,6 @@ public Builder mergePosition(com.google.cloud.vision.v1p3beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1941,8 +1627,6 @@ public Builder clearPosition() { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1950,13 +1634,11 @@ public Builder clearPosition() { * .google.cloud.vision.v1p3beta1.Position position = 4; */ public com.google.cloud.vision.v1p3beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Face landmark position.
        * 
@@ -1967,14 +1649,11 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; } } /** - * - * *
        * Face landmark position.
        * 
@@ -1982,22 +1661,18 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p3beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, - com.google.cloud.vision.v1p3beta1.Position.Builder, - com.google.cloud.vision.v1p3beta1.PositionOrBuilder> + com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, - com.google.cloud.vision.v1p3beta1.Position.Builder, - com.google.cloud.vision.v1p3beta1.PositionOrBuilder>( - getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2010,12 +1685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(); } @@ -2024,16 +1699,16 @@ public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2048,13 +1723,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2066,7 +1740,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2074,8 +1747,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2087,18 +1758,13 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -2119,8 +1785,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p3beta1.BoundingPoly fdBoundingPoly_;
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2131,7 +1795,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -2139,8 +1802,6 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2151,18 +1812,13 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2182,8 +1838,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
@@ -2191,13 +1845,10 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2205,14 +1856,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2224,8 +1872,6 @@ public int getLandmarksCount() { return landmarks_.size(); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2237,8 +1883,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2254,8 +1898,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -2263,7 +1905,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -2274,8 +1915,6 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -2283,7 +1922,6 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -2294,15 +1932,12 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -2313,14 +1948,11 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -2331,14 +1963,11 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2349,257 +1978,193 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2611,7 +2176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2648,8 +2214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (surpriseLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2668,50 +2233,64 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2721,33 +2300,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.FaceAnnotation other = - (com.google.cloud.vision.v1p3beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p3beta1.FaceAnnotation other = (com.google.cloud.vision.v1p3beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly() + .equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getLandmarksList() + .equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2779,15 +2365,20 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2807,127 +2398,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.FaceAnnotation) com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.FaceAnnotation.newBuilder() @@ -2935,17 +2517,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2995,9 +2577,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -3016,8 +2598,7 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.FaceAnnotation result = - new com.google.cloud.vision.v1p3beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p3beta1.FaceAnnotation result = new com.google.cloud.vision.v1p3beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -3058,39 +2639,38 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation)other); } else { super.mergeFrom(other); return this; @@ -3098,8 +2678,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -3124,10 +2703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarksFieldBuilder() - : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarksFieldBuilder() : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -3197,18 +2775,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3220,15 +2792,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3240,21 +2809,16 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3281,8 +2845,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3307,8 +2869,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3325,9 +2885,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3339,8 +2897,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3365,8 +2921,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3380,13 +2934,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3403,14 +2955,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -3424,17 +2973,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3442,13 +2988,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p3beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
-        fdBoundingPolyBuilder_;
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3459,15 +3000,12 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3478,21 +3016,16 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3518,8 +3051,6 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3543,8 +3074,6 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3560,9 +3089,7 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3574,8 +3101,6 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPol
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3599,8 +3124,6 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3613,13 +3136,11 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-
+      
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3635,14 +3156,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : fdBoundingPoly_;
+        return fdBoundingPoly_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3655,51 +3173,39 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(), getParentForChildren(), isClean());
+        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ =
-            new java.util.ArrayList(
-                landmarks_);
+        landmarks_ = new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark,
-            com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder,
-            com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>
-        landmarksBuilder_;
+        com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
 
     /**
-     *
-     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3707,8 +3213,6 @@ private void ensureLandmarksIsMutable() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3723,8 +3227,6 @@ public int getLandmarksCount() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3739,8 +3241,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(in } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3762,8 +3262,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3771,8 +3269,7 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3783,8 +3280,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3805,8 +3300,6 @@ public Builder addLandmarks(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Lan return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3828,8 +3321,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3848,8 +3339,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3857,8 +3346,7 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3869,8 +3357,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3878,11 +3364,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3890,8 +3376,6 @@ public Builder addAllLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3909,8 +3393,6 @@ public Builder clearLandmarks() { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3928,8 +3410,6 @@ public Builder removeLandmarks(int index) { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3941,8 +3421,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3952,23 +3430,19 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); - } else { + return landmarks_.get(index); } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3976,8 +3450,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3985,13 +3457,10 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4000,46 +3469,37 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_; + private float rollAngle_ ; /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4047,7 +3507,6 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -4055,8 +3514,6 @@ public float getRollAngle() { return rollAngle_; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4064,19 +3521,16 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; - * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4084,20 +3538,17 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; - * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_; + private float panAngle_ ; /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4105,7 +3556,6 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -4113,8 +3563,6 @@ public float getPanAngle() { return panAngle_; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4122,19 +3570,16 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; - * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4142,27 +3587,23 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; - * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_; + private float tiltAngle_ ; /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -4170,53 +3611,44 @@ public float getTiltAngle() { return tiltAngle_; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_; + private float detectionConfidence_ ; /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -4224,51 +3656,42 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_; + private float landmarkingConfidence_ ; /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -4276,36 +3699,30 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -4313,65 +3730,51 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -4379,24 +3782,21 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -4404,65 +3804,51 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4470,24 +3856,21 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4495,65 +3878,51 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4561,24 +3930,21 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4586,65 +3952,51 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4652,24 +4004,21 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p3beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4677,65 +4026,51 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4743,24 +4078,21 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p3beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4768,65 +4100,51 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4834,24 +4152,21 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4859,65 +4174,51 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4925,31 +4226,28 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p3beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4959,12 +4257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p3beta1.FaceAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.FaceAnnotation(); } @@ -4973,16 +4271,16 @@ public static com.google.cloud.vision.v1p3beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4997,4 +4295,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java index 677c0767b..575709920 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface FaceAnnotationOrBuilder - extends +public interface FaceAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -37,13 +19,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -55,13 +34,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -77,8 +53,6 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -89,13 +63,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -106,13 +77,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -127,18 +95,15 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List getLandmarksList(); + java.util.List + getLandmarksList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -147,8 +112,6 @@ public interface FaceAnnotationOrBuilder */ com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(int index); /** - * - * *
    * Detected face landmarks.
    * 
@@ -157,19 +120,15 @@ public interface FaceAnnotationOrBuilder */ int getLandmarksCount(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -180,8 +139,6 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -189,14 +146,11 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ float getRollAngle(); /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -204,222 +158,170 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ float getPanAngle(); /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ float getTiltAngle(); /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ float getDetectionConfidence(); /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java index bdd7408b0..19af408e7 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Feature}
  */
-public final class Feature extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Feature extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Feature)
     FeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -46,15 +28,16 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,30 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              maxResults_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              model_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maxResults_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,41 +87,36 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Feature.class,
-            com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Feature.class, com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified feature type.
      * 
@@ -149,8 +125,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Run face detection.
      * 
@@ -159,8 +133,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FACE_DETECTION(1), /** - * - * *
      * Run landmark detection.
      * 
@@ -169,8 +141,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LANDMARK_DETECTION(2), /** - * - * *
      * Run logo detection.
      * 
@@ -179,8 +149,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOGO_DETECTION(3), /** - * - * *
      * Run label detection.
      * 
@@ -189,8 +157,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LABEL_DETECTION(4), /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -201,8 +167,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     TEXT_DETECTION(5),
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -212,8 +176,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -223,8 +185,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     SAFE_SEARCH_DETECTION(6),
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -234,8 +194,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     IMAGE_PROPERTIES(7),
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -244,8 +202,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CROP_HINTS(9), /** - * - * *
      * Run web detection.
      * 
@@ -254,8 +210,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ WEB_DETECTION(10), /** - * - * *
      * Run Product Search.
      * 
@@ -264,8 +218,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PRODUCT_SEARCH(12), /** - * - * *
      * Run localizer for object detection.
      * 
@@ -277,8 +229,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified feature type.
      * 
@@ -287,8 +237,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Run face detection.
      * 
@@ -297,8 +245,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACE_DETECTION_VALUE = 1; /** - * - * *
      * Run landmark detection.
      * 
@@ -307,8 +253,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LANDMARK_DETECTION_VALUE = 2; /** - * - * *
      * Run logo detection.
      * 
@@ -317,8 +261,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOGO_DETECTION_VALUE = 3; /** - * - * *
      * Run label detection.
      * 
@@ -327,8 +269,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LABEL_DETECTION_VALUE = 4; /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -339,8 +279,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -350,8 +288,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -361,8 +297,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -372,8 +306,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -382,8 +314,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CROP_HINTS_VALUE = 9; /** - * - * *
      * Run web detection.
      * 
@@ -392,8 +322,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEB_DETECTION_VALUE = 10; /** - * - * *
      * Run Product Search.
      * 
@@ -402,8 +330,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_SEARCH_VALUE = 12; /** - * - * *
      * Run localizer for object detection.
      * 
@@ -412,6 +338,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBJECT_LOCALIZATION_VALUE = 19; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,69 +363,59 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return FACE_DETECTION; - case 2: - return LANDMARK_DETECTION; - case 3: - return LOGO_DETECTION; - case 4: - return LABEL_DETECTION; - case 5: - return TEXT_DETECTION; - case 11: - return DOCUMENT_TEXT_DETECTION; - case 6: - return SAFE_SEARCH_DETECTION; - case 7: - return IMAGE_PROPERTIES; - case 9: - return CROP_HINTS; - case 10: - return WEB_DETECTION; - case 12: - return PRODUCT_SEARCH; - case 19: - return OBJECT_LOCALIZATION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return FACE_DETECTION; + case 2: return LANDMARK_DETECTION; + case 3: return LOGO_DETECTION; + case 4: return LABEL_DETECTION; + case 5: return TEXT_DETECTION; + case 11: return DOCUMENT_TEXT_DETECTION; + case 6: return SAFE_SEARCH_DETECTION; + case 7: return IMAGE_PROPERTIES; + case 9: return CROP_HINTS; + case 10: return WEB_DETECTION; + case 12: return PRODUCT_SEARCH; + case 19: return OBJECT_LOCALIZATION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p3beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -518,51 +435,39 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Feature.Type result = - com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p3beta1.Feature.Type result = com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p3beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -573,8 +478,6 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -582,7 +485,6 @@ public int getMaxResults() {
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -591,15 +493,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -607,15 +508,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -624,7 +526,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,7 +537,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p3beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -656,10 +558,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p3beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -672,17 +576,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Feature other = - (com.google.cloud.vision.v1p3beta1.Feature) obj; + com.google.cloud.vision.v1p3beta1.Feature other = (com.google.cloud.vision.v1p3beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() != other.getMaxResults()) return false; - if (!getModel().equals(other.getModel())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -705,104 +610,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -811,23 +709,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Feature}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Feature)
       com.google.cloud.vision.v1p3beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Feature.class,
-              com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Feature.class, com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Feature.newBuilder()
@@ -835,15 +731,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -857,9 +754,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -878,8 +775,7 @@ public com.google.cloud.vision.v1p3beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Feature result =
-          new com.google.cloud.vision.v1p3beta1.Feature(this);
+      com.google.cloud.vision.v1p3beta1.Feature result = new com.google.cloud.vision.v1p3beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -891,39 +787,38 @@ public com.google.cloud.vision.v1p3beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Feature) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Feature)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -973,65 +868,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Feature.Type result = - com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p3beta1.Feature.Type result = com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p3beta1.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1039,40 +920,34 @@ public Builder setType(com.google.cloud.vision.v1p3beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -1080,38 +955,32 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -1119,8 +988,6 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1128,13 +995,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1143,8 +1010,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1152,14 +1017,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1167,8 +1033,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1176,22 +1040,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1199,18 +1061,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1218,23 +1077,23 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Feature) private static final com.google.cloud.vision.v1p3beta1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Feature(); } @@ -1258,16 +1117,16 @@ public static com.google.cloud.vision.v1p3beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1141,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java index 47fdca977..513131677 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java @@ -1,70 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.vision.v1p3beta1.Feature.Type getType(); /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -72,13 +45,10 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -86,8 +56,8 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java index 34049189b..13ad7742f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsDestination.class, - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsDestination.class, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -134,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -143,15 +120,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -168,15 +144,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -185,7 +162,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -221,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GcsDestination other = - (com.google.cloud.vision.v1p3beta1.GcsDestination) obj; + com.google.cloud.vision.v1p3beta1.GcsDestination other = (com.google.cloud.vision.v1p3beta1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,127 +225,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GcsDestination) com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsDestination.class, - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsDestination.class, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder() @@ -376,15 +344,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -415,8 +384,7 @@ public com.google.cloud.vision.v1p3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p3beta1.GcsDestination result = - new com.google.cloud.vision.v1p3beta1.GcsDestination(this); + com.google.cloud.vision.v1p3beta1.GcsDestination result = new com.google.cloud.vision.v1p3beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -426,39 +394,38 @@ public com.google.cloud.vision.v1p3beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -466,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -503,8 +469,6 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -521,13 +485,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -536,8 +500,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -554,14 +516,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -569,8 +532,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -587,22 +548,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -619,18 +578,15 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -647,23 +603,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -673,12 +629,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsDestination) private static final com.google.cloud.vision.v1p3beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GcsDestination(); } @@ -687,16 +643,16 @@ public static com.google.cloud.vision.v1p3beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,4 +667,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java index 3626164dd..a1c55c5f6 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -42,13 +24,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -65,8 +44,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java similarity index 70% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java index 9eb0c7834..ee6f2fd82 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsSource.class, - com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsSource.class, com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GcsSource other = - (com.google.cloud.vision.v1p3beta1.GcsSource) obj; + com.google.cloud.vision.v1p3beta1.GcsSource other = (com.google.cloud.vision.v1p3beta1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GcsSource) com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsSource.class, - com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsSource.class, com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.vision.v1p3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p3beta1.GcsSource result = - new com.google.cloud.vision.v1p3beta1.GcsSource(this); + com.google.cloud.vision.v1p3beta1.GcsSource result = new com.google.cloud.vision.v1p3beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.vision.v1p3beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsSource) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -482,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -505,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -528,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsSource) private static final com.google.cloud.vision.v1p3beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GcsSource(); } @@ -616,16 +573,16 @@ public static com.google.cloud.vision.v1p3beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java similarity index 53% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java index d909e4c25..72e211a1b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java new file mode 100644 index 000000000..842a47547 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class GeometryProto { + private GeometryProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p3beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p3beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + + "d.vision.v1p3beta1.Vertex\022L\n\023normalized_" + + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + + "3beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.goo" + + "gle.cloud.vision.v1p3beta1B\rGeometryProt" + + "oP\001ZCgoogle.golang.org/genproto/googleap" + + "is/cloud/vision/v1p3beta1;vision\370\001\001\242\002\004GC" + + "VNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor, + new java.lang.String[] { "Vertices", "NormalizedVertices", }); + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor, + new java.lang.String[] { "X", "Y", "Z", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java index bc8cfe1bb..9a085c0ab 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `GetProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductRequest} */ -public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetProductRequest) GetProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductRequest.class, - com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductRequest.class, com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetProductRequest other = - (com.google.cloud.vision.v1p3beta1.GetProductRequest) obj; + com.google.cloud.vision.v1p3beta1.GetProductRequest other = (com.google.cloud.vision.v1p3beta1.GetProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetProductRequest) com.google.cloud.vision.v1p3beta1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductRequest.class, - com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductRequest.class, com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetProductRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetProductRequest result = - new com.google.cloud.vision.v1p3beta1.GetProductRequest(this); + com.google.cloud.vision.v1p3beta1.GetProductRequest result = new com.google.cloud.vision.v1p3beta1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.GetProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.GetProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductRequest) private static final com.google.cloud.vision.v1p3beta1.GetProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetProductRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.GetProductRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..95d3405ba --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java index 0801f7a3f..f2c4da83b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductSetRequest} */ -public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetProductSetRequest) GetProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.GetProductSetRequest other = (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetProductSetRequest) com.google.cloud.vision.v1p3beta1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetProductSetRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest result = new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.GetProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..eadfb3714 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java index 4e1fa3843..9aa221b1e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other = - (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) com.google.cloud.vision.v1p3beta1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest result = - new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..de9c89d5c --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java index aa5bc90e6..7e3f7392c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,31 @@ private Image( case 0: done = true; break; - case 10: - { - content_ = input.readBytes(); - break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,33 +85,29 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Image.class, - com.google.cloud.vision.v1p3beta1.Image.Builder.class); + com.google.cloud.vision.v1p3beta1.Image.class, com.google.cloud.vision.v1p3beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -139,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -150,8 +125,6 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ImageSource source_; /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -159,7 +132,6 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ @java.lang.Override @@ -167,8 +139,6 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -176,18 +146,13 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageSource getSource() { - return source_ == null - ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -202,7 +167,6 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +178,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -231,10 +196,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,17 +211,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p3beta1.Image other = (com.google.cloud.vision.v1p3beta1.Image) obj;
 
-    if (!getContent().equals(other.getContent())) return false;
+    if (!getContent()
+        .equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,127 +247,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.Image parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Image) com.google.cloud.vision.v1p3beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Image.class, - com.google.cloud.vision.v1p3beta1.Image.Builder.class); + com.google.cloud.vision.v1p3beta1.Image.class, com.google.cloud.vision.v1p3beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Image.newBuilder() @@ -406,15 +366,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override @@ -451,8 +412,7 @@ public com.google.cloud.vision.v1p3beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Image buildPartial() { - com.google.cloud.vision.v1p3beta1.Image result = - new com.google.cloud.vision.v1p3beta1.Image(this); + com.google.cloud.vision.v1p3beta1.Image result = new com.google.cloud.vision.v1p3beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -467,39 +427,38 @@ public com.google.cloud.vision.v1p3beta1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Image) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Image)other); } else { super.mergeFrom(other); return this; @@ -545,8 +504,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -554,7 +511,6 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -562,8 +518,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -571,22 +525,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -594,11 +545,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -606,13 +556,8 @@ public Builder clearContent() { private com.google.cloud.vision.v1p3beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageSource, - com.google.cloud.vision.v1p3beta1.ImageSource.Builder, - com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> - sourceBuilder_; + com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> sourceBuilder_; /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -620,15 +565,12 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -636,21 +578,16 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return The source. */ public com.google.cloud.vision.v1p3beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -673,8 +610,6 @@ public Builder setSource(com.google.cloud.vision.v1p3beta1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -695,8 +630,6 @@ public Builder setSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -709,9 +642,7 @@ public Builder mergeSource(com.google.cloud.vision.v1p3beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-              com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder(source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -723,8 +654,6 @@ public Builder mergeSource(com.google.cloud.vision.v1p3beta1.ImageSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -745,8 +674,6 @@ public Builder clearSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -756,13 +683,11 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p3beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p3beta1.ImageSource.Builder getSourceBuilder() {
-
+      
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -775,14 +700,11 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null
-            ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance()
-            : source_;
+        return source_ == null ?
+            com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_;
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -792,24 +714,21 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p3beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImageSource,
-            com.google.cloud.vision.v1p3beta1.ImageSource.Builder,
-            com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>
+        com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> 
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.ImageSource,
-                com.google.cloud.vision.v1p3beta1.ImageSource.Builder,
-                com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>(
-                getSource(), getParentForChildren(), isClean());
+        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>(
+                getSource(),
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -819,12 +738,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Image)
   private static final com.google.cloud.vision.v1p3beta1.Image DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Image();
   }
@@ -833,16 +752,16 @@ public static com.google.cloud.vision.v1p3beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Image parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Image(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Image parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Image(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -857,4 +776,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
similarity index 70%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
index ffae56643..c2df44d8e 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageAnnotationContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageNumber_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            uri_ = s;
+            break;
+          }
+          case 16: {
+
+            pageNumber_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class,
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
-   *
-   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -188,7 +162,6 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other = - (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) obj; - if (!getUri().equals(other.getUri())) return false; - if (getPageNumber() != other.getPageNumber()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,104 +237,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -366,23 +334,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class,
-              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder()
@@ -390,15 +356,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -431,8 +398,7 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImageAnnotationContext result =
-          new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p3beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -443,39 +409,38 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageAnnotationContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance()) return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -511,8 +475,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -524,20 +487,18 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
-     *
-     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -546,21 +507,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -568,77 +528,67 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_; + private int pageNumber_ ; /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -646,45 +596,39 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,12 +638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p3beta1.ImageAnnotationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(); } @@ -708,16 +652,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java index 8ad293339..07bbbabad 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java @@ -1,63 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageAnnotationContextOrBuilder - extends +public interface ImageAnnotationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..5c81e8c62 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java @@ -0,0 +1,671 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p3beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p3b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032,google/cloud/vision/v1p3be" + + "ta1/geometry.proto\0322google/cloud/vision/" + + "v1p3beta1/product_search.proto\0323google/c" + + "loud/vision/v1p3beta1/text_annotation.pr" + + "oto\0321google/cloud/vision/v1p3beta1/web_d" + + "etection.proto\032#google/longrunning/opera" + + "tions.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\032\027google/ty" + + "pe/color.proto\032\030google/type/latlng.proto" + + "\"\216\003\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.clou" + + "d.vision.v1p3beta1.Feature.Type\022\023\n\013max_r" + + "esults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020" + + "TYPE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026" + + "\n\022LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION" + + "\020\003\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTIO" + + "N\020\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE" + + "_SEARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020" + + "\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016" + + "PRODUCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020" + + "\023\"7\n\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022" + + "\021\n\timage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001" + + " \001(\014\022:\n\006source\030\002 \001(\0132*.google.cloud.visi" + + "on.v1p3beta1.ImageSource\"\233\016\n\016FaceAnnotat" + + "ion\022B\n\rbounding_poly\030\001 \001(\0132+.google.clou" + + "d.vision.v1p3beta1.BoundingPoly\022E\n\020fd_bo" + + "unding_poly\030\002 \001(\0132+.google.cloud.vision." + + "v1p3beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(" + + "\01326.google.cloud.vision.v1p3beta1.FaceAn" + + "notation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n" + + "\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024" + + "detection_confidence\030\007 \001(\002\022\036\n\026landmarkin" + + "g_confidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001" + + "(\0162).google.cloud.vision.v1p3beta1.Likel" + + "ihood\022D\n\021sorrow_likelihood\030\n \001(\0162).googl" + + "e.cloud.vision.v1p3beta1.Likelihood\022C\n\020a" + + "nger_likelihood\030\013 \001(\0162).google.cloud.vis" + + "ion.v1p3beta1.Likelihood\022F\n\023surprise_lik" + + "elihood\030\014 \001(\0162).google.cloud.vision.v1p3" + + "beta1.Likelihood\022K\n\030under_exposed_likeli" + + "hood\030\r \001(\0162).google.cloud.vision.v1p3bet" + + "a1.Likelihood\022E\n\022blurred_likelihood\030\016 \001(" + + "\0162).google.cloud.vision.v1p3beta1.Likeli" + + "hood\022F\n\023headwear_likelihood\030\017 \001(\0162).goog" + + "le.cloud.vision.v1p3beta1.Likelihood\032\307\007\n" + + "\010Landmark\022I\n\004type\030\003 \001(\0162;.google.cloud.v" + + "ision.v1p3beta1.FaceAnnotation.Landmark." + + "Type\0229\n\010position\030\004 \001(\0132\'.google.cloud.vi" + + "sion.v1p3beta1.Position\"\264\006\n\004Type\022\024\n\020UNKN" + + "OWN_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EY" + + "E\020\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_O" + + "F_LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBRO" + + "W\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPO" + + "INT_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPE" + + "R_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017" + + "\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOS" + + "E_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026" + + "\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_B" + + "OUNDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030" + + "LEFT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_L" + + "EFT_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025" + + "\022\032\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EY" + + "E_BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CO" + + "RNER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022" + + " \n\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEF" + + "T_EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022" + + "\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022" + + "\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020" + + " \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GO" + + "NION\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132" + + "\023.google.type.LatLng\"=\n\010Property\022\014\n\004name" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 " + + "\001(\004\"\274\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n" + + "\006locale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005sc" + + "ore\030\004 \001(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopical" + + "ity\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.googl" + + "e.cloud.vision.v1p3beta1.BoundingPoly\022>\n" + + "\tlocations\030\010 \003(\0132+.google.cloud.vision.v" + + "1p3beta1.LocationInfo\022;\n\nproperties\030\t \003(" + + "\0132\'.google.cloud.vision.v1p3beta1.Proper" + + "ty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mid\030" + + "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003 \001" + + "(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001(\013" + + "2+.google.cloud.vision.v1p3beta1.Boundin" + + "gPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adult\030" + + "\001 \001(\0162).google.cloud.vision.v1p3beta1.Li" + + "kelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud.v" + + "ision.v1p3beta1.Likelihood\022:\n\007medical\030\003 " + + "\001(\0162).google.cloud.vision.v1p3beta1.Like" + + "lihood\022;\n\010violence\030\004 \001(\0162).google.cloud." + + "vision.v1p3beta1.Likelihood\0227\n\004racy\030\t \001(" + + "\0162).google.cloud.vision.v1p3beta1.Likeli" + + "hood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001(\013" + + "2\023.google.type.LatLng\022(\n\013max_lat_lng\030\002 \001" + + "(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!\n\005" + + "color\030\001 \001(\0132\022.google.type.Color\022\r\n\005score" + + "\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domina" + + "ntColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.goo" + + "gle.cloud.vision.v1p3beta1.ColorInfo\"c\n\017" + + "ImageProperties\022P\n\017dominant_colors\030\001 \001(\013" + + "27.google.cloud.vision.v1p3beta1.Dominan" + + "tColorsAnnotation\"\177\n\010CropHint\022B\n\rboundin" + + "g_poly\030\001 \001(\0132+.google.cloud.vision.v1p3b" + + "eta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n" + + "\023importance_fraction\030\003 \001(\002\"R\n\023CropHintsA" + + "nnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google.c" + + "loud.vision.v1p3beta1.CropHint\"(\n\017CropHi" + + "ntsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebD" + + "etectionParams\022\033\n\023include_geo_results\030\002 " + + "\001(\010\"c\n\023TextDetectionParams\022.\n&enable_tex" + + "t_detection_confidence_score\030\t \001(\010\022\034\n\024ad" + + "vanced_ocr_options\030\013 \003(\t\"\253\003\n\014ImageContex" + + "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud." + + "vision.v1p3beta1.LatLongRect\022\026\n\016language" + + "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132" + + "..google.cloud.vision.v1p3beta1.CropHint" + + "sParams\022Q\n\025product_search_params\030\005 \001(\01322" + + ".google.cloud.vision.v1p3beta1.ProductSe" + + "archParams\022O\n\024web_detection_params\030\006 \001(\013" + + "21.google.cloud.vision.v1p3beta1.WebDete" + + "ctionParams\022Q\n\025text_detection_params\030\014 \001" + + "(\01322.google.cloud.vision.v1p3beta1.TextD" + + "etectionParams\"\311\001\n\024AnnotateImageRequest\022" + + "3\n\005image\030\001 \001(\0132$.google.cloud.vision.v1p" + + "3beta1.Image\0228\n\010features\030\002 \003(\0132&.google." + + "cloud.vision.v1p3beta1.Feature\022B\n\rimage_" + + "context\030\003 \001(\0132+.google.cloud.vision.v1p3" + + "beta1.ImageContext\":\n\026ImageAnnotationCon" + + "text\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001(\005\"\277" + + "\010\n\025AnnotateImageResponse\022G\n\020face_annotat" + + "ions\030\001 \003(\0132-.google.cloud.vision.v1p3bet" + + "a1.FaceAnnotation\022M\n\024landmark_annotation" + + "s\030\002 \003(\0132/.google.cloud.vision.v1p3beta1." + + "EntityAnnotation\022I\n\020logo_annotations\030\003 \003" + + "(\0132/.google.cloud.vision.v1p3beta1.Entit" + + "yAnnotation\022J\n\021label_annotations\030\004 \003(\0132/" + + ".google.cloud.vision.v1p3beta1.EntityAnn" + + "otation\022^\n\034localized_object_annotations\030" + + "\026 \003(\01328.google.cloud.vision.v1p3beta1.Lo" + + "calizedObjectAnnotation\022I\n\020text_annotati" + + "ons\030\005 \003(\0132/.google.cloud.vision.v1p3beta" + + "1.EntityAnnotation\022K\n\024full_text_annotati" + + "on\030\014 \001(\0132-.google.cloud.vision.v1p3beta1" + + ".TextAnnotation\022S\n\026safe_search_annotatio" + + "n\030\006 \001(\01323.google.cloud.vision.v1p3beta1." + + "SafeSearchAnnotation\022S\n\033image_properties" + + "_annotation\030\010 \001(\0132..google.cloud.vision." + + "v1p3beta1.ImageProperties\022Q\n\025crop_hints_" + + "annotation\030\013 \001(\01322.google.cloud.vision.v" + + "1p3beta1.CropHintsAnnotation\022B\n\rweb_dete" + + "ction\030\r \001(\0132+.google.cloud.vision.v1p3be" + + "ta1.WebDetection\022S\n\026product_search_resul" + + "ts\030\016 \001(\01323.google.cloud.vision.v1p3beta1" + + ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + + "oogle.rpc.Status\022F\n\007context\030\025 \001(\01325.goog" + + "le.cloud.vision.v1p3beta1.ImageAnnotatio" + + "nContext\"\241\001\n\024AnnotateFileResponse\022@\n\014inp" + + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + + "p3beta1.InputConfig\022G\n\tresponses\030\002 \003(\01324" + + ".google.cloud.vision.v1p3beta1.AnnotateI" + + "mageResponse\"h\n\032BatchAnnotateImagesReque" + + "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi" + + "on.v1p3beta1.AnnotateImageRequestB\003\340A\002\"f" + + "\n\033BatchAnnotateImagesResponse\022G\n\trespons" + + "es\030\001 \003(\01324.google.cloud.vision.v1p3beta1" + + ".AnnotateImageResponse\"\236\002\n\030AsyncAnnotate" + + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + + "le.cloud.vision.v1p3beta1.InputConfig\0228\n" + + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + + "p3beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.ImageCont" + + "ext\022B\n\routput_config\030\004 \001(\0132+.google.clou" + + "d.vision.v1p3beta1.OutputConfig\"_\n\031Async" + + "AnnotateFileResponse\022B\n\routput_config\030\001 " + + "\001(\0132+.google.cloud.vision.v1p3beta1.Outp" + + "utConfig\"p\n\036AsyncBatchAnnotateFilesReque" + + "st\022N\n\010requests\030\001 \003(\01327.google.cloud.visi" + + "on.v1p3beta1.AsyncAnnotateFileRequestB\003\340" + + "A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K\n" + + "\tresponses\030\001 \003(\01328.google.cloud.vision.v" + + "1p3beta1.AsyncAnnotateFileResponse\"^\n\013In" + + "putConfig\022<\n\ngcs_source\030\001 \001(\0132(.google.c" + + "loud.vision.v1p3beta1.GcsSource\022\021\n\tmime_" + + "type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destin" + + "ation\030\001 \001(\0132-.google.cloud.vision.v1p3be" + + "ta1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030" + + "\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinati" + + "on\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n" + + "\005state\030\001 \001(\01626.google.cloud.vision.v1p3b" + + "eta1.OperationMetadata.State\022/\n\013create_t" + + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" + + "\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCA" + + "NCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\r" + + "VERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBL" + + "E\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016Ima" + + "geAnnotator\022\276\001\n\023BatchAnnotateImages\0229.go" + + "ogle.cloud.vision.v1p3beta1.BatchAnnotat" + + "eImagesRequest\032:.google.cloud.vision.v1p" + + "3beta1.BatchAnnotateImagesResponse\"0\202\323\344\223" + + "\002\037\"\032/v1p3beta1/images:annotate:\001*\332A\010requ" + + "ests\022\351\001\n\027AsyncBatchAnnotateFiles\022=.googl" + + "e.cloud.vision.v1p3beta1.AsyncBatchAnnot" + + "ateFilesRequest\032\035.google.longrunning.Ope" + + "ration\"p\202\323\344\223\002(\"#/v1p3beta1/files:asyncBa" + + "tchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatch" + + "AnnotateFilesResponse\022\021OperationMetadata" + + "\032v\312A\025vision.googleapis.com\322A[https://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/cloud-vision" + + "B\202\001\n!com.google.cloud.vision.v1p3beta1B\023" + + "ImageAnnotatorProtoP\001ZCgoogle.golang.org" + + "/genproto/googleapis/cloud/vision/v1p3be" + + "ta1;vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor, + new java.lang.String[] { "Type", "MaxResults", "Model", }); + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor, + new java.lang.String[] { "GcsImageUri", "ImageUri", }); + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor, + new java.lang.String[] { "Content", "Source", }); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor, + new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", }); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { "Type", "Position", }); + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor, + new java.lang.String[] { "LatLng", }); + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor, + new java.lang.String[] { "Name", "Value", "Uint64Value", }); + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor, + new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor, + new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", }); + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor, + new java.lang.String[] { "MinLatLng", "MaxLatLng", }); + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor, + new java.lang.String[] { "Color", "Score", "PixelFraction", }); + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { "Colors", }); + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor, + new java.lang.String[] { "DominantColors", }); + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor, + new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { "CropHints", }); + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor, + new java.lang.String[] { "AspectRatios", }); + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor, + new java.lang.String[] { "IncludeGeoResults", }); + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor, + new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor, + new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "ProductSearchParams", "WebDetectionParams", "TextDetectionParams", }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { "Image", "Features", "ImageContext", }); + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { "Uri", "PageNumber", }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "LocalizedObjectAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "ProductSearchResults", "Error", "Context", }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { "InputConfig", "Responses", }); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { "OutputConfig", }); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "MimeType", }); + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BatchSize", }); + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor, + new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java index 16341e35d..f6ca3fd2e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageContext} */ -public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageContext) ImageContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,107 +54,87 @@ private ImageContext( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = input.readMessage(com.google.cloud.vision.v1p3beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + case 34: { + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; + productSearchParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.CropHintsParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); } - case 42: - { - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); - } - productSearchParams_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSearchParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); - } - - break; + webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); - } - webDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); } - case 98: - { - com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); - } - textDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); - } - - break; + textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -179,7 +142,8 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -188,33 +152,27 @@ private ImageContext( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageContext.class, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageContext.class, com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.LatLongRect latLongRect_; /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -222,25 +180,18 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null - ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; } /** - * - * *
    * Not used.
    * 
@@ -255,8 +206,6 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -269,15 +218,13 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_; } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -290,15 +237,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -311,7 +255,6 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -319,8 +262,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -333,25 +274,22 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.CropHintsParams cropHintsParams_; /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -359,25 +297,18 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -392,14 +323,11 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p3beta1.ProductSearchParams productSearchParams_; /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -407,25 +335,18 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } /** - * - * *
    * Parameters for product search.
    * 
@@ -433,22 +354,18 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchPar * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder - getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { return getProductSearchParams(); } public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p3beta1.WebDetectionParams webDetectionParams_; /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -456,25 +373,18 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } /** - * - * *
    * Parameters for web detection.
    * 
@@ -482,22 +392,18 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p3beta1.TextDetectionParams textDetectionParams_; /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -505,25 +411,18 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
@@ -531,13 +430,11 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -549,7 +446,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -578,7 +476,8 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -589,17 +488,20 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -609,34 +511,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageContext other = - (com.google.cloud.vision.v1p3beta1.ImageContext) obj; + com.google.cloud.vision.v1p3beta1.ImageContext other = (com.google.cloud.vision.v1p3beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect().equals(other.getLatLongRect())) return false; + if (!getLatLongRect() + .equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList() + .equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams() + .equals(other.getCropHintsParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams() + .equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams() + .equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams() + .equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -678,127 +585,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageContext} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageContext) com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageContext.class, - com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageContext.class, com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder() @@ -806,15 +704,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -854,9 +753,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override @@ -875,8 +774,7 @@ public com.google.cloud.vision.v1p3beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageContext result = - new com.google.cloud.vision.v1p3beta1.ImageContext(this); + com.google.cloud.vision.v1p3beta1.ImageContext result = new com.google.cloud.vision.v1p3beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -916,39 +814,38 @@ public com.google.cloud.vision.v1p3beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageContext) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageContext)other); } else { super.mergeFrom(other); return this; @@ -1010,52 +907,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> - latLongRectBuilder_; + com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> latLongRectBuilder_; /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ public com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null - ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** - * - * *
      * Not used.
      * 
@@ -1076,8 +959,6 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect valu return this; } /** - * - * *
      * Not used.
      * 
@@ -1096,8 +977,6 @@ public Builder setLatLongRect( return this; } /** - * - * *
      * Not used.
      * 
@@ -1108,9 +987,7 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder(latLongRect_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); } else { latLongRect_ = value; } @@ -1122,8 +999,6 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect va return this; } /** - * - * *
      * Not used.
      * 
@@ -1142,8 +1017,6 @@ public Builder clearLatLongRect() { return this; } /** - * - * *
      * Not used.
      * 
@@ -1151,13 +1024,11 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p3beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** - * - * *
      * Not used.
      * 
@@ -1168,14 +1039,11 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null - ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? + com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; } } /** - * - * *
      * Not used.
      * 
@@ -1183,34 +1051,27 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder>( - getLatLongRect(), getParentForChildren(), isClean()); + latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder>( + getLatLongRect(), + getParentForChildren(), + isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1223,15 +1084,13 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1244,15 +1103,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
      * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1265,7 +1121,6 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1273,8 +1128,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1287,16 +1140,14 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1309,23 +1160,21 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints(int index, java.lang.String value) { + public Builder setLanguageHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1338,22 +1187,20 @@ public Builder setLanguageHints(int index, java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints(java.lang.String value) { + public Builder addLanguageHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1366,19 +1213,18 @@ public Builder addLanguageHints(java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints(java.lang.Iterable values) { + public Builder addAllLanguageHints( + java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1391,7 +1237,6 @@ public Builder addAllLanguageHints(java.lang.Iterable values)
      * 
* * repeated string language_hints = 2; - * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1401,8 +1246,6 @@ public Builder clearLanguageHints() { return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1415,15 +1258,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; - * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1432,47 +1275,34 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p3beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> - cropHintsParamsBuilder_; + com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1493,8 +1323,6 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsPar return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1513,8 +1341,6 @@ public Builder setCropHintsParams( return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1525,9 +1351,7 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder(cropHintsParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); } else { cropHintsParams_ = value; } @@ -1539,8 +1363,6 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsP return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1559,8 +1381,6 @@ public Builder clearCropHintsParams() { return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1568,32 +1388,26 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder - getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? + com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1601,17 +1415,14 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder getCropHintsPar * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), getParentForChildren(), isClean()); + cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), + getParentForChildren(), + isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1619,55 +1430,41 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder getCropHintsPar private com.google.cloud.vision.v1p3beta1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> - productSearchParamsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public Builder setProductSearchParams( - com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { + public Builder setProductSearchParams(com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1681,8 +1478,6 @@ public Builder setProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1701,22 +1496,17 @@ public Builder setProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public Builder mergeProductSearchParams( - com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { + public Builder mergeProductSearchParams(com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder(productSearchParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); } else { productSearchParams_ = value; } @@ -1728,8 +1518,6 @@ public Builder mergeProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1748,42 +1536,33 @@ public Builder clearProductSearchParams() { return this; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder - getProductSearchParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder getProductSearchParamsBuilder() { + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder - getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? + com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } } /** - * - * *
      * Parameters for product search.
      * 
@@ -1791,17 +1570,14 @@ public Builder clearProductSearchParams() { * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), getParentForChildren(), isClean()); + productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), + getParentForChildren(), + isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -1809,55 +1585,41 @@ public Builder clearProductSearchParams() { private com.google.cloud.vision.v1p3beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> - webDetectionParamsBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams( - com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { + public Builder setWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1871,8 +1633,6 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1891,22 +1651,17 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams( - com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder(webDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); } else { webDetectionParams_ = value; } @@ -1918,8 +1673,6 @@ public Builder mergeWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1938,42 +1691,33 @@ public Builder clearWebDetectionParams() { return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder - getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? + com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -1981,17 +1725,14 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), getParentForChildren(), isClean()); + webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), + getParentForChildren(), + isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1999,55 +1740,41 @@ public Builder clearWebDetectionParams() { private com.google.cloud.vision.v1p3beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, - com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> - textDetectionParamsBuilder_; + com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams( - com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { + public Builder setTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2061,8 +1788,6 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2081,22 +1806,17 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams( - com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder(textDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); } else { textDetectionParams_ = value; } @@ -2108,8 +1828,6 @@ public Builder mergeTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2128,42 +1846,33 @@ public Builder clearTextDetectionParams() { return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder - getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? + com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2171,24 +1880,21 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, - com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, - com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), getParentForChildren(), isClean()); + textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), + getParentForChildren(), + isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2198,12 +1904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageContext) private static final com.google.cloud.vision.v1p3beta1.ImageContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageContext(); } @@ -2212,16 +1918,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2236,4 +1942,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java similarity index 88% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java index 80b60914d..2e2e5fc02 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageContextOrBuilder - extends +public interface ImageContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect(); /** - * - * *
    * Not used.
    * 
@@ -59,8 +35,6 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -73,13 +47,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - java.util.List getLanguageHintsList(); + java.util.List + getLanguageHintsList(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -92,13 +64,10 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ int getLanguageHintsCount(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -111,14 +80,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -131,39 +97,31 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString getLanguageHintsBytes(int index); + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -173,32 +131,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
@@ -208,32 +158,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
@@ -243,32 +185,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java index 2c41067ba..f4b4b6f0e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -33,14 +15,11 @@ public interface ImageOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -48,13 +27,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -62,13 +38,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; - * * @return The source. */ com.google.cloud.vision.v1p3beta1.ImageSource getSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
similarity index 69%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
index 82e6bc10c..7772d5dc3 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageProperties} */ -public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageProperties) ImagePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageProperties() {} + private ImageProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageProperties( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); - } - dominantColors_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dominantColors_ = input.readMessage(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageProperties.class, - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageProperties.class, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominantColors_; /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null - ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageProperties other = - (com.google.cloud.vision.v1p3beta1.ImageProperties) obj; + com.google.cloud.vision.v1p3beta1.ImageProperties other = (com.google.cloud.vision.v1p3beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors().equals(other.getDominantColors())) return false; + if (!getDominantColors() + .equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageProperties) com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageProperties.class, - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageProperties.class, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder() @@ -367,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override @@ -410,8 +370,7 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageProperties result = - new com.google.cloud.vision.v1p3beta1.ImageProperties(this); + com.google.cloud.vision.v1p3beta1.ImageProperties result = new com.google.cloud.vision.v1p3beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageProperties) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageProperties)other); } else { super.mergeFrom(other); return this; @@ -465,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -489,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> - dominantColorsBuilder_; + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null - ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { + public Builder setDominantColors(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -564,8 +506,6 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -584,22 +524,17 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder(dominantColors_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); } else { dominantColors_ = value; } @@ -611,8 +546,6 @@ public Builder mergeDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -631,42 +564,33 @@ public Builder clearDominantColors() { return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder - getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null - ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -674,24 +598,21 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), getParentForChildren(), isClean()); + dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), + getParentForChildren(), + isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageProperties) private static final com.google.cloud.vision.v1p3beta1.ImageProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageProperties(); } @@ -715,16 +636,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java index 437fd97fc..51261f94c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImagePropertiesOrBuilder - extends +public interface ImagePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java similarity index 77% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java index f27f49515..bdbdb8302 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageSource} */ -public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageSource) ImageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -44,15 +26,16 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ImageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageSource.class, - com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageSource.class, com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -135,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ @java.lang.Override @@ -144,15 +120,14 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -162,15 +137,16 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -181,8 +157,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -201,7 +175,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
    * 
* * string image_uri = 2; - * * @return The imageUri. */ @java.lang.Override @@ -210,15 +183,14 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -237,15 +209,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -254,7 +227,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -296,16 +269,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageSource other = - (com.google.cloud.vision.v1p3beta1.ImageSource) obj; + com.google.cloud.vision.v1p3beta1.ImageSource other = (com.google.cloud.vision.v1p3beta1.ImageSource) obj; - if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; + if (!getGcsImageUri() + .equals(other.getGcsImageUri())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +300,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageSource) com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageSource.class, - com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageSource.class, com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder() @@ -454,15 +419,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p3beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageSource result = - new com.google.cloud.vision.v1p3beta1.ImageSource(this); + com.google.cloud.vision.v1p3beta1.ImageSource result = new com.google.cloud.vision.v1p3beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -507,39 +472,38 @@ public com.google.cloud.vision.v1p3beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageSource) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageSource)other); } else { super.mergeFrom(other); return this; @@ -587,8 +551,6 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -598,13 +560,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -613,8 +575,6 @@ public java.lang.String getGcsImageUri() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -624,14 +584,15 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -639,8 +600,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,22 +609,20 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
      * 
* * string gcs_image_uri = 1; - * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri(java.lang.String value) { + public Builder setGcsImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -675,18 +632,15 @@ public Builder setGcsImageUri(java.lang.String value) {
      * 
* * string gcs_image_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -696,16 +650,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -713,8 +667,6 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -733,13 +685,13 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 2; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -748,8 +700,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -768,14 +718,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -783,8 +734,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -803,22 +752,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 2; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -837,18 +784,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 2; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -867,23 +811,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageSource) private static final com.google.cloud.vision.v1p3beta1.ImageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageSource(); } @@ -907,16 +851,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java index 08de78c58..feacbe05b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageSourceOrBuilder - extends +public interface ImageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -35,13 +17,10 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -51,14 +30,12 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString getGcsImageUriBytes(); + com.google.protobuf.ByteString + getGcsImageUriBytes(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -77,13 +54,10 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -102,8 +76,8 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java similarity index 82% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java index b57102baf..3e48dda77 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsGcsSource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              csvFileUri_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            csvFileUri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class,
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
-   *
-   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -168,7 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ @java.lang.Override @@ -177,15 +154,14 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -235,15 +211,16 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -252,7 +229,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -288,15 +265,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other = - (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri() + .equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -316,104 +293,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -421,23 +390,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class,
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder()
@@ -445,15 +412,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -463,14 +431,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource
-        getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
     }
 
@@ -485,8 +452,7 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource result =
-          new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -496,39 +462,38 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -536,9 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other) {
-      if (other
-          == com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -562,8 +525,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -575,8 +537,6 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
-     *
-     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -626,13 +586,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -641,8 +601,6 @@ public java.lang.String getCsvFileUri() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -692,14 +650,15 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -707,8 +666,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -758,22 +715,20 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() {
      * 
* * string csv_file_uri = 1; - * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri(java.lang.String value) { + public Builder setCsvFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -823,18 +778,15 @@ public Builder setCsvFileUri(java.lang.String value) {
      * 
* * string csv_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -884,23 +836,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,13 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) - private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(); } @@ -925,16 +876,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +900,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java similarity index 88% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java index cf34cf8eb..0b064fea9 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ImportProductSetsGcsSourceOrBuilder - extends +public interface ImportProductSetsGcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -75,13 +57,10 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -131,8 +110,8 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString getCsvFileUriBytes(); + com.google.protobuf.ByteString + getCsvFileUriBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java similarity index 68% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java index e37aa3e70..3dcc0104a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportProductSetsInputConfig() {} + private ImportProductSetsInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,27 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder subBuilder = - null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_) - .toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +80,34 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -151,35 +123,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -187,27 +154,22 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -216,16 +178,14 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource
    * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder
-      getGcsSourceOrBuilder() {
+  public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_;
+       return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -237,10 +197,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
-      output.writeMessage(
-          1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
+      output.writeMessage(1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
     }
     unknownFields.writeTo(output);
   }
@@ -252,9 +212,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -264,18 +223,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other =
-        (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -305,127 +264,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder() @@ -433,15 +382,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -451,14 +401,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance(); } @@ -473,8 +422,7 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig result = - new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -491,39 +439,38 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)other); } else { super.mergeFrom(other); return this; @@ -531,19 +478,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other) { - if (other - == com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -564,9 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,12 +516,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -590,21 +531,16 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -612,15 +548,12 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -638,8 +571,6 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource } } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -647,8 +578,7 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
+    public Builder setGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -662,8 +592,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -683,8 +611,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -692,18 +618,12 @@ public Builder setGcsSource(
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder mergeGcsSource(
-        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
+    public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_
-                != com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource
-                    .getDefaultInstance()) {
-          source_ =
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder(
-                      (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -719,8 +639,6 @@ public Builder mergeGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -745,8 +663,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -754,13 +670,10 @@ public Builder clearGcsSource() {
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder
-        getGcsSourceBuilder() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -769,8 +682,7 @@ public Builder clearGcsSource() {
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder
-        getGcsSourceOrBuilder() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
       if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
@@ -781,8 +693,6 @@ public Builder clearGcsSource() {
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -791,33 +701,26 @@ public Builder clearGcsSource() {
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource,
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder,
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>
+        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
-          source_ =
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
+          source_ = com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource,
-                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder,
-                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -827,32 +730,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
-  private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig();
   }
 
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
-      getDefaultInstance() {
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -864,8 +765,9 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
-      getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
similarity index 67%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
index f7716186b..e41acb199 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ImportProductSetsInputConfigOrBuilder
-    extends
+public interface ImportProductSetsInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
similarity index 63%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
index e71aa4c9e..aa8b67459 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,38 +53,32 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder subBuilder = - null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,42 +86,35 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig inputConfig_; /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -206,43 +169,30 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other = - (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) com.google.cloud.vision.v1p3beta1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.newBuilder() @@ -448,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -493,8 +437,7 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest result = - new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -509,39 +452,38 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -549,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -711,61 +631,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfig( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { + public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,15 +679,11 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -801,25 +697,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeInputConfig( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { + public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder( - inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -831,15 +719,11 @@ public Builder mergeInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -853,73 +737,55 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder - getInputConfigBuilder() { - + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(); } @@ -943,16 +809,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..7478ab727 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface ImportProductSetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The inputConfig. + */ + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java similarity index 79% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java index d080e4ac7..52a83bf53 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -49,15 +31,16 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,35 +60,31 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                referenceImages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              referenceImages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              referenceImages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                statuses_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-              break;
+            referenceImages_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              statuses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            statuses_.add(
+                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,7 +92,8 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -125,27 +105,22 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class,
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -157,8 +132,6 @@ public java.util.List getRefer return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -166,13 +139,11 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -184,8 +155,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -214,8 +181,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -231,8 +196,6 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -244,12 +207,11 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List getStatusesOrBuilderList() {
+  public java.util.List 
+      getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -265,8 +227,6 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -282,8 +242,6 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -295,12 +253,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -312,7 +270,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -329,10 +288,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -342,16 +303,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other =
-        (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList().equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList()
+        .equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList()
+        .equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -377,104 +339,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -486,23 +440,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
       com.google.cloud.vision.v1p3beta1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class,
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.newBuilder()
@@ -510,18 +462,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -541,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -562,8 +514,7 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse result =
-          new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -591,39 +542,38 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -631,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.getDefaultInstance()) return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -651,10 +600,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResp
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReferenceImagesFieldBuilder()
-                    : null;
+            referenceImagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReferenceImagesFieldBuilder() : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -678,10 +626,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResp
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStatusesFieldBuilder()
-                    : null;
+            statusesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStatusesFieldBuilder() : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -706,8 +653,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -716,38 +662,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ =
-            new java.util.ArrayList(
-                referenceImages_);
+        referenceImages_ = new java.util.ArrayList(referenceImages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ReferenceImage,
-            com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder,
-            com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>
-        referenceImagesBuilder_;
+        com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImagesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesList() { + public java.util.List getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -755,8 +691,6 @@ private void ensureReferenceImagesIsMutable() { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -771,8 +705,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -787,8 +719,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -810,8 +740,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -830,8 +758,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -852,8 +778,6 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p3beta1.ReferenceIma return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -875,8 +799,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -895,8 +817,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -915,8 +835,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -927,7 +845,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -935,8 +854,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -954,8 +871,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -973,8 +888,6 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -986,8 +899,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -997,22 +908,19 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -1020,8 +928,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -1029,12 +935,10 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -1043,34 +947,26 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1080,22 +976,19 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private java.util.List statuses_ = java.util.Collections.emptyList(); - + private java.util.List statuses_ = + java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; /** - * - * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1114,8 +1007,6 @@ public java.util.List getStatusesList() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1134,8 +1025,6 @@ public int getStatusesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1154,8 +1043,6 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1166,7 +1053,8 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status value) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1180,8 +1068,6 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1192,7 +1078,8 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1203,8 +1090,6 @@ public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1229,8 +1114,6 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1241,7 +1124,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status value) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1255,8 +1139,6 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1267,7 +1149,8 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1278,8 +1161,6 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1290,7 +1171,8 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1301,8 +1183,6 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1313,10 +1193,12 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(java.lang.Iterable values) {
+    public Builder addAllStatuses(
+        java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1324,8 +1206,6 @@ public Builder addAllStatuses(java.lang.Iterable
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1347,8 +1227,6 @@ public Builder clearStatuses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1370,8 +1248,6 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1382,12 +1258,11 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(
+        int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1398,16 +1273,14 @@ public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+        int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);
-      } else {
+        return statuses_.get(index);  } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1418,7 +1291,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesOrBuilderList() {
+    public java.util.List 
+         getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1426,8 +1300,6 @@ public java.util.List getStatusesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1439,11 +1311,10 @@ public java.util.List getStatusesOrBui
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1454,13 +1325,12 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
-      return getStatusesFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(
+        int index) {
+      return getStatusesFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1471,27 +1341,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesBuilderList() {
+    public java.util.List 
+         getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                statuses_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1501,12 +1371,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse();
   }
@@ -1515,16 +1385,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1539,4 +1409,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
similarity index 78%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
index 827a2307e..cc734e56a 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ImportProductSetsResponseOrBuilder
-    extends
+public interface ImportProductSetsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -44,8 +25,6 @@ public interface ImportProductSetsResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -54,30 +33,25 @@ public interface ImportProductSetsResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -88,10 +62,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesList();
+  java.util.List 
+      getStatusesList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -104,8 +77,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   com.google.rpc.Status getStatuses(int index);
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -118,8 +89,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   int getStatusesCount();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -130,10 +99,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesOrBuilderList();
+  java.util.List 
+      getStatusesOrBuilderList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -144,5 +112,6 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
similarity index 71%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
index 7f3bc74da..78c39ced7 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; + gcsSource_ = input.readMessage(com.google.cloud.vision.v1p3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +86,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.InputConfig.class, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.InputConfig.class, com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.GcsSource gcsSource_; /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -147,25 +121,18 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -180,15 +147,12 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -197,30 +161,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -229,7 +193,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -258,7 +222,8 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); @@ -271,19 +236,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.InputConfig other = - (com.google.cloud.vision.v1p3beta1.InputConfig) obj; + com.google.cloud.vision.v1p3beta1.InputConfig other = (com.google.cloud.vision.v1p3beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; } - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,127 +272,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.InputConfig) com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.InputConfig.class, - com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.InputConfig.class, com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder() @@ -434,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +437,7 @@ public com.google.cloud.vision.v1p3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.InputConfig result = - new com.google.cloud.vision.v1p3beta1.InputConfig(this); + com.google.cloud.vision.v1p3beta1.InputConfig result = new com.google.cloud.vision.v1p3beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -495,39 +452,38 @@ public com.google.cloud.vision.v1p3beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.InputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -574,47 +530,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, - com.google.cloud.vision.v1p3beta1.GcsSource.Builder, - com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -635,8 +578,6 @@ public Builder setGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -655,8 +596,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -667,9 +606,7 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); } else { gcsSource_ = value; } @@ -681,8 +618,6 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -701,8 +636,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -710,13 +643,11 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p3beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -727,14 +658,11 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null - ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? + com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -742,17 +670,14 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, - com.google.cloud.vision.v1p3beta1.GcsSource.Builder, - com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, - com.google.cloud.vision.v1p3beta1.GcsSource.Builder, - com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder>( - getGcsSource(), getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder>( + getGcsSource(), + getParentForChildren(), + isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -760,21 +685,19 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private java.lang.Object mimeType_ = ""; /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -783,22 +706,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -806,71 +728,64 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.InputConfig) private static final com.google.cloud.vision.v1p3beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.InputConfig(); } @@ -894,16 +809,16 @@ public static com.google.cloud.vision.v1p3beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java index b6874b22e..f7b7456d3 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -59,29 +35,24 @@ public interface InputConfigOrBuilder com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java index 826d29cec..472166170 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LatLongRect} */ -public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LatLongRect extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LatLongRect) LatLongRectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatLongRect() {} + private LatLongRect() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,39 @@ private LatLongRect( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); } - case 18: - { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); - } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); - } - - break; + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,39 +92,34 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LatLongRect.class, - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p3beta1.LatLongRect.class, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -150,14 +127,11 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ @java.lang.Override @@ -165,8 +139,6 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** - * - * *
    * Min lat/long pair.
    * 
@@ -181,14 +153,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -196,14 +165,11 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ @java.lang.Override @@ -211,8 +177,6 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** - * - * *
    * Max lat/long pair.
    * 
@@ -225,7 +189,6 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -254,10 +218,12 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LatLongRect other = - (com.google.cloud.vision.v1p3beta1.LatLongRect) obj; + com.google.cloud.vision.v1p3beta1.LatLongRect other = (com.google.cloud.vision.v1p3beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng().equals(other.getMinLatLng())) return false; + if (!getMinLatLng() + .equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng() + .equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LatLongRect} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LatLongRect) com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LatLongRect.class, - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p3beta1.LatLongRect.class, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder() @@ -435,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override @@ -484,8 +443,7 @@ public com.google.cloud.vision.v1p3beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p3beta1.LatLongRect result = - new com.google.cloud.vision.v1p3beta1.LatLongRect(this); + com.google.cloud.vision.v1p3beta1.LatLongRect result = new com.google.cloud.vision.v1p3beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -504,39 +462,38 @@ public com.google.cloud.vision.v1p3beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LatLongRect) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LatLongRect)other); } else { super.mergeFrom(other); return this; @@ -582,31 +539,24 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -617,8 +567,6 @@ public com.google.type.LatLng getMinLatLng() { } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -639,15 +587,14 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng( + com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -658,8 +605,6 @@ public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -670,7 +615,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -682,8 +627,6 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -702,8 +645,6 @@ public Builder clearMinLatLng() { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -711,13 +652,11 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Min lat/long pair.
      * 
@@ -728,12 +667,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -741,14 +679,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); + minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMinLatLng(), + getParentForChildren(), + isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -756,31 +694,24 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -791,8 +722,6 @@ public com.google.type.LatLng getMaxLatLng() { } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -813,15 +742,14 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng( + com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -832,8 +760,6 @@ public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -844,7 +770,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -856,8 +782,6 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -876,8 +800,6 @@ public Builder clearMaxLatLng() { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -885,13 +807,11 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Max lat/long pair.
      * 
@@ -902,12 +822,11 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -915,21 +834,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); + maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMaxLatLng(), + getParentForChildren(), + isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LatLongRect) private static final com.google.cloud.vision.v1p3beta1.LatLongRect DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LatLongRect(); } @@ -953,16 +872,16 @@ public static com.google.cloud.vision.v1p3beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java index b487ae933..e9f0fe155 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LatLongRectOrBuilder - extends +public interface LatLongRectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
@@ -59,32 +35,24 @@ public interface LatLongRectOrBuilder com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java index 71a2187fb..d3ec51d01 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p3beta1.Likelihood}
  */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unknown likelihood.
    * 
@@ -40,8 +22,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -50,8 +30,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ VERY_UNLIKELY(1), /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -60,8 +38,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNLIKELY(2), /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -70,8 +46,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ POSSIBLE(3), /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -80,8 +54,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ LIKELY(4), /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -93,8 +65,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown likelihood.
    * 
@@ -103,8 +73,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -113,8 +81,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_UNLIKELY_VALUE = 1; /** - * - * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -123,8 +89,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNLIKELY_VALUE = 2; /** - * - * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -133,8 +97,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSSIBLE_VALUE = 3; /** - * - * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -143,8 +105,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIKELY_VALUE = 4; /** - * - * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -153,6 +113,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_LIKELY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,57 +138,52 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return VERY_UNLIKELY; - case 2: - return UNLIKELY; - case 3: - return POSSIBLE; - case 4: - return LIKELY; - case 5: - return VERY_LIKELY; - default: - return null; + case 0: return UNKNOWN; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -243,3 +199,4 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p3beta1.Likelihood) } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java index 0f490a4c9..6d934e0cf 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,14 +171,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,29 +184,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -284,7 +250,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -297,17 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other = - (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other = (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +300,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductSetsRequest) com.google.cloud.vision.v1p3beta1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.newBuilder() @@ -459,15 +418,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -502,8 +462,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest result = - new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest result = new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -515,39 +474,38 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -555,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -587,8 +544,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -600,23 +556,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -650,85 +599,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -736,36 +669,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -773,20 +700,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -795,21 +720,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -817,68 +741,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) private static final com.google.cloud.vision.v1p3beta1.ListProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(); } @@ -902,16 +819,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java index e0d3ffda7..cd3c24f41 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductSetsRequestOrBuilder - extends +public interface ListProductSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java index 7351f36ae..0805ca2bf 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productSets_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + productSets_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -114,27 +94,22 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** - * - * *
    * List of ProductSets.
    * 
@@ -146,8 +121,6 @@ public java.util.List getProductSe return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -155,13 +128,11 @@ public java.util.List getProductSe * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -173,8 +144,6 @@ public int getProductSetsCount() { return productSets_.size(); } /** - * - * *
    * List of ProductSets.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** - * - * *
    * List of ProductSets.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( + int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other = - (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other = (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) obj; - if (!getProductSetsList().equals(other.getProductSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductSetsList() + .equals(other.getProductSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductSetsResponse) com.google.cloud.vision.v1p3beta1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse result = - new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse result = new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()) return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsRespon productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductSetsFieldBuilder() - : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductSetsFieldBuilder() : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productSets_ = - new java.util.ArrayList(productSets_); + productSets_ = new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> - productSetsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetsBuilder_; /** - * - * *
      * List of ProductSets.
      * 
@@ -661,8 +605,6 @@ public java.util.List getProductSe } } /** - * - * *
      * List of ProductSets.
      * 
@@ -677,8 +619,6 @@ public int getProductSetsCount() { } } /** - * - * *
      * List of ProductSets.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public Builder setProductSets(int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { + public Builder setProductSets( + int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setProductSets(int index, com.google.cloud.vision.v1p3beta1.Produ return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -735,8 +672,6 @@ public Builder setProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -757,15 +692,14 @@ public Builder addProductSets(com.google.cloud.vision.v1p3beta1.ProductSet value return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public Builder addProductSets(int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { + public Builder addProductSets( + int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addProductSets(int index, com.google.cloud.vision.v1p3beta1.Produ return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -799,8 +731,6 @@ public Builder addProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -819,8 +749,6 @@ public Builder addProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -831,7 +759,8 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -858,8 +785,6 @@ public Builder clearProductSets() { return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -877,20 +802,17 @@ public Builder removeProductSets(int index) { return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilder( + int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ProductSets.
      * 
@@ -900,22 +822,19 @@ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilde public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); - } else { + return productSets_.get(index); } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -923,8 +842,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBui } } /** - * - * *
      * List of ProductSets.
      * 
@@ -932,48 +849,42 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBui * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder(int index) { - return getProductSetsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder( + int index) { + return getProductSetsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + productSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); productSets_ = null; } return productSetsBuilder_; @@ -981,21 +892,19 @@ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1004,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1027,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) private static final com.google.cloud.vision.v1p3beta1.ListProductSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(); } @@ -1115,16 +1016,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java index 85ab69a84..e82e82db1 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductSetsResponseOrBuilder - extends +public interface ListProductSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - java.util.List getProductSetsList(); + java.util.List + getProductSetsList(); /** - * - * *
    * List of ProductSets.
    * 
@@ -44,8 +25,6 @@ public interface ListProductSetsResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index); /** - * - * *
    * List of ProductSets.
    * 
@@ -54,51 +33,43 @@ public interface ListProductSetsResponseOrBuilder */ int getProductSetsCount(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java index dbd349895..84283be7a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,43 +85,36 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -150,33 +123,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -187,14 +158,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -205,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -252,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -300,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,145 +302,134 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,14 +443,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance(); } @@ -508,8 +464,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -521,50 +476,46 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other) { + if (other == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -595,9 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -635,25 +580,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -661,88 +603,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -750,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -809,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -831,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -902,32 +812,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -939,8 +847,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java index d409ec3bb..279289c11 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsInProductSetRequestOrBuilder - extends +public interface ListProductsInProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java index 6fad5ddad..e72c1a92c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,31 +55,28 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -114,27 +94,22 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * The list of Products.
    * 
@@ -146,8 +121,6 @@ public java.util.List getProductsList return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -155,13 +128,11 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -173,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * The list of Products.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * The list of Products.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other = - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - .getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance(); } @java.lang.Override @@ -505,8 +458,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse build( @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse result = - new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -526,51 +478,46 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) { - return mergeFrom( - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other) { - if (other - == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other) { + if (other == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -589,10 +536,9 @@ public Builder mergeFrom( productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -621,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -632,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * The list of Products.
      * 
@@ -668,8 +605,6 @@ public java.util.List getProductsList } } /** - * - * *
      * The list of Products.
      * 
@@ -684,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * The list of Products.
      * 
@@ -700,15 +633,14 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product return this; } /** - * - * *
      * The list of Products.
      * 
@@ -742,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -764,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -786,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -805,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder bui return this; } /** - * - * *
      * The list of Products.
      * 
@@ -825,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -837,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -845,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -864,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * The list of Products.
      * 
@@ -883,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -928,8 +842,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(i } } /** - * - * *
      * The list of Products.
      * 
@@ -937,48 +849,42 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(i * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -986,21 +892,19 @@ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1009,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1032,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) - private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1037,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java index 00fac1a44..74d59602c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsInProductSetResponseOrBuilder - extends +public interface ListProductsInProductSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * The list of Products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsInProductSetResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.Product getProducts(int index); /** - * - * *
    * The list of Products.
    * 
@@ -54,51 +33,43 @@ public interface ListProductsInProductSetResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java index 96b2f83c8..8c5c19bb4 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsRequest} */ -public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsRequest) ListProductsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -286,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -299,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsRequest other = - (com.google.cloud.vision.v1p3beta1.ListProductsRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductsRequest other = (com.google.cloud.vision.v1p3beta1.ListProductsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +302,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsRequest) com.google.cloud.vision.v1p3beta1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, - com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductsRequest.newBuilder() @@ -461,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override @@ -504,8 +464,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsRequest result = - new com.google.cloud.vision.v1p3beta1.ListProductsRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductsRequest result = new com.google.cloud.vision.v1p3beta1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -517,39 +476,38 @@ public com.google.cloud.vision.v1p3beta1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -589,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,25 +580,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -654,88 +603,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -743,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -780,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -802,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -824,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) private static final com.google.cloud.vision.v1p3beta1.ListProductsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsRequest(); } @@ -909,16 +826,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,4 +850,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java index af7aae358..bd256296d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsRequestOrBuilder - extends +public interface ListProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java index 787bbc4cb..246d0991d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsResponse} */ -public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsResponse) ListProductsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListProductsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -113,27 +94,22 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * List of products.
    * 
@@ -145,8 +121,6 @@ public java.util.List getProductsList return products_; } /** - * - * *
    * List of products.
    * 
@@ -154,13 +128,11 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * List of products.
    * 
@@ -172,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * List of products.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * List of products.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsResponse other = - (com.google.cloud.vision.v1p3beta1.ListProductsResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductsResponse other = (com.google.cloud.vision.v1p3beta1.ListProductsResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListProductsResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsResponse) com.google.cloud.vision.v1p3beta1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, - com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductsResponse.newBuilder() @@ -453,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override @@ -500,8 +458,7 @@ public com.google.cloud.vision.v1p3beta1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsResponse result = - new com.google.cloud.vision.v1p3beta1.ListProductsResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductsResponse result = new com.google.cloud.vision.v1p3beta1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -521,39 +478,38 @@ public com.google.cloud.vision.v1p3beta1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsResponse)other); } else { super.mergeFrom(other); return this; @@ -561,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -581,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsResponse productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -613,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListProductsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * List of products.
      * 
@@ -659,8 +605,6 @@ public java.util.List getProductsList } } /** - * - * *
      * List of products.
      * 
@@ -675,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * List of products.
      * 
@@ -691,15 +633,14 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product return this; } /** - * - * *
      * List of products.
      * 
@@ -733,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -755,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -796,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder bui return this; } /** - * - * *
      * List of products.
      * 
@@ -816,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -828,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -836,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -855,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * List of products.
      * 
@@ -874,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +842,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(i } } /** - * - * *
      * List of products.
      * 
@@ -928,48 +849,42 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(i * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -977,21 +892,19 @@ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) private static final com.google.cloud.vision.v1p3beta1.ListProductsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsResponse(); } @@ -1111,16 +1016,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java index bea8af9bf..f631a84f3 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsResponseOrBuilder - extends +public interface ListProductsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * List of products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.Product getProducts(int index); /** - * - * *
    * List of products.
    * 
@@ -54,51 +33,43 @@ public interface ListProductsResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java index 7a433dcdb..b9d939375 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -213,7 +180,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -222,15 +188,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other = - (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest result = - new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,39 +480,38 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -562,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,24 +562,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,25 +584,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,88 +607,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -749,36 +680,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -786,8 +711,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -795,13 +718,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -810,8 +733,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -819,14 +740,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -834,8 +756,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -843,22 +763,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -866,18 +784,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -885,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,13 +826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) - private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(); } @@ -926,16 +840,16 @@ public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java index 96d14e012..4b55938d6 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java @@ -1,77 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListReferenceImagesRequestOrBuilder - extends +public interface ListReferenceImagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -79,13 +49,10 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -93,8 +60,8 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java index 760f12e55..1d504986d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,33 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - referenceImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), - extensionRegistry)); - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + referenceImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry)); + break; + } + case 16: { - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +89,8 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -120,27 +99,22 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** - * - * *
    * The list of reference images.
    * 
@@ -152,8 +126,6 @@ public java.util.List getRefer return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -161,13 +133,11 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -179,8 +149,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference images.
    * 
@@ -192,8 +160,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** - * - * *
    * The list of reference images.
    * 
@@ -209,14 +175,11 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -227,14 +190,11 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -243,29 +203,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -274,7 +234,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -306,10 +266,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -322,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other = - (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList() + .equals(other.getReferenceImagesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,127 +322,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.newBuilder() @@ -486,17 +440,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,14 +468,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance(); } @@ -536,8 +489,7 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse result = - new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,39 +510,38 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -598,9 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other) { - if (other - == com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()) return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -619,10 +568,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRe referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReferenceImagesFieldBuilder() - : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReferenceImagesFieldBuilder() : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -654,9 +602,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,38 +611,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList( - referenceImages_); + referenceImages_ = new java.util.ArrayList(referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> - referenceImagesBuilder_; + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImagesBuilder_; /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesList() { + public java.util.List getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -704,8 +640,6 @@ private void ensureReferenceImagesIsMutable() { } } /** - * - * *
      * The list of reference images.
      * 
@@ -720,8 +654,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference images.
      * 
@@ -736,8 +668,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i } } /** - * - * *
      * The list of reference images.
      * 
@@ -759,8 +689,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -779,8 +707,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -801,8 +727,6 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p3beta1.ReferenceIma return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -824,8 +748,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -844,8 +766,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -864,8 +784,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -876,7 +794,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -884,8 +803,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -903,8 +820,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -922,8 +837,6 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -935,8 +848,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference images.
      * 
@@ -946,22 +857,19 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -969,8 +877,6 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma } } /** - * - * *
      * The list of reference images.
      * 
@@ -978,12 +884,10 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
@@ -992,34 +896,26 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1029,16 +925,13 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1046,36 +939,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1083,20 +970,18 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1105,21 +990,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1127,68 +1011,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1198,13 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) - private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(); } @@ -1213,16 +1089,16 @@ public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1113,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java index d3b5eb07d..534781926 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListReferenceImagesResponseOrBuilder - extends +public interface ListReferenceImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference images.
    * 
@@ -44,8 +25,6 @@ public interface ListReferenceImagesResponseOrBuilder */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference images.
    * 
@@ -54,62 +33,51 @@ public interface ListReferenceImagesResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java index 00e4ed945..3be306bf3 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocalizedObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -45,15 +27,16 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,55 +55,49 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 42: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 37: - { - score_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,39 +105,34 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -169,29 +141,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -202,8 +174,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -211,7 +181,6 @@ public com.google.protobuf.ByteString getMidBytes() {
    * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -220,15 +189,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -236,15 +204,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -255,14 +224,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -271,29 +237,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -304,14 +270,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -322,14 +285,11 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -337,25 +297,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -368,7 +321,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -415,10 +368,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -428,22 +383,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other = - (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -463,7 +422,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -474,127 +434,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.newBuilder() @@ -602,15 +552,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -653,8 +604,7 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation result = - new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -672,39 +622,38 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation)other); } else { super.mergeFrom(other); return this; @@ -712,8 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -751,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -764,20 +711,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -786,21 +731,20 @@ public java.lang.String getMid() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -808,61 +752,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -870,8 +807,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -879,13 +814,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -894,8 +829,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -903,14 +836,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -918,8 +852,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -927,22 +859,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -950,18 +880,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -969,16 +896,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -986,20 +913,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1008,21 +933,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1030,76 +954,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1107,36 +1021,30 @@ public float getScore() { return score_; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1144,47 +1052,34 @@ public Builder clearScore() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1205,8 +1100,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1225,8 +1118,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1237,9 +1128,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -1251,8 +1140,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1271,8 +1158,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1280,13 +1165,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1297,14 +1180,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1312,24 +1192,21 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1339,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(); } @@ -1353,16 +1230,16 @@ public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1377,4 +1254,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java index 364b77b0b..ea1bae037 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LocalizedObjectAnnotationOrBuilder - extends +public interface LocalizedObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -58,13 +35,10 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -72,76 +46,60 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java index 14313a7f3..c96641fbc 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocationInfo} */ -public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LocationInfo) LocationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationInfo() {} + private LocationInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,27 +52,26 @@ private LocationInfo( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); - } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +79,34 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocationInfo.class, - com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p3beta1.LocationInfo.class, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -136,14 +114,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -151,8 +126,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * lat/long location coordinates.
    * 
@@ -165,7 +138,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -191,7 +164,8 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LocationInfo other = - (com.google.cloud.vision.v1p3beta1.LocationInfo) obj; + com.google.cloud.vision.v1p3beta1.LocationInfo other = (com.google.cloud.vision.v1p3beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -233,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LocationInfo) com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocationInfo.class, - com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p3beta1.LocationInfo.class, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LocationInfo.newBuilder() @@ -361,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override @@ -404,8 +370,7 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p3beta1.LocationInfo result = - new com.google.cloud.vision.v1p3beta1.LocationInfo(this); + com.google.cloud.vision.v1p3beta1.LocationInfo result = new com.google.cloud.vision.v1p3beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -419,39 +384,38 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LocationInfo) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LocationInfo)other); } else { super.mergeFrom(other); return this; @@ -494,31 +458,24 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -529,8 +486,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -551,15 +506,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -570,8 +524,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -581,7 +533,8 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = + com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -593,8 +546,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -613,8 +564,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -622,13 +571,11 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -639,12 +586,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -652,21 +598,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocationInfo) private static final com.google.cloud.vision.v1p3beta1.LocationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LocationInfo(); } @@ -690,16 +636,16 @@ public static com.google.cloud.vision.v1p3beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java index 013fae86c..56b58f709 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LocationInfoOrBuilder - extends +public interface LocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java index 625f8e6ae..8d6bb76b5 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NormalizedVertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,23 +54,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,39 +78,34 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.NormalizedVertex.class,
-            com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p3beta1.NormalizedVertex.class, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.NormalizedVertex other = - (com.google.cloud.vision.v1p3beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p3beta1.NormalizedVertex other = (com.google.cloud.vision.v1p3beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -333,23 +307,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.NormalizedVertex)
       com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.NormalizedVertex.class,
-              com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p3beta1.NormalizedVertex.class, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.NormalizedVertex.newBuilder()
@@ -357,15 +329,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -398,8 +371,7 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p3beta1.NormalizedVertex result =
-          new com.google.cloud.vision.v1p3beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p3beta1.NormalizedVertex result = new com.google.cloud.vision.v1p3beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -410,39 +382,38 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -450,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()) return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -477,8 +447,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -488,16 +457,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -505,51 +471,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -557,43 +514,37 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p3beta1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.NormalizedVertex(); } @@ -617,16 +568,16 @@ public static com.google.cloud.vision.v1p3beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..822dd4c71 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java index 6a0ce0c43..85f49d721 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,45 @@ private OperationMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +99,36 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OperationMetadata.class, - com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p3beta1.OperationMetadata.class, com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); } /** - * - * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.OperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -164,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is received.
      * 
@@ -174,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * Request is actively being processed.
      * 
@@ -184,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing is done.
      * 
@@ -194,8 +161,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DONE(3), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -207,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -217,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is received.
      * 
@@ -227,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * Request is actively being processed.
      * 
@@ -237,8 +196,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing is done.
      * 
@@ -247,8 +204,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -257,6 +212,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,55 +237,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATED; - case 2: - return RUNNING; - case 3: - return DONE; - case 4: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATED; + case 2: return RUNNING; + case 3: return DONE; + case 4: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.OperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,52 +301,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -402,14 +340,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -417,8 +352,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the batch request was received.
    * 
@@ -433,14 +366,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -448,14 +378,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -463,8 +390,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the operation result was last updated.
    * 
@@ -477,7 +402,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,10 +413,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -510,16 +433,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -529,22 +453,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.OperationMetadata other = - (com.google.cloud.vision.v1p3beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p3beta1.OperationMetadata other = (com.google.cloud.vision.v1p3beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -573,126 +498,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.OperationMetadata) com.google.cloud.vision.v1p3beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OperationMetadata.class, - com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p3beta1.OperationMetadata.class, com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.OperationMetadata.newBuilder() @@ -700,15 +616,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -730,9 +647,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -751,8 +668,7 @@ public com.google.cloud.vision.v1p3beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p3beta1.OperationMetadata result = - new com.google.cloud.vision.v1p3beta1.OperationMetadata(this); + com.google.cloud.vision.v1p3beta1.OperationMetadata result = new com.google.cloud.vision.v1p3beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -772,39 +688,38 @@ public com.google.cloud.vision.v1p3beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -812,8 +727,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p3beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.OperationMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -842,8 +756,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -855,67 +768,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -923,24 +820,21 @@ public Builder setState(com.google.cloud.vision.v1p3beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -948,47 +842,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1009,15 +890,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1028,8 +908,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1040,7 +918,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1052,8 +930,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1072,8 +948,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1081,13 +955,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1098,14 +970,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1113,17 +982,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1131,47 +997,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1192,15 +1045,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1211,8 +1063,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1223,7 +1073,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1235,8 +1085,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1255,8 +1103,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1264,13 +1110,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1281,14 +1125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1296,24 +1137,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1161,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OperationMetadata) private static final com.google.cloud.vision.v1p3beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.OperationMetadata(); } @@ -1337,16 +1175,16 @@ public static com.google.cloud.vision.v1p3beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1199,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java index 9ffddbc58..7e482eb97 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
@@ -84,32 +54,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java similarity index 73% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java index 0e514a27e..a56e3cbd7 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); - } - gcsDestination_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); } - case 16: - { - batchSize_ = input.readInt32(); - break; + gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p3beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + batchSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +84,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OutputConfig.class, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.OutputConfig.class, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.GcsDestination gcsDestination_; /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -143,25 +119,18 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -176,8 +145,6 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -191,7 +158,6 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -200,7 +166,6 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -229,10 +195,12 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,19 +210,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.OutputConfig other = - (com.google.cloud.vision.v1p3beta1.OutputConfig) obj; + com.google.cloud.vision.v1p3beta1.OutputConfig other = (com.google.cloud.vision.v1p3beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; } - if (getBatchSize() != other.getBatchSize()) return false; + if (getBatchSize() + != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -277,127 +246,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.OutputConfig) com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OutputConfig.class, - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.OutputConfig.class, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder() @@ -405,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -450,8 +411,7 @@ public com.google.cloud.vision.v1p3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.OutputConfig result = - new com.google.cloud.vision.v1p3beta1.OutputConfig(this); + com.google.cloud.vision.v1p3beta1.OutputConfig result = new com.google.cloud.vision.v1p3beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -466,39 +426,38 @@ public com.google.cloud.vision.v1p3beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -544,47 +503,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ public com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -605,8 +551,6 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinatio return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -625,8 +569,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -637,9 +579,7 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); } else { gcsDestination_ = value; } @@ -651,8 +591,6 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinat return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -671,8 +609,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -680,13 +616,11 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p3beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -697,14 +631,11 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? + com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -712,26 +643,21 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder>( - getGcsDestination(), getParentForChildren(), isClean()); + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder>( + getGcsDestination(), + getParentForChildren(), + isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_; + private int batchSize_ ; /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -745,7 +671,6 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -753,8 +678,6 @@ public int getBatchSize() { return batchSize_; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -768,19 +691,16 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; - * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -794,18 +714,17 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; - * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OutputConfig) private static final com.google.cloud.vision.v1p3beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.OutputConfig(); } @@ -829,16 +748,16 @@ public static com.google.cloud.vision.v1p3beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java index d1fecfd54..413dd4f7b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -59,8 +35,6 @@ public interface OutputConfigOrBuilder com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -74,7 +48,6 @@ public interface OutputConfigOrBuilder
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ int getBatchSize(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java index 617344766..5f3c9a444 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Page} */ -public final class Page extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Page extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Page) PageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,50 @@ private Page( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - width_ = input.readInt32(); - break; + case 10: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 24: - { - height_ = input.readInt32(); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blocks_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + blocks_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,8 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -138,33 +115,27 @@ private Page( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Page.class, - com.google.cloud.vision.v1p3beta1.Page.Builder.class); + com.google.cloud.vision.v1p3beta1.Page.class, com.google.cloud.vision.v1p3beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -172,25 +143,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected on the page.
    * 
@@ -198,23 +162,19 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -225,15 +185,12 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -244,8 +201,6 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -257,8 +212,6 @@ public java.util.List getBlocksList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -266,13 +219,11 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -284,8 +235,6 @@ public int getBlocksCount() { return blocks_.size(); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -297,8 +246,6 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { return blocks_.get(index); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -306,21 +253,19 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -329,7 +274,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -367,19 +312,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389,7 +339,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Page)) { return super.equals(obj); @@ -398,13 +348,18 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; - } - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; - if (!getBlocksList().equals(other.getBlocksList())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getBlocksList() + .equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,133 +384,125 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Page parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Page} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Page) com.google.cloud.vision.v1p3beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Page.class, - com.google.cloud.vision.v1p3beta1.Page.Builder.class); + com.google.cloud.vision.v1p3beta1.Page.class, com.google.cloud.vision.v1p3beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Page.newBuilder() @@ -563,17 +510,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override @@ -620,8 +567,7 @@ public com.google.cloud.vision.v1p3beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Page buildPartial() { - com.google.cloud.vision.v1p3beta1.Page result = - new com.google.cloud.vision.v1p3beta1.Page(this); + com.google.cloud.vision.v1p3beta1.Page result = new com.google.cloud.vision.v1p3beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -648,39 +594,38 @@ public com.google.cloud.vision.v1p3beta1.Page buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Page) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Page)other); } else { super.mergeFrom(other); return this; @@ -716,10 +661,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlocksFieldBuilder() - : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -756,60 +700,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -823,8 +752,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -843,22 +770,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -870,8 +792,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -890,42 +810,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -933,33 +844,27 @@ public Builder clearProperty() { * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - private int width_; + private int width_ ; /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -967,54 +872,45 @@ public int getWidth() { return width_; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -1022,62 +918,50 @@ public int getHeight() { return height_; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, - com.google.cloud.vision.v1p3beta1.Block.Builder, - com.google.cloud.vision.v1p3beta1.BlockOrBuilder> - blocksBuilder_; + com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder> blocksBuilder_; /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1092,8 +976,6 @@ public java.util.List getBlocksList() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1108,8 +990,6 @@ public int getBlocksCount() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1124,15 +1004,14 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1p3beta1.Block value) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1p3beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1146,8 +1025,6 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1p3beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1166,8 +1043,6 @@ public Builder setBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1188,15 +1063,14 @@ public Builder addBlocks(com.google.cloud.vision.v1p3beta1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1p3beta1.Block value) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1p3beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1210,15 +1084,14 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1p3beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder addBlocks(com.google.cloud.vision.v1p3beta1.Block.Builder builderForValue) { + public Builder addBlocks( + com.google.cloud.vision.v1p3beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1229,8 +1102,6 @@ public Builder addBlocks(com.google.cloud.vision.v1p3beta1.Block.Builder builder return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1249,8 +1120,6 @@ public Builder addBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1261,7 +1130,8 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1269,8 +1139,6 @@ public Builder addAllBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1288,8 +1156,6 @@ public Builder clearBlocks() { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1307,44 +1173,39 @@ public Builder removeBlocks(int index) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.Block.Builder getBlocksBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Block.Builder getBlocksBuilder( + int index) { return getBlocksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); - } else { + return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1352,8 +1213,6 @@ public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int i } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1361,62 +1220,54 @@ public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int i * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder(int index) { - return getBlocksFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public java.util.List getBlocksBuilderList() { + public java.util.List + getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, - com.google.cloud.vision.v1p3beta1.Block.Builder, - com.google.cloud.vision.v1p3beta1.BlockOrBuilder> + com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, - com.google.cloud.vision.v1p3beta1.Block.Builder, - com.google.cloud.vision.v1p3beta1.BlockOrBuilder>( - blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1424,43 +1275,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1470,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Page) private static final com.google.cloud.vision.v1p3beta1.Page DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Page(); } @@ -1484,16 +1329,16 @@ public static com.google.cloud.vision.v1p3beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java similarity index 76% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java index 92b5baf86..56bbe5781 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface PageOrBuilder - extends +public interface PageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Page) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
@@ -59,46 +35,37 @@ public interface PageOrBuilder com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ int getWidth(); /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ int getHeight(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - java.util.List getBlocksList(); + java.util.List + getBlocksList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -107,8 +74,6 @@ public interface PageOrBuilder */ com.google.cloud.vision.v1p3beta1.Block getBlocks(int index); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -117,36 +82,30 @@ public interface PageOrBuilder */ int getBlocksCount(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java similarity index 77% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java index 11bf30641..3442ff17f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Paragraph} */ -public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Paragraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Paragraph) ParagraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Paragraph( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Word.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Word.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -144,33 +118,27 @@ private Paragraph( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Paragraph.class, - com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p3beta1.Paragraph.class, com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
@@ -315,8 +263,6 @@ public java.util.List getWordsList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -324,13 +270,11 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -342,8 +286,6 @@ public int getWordsCount() { return words_.size(); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -355,8 +297,6 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { return words_.get(index); } /** - * - * *
    * List of words in this paragraph.
    * 
@@ -364,21 +304,19 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( + int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -387,7 +325,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -422,16 +360,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -441,25 +383,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Paragraph other = - (com.google.cloud.vision.v1p3beta1.Paragraph) obj; + com.google.cloud.vision.v1p3beta1.Paragraph other = (com.google.cloud.vision.v1p3beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,133 +429,125 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Paragraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Paragraph) com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Paragraph.class, - com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p3beta1.Paragraph.class, com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Paragraph.newBuilder() @@ -618,17 +555,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override @@ -677,8 +614,7 @@ public com.google.cloud.vision.v1p3beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p3beta1.Paragraph result = - new com.google.cloud.vision.v1p3beta1.Paragraph(this); + com.google.cloud.vision.v1p3beta1.Paragraph result = new com.google.cloud.vision.v1p3beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -708,39 +644,38 @@ public com.google.cloud.vision.v1p3beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Paragraph) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Paragraph)other); } else { super.mergeFrom(other); return this; @@ -773,10 +708,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -813,60 +747,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -880,8 +799,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -900,22 +817,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -927,8 +839,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -947,42 +857,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -990,17 +891,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1008,13 +906,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1034,15 +927,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1062,21 +952,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,8 +996,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1145,8 +1028,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,9 +1052,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1185,8 +1064,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1219,8 +1096,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,13 +1117,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1273,14 +1146,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1302,41 +1172,32 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Word,
-            com.google.cloud.vision.v1p3beta1.Word.Builder,
-            com.google.cloud.vision.v1p3beta1.WordOrBuilder>
-        wordsBuilder_;
+        com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder> wordsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of words in this paragraph.
      * 
@@ -1351,8 +1212,6 @@ public java.util.List getWordsList() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1367,8 +1226,6 @@ public int getWordsCount() { } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1383,15 +1240,14 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1p3beta1.Word value) { + public Builder setWords( + int index, com.google.cloud.vision.v1p3beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1405,8 +1261,6 @@ public Builder setWords(int index, com.google.cloud.vision.v1p3beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1425,8 +1279,6 @@ public Builder setWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1447,15 +1299,14 @@ public Builder addWords(com.google.cloud.vision.v1p3beta1.Word value) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1p3beta1.Word value) { + public Builder addWords( + int index, com.google.cloud.vision.v1p3beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1469,15 +1320,14 @@ public Builder addWords(int index, com.google.cloud.vision.v1p3beta1.Word value) return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder addWords(com.google.cloud.vision.v1p3beta1.Word.Builder builderForValue) { + public Builder addWords( + com.google.cloud.vision.v1p3beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1488,8 +1338,6 @@ public Builder addWords(com.google.cloud.vision.v1p3beta1.Word.Builder builderFo return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1508,8 +1356,6 @@ public Builder addWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1520,7 +1366,8 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1528,8 +1375,6 @@ public Builder addAllWords( return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1547,8 +1392,6 @@ public Builder clearWords() { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1566,44 +1409,39 @@ public Builder removeWords(int index) { return this; } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.Word.Builder getWordsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Word.Builder getWordsBuilder( + int index) { return getWordsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( + int index) { if (wordsBuilder_ == null) { - return words_.get(index); - } else { + return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1611,8 +1449,6 @@ public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int ind } } /** - * - * *
      * List of words in this paragraph.
      * 
@@ -1620,62 +1456,54 @@ public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int ind * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder(int index) { - return getWordsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder( + int index) { + return getWordsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public java.util.List getWordsBuilderList() { + public java.util.List + getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Word, - com.google.cloud.vision.v1p3beta1.Word.Builder, - com.google.cloud.vision.v1p3beta1.WordOrBuilder> + com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Word, - com.google.cloud.vision.v1p3beta1.Word.Builder, - com.google.cloud.vision.v1p3beta1.WordOrBuilder>( - words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder>( + words_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1683,43 +1511,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1729,12 +1551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Paragraph) private static final com.google.cloud.vision.v1p3beta1.Paragraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Paragraph(); } @@ -1743,16 +1565,16 @@ public static com.google.cloud.vision.v1p3beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1767,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java index 644dda006..1cfb7f3a0 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface ParagraphOrBuilder - extends +public interface ParagraphOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -59,8 +35,6 @@ public interface ParagraphOrBuilder com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface ParagraphOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -156,8 +121,6 @@ public interface ParagraphOrBuilder */ com.google.cloud.vision.v1p3beta1.Word getWords(int index); /** - * - * *
    * List of words in this paragraph.
    * 
@@ -166,35 +129,30 @@ public interface ParagraphOrBuilder */ int getWordsCount(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - java.util.List getWordsOrBuilderList(); + java.util.List + getWordsOrBuilderList(); /** - * - * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java similarity index 68% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java index 22d6467f4..896bf0e4f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Position}
  */
-public final class Position extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Position extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Position)
     PositionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Position() {}
+  private Position() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          case 29:
-            {
-              z_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            z_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,39 +83,34 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Position.class,
-            com.google.cloud.vision.v1p3beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Position.class, com.google.cloud.vision.v1p3beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -142,14 +121,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -160,14 +136,11 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -176,7 +149,6 @@ public float getZ() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -208,13 +181,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -224,20 +200,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Position other = - (com.google.cloud.vision.v1p3beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; - if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) - return false; + com.google.cloud.vision.v1p3beta1.Position other = (com.google.cloud.vision.v1p3beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; + if (java.lang.Float.floatToIntBits(getZ()) + != java.lang.Float.floatToIntBits( + other.getZ())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -250,114 +228,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -366,23 +340,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Position}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Position)
       com.google.cloud.vision.v1p3beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Position.class,
-              com.google.cloud.vision.v1p3beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Position.class, com.google.cloud.vision.v1p3beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Position.newBuilder()
@@ -390,15 +362,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +406,7 @@ public com.google.cloud.vision.v1p3beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Position result =
-          new com.google.cloud.vision.v1p3beta1.Position(this);
+      com.google.cloud.vision.v1p3beta1.Position result = new com.google.cloud.vision.v1p3beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -446,39 +418,38 @@ public com.google.cloud.vision.v1p3beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Position) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Position)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,16 +496,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -542,51 +510,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -594,51 +553,42 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_; + private float z_ ; /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -646,43 +596,37 @@ public float getZ() { return z_; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Position) private static final com.google.cloud.vision.v1p3beta1.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Position(); } @@ -706,16 +650,16 @@ public static com.google.cloud.vision.v1p3beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +674,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java similarity index 50% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java index c972abf63..f539aa66e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; -public interface PositionOrBuilder - extends +public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Position) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ float getX(); /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ float getY(); /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ float getZ(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java similarity index 78% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java index 2d51c008e..34bb9a42e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product} */ -public final class Product extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Product extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Product) ProductOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Product() { name_ = ""; displayName_ = ""; @@ -47,15 +29,16 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,54 +58,46 @@ private Product( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.KeyValue.parser(), - extensionRegistry)); - break; + productCategory_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + productLabels_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Product.KeyValue.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,7 +105,8 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -139,100 +115,83 @@ private Product( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.class, - com.google.cloud.vision.v1p3beta1.Product.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.class, com.google.cloud.vision.v1p3beta1.Product.Builder.class); } - public interface KeyValueOrBuilder - extends + public interface KeyValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product.KeyValue} */ - public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KeyValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KeyValue() { key_ = ""; value_ = ""; @@ -240,15 +199,16 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -267,27 +227,25 @@ private KeyValue( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -295,40 +253,35 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, - com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -337,30 +290,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -371,15 +324,12 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -388,30 +338,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -420,7 +370,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,7 +381,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -462,16 +412,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Product.KeyValue other = - (com.google.cloud.vision.v1p3beta1.Product.KeyValue) obj; + com.google.cloud.vision.v1p3beta1.Product.KeyValue other = (com.google.cloud.vision.v1p3beta1.Product.KeyValue) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -493,93 +444,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -589,32 +534,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product.KeyValue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Product.KeyValue) com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, - com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Product.KeyValue.newBuilder() @@ -622,15 +562,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override @@ -663,8 +604,7 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1p3beta1.Product.KeyValue result = - new com.google.cloud.vision.v1p3beta1.Product.KeyValue(this); + com.google.cloud.vision.v1p3beta1.Product.KeyValue result = new com.google.cloud.vision.v1p3beta1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -675,41 +615,38 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Product.KeyValue) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Product.KeyValue)other); } else { super.mergeFrom(other); return this; @@ -717,8 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Product.KeyValue other) { - if (other == com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -746,8 +682,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.Product.KeyValue) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.Product.KeyValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -759,21 +694,19 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -782,22 +715,21 @@ public java.lang.String getKey() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -805,64 +737,57 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -870,21 +795,19 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -893,22 +816,21 @@ public java.lang.String getValue() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -916,69 +838,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -991,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) private static final com.google.cloud.vision.v1p3beta1.Product.KeyValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Product.KeyValue(); } @@ -1005,16 +919,16 @@ public static com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,13 +943,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1044,7 +957,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInstanceForT
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1053,15 +965,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1070,15 +981,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1089,15 +1001,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1106,30 +1015,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1140,15 +1049,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -1157,30 +1063,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1191,8 +1097,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1201,7 +1105,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ @java.lang.Override @@ -1210,15 +1113,14 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1227,15 +1129,16 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1246,8 +1149,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1265,8 +1166,6 @@ public java.util.List getPro
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1280,13 +1179,11 @@ public java.util.List getPro
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1304,8 +1201,6 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1323,8 +1218,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int i
     return productLabels_.get(index);
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1344,7 +1237,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1356,7 +1248,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1394,7 +1287,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1404,19 +1298,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Product)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.Product other =
-        (com.google.cloud.vision.v1p3beta1.Product) obj;
-
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getProductCategory().equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
+    com.google.cloud.vision.v1p3beta1.Product other = (com.google.cloud.vision.v1p3beta1.Product) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getProductCategory()
+        .equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList()
+        .equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1445,127 +1343,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.Product parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Product) com.google.cloud.vision.v1p3beta1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.class, - com.google.cloud.vision.v1p3beta1.Product.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.class, com.google.cloud.vision.v1p3beta1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Product.newBuilder() @@ -1573,17 +1462,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1605,9 +1494,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override @@ -1626,8 +1515,7 @@ public com.google.cloud.vision.v1p3beta1.Product build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product buildPartial() { - com.google.cloud.vision.v1p3beta1.Product result = - new com.google.cloud.vision.v1p3beta1.Product(this); + com.google.cloud.vision.v1p3beta1.Product result = new com.google.cloud.vision.v1p3beta1.Product(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1650,39 +1538,38 @@ public com.google.cloud.vision.v1p3beta1.Product buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Product) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Product) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Product)other); } else { super.mergeFrom(other); return this; @@ -1725,10 +1612,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductLabelsFieldBuilder() - : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductLabelsFieldBuilder() : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1762,13 +1648,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1777,13 +1660,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1792,8 +1675,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1802,14 +1683,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1817,8 +1699,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1827,22 +1707,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1851,18 +1729,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1871,16 +1746,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1888,21 +1763,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1911,22 +1784,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1934,64 +1806,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1999,21 +1864,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2022,22 +1885,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2045,64 +1907,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2110,8 +1965,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object productCategory_ = ""; /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2120,13 +1973,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -2135,8 +1988,6 @@ public java.lang.String getProductCategory() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2145,14 +1996,15 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2160,8 +2012,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2170,22 +2020,20 @@ public com.google.protobuf.ByteString getProductCategoryBytes() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory(java.lang.String value) { + public Builder setProductCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2194,18 +2042,15 @@ public Builder setProductCategory(java.lang.String value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2214,42 +2059,34 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList( - productLabels_); + productLabels_ = new java.util.ArrayList(productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product.KeyValue, - com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, - com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> - productLabelsBuilder_; + com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> productLabelsBuilder_; /** - * - * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2262,8 +2099,7 @@ private void ensureProductLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsList() {
+    public java.util.List getProductLabelsList() {
       if (productLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(productLabels_);
       } else {
@@ -2271,8 +2107,6 @@ private void ensureProductLabelsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2293,8 +2127,6 @@ public int getProductLabelsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2315,8 +2147,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int i
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2344,8 +2174,6 @@ public Builder setProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2370,8 +2198,6 @@ public Builder setProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2398,8 +2224,6 @@ public Builder addProductLabels(com.google.cloud.vision.v1p3beta1.Product.KeyVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2427,8 +2251,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2453,8 +2275,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2479,8 +2299,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2497,7 +2315,8 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2505,8 +2324,6 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2530,8 +2347,6 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2555,8 +2370,6 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2574,8 +2387,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder getProductLabe
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2591,14 +2402,11 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder getProductLabe
     public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);
-      } else {
+        return productLabels_.get(index);  } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2611,8 +2419,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsOrBuilderList() {
+    public java.util.List 
+         getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2620,8 +2428,6 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2635,12 +2441,10 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2655,13 +2459,10 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
      */
     public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabelsBuilder(
         int index) {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2674,22 +2475,16 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsBuilderList() {
+    public java.util.List 
+         getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Product.KeyValue,
-            com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder,
-            com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>
+        com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> 
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.Product.KeyValue,
-                com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder,
-                com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2698,9 +2493,9 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
       }
       return productLabelsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2710,12 +2505,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product)
   private static final com.google.cloud.vision.v1p3beta1.Product DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Product();
   }
@@ -2724,16 +2519,16 @@ public static com.google.cloud.vision.v1p3beta1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Product parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Product(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Product parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Product(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2748,4 +2543,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
similarity index 100%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
similarity index 84%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
index 8798bb1a9..6bd8499fb 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ProductOrBuilder
-    extends
+public interface ProductOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the product.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -49,68 +28,56 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -119,13 +86,10 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ java.lang.String getProductCategory(); /** - * - * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -134,14 +98,12 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString getProductCategoryBytes(); + com.google.protobuf.ByteString + getProductCategoryBytes(); /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -154,10 +116,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List getProductLabelsList();
+  java.util.List 
+      getProductLabelsList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -172,8 +133,6 @@ public interface ProductOrBuilder
    */
   com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int index);
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -188,8 +147,6 @@ public interface ProductOrBuilder
    */
   int getProductLabelsCount();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -202,11 +159,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List
+  java.util.List 
       getProductLabelsOrBuilderList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -219,5 +174,6 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
+  com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
similarity index 78%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
index 6ac655aeb..831ade070 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchParams} */ -public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchParams) ProductSearchParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,53 +56,47 @@ private ProductSearchParams( case 0: done = true; break; - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productCategories_.add(s); - break; + productSet_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + productCategories_.add(s); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + filter_ = s; + break; + } + case 74: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 74: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +104,8 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -136,34 +114,28 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -171,26 +143,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -206,8 +171,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
-   *
-   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -215,7 +178,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ @java.lang.Override @@ -224,15 +186,14 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** - * - * *
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -240,15 +201,16 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -259,8 +221,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -272,15 +232,13 @@ public com.google.protobuf.ByteString getProductSetBytes() {
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_; } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -292,15 +250,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -312,7 +267,6 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -320,8 +274,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -333,19 +285,17 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -357,7 +307,6 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
    * 
* * string filter = 8; - * * @return The filter. */ @java.lang.Override @@ -366,15 +315,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -386,15 +334,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -403,7 +352,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -452,7 +401,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -462,21 +412,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchParams other = - (com.google.cloud.vision.v1p3beta1.ProductSearchParams) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchParams other = (com.google.cloud.vision.v1p3beta1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; - } - if (!getProductSet().equals(other.getProductSet())) return false; - if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; + } + if (!getProductSet() + .equals(other.getProductSet())) return false; + if (!getProductCategoriesList() + .equals(other.getProductCategoriesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -506,127 +459,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchParams) com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder() @@ -634,15 +577,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -662,9 +606,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override @@ -683,8 +627,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchParams result = - new com.google.cloud.vision.v1p3beta1.ProductSearchParams(this); + com.google.cloud.vision.v1p3beta1.ProductSearchParams result = new com.google.cloud.vision.v1p3beta1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -706,39 +649,38 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchParams) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchParams)other); } else { super.mergeFrom(other); return this; @@ -746,8 +688,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchParams other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -788,8 +729,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ProductSearchParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -798,54 +738,40 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -867,8 +793,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -888,8 +812,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -901,9 +823,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -915,8 +835,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -936,8 +854,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -946,13 +862,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -964,14 +878,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -980,17 +891,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -998,8 +906,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private java.lang.Object productSet_ = "";
     /**
-     *
-     *
      * 
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1007,13 +913,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -1022,8 +928,6 @@ public java.lang.String getProductSet() { } } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1031,14 +935,15 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -1046,8 +951,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { } } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1055,22 +958,20 @@ public com.google.protobuf.ByteString getProductSetBytes() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet(java.lang.String value) { + public Builder setProductSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1078,18 +979,15 @@ public Builder setProductSet(java.lang.String value) {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** - * - * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -1097,33 +995,29 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1135,15 +1029,13 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1155,15 +1047,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
      * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1175,7 +1064,6 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1183,8 +1071,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1196,16 +1082,14 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1217,23 +1101,21 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories(int index, java.lang.String value) { + public Builder setProductCategories( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1245,22 +1127,20 @@ public Builder setProductCategories(int index, java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories(java.lang.String value) { + public Builder addProductCategories( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1272,19 +1152,18 @@ public Builder addProductCategories(java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories(java.lang.Iterable values) { + public Builder addAllProductCategories( + java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productCategories_); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1296,7 +1175,6 @@ public Builder addAllProductCategories(java.lang.Iterable valu
      * 
* * repeated string product_categories = 7; - * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1306,8 +1184,6 @@ public Builder clearProductCategories() { return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1319,15 +1195,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; - * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1336,8 +1212,6 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1349,13 +1223,13 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 8; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1364,8 +1238,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1377,14 +1249,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1392,8 +1265,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1405,22 +1276,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 8; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1432,18 +1301,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 8; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1455,23 +1321,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1481,12 +1347,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) private static final com.google.cloud.vision.v1p3beta1.ProductSearchParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchParams(); } @@ -1495,16 +1361,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSearchParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1519,4 +1385,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java index e798327c6..33e89992c 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; -public interface ProductSearchParamsOrBuilder - extends +public interface ProductSearchParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -62,8 +38,6 @@ public interface ProductSearchParamsOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -71,13 +45,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ java.lang.String getProductSet(); /** - * - * *
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -85,14 +56,12 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - com.google.protobuf.ByteString getProductSetBytes(); + com.google.protobuf.ByteString + getProductSetBytes(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -104,13 +73,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - java.util.List getProductCategoriesList(); + java.util.List + getProductCategoriesList(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -122,13 +89,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ int getProductCategoriesCount(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -140,14 +104,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -159,15 +120,13 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString getProductCategoriesBytes(int index); + com.google.protobuf.ByteString + getProductCategoriesBytes(int index); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -179,13 +138,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -197,8 +153,8 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java new file mode 100644 index 000000000..741f1f891 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/vision/v1p3beta1/product_" + + "search.proto\022\035google.cloud.vision.v1p3be" + + "ta1\032\031google/api/resource.proto\032,google/c" + + "loud/vision/v1p3beta1/geometry.proto\032:go" + + "ogle/cloud/vision/v1p3beta1/product_sear" + + "ch_service.proto\032\037google/protobuf/timest" + + "amp.proto\"\301\001\n\023ProductSearchParams\022B\n\rbou" + + "nding_poly\030\t \001(\0132+.google.cloud.vision.v" + + "1p3beta1.BoundingPoly\022:\n\013product_set\030\006 \001" + + "(\tB%\372A\"\n vision.googleapis.com/ProductSe" + + "t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006filter\030" + + "\010 \001(\t\"\262\005\n\024ProductSearchResults\022.\n\nindex_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022K" + + "\n\007results\030\005 \003(\0132:.google.cloud.vision.v1" + + "p3beta1.ProductSearchResults.Result\022b\n\027p" + + "roduct_grouped_results\030\006 \003(\0132A.google.cl" + + "oud.vision.v1p3beta1.ProductSearchResult" + + "s.GroupedResult\032_\n\006Result\0227\n\007product\030\001 \001" + + "(\0132&.google.cloud.vision.v1p3beta1.Produ" + + "ct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020Obje" + + "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" + + "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002" + + "\n\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.BoundingP" + + "oly\022K\n\007results\030\002 \003(\0132:.google.cloud.visi" + + "on.v1p3beta1.ProductSearchResults.Result" + + "\022`\n\022object_annotations\030\003 \003(\0132D.google.cl" + + "oud.vision.v1p3beta1.ProductSearchResult" + + "s.ObjectAnnotationB\210\001\n!com.google.cloud." + + "vision.v1p3beta1B\022ProductSearchProtoP\001ZC" + + "google.golang.org/genproto/googleapis/cl" + + "oud/vision/v1p3beta1;vision\370\001\001\242\002\004GCVNb\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor, + new java.lang.String[] { "BoundingPoly", "ProductSet", "ProductCategories", "Filter", }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor, + new java.lang.String[] { "IndexTime", "Results", "ProductGroupedResults", }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor, + new java.lang.String[] { "Product", "Score", "Image", }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor, + new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor, + new java.lang.String[] { "BoundingPoly", "Results", "ObjectAnnotations", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java similarity index 70% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java index cc0650251..052e0b198 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Results for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults} */ -public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchResults extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults) ProductSearchResultsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,44 @@ private ProductSearchResults( case 0: done = true; break; - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), - extensionRegistry)); - break; + indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult>(); - mutable_bitField0_ |= 0x00000002; - } - productGroupedResults_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.parser(), - extensionRegistry)); - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + results_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +100,8 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -141,54 +113,42 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder - extends + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** - * - * *
      * The Product.
      * 
@@ -198,80 +158,70 @@ public interface ResultOrBuilder com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); } /** - * - * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.Result} */ - public static final class Result extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -290,41 +240,37 @@ private Result( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 21: - { - score_ = input.readFloat(); - break; + product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -332,39 +278,34 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.Product product_; /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return Whether the product field is set. */ @java.lang.Override @@ -372,25 +313,18 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } /** - * - * *
      * The Product.
      * 
@@ -405,15 +339,12 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -424,15 +355,12 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ @java.lang.Override @@ -441,30 +369,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -473,7 +401,6 @@ public com.google.protobuf.ByteString getImageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,7 +412,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -505,10 +433,12 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -521,21 +451,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getImage().equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getImage() + .equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,7 +484,8 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -561,94 +494,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -658,32 +584,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.Result} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.newBuilder() @@ -691,15 +612,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -717,14 +639,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance(); } @@ -739,8 +660,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result result = - new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -756,52 +676,46 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other) { - if (other - == com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other) { + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -831,9 +745,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -845,47 +757,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; - * * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
        * The Product.
        * 
@@ -906,15 +805,14 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; */ - public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -925,8 +823,6 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder buil return this; } /** - * - * *
        * The Product.
        * 
@@ -937,9 +833,7 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -951,8 +845,6 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
@@ -971,8 +863,6 @@ public Builder clearProduct() { return this; } /** - * - * *
        * The Product.
        * 
@@ -980,13 +870,11 @@ public Builder clearProduct() { * .google.cloud.vision.v1p3beta1.Product product = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
        * The Product.
        * 
@@ -997,14 +885,11 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
        * The Product.
        * 
@@ -1012,33 +897,27 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() * .google.cloud.vision.v1p3beta1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; } - private float score_; + private float score_ ; /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1046,38 +925,32 @@ public float getScore() { return score_; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1085,21 +958,19 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1108,22 +979,21 @@ public java.lang.String getImage() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1131,69 +1001,61 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1206,32 +1068,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1243,45 +1103,37 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ObjectAnnotationOrBuilder - extends + public interface ObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1289,13 +1141,10 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1303,68 +1152,57 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ float getScore(); } /** - * - * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1373,15 +1211,16 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1400,39 +1239,36 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1440,40 +1276,34 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - .class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -1482,29 +1312,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1515,8 +1345,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1524,7 +1352,6 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -1533,15 +1360,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1549,15 +1375,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1568,14 +1395,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -1584,29 +1408,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1617,14 +1441,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1633,7 +1454,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1645,7 +1465,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1677,7 +1498,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1687,20 +1509,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)) { + if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1719,102 +1543,95 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1824,50 +1641,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - .class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1883,22 +1694,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); } @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation build() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = - buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1906,10 +1714,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation b } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = - new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(this); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation buildPartial() { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1922,54 +1728,46 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom( - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) other); + if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) { + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other) { - if (other - == com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other) { + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -2000,14 +1798,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parsedMessage = - null; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2019,20 +1814,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -2041,21 +1834,20 @@ public java.lang.String getMid() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -2063,61 +1855,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -2125,8 +1910,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2134,13 +1917,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2149,8 +1932,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2158,14 +1939,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2173,8 +1955,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2182,22 +1962,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. - */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + */ + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2205,18 +1983,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2224,16 +1999,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2241,20 +2016,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2263,21 +2036,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2285,76 +2057,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -2362,41 +2124,34 @@ public float getScore() { return score_; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2409,33 +2164,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(); + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2447,44 +2199,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GroupedResultOrBuilder - extends + public interface GroupedResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2494,18 +2237,15 @@ public interface GroupedResultOrBuilder com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2514,8 +2254,6 @@ public interface GroupedResultOrBuilder */ com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2524,19 +2262,15 @@ public interface GroupedResultOrBuilder */ int getResultsCount(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2547,75 +2281,50 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List + java.util.List getObjectAnnotationsList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( - int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ int getObjectAnnotationsCount(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List< - ? extends - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + java.util.List getObjectAnnotationsOrBuilderList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index); } /** - * - * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2623,16 +2332,15 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjec
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GroupedResult extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2640,15 +2348,16 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2668,59 +2377,44 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null;
-                if (boundingPoly_ != null) {
-                  subBuilder = boundingPoly_.toBuilder();
-                }
-                boundingPoly_ =
-                    input.readMessage(
-                        com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(boundingPoly_);
-                  boundingPoly_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null;
+              if (boundingPoly_ != null) {
+                subBuilder = boundingPoly_.toBuilder();
+              }
+              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(boundingPoly_);
+                boundingPoly_ = subBuilder.buildPartial();
               }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  results_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                results_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(),
-                        extensionRegistry));
-                break;
+
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 26:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  objectAnnotations_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1p3beta1.ProductSearchResults
-                              .ObjectAnnotation>();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                objectAnnotations_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation
-                            .parser(),
-                        extensionRegistry));
-                break;
+              results_.add(
+                  input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), extensionRegistry));
+              break;
+            }
+            case 26: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                objectAnnotations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              objectAnnotations_.add(
+                  input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2728,7 +2422,8 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2740,33 +2435,27 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class,
-              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_;
     /**
-     *
-     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2774,25 +2463,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2807,8 +2489,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2816,13 +2496,10 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2830,14 +2507,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2849,8 +2523,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2862,8 +2534,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2871,98 +2541,72 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List - objectAnnotations_; + private java.util.List objectAnnotations_; /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + public java.util.List getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { return objectAnnotations_.get(index); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2974,7 +2618,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2994,14 +2639,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3011,20 +2658,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList() + .equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3054,95 +2703,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3152,8 +2793,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about the products similar to a single product in a query
      * image.
@@ -3161,44 +2800,40 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class,
-                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.newBuilder()
+      // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3224,22 +2859,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
-          getDefaultInstanceForType() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
-            .getDefaultInstance();
+      public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult build() {
-        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result =
-            buildPartial();
+        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3248,8 +2880,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buil
 
       @java.lang.Override
       public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result =
-            new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -3282,53 +2913,46 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buil
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) {
-          return mergeFrom(
-              (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) other);
+          return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other) {
-        if (other
-            == com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other) {
+        if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -3350,10 +2974,9 @@ public Builder mergeFrom(
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getResultsFieldBuilder()
-                      : null;
+              resultsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getResultsFieldBuilder() : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3377,10 +3000,9 @@ public Builder mergeFrom(
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getObjectAnnotationsFieldBuilder()
-                      : null;
+              objectAnnotationsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getObjectAnnotationsFieldBuilder() : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3405,9 +3027,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3416,52 +3036,38 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.vision.v1p3beta1.BoundingPoly,
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-              com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
-          boundingPolyBuilder_;
+          com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
       /**
-       *
-       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3482,8 +3088,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3502,8 +3106,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3514,9 +3116,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -3528,8 +3128,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3548,8 +3146,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3557,13 +3153,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3574,14 +3168,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3589,52 +3180,39 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - private java.util.List - results_ = java.util.Collections.emptyList(); - + private java.util.List results_ = + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>(results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> - resultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3642,14 +3220,11 @@ private void ensureResultsIsMutable() { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -3659,14 +3234,11 @@ public int getResultsCount() { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index) { if (resultsBuilder_ == null) { @@ -3676,14 +3248,11 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder setResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { @@ -3700,18 +3269,14 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder setResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3722,17 +3287,13 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public Builder addResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { + public Builder addResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3746,14 +3307,11 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { @@ -3770,14 +3328,11 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { @@ -3791,18 +3346,14 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3813,22 +3364,18 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder addAllResults( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result> - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3836,14 +3383,11 @@ public Builder addAllResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -3856,14 +3400,11 @@ public Builder clearResults() { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -3876,50 +3417,39 @@ public Builder removeResults(int index) { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder - getResultsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3927,103 +3457,74 @@ public Builder removeResults(int index) { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } - /** - * - * + /** *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation> - objectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List objectAnnotations_ = + java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation>( - objectAnnotations_); + objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> - objectAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -4031,15 +3532,11 @@ private void ensureObjectAnnotationsIsMutable() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -4049,18 +3546,13 @@ public int getObjectAnnotationsCount() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -4068,19 +3560,14 @@ public int getObjectAnnotationsCount() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4094,20 +3581,14 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -4118,18 +3599,13 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public Builder addObjectAnnotations( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4143,19 +3619,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4169,19 +3640,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -4192,20 +3658,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -4216,23 +3676,18 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addAllObjectAnnotations( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation> - values) { + java.lang.Iterable values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -4240,15 +3695,11 @@ public Builder addAllObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -4261,15 +3712,11 @@ public Builder clearObjectAnnotations() { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -4282,54 +3729,39 @@ public Builder removeObjectAnnotations(int index) { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - getObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( + int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); - } else { + return objectAnnotations_.get(index); } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - ? extends - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> - getObjectAnnotationsOrBuilderList() { + public java.util.List + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4337,70 +3769,45 @@ public Builder removeObjectAnnotations(int index) { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder(int index) { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( + int index) { + return getObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder> - getObjectAnnotationsBuilderList() { + public java.util.List + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4409,7 +3816,6 @@ public Builder removeObjectAnnotations(int index) { } return objectAnnotationsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4422,32 +3828,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4459,17 +3863,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4477,7 +3879,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -4485,8 +3886,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4494,7 +3893,6 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ @java.lang.Override @@ -4502,8 +3900,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4520,8 +3916,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
@@ -4529,13 +3923,10 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4543,14 +3934,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4562,8 +3950,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4575,8 +3961,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4590,11 +3974,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List - productGroupedResults_; + private java.util.List productGroupedResults_; /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4602,18 +3983,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4621,19 +3997,14 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + public java.util.List getProductGroupedResultsOrBuilderList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4641,17 +4012,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override public int getProductGroupedResultsCount() { return productGroupedResults_.size(); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4659,18 +4026,13 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { return productGroupedResults_.get(index); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4678,18 +4040,15 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4701,7 +4060,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4721,15 +4081,16 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, productGroupedResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4739,20 +4100,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults other = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime().equals(other.getIndexTime())) return false; + if (!getIndexTime() + .equals(other.getIndexTime())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList() + .equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4782,127 +4145,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults) com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder() @@ -4910,18 +4263,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4947,9 +4300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4968,8 +4321,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults result = - new com.google.cloud.vision.v1p3beta1.ProductSearchResults(this); + com.google.cloud.vision.v1p3beta1.ProductSearchResults result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -5002,39 +4354,38 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults)other); } else { super.mergeFrom(other); return this; @@ -5042,8 +4393,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance()) return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -5065,10 +4415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -5092,10 +4441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductGroupedResultsFieldBuilder() - : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductGroupedResultsFieldBuilder() : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -5120,8 +4468,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.ProductSearchResults) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5130,18 +4477,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5149,15 +4490,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5165,7 +4503,6 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -5176,8 +4513,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5200,8 +4535,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5210,7 +4543,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -5221,8 +4555,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5235,7 +4567,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -5247,8 +4579,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5269,8 +4599,6 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5280,13 +4608,11 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-
+      
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5299,12 +4625,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5314,51 +4639,39 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(), getParentForChildren(), isClean());
+        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(),
+                getParentForChildren(),
+                isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result,
-            com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder,
-            com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -5366,8 +4679,6 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5382,8 +4693,6 @@ public int getResultsCount() { } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5398,8 +4707,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5421,8 +4728,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5430,8 +4735,7 @@ public Builder setResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder setResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -5442,8 +4746,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5464,8 +4766,6 @@ public Builder addResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5487,8 +4787,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5507,8 +4805,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5516,8 +4812,7 @@ public Builder addResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder addResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -5528,8 +4823,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5537,11 +4830,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -5549,8 +4842,6 @@ public Builder addAllResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5568,8 +4859,6 @@ public Builder clearResults() { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5587,8 +4876,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5600,34 +4887,28 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder get return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -5635,23 +4916,17 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder get } } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5660,64 +4935,48 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder get */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List - productGroupedResults_ = java.util.Collections.emptyList(); - + private java.util.List productGroupedResults_ = + java.util.Collections.emptyList(); private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult>( - productGroupedResults_); + productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> - productGroupedResultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5725,12 +4984,9 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -5738,8 +4994,6 @@ private void ensureProductGroupedResultsIsMutable() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5747,9 +5001,7 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5759,8 +5011,6 @@ public int getProductGroupedResultsCount() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5768,12 +5018,9 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5781,8 +5028,6 @@ public int getProductGroupedResultsCount() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5790,9 +5035,7 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { @@ -5809,8 +5052,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5818,14 +5059,10 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5836,8 +5073,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5845,12 +5080,9 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public Builder addProductGroupedResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5864,8 +5096,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5873,9 +5103,7 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { @@ -5892,8 +5120,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5901,13 +5127,10 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(builderForValue.build()); @@ -5918,8 +5141,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5927,14 +5148,10 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( - int index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5945,8 +5162,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5954,17 +5169,14 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addAllProductGroupedResults( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult> - values) { + java.lang.Iterable values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5972,8 +5184,6 @@ public Builder addAllProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5981,9 +5191,7 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5996,8 +5204,6 @@ public Builder clearProductGroupedResults() { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6005,9 +5211,7 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -6020,8 +5224,6 @@ public Builder removeProductGroupedResults(int index) { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6029,17 +5231,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - getProductGroupedResultsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( + int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6047,21 +5245,16 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); - } else { + return productGroupedResults_.get(index); } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6069,13 +5262,10 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> - getProductGroupedResultsOrBuilderList() { + public java.util.List + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -6083,8 +5273,6 @@ public Builder removeProductGroupedResults(int index) { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6092,20 +5280,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6113,21 +5294,14 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder(int index) { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( + int index) { + return getProductGroupedResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6135,27 +5309,18 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder> - getProductGroupedResultsBuilderList() { + public java.util.List + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6164,9 +5329,9 @@ public Builder removeProductGroupedResults(int index) { } return productGroupedResultsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6176,12 +5341,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults(); } @@ -6190,16 +5355,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSearchResults getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6214,4 +5379,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java index 6802c4873..257811bbb 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; -public interface ProductSearchResultsOrBuilder - extends +public interface ProductSearchResultsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -33,13 +15,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -47,13 +26,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -65,18 +41,15 @@ public interface ProductSearchResultsOrBuilder
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -85,8 +58,6 @@ public interface ProductSearchResultsOrBuilder */ com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -95,19 +66,15 @@ public interface ProductSearchResultsOrBuilder */ int getResultsCount(); /** - * - * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -118,8 +85,6 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -127,15 +92,11 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List + java.util.List getProductGroupedResultsList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -143,15 +104,10 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults( - int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -159,14 +115,10 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ int getProductGroupedResultsCount(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -174,16 +126,11 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + java.util.List getProductGroupedResultsOrBuilderList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -191,10 +138,8 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java new file mode 100644 index 000000000..4d599dfee --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java @@ -0,0 +1,614 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/vision/v1p3beta1/product_" + + "search_service.proto\022\035google.cloud.visio" + + "n.v1p3beta1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032,google/cloud/vision/v1p3beta1/ge" + + "ometry.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + + "3beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + + "gleapis.com/Product\022:projects/{project}/" + + "locations/{location}/products/{product}\"" + + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + + "on.googleapis.com/ProductSet\022Aprojects/{" + + "project}/locations/{location}/productSet" + + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + + "olys\030\003 \003(\0132+.google.cloud.vision.v1p3bet" + + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + + "leapis.com/ReferenceImage\022\\projects/{pro" + + "ject}/locations/{location}/products/{pro" + + "duct}/referenceImages/{reference_image}\"" + + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + + "on.v1p3beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + + "ts\030\001 \003(\0132&.google.cloud.vision.v1p3beta1" + + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + + "loud.vision.v1p3beta1.ProductB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + + "oud.vision.v1p3beta1.ProductSetB\003\340A\002\022\026\n\016" + + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + + "le.cloud.vision.v1p3beta1.ProductSet\022\027\n\017" + + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + + "cloud.vision.v1p3beta1.ProductSetB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + + "ProductSet\"\275\001\n\033CreateReferenceImageReque" + + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + + "eapis.com/Product\022K\n\017reference_image\030\002 \001" + + "(\0132-.google.cloud.vision.v1p3beta1.Refer" + + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + + "\n\020reference_images\030\001 \003(\0132-.google.cloud." + + "vision.v1p3beta1.ReferenceImage\022\021\n\tpage_" + + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + + "ReferenceImage\"\217\001\n\035AddProductToProductSe" + + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"u\n ListProductsInProductSetResponse\0228" + + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + + "1p3beta1.Product\022\027\n\017next_page_token\030\002 \001(" + + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + + ".vision.v1p3beta1.ImportProductSetsGcsSo" + + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022V\n\014input_config" + + "\030\002 \001(\0132;.google.cloud.vision.v1p3beta1.I" + + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + + "ortProductSetsResponse\022G\n\020reference_imag" + + "es\030\001 \003(\0132-.google.cloud.vision.v1p3beta1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + + "p3beta1.BatchOperationMetadata.State\022/\n\013" + + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + + "AILED\020\003\022\r\n\tCANCELLED\020\0042\353\036\n\rProductSearch" + + "\022\346\001\n\020CreateProductSet\0226.google.cloud.vis" + + "ion.v1p3beta1.CreateProductSetRequest\032)." + + "google.cloud.vision.v1p3beta1.ProductSet" + + "\"o\202\323\344\223\002E\"6/v1p3beta1/{parent=projects/*/" + + "locations/*}/productSets:\013product_set\332A!" + + "parent,product_set,product_set_id\022\311\001\n\017Li" + + "stProductSets\0225.google.cloud.vision.v1p3" + + "beta1.ListProductSetsRequest\0326.google.cl" + + "oud.vision.v1p3beta1.ListProductSetsResp" + + "onse\"G\202\323\344\223\0028\0226/v1p3beta1/{parent=project" + + "s/*/locations/*}/productSets\332A\006parent\022\266\001" + + "\n\rGetProductSet\0223.google.cloud.vision.v1" + + "p3beta1.GetProductSetRequest\032).google.cl" + + "oud.vision.v1p3beta1.ProductSet\"E\202\323\344\223\0028\022" + + "6/v1p3beta1/{name=projects/*/locations/*" + + "/productSets/*}\332A\004name\022\350\001\n\020UpdateProduct" + + "Set\0226.google.cloud.vision.v1p3beta1.Upda" + + "teProductSetRequest\032).google.cloud.visio" + + "n.v1p3beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p3bet" + + "a1/{product_set.name=projects/*/location" + + "s/*/productSets/*}:\013product_set\332A\027produc" + + "t_set,update_mask\022\251\001\n\020DeleteProductSet\0226" + + ".google.cloud.vision.v1p3beta1.DeletePro" + + "ductSetRequest\032\026.google.protobuf.Empty\"E" + + "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/loca" + + "tions/*/productSets/*}\332A\004name\022\316\001\n\rCreate" + + "Product\0223.google.cloud.vision.v1p3beta1." + + "CreateProductRequest\032&.google.cloud.visi" + + "on.v1p3beta1.Product\"`\202\323\344\223\002>\"3/v1p3beta1" + + "/{parent=projects/*/locations/*}/product" + + "s:\007product\332A\031parent,product,product_id\022\275" + + "\001\n\014ListProducts\0222.google.cloud.vision.v1" + + "p3beta1.ListProductsRequest\0323.google.clo" + + "ud.vision.v1p3beta1.ListProductsResponse" + + "\"D\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/" + + "locations/*}/products\332A\006parent\022\252\001\n\nGetPr" + + "oduct\0220.google.cloud.vision.v1p3beta1.Ge" + + "tProductRequest\032&.google.cloud.vision.v1" + + "p3beta1.Product\"B\202\323\344\223\0025\0223/v1p3beta1/{nam" + + "e=projects/*/locations/*/products/*}\332A\004n" + + "ame\022\320\001\n\rUpdateProduct\0223.google.cloud.vis" + + "ion.v1p3beta1.UpdateProductRequest\032&.goo" + + "gle.cloud.vision.v1p3beta1.Product\"b\202\323\344\223" + + "\002F2;/v1p3beta1/{product.name=projects/*/" + + "locations/*/products/*}:\007product\332A\023produ" + + "ct,update_mask\022\240\001\n\rDeleteProduct\0223.googl" + + "e.cloud.vision.v1p3beta1.DeleteProductRe" + + "quest\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*3/" + + "v1p3beta1/{name=projects/*/locations/*/p" + + "roducts/*}\332A\004name\022\216\002\n\024CreateReferenceIma" + + "ge\022:.google.cloud.vision.v1p3beta1.Creat" + + "eReferenceImageRequest\032-.google.cloud.vi" + + "sion.v1p3beta1.ReferenceImage\"\212\001\202\323\344\223\002X\"E" + + "/v1p3beta1/{parent=projects/*/locations/" + + "*/products/*}/referenceImages:\017reference" + + "_image\332A)parent,reference_image,referenc" + + "e_image_id\022\300\001\n\024DeleteReferenceImage\022:.go" + + "ogle.cloud.vision.v1p3beta1.DeleteRefere" + + "nceImageRequest\032\026.google.protobuf.Empty\"" + + "T\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/loc" + + "ations/*/products/*/referenceImages/*}\332A" + + "\004name\022\344\001\n\023ListReferenceImages\0229.google.c" + + "loud.vision.v1p3beta1.ListReferenceImage" + + "sRequest\032:.google.cloud.vision.v1p3beta1" + + ".ListReferenceImagesResponse\"V\202\323\344\223\002G\022E/v" + + "1p3beta1/{parent=projects/*/locations/*/" + + "products/*}/referenceImages\332A\006parent\022\321\001\n" + + "\021GetReferenceImage\0227.google.cloud.vision" + + ".v1p3beta1.GetReferenceImageRequest\032-.go" + + "ogle.cloud.vision.v1p3beta1.ReferenceIma" + + "ge\"T\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/" + + "locations/*/products/*/referenceImages/*" + + "}\332A\004name\022\313\001\n\026AddProductToProductSet\022<.go" + + "ogle.cloud.vision.v1p3beta1.AddProductTo" + + "ProductSetRequest\032\026.google.protobuf.Empt" + + "y\"[\202\323\344\223\002F\"A/v1p3beta1/{name=projects/*/l" + + "ocations/*/productSets/*}:addProduct:\001*\332" + + "A\014name,product\022\330\001\n\033RemoveProductFromProd" + + "uctSet\022A.google.cloud.vision.v1p3beta1.R" + + "emoveProductFromProductSetRequest\032\026.goog" + + "le.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p3beta1/{n" + + "ame=projects/*/locations/*/productSets/*" + + "}:removeProduct:\001*\332A\014name,product\022\353\001\n\030Li" + + "stProductsInProductSet\022>.google.cloud.vi" + + "sion.v1p3beta1.ListProductsInProductSetR" + + "equest\032?.google.cloud.vision.v1p3beta1.L" + + "istProductsInProductSetResponse\"N\202\323\344\223\002A\022" + + "?/v1p3beta1/{name=projects/*/locations/*" + + "/productSets/*}/products\332A\004name\022\202\002\n\021Impo" + + "rtProductSets\0227.google.cloud.vision.v1p3" + + "beta1.ImportProductSetsRequest\032\035.google." + + "longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p3bet" + + "a1/{parent=projects/*/locations/*}/produ" + + "ctSets:import:\001*\332A\023parent,input_config\312A" + + "3\n\031ImportProductSetsResponse\022\026BatchOpera" + + "tionMetadata\032v\312A\025vision.googleapis.com\322A" + + "[https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-visionB\210\001\n!com.google.cloud.vision" + + ".v1p3beta1B\031ProductSearchServiceProtoP\001Z" + + "Cgoogle.golang.org/genproto/googleapis/c" + + "loud/vision/v1p3beta1;vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", }); + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor = + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor, + new java.lang.String[] { "Name", "DisplayName", "IndexTime", "IndexError", }); + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor, + new java.lang.String[] { "Name", "Uri", "BoundingPolys", }); + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor, + new java.lang.String[] { "Parent", "Product", "ProductId", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor, + new java.lang.String[] { "Products", "NextPageToken", }); + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor, + new java.lang.String[] { "Product", "UpdateMask", }); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor, + new java.lang.String[] { "Parent", "ProductSet", "ProductSetId", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor, + new java.lang.String[] { "ProductSets", "NextPageToken", }); + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor, + new java.lang.String[] { "ProductSet", "UpdateMask", }); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor, + new java.lang.String[] { "Parent", "ReferenceImage", "ReferenceImageId", }); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor, + new java.lang.String[] { "ReferenceImages", "PageSize", "NextPageToken", }); + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor, + new java.lang.String[] { "Name", "Product", }); + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor, + new java.lang.String[] { "Name", "Product", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor, + new java.lang.String[] { "Products", "NextPageToken", }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor, + new java.lang.String[] { "CsvFileUri", }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor, + new java.lang.String[] { "Parent", "InputConfig", }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor, + new java.lang.String[] { "ReferenceImages", "Statuses", }); + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor, + new java.lang.String[] { "State", "SubmitTime", "EndTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java index a77cb467c..2817b79b5 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A ProductSet contains Products. A ProductSet can contain a maximum of 1
  * million reference images. If the limit is exceeded, periodic indexing will
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSet}
  */
-public final class ProductSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ProductSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSet)
     ProductSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ProductSet.newBuilder() to construct.
   private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ProductSet() {
     name_ = "";
     displayName_ = "";
@@ -46,15 +28,16 @@ private ProductSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ProductSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ProductSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,56 +56,51 @@ private ProductSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (indexTime_ != null) {
+              subBuilder = indexTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (indexTime_ != null) {
-                subBuilder = indexTime_.toBuilder();
-              }
-              indexTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(indexTime_);
-                indexTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(indexTime_);
+              indexTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (indexError_ != null) {
-                subBuilder = indexError_.toBuilder();
-              }
-              indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(indexError_);
-                indexError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (indexError_ != null) {
+              subBuilder = indexError_.toBuilder();
+            }
+            indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(indexError_);
+              indexError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -130,33 +108,29 @@ private ProductSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ProductSet.class,
-            com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ProductSet.class, com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -165,7 +139,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -174,15 +147,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -191,15 +163,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -210,15 +183,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -227,30 +197,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -261,8 +231,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -270,9 +238,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ @java.lang.Override @@ -280,8 +246,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -289,9 +253,7 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ @java.lang.Override @@ -299,8 +261,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -308,8 +268,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -319,8 +278,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -328,7 +285,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ @java.lang.Override @@ -336,8 +292,6 @@ public boolean hasIndexError() { return indexError_ != null; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -345,7 +299,6 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ @java.lang.Override @@ -353,8 +306,6 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -369,7 +320,6 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -381,7 +331,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -410,10 +361,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -423,23 +376,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSet)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ProductSet other =
-        (com.google.cloud.vision.v1p3beta1.ProductSet) obj;
+    com.google.cloud.vision.v1p3beta1.ProductSet other = (com.google.cloud.vision.v1p3beta1.ProductSet) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime().equals(other.getIndexTime())) return false;
+      if (!getIndexTime()
+          .equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError().equals(other.getIndexError())) return false;
+      if (!getIndexError()
+          .equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -469,104 +425,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -575,23 +524,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSet)
       com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ProductSet.class,
-              com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ProductSet.class, com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder()
@@ -599,15 +546,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -631,9 +579,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -652,8 +600,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ProductSet result =
-          new com.google.cloud.vision.v1p3beta1.ProductSet(this);
+      com.google.cloud.vision.v1p3beta1.ProductSet result = new com.google.cloud.vision.v1p3beta1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -674,39 +621,38 @@ public com.google.cloud.vision.v1p3beta1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSet) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -760,8 +706,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -770,13 +714,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -785,8 +729,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -795,14 +737,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -810,8 +753,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -820,22 +761,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -844,18 +783,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -864,16 +800,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -881,21 +817,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -904,22 +838,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -927,64 +860,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -992,13 +918,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1006,17 +927,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1024,9 +941,7 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -1037,8 +952,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1046,8 +959,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -1063,8 +975,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1072,10 +982,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -1086,8 +996,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1095,14 +1003,13 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1114,8 +1021,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1123,8 +1028,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1138,8 +1042,6 @@ public Builder clearIndexTime() { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1147,17 +1049,14 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1165,19 +1064,17 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1185,21 +1082,17 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), getParentForChildren(), isClean()); + indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), + getParentForChildren(), + isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1207,11 +1100,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1219,15 +1109,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1235,7 +1122,6 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1246,8 +1132,6 @@ public com.google.rpc.Status getIndexError() { } } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1270,8 +1154,6 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1280,7 +1162,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1291,8 +1174,6 @@ public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1305,7 +1186,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1317,8 +1198,6 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1339,8 +1218,6 @@ public Builder clearIndexError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1350,13 +1227,11 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-
+      
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1369,12 +1244,11 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1384,21 +1258,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
+        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getIndexError(),
+                getParentForChildren(),
+                isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1408,12 +1282,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSet)
   private static final com.google.cloud.vision.v1p3beta1.ProductSet DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSet();
   }
@@ -1422,16 +1296,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSet getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ProductSet parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ProductSet(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ProductSet parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ProductSet(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1446,4 +1320,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
similarity index 100%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
similarity index 78%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
index 53760feec..1976bf7ae 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ProductSetOrBuilder
-    extends
+public interface ProductSetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -49,41 +28,34 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -91,15 +63,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -107,15 +75,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -123,14 +87,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -138,13 +99,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -152,13 +110,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
similarity index 70%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
index 9c0de4837..1172fb053 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; value_ = ""; @@ -44,15 +26,16 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private Property( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 24: - { - uint64Value_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + case 24: { + + uint64Value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Property.class, - com.google.cloud.vision.v1p3beta1.Property.Builder.class); + com.google.cloud.vision.v1p3beta1.Property.class, com.google.cloud.vision.v1p3beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -194,29 +167,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -227,14 +200,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -243,7 +213,6 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,17 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Property other = - (com.google.cloud.vision.v1p3beta1.Property) obj; + com.google.cloud.vision.v1p3beta1.Property other = (com.google.cloud.vision.v1p3beta1.Property) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (getUint64Value() != other.getUint64Value()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getUint64Value() + != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,133 +291,125 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Property) com.google.cloud.vision.v1p3beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Property.class, - com.google.cloud.vision.v1p3beta1.Property.Builder.class); + com.google.cloud.vision.v1p3beta1.Property.class, com.google.cloud.vision.v1p3beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Property.newBuilder() @@ -452,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p3beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Property buildPartial() { - com.google.cloud.vision.v1p3beta1.Property result = - new com.google.cloud.vision.v1p3beta1.Property(this); + com.google.cloud.vision.v1p3beta1.Property result = new com.google.cloud.vision.v1p3beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -508,39 +473,38 @@ public com.google.cloud.vision.v1p3beta1.Property buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Property) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Property)other); } else { super.mergeFrom(other); return this; @@ -591,20 +555,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,21 +575,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,61 +596,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -697,20 +651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -719,21 +671,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -741,76 +692,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_; + private long uint64Value_ ; /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -818,43 +759,37 @@ public long getUint64Value() { return uint64Value_; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Property) private static final com.google.cloud.vision.v1p3beta1.Property DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Property(); } @@ -878,16 +813,16 @@ public static com.google.cloud.vision.v1p3beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java index 8c362df56..928b9afa8 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ long getUint64Value(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java index 29f84c0df..6f68eac1a 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ReferenceImage}
  */
-public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReferenceImage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ReferenceImage)
     ReferenceImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -46,15 +28,16 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,39 +57,34 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingPolys_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingPolys_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry));
-              break;
+            uri_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingPolys_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundingPolys_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,7 +92,8 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -123,27 +102,22 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
-            com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ReferenceImage.class, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -152,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -161,15 +134,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -178,15 +150,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -197,15 +170,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -214,30 +184,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -248,8 +218,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -260,17 +228,13 @@ public com.google.protobuf.ByteString getUriBytes() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -281,18 +245,14 @@ public java.util.List getBoundin
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -303,17 +263,13 @@ public java.util.List getBoundin
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -324,17 +280,13 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -345,9 +297,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( @@ -356,7 +306,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,7 +317,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -394,7 +344,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -404,17 +355,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ReferenceImage other = - (com.google.cloud.vision.v1p3beta1.ReferenceImage) obj; + com.google.cloud.vision.v1p3beta1.ReferenceImage other = (com.google.cloud.vision.v1p3beta1.ReferenceImage) obj; - if (!getName().equals(other.getName())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getBoundingPolysList() + .equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -439,104 +392,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -544,23 +490,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ReferenceImage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ReferenceImage)
       com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
-              com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ReferenceImage.class, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder()
@@ -568,17 +512,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -596,9 +540,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -617,8 +561,7 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ReferenceImage result =
-          new com.google.cloud.vision.v1p3beta1.ReferenceImage(this);
+      com.google.cloud.vision.v1p3beta1.ReferenceImage result = new com.google.cloud.vision.v1p3beta1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -639,39 +582,38 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ReferenceImage) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ReferenceImage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -679,8 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ReferenceImage other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -707,10 +648,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ReferenceImage other)
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingPolysFieldBuilder()
-                    : null;
+            boundingPolysBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingPolysFieldBuilder() : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -744,13 +684,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -759,13 +696,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -774,8 +711,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -784,14 +719,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -799,8 +735,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -809,22 +743,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -833,18 +765,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -853,16 +782,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -870,21 +799,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -893,22 +820,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -916,89 +842,75 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = - new java.util.ArrayList(boundingPolys_); + boundingPolys_ = new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingPolysBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolysBuilder_; /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1009,9 +921,7 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -1021,8 +931,6 @@ public java.util.List getBoundin } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1033,9 +941,7 @@ public java.util.List getBoundin
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -1045,8 +951,6 @@ public int getBoundingPolysCount() { } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1057,9 +961,7 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1069,8 +971,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1081,9 +981,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly value) { @@ -1100,8 +998,6 @@ public Builder setBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1112,9 +1008,7 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1128,8 +1022,6 @@ public Builder setBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1140,9 +1032,7 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1158,8 +1048,6 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly v return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1170,9 +1058,7 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly v
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly value) { @@ -1189,8 +1075,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1201,9 +1085,7 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1217,8 +1099,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1229,9 +1109,7 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1245,8 +1123,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1257,15 +1133,14 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1273,8 +1148,6 @@ public Builder addAllBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1285,9 +1158,7 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1300,8 +1171,6 @@ public Builder clearBoundingPolys() { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1312,9 +1181,7 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1327,8 +1194,6 @@ public Builder removeBoundingPolys(int index) { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1339,17 +1204,13 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolysBuilder( int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1360,21 +1221,16 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); - } else { + return boundingPolys_.get(index); } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1385,12 +1241,10 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1398,8 +1252,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1410,17 +1262,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1431,18 +1279,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBuilder( int index) { - return getBoundingPolysFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1453,26 +1297,18 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1481,9 +1317,9 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu } return boundingPolysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ReferenceImage) private static final com.google.cloud.vision.v1p3beta1.ReferenceImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ReferenceImage(); } @@ -1507,16 +1343,16 @@ public static com.google.cloud.vision.v1p3beta1.ReferenceImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1367,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java index fb1623354..c75a5c384 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ReferenceImageOrBuilder - extends +public interface ReferenceImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -34,13 +16,10 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -49,41 +28,34 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -94,14 +66,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getBoundingPolysList(); + java.util.List + getBoundingPolysList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -112,14 +81,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -130,14 +95,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getBoundingPolysCount(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -148,15 +109,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -167,9 +124,8 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java similarity index 63% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java index 18066636f..97e79fa4e 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RemoveProductFromProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -45,15 +26,16 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,25 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,43 +80,36 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -145,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,18 +153,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -202,33 +168,31 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -237,7 +201,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -279,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other = - (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,145 +275,134 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -460,16 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - .getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance(); } @java.lang.Override @@ -483,8 +435,7 @@ public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buil @java.lang.Override public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -495,51 +446,46 @@ public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) { - return mergeFrom( - (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other) { + if (other == com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -567,9 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -581,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -607,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -633,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -707,24 +631,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -733,25 +653,22 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -759,80 +676,67 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -842,32 +746,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -879,8 +781,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..9679f72dd --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface RemoveProductFromProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java similarity index 76% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java index ffdd97732..f53de0cb3 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SafeSearchAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -49,15 +31,16 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,48 +59,43 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              adult_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            adult_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              spoof_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            spoof_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              medical_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            medical_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              violence_ = rawValue;
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            violence_ = rawValue;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              racy_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            racy_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,33 +103,29 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class,
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
-   *
-   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -159,16 +133,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -176,22 +146,17 @@ public int getAdultValue() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The adult. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -199,16 +164,12 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -216,94 +177,71 @@ public int getSpoofValue() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The spoof. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The medical. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The violence. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -312,16 +250,12 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -330,19 +264,15 @@ public int getRacyValue() {
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The racy. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -380,19 +311,24 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,13 +338,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other = - (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -442,104 +377,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -548,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class,
-              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder()
@@ -572,15 +497,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +545,7 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation result =
-          new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -634,39 +559,38 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -674,8 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -710,8 +633,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -723,8 +645,6 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
-     *
-     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -732,16 +652,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -749,19 +665,16 @@ public int getAdultValue() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -769,19 +682,15 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -789,7 +698,6 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @param value The adult to set. * @return This builder for chaining. */ @@ -797,14 +705,12 @@ public Builder setAdult(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -812,11 +718,10 @@ public Builder setAdult(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -824,8 +729,6 @@ public Builder clearAdult() { private int spoof_ = 0; /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -833,16 +736,12 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -850,19 +749,16 @@ public int getSpoofValue() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -870,19 +766,15 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -890,7 +782,6 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @param value The spoof to set. * @return This builder for chaining. */ @@ -898,14 +789,12 @@ public Builder setSpoof(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -913,11 +802,10 @@ public Builder setSpoof(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -925,65 +813,51 @@ public Builder clearSpoof() { private int medical_ = 0; /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @param value The medical to set. * @return This builder for chaining. */ @@ -991,24 +865,21 @@ public Builder setMedical(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -1016,65 +887,51 @@ public Builder clearMedical() { private int violence_ = 0; /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @param value The violence to set. * @return This builder for chaining. */ @@ -1082,24 +939,21 @@ public Builder setViolence(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -1107,8 +961,6 @@ public Builder clearViolence() { private int racy_ = 0; /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1117,16 +969,12 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1135,19 +983,16 @@ public int getRacyValue() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1156,19 +1001,15 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = - com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1177,7 +1018,6 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @param value The racy to set. * @return This builder for chaining. */ @@ -1185,14 +1025,12 @@ public Builder setRacy(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1201,18 +1039,17 @@ public Builder setRacy(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1222,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(); } @@ -1236,16 +1073,16 @@ public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java index 5380d3c63..0f2e34f12 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface SafeSearchAnnotationOrBuilder - extends +public interface SafeSearchAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -33,13 +15,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -47,14 +26,11 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; - * * @return The adult. */ com.google.cloud.vision.v1p3beta1.Likelihood getAdult(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -62,13 +38,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -76,64 +49,49 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; - * * @return The spoof. */ com.google.cloud.vision.v1p3beta1.Likelihood getSpoof(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; - * * @return The medical. */ com.google.cloud.vision.v1p3beta1.Likelihood getMedical(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; - * * @return The violence. */ com.google.cloud.vision.v1p3beta1.Likelihood getViolence(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -142,13 +100,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -157,7 +112,6 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; - * * @return The racy. */ com.google.cloud.vision.v1p3beta1.Likelihood getRacy(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java similarity index 75% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java index 9f047492d..4f88977e0 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Symbol} */ -public final class Symbol extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Symbol extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Symbol) SymbolOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,50 @@ private Symbol( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,39 +104,34 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Symbol.class, - com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p3beta1.Symbol.class, com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -170,25 +139,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -196,16 +158,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -225,7 +184,6 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -233,8 +191,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -254,18 +210,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -294,14 +245,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ @java.lang.Override @@ -310,29 +258,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -343,14 +291,11 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -359,7 +304,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -394,16 +339,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Symbol)) { return super.equals(obj); @@ -422,15 +370,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,133 +405,125 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Symbol} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Symbol) com.google.cloud.vision.v1p3beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Symbol.class, - com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p3beta1.Symbol.class, com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Symbol.newBuilder() @@ -587,15 +531,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override @@ -640,8 +585,7 @@ public com.google.cloud.vision.v1p3beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p3beta1.Symbol result = - new com.google.cloud.vision.v1p3beta1.Symbol(this); + com.google.cloud.vision.v1p3beta1.Symbol result = new com.google.cloud.vision.v1p3beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -662,39 +606,38 @@ public com.google.cloud.vision.v1p3beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Symbol) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Symbol)other); } else { super.mergeFrom(other); return this; @@ -747,55 +690,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,8 +738,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -829,22 +756,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -856,8 +778,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -876,42 +796,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -919,17 +830,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -937,13 +845,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -963,15 +866,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,21 +891,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1040,8 +935,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1074,8 +967,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1100,9 +991,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1114,8 +1003,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1148,8 +1035,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,13 +1056,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1202,14 +1085,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1231,17 +1111,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1249,20 +1126,18 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1271,21 +1146,20 @@ public java.lang.String getText() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1293,76 +1167,66 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1370,43 +1234,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Symbol) private static final com.google.cloud.vision.v1p3beta1.Symbol DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Symbol(); } @@ -1430,16 +1288,16 @@ public static com.google.cloud.vision.v1p3beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,4 +1312,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java index 29e04c799..7dae2af84 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface SymbolOrBuilder - extends +public interface SymbolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -59,8 +35,6 @@ public interface SymbolOrBuilder com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,39 +104,31 @@ public interface SymbolOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java similarity index 70% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java index 8e8e9e40c..ca173114d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation}
  */
-public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -51,15 +33,16 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,31 +62,28 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p3beta1.Page.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pages_.add(
+                input.readMessage(com.google.cloud.vision.v1p3beta1.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            text_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,7 +91,8 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -120,30 +101,24 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.class,
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder
-      extends
+  public interface DetectedLanguageOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -151,13 +126,10 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -165,58 +137,53 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); } /** - * - * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -235,25 +202,24 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -261,33 +227,29 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -295,7 +257,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +265,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -320,15 +280,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -339,14 +300,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -355,7 +313,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -387,7 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,17 +356,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,102 +382,95 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -527,49 +480,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,16 +529,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @java.lang.Override @@ -604,8 +550,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage result = - new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -616,53 +561,46 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom( - (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other) { - if (other - == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other) { + if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -689,9 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,8 +639,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,13 +646,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -727,8 +661,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -736,14 +668,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -751,8 +684,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -760,22 +691,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -783,18 +712,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -802,31 +728,28 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -834,41 +757,34 @@ public float getConfidence() { return confidence_; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -881,32 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,89 +832,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DetectedBreakOrBuilder - extends + public interface DetectedBreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ boolean getIsPrefix(); } /** - * - * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedBreak extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1019,25 +921,24 @@ private DetectedBreak( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - isPrefix_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 16: { + + isPrefix_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,41 +946,36 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); } /** - * - * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown break label type.
        * 
@@ -1088,8 +984,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
        * Regular space.
        * 
@@ -1098,8 +992,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SPACE(1), /** - * - * *
        * Sure space (very wide).
        * 
@@ -1108,8 +1000,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SURE_SPACE(2), /** - * - * *
        * Line-wrapping break.
        * 
@@ -1118,8 +1008,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ EOL_SURE_SPACE(3), /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1129,8 +1017,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       HYPHEN(4),
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1142,8 +1028,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown break label type.
        * 
@@ -1152,8 +1036,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
        * Regular space.
        * 
@@ -1162,8 +1044,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPACE_VALUE = 1; /** - * - * *
        * Sure space (very wide).
        * 
@@ -1172,8 +1052,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SURE_SPACE_VALUE = 2; /** - * - * *
        * Line-wrapping break.
        * 
@@ -1182,8 +1060,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EOL_SURE_SPACE_VALUE = 3; /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1193,8 +1069,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int HYPHEN_VALUE = 4;
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1203,6 +1077,7 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_BREAK_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1227,57 +1102,52 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return SPACE; - case 2: - return SURE_SPACE; - case 3: - return EOL_SURE_SPACE; - case 4: - return HYPHEN; - case 5: - return LINE_BREAK; - default: - return null; + case 0: return UNKNOWN; + case 1: return SPACE; + case 2: return SURE_SPACE; + case 3: return EOL_SURE_SPACE; + case 4: return HYPHEN; + case 5: return LINE_BREAK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BreakType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1297,52 +1167,38 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1351,7 +1207,6 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1363,10 +1218,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1381,13 +1235,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1397,16 +1251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() != other.getIsPrefix()) return false; + if (getIsPrefix() + != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1421,101 +1275,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1525,32 +1373,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1558,15 +1401,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1578,14 +1422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1600,8 +1443,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak result = - new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1612,52 +1454,46 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other) { - if (other - == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other) { + if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1683,9 +1519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1697,113 +1531,85 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_; + private boolean isPrefix_ ; /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1811,41 +1617,34 @@ public boolean getIsPrefix() { return isPrefix_; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1858,32 +1657,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1895,153 +1692,119 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextPropertyOrBuilder - extends + public interface TextPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ int getDetectedLanguagesCount(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + java.util.List getDetectedLanguagesOrBuilderList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** - * - * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TextProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2061,45 +1824,35 @@ private TextProperty( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage>(); - mutable_bitField0_ |= 0x00000001; - } - detectedLanguages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder subBuilder = - null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); - } - detectedBreak_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); - } - - break; + detectedLanguages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2107,7 +1860,8 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -2116,117 +1870,87 @@ private TextProperty( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List - detectedLanguages_; + private java.util.List detectedLanguages_; /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + public java.util.List getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { return detectedLanguages_.get(index); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detectedBreak_; /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -2234,25 +1958,18 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -2260,13 +1977,11 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2278,7 +1993,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2295,11 +2011,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2309,18 +2026,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList() + .equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak() + .equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2347,94 +2065,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2444,32 +2155,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder() @@ -2477,17 +2183,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2507,14 +2213,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2529,8 +2234,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty result = - new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2554,52 +2258,46 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other) { - if (other - == com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other) { + if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2618,10 +2316,9 @@ public Builder mergeFrom( detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetectedLanguagesFieldBuilder() - : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetectedLanguagesFieldBuilder() : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2649,9 +2346,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2660,41 +2355,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - detectedLanguages_ = java.util.Collections.emptyList(); - + private java.util.List detectedLanguages_ = + java.util.Collections.emptyList(); private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage>( - detectedLanguages_); + detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> - detectedLanguagesBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2702,15 +2384,11 @@ private void ensureDetectedLanguagesIsMutable() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2720,18 +2398,13 @@ public int getDetectedLanguagesCount() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2739,15 +2412,11 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDete } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { @@ -2764,20 +2433,14 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( - int index, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2788,18 +2451,13 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public Builder addDetectedLanguages( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2813,15 +2471,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { @@ -2838,19 +2492,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2861,20 +2510,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - int index, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2885,23 +2528,18 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addAllDetectedLanguages( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage> - values) { + java.lang.Iterable values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2909,15 +2547,11 @@ public Builder addAllDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2930,15 +2564,11 @@ public Builder clearDetectedLanguages() { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2951,53 +2581,39 @@ public Builder removeDetectedLanguages(int index) { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - getDetectedLanguagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( + int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); - } else { + return detectedLanguages_.get(index); } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> - getDetectedLanguagesOrBuilderList() { + public java.util.List + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -3005,70 +2621,45 @@ public Builder removeDetectedLanguages(int index) { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder(int index) { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( + int index) { + return getDetectedLanguagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder> - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3080,58 +2671,41 @@ public Builder removeDetectedLanguages(int index) { private com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> - detectedBreakBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return The detectedBreak. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3145,14 +2719,11 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder setDetectedBreak( com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -3166,24 +2737,17 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder( - detectedBreak_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); } else { detectedBreak_ = value; } @@ -3195,14 +2759,11 @@ public Builder mergeDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -3216,68 +2777,52 @@ public Builder clearDetectedBreak() { return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder - getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), getParentForChildren(), isClean()); + detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), + getParentForChildren(), + isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3290,32 +2835,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty - getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3327,17 +2870,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3349,8 +2890,6 @@ public java.util.List getPagesList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3358,13 +2897,11 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3376,8 +2913,6 @@ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3389,8 +2924,6 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { return pages_.get(index); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3398,21 +2931,19 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( + int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3421,29 +2952,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -3452,7 +2983,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3464,7 +2994,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3481,7 +3012,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3494,16 +3026,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation other = - (com.google.cloud.vision.v1p3beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation other = (com.google.cloud.vision.v1p3beta1.TextAnnotation) obj; - if (!getPagesList().equals(other.getPagesList())) return false; - if (!getText().equals(other.getText())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; + if (!getText() + .equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3526,104 +3059,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3637,23 +3163,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation)
       com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.TextAnnotation.class,
-              com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p3beta1.TextAnnotation.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder()
@@ -3661,17 +3185,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3687,9 +3211,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3708,8 +3232,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p3beta1.TextAnnotation result =
-          new com.google.cloud.vision.v1p3beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p3beta1.TextAnnotation result = new com.google.cloud.vision.v1p3beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3729,39 +3252,38 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3769,8 +3291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance()) return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3789,10 +3310,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPagesFieldBuilder()
-                    : null;
+            pagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPagesFieldBuilder() : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3830,28 +3350,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Page,
-            com.google.cloud.vision.v1p3beta1.Page.Builder,
-            com.google.cloud.vision.v1p3beta1.PageOrBuilder>
-        pagesBuilder_;
+        com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder> pagesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3866,8 +3379,6 @@ public java.util.List getPagesList() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3882,8 +3393,6 @@ public int getPagesCount() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3898,15 +3407,14 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1p3beta1.Page value) { + public Builder setPages( + int index, com.google.cloud.vision.v1p3beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,8 +3428,6 @@ public Builder setPages(int index, com.google.cloud.vision.v1p3beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3940,8 +3446,6 @@ public Builder setPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3962,15 +3466,14 @@ public Builder addPages(com.google.cloud.vision.v1p3beta1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1p3beta1.Page value) { + public Builder addPages( + int index, com.google.cloud.vision.v1p3beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3984,15 +3487,14 @@ public Builder addPages(int index, com.google.cloud.vision.v1p3beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder addPages(com.google.cloud.vision.v1p3beta1.Page.Builder builderForValue) { + public Builder addPages( + com.google.cloud.vision.v1p3beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -4003,8 +3505,6 @@ public Builder addPages(com.google.cloud.vision.v1p3beta1.Page.Builder builderFo return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4023,8 +3523,6 @@ public Builder addPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4035,7 +3533,8 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -4043,8 +3542,6 @@ public Builder addAllPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4062,8 +3559,6 @@ public Builder clearPages() { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4081,44 +3576,39 @@ public Builder removePages(int index) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.Page.Builder getPagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.Page.Builder getPagesBuilder( + int index) { return getPagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( + int index) { if (pagesBuilder_ == null) { - return pages_.get(index); - } else { + return pages_.get(index); } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -4126,8 +3616,6 @@ public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int ind } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4135,47 +3623,42 @@ public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int ind * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder(int index) { - return getPagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder( + int index) { + return getPagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public java.util.List getPagesBuilderList() { + public java.util.List + getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Page, - com.google.cloud.vision.v1p3beta1.Page.Builder, - com.google.cloud.vision.v1p3beta1.PageOrBuilder> + com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Page, - com.google.cloud.vision.v1p3beta1.Page.Builder, - com.google.cloud.vision.v1p3beta1.PageOrBuilder>( - pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder>( + pages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); pages_ = null; } return pagesBuilder_; @@ -4183,20 +3666,18 @@ public java.util.List getPagesBu private java.lang.Object text_ = ""; /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -4205,21 +3686,20 @@ public java.lang.String getText() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -4227,68 +3707,61 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4298,12 +3771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation) private static final com.google.cloud.vision.v1p3beta1.TextAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation(); } @@ -4312,16 +3785,16 @@ public static com.google.cloud.vision.v1p3beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4336,4 +3809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java index bcda4bb8d..b2692137b 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface TextAnnotationOrBuilder - extends +public interface TextAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - java.util.List getPagesList(); + java.util.List + getPagesList(); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -44,8 +25,6 @@ public interface TextAnnotationOrBuilder */ com.google.cloud.vision.v1p3beta1.Page getPages(int index); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -54,48 +33,41 @@ public interface TextAnnotationOrBuilder */ int getPagesCount(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - java.util.List getPagesOrBuilderList(); + java.util.List + getPagesOrBuilderList(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( + int index); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java new file mode 100644 index 000000000..279cf7e1a --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/text_annotation.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p3beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p3b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p3beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p3beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p3beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p3beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p3beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p3beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p3beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p3beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p3beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p3b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p3beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p3beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p3beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p3beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p3beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p3beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p3beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p3beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p3beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p3beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor, + new java.lang.String[] { "Pages", "Text", }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { "Type", "IsPrefix", }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor, + new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java similarity index 51% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java index 7f3d9ba5c..040102d98 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -28,29 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextDetectionParams extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TextDetectionParams() {}
+  private TextDetectionParams() {
+    advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,6 +44,7 @@ private TextDetectionParams(
     if (extensionRegistry == null) {
       throw new java.lang.NullPointerException();
     }
+    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -69,18 +55,27 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72:
-            {
-              enableTextDetectionConfidenceScore_ = input.readBool();
-              break;
+          case 72: {
+
+            enableTextDetectionConfidenceScore_ = input.readBool();
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            advancedOcrOptions_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,33 +83,32 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+      }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.TextDetectionParams.class,
-            com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p3beta1.TextDetectionParams.class, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
-   *
-   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -122,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -130,8 +123,58 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } - private byte memoizedIsInitialized = -1; + public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList advancedOcrOptions_; + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_; + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,10 +186,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -157,9 +204,16 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 9, enableTextDetectionConfidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableTextDetectionConfidenceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdvancedOcrOptionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +223,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextDetectionParams other = - (com.google.cloud.vision.v1p3beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p3beta1.TextDetectionParams other = (com.google.cloud.vision.v1p3beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) - return false; + if (getEnableTextDetectionConfidenceScore() + != other.getEnableTextDetectionConfidenceScore()) return false; + if (!getAdvancedOcrOptionsList() + .equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,113 +246,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTextDetectionConfidenceScore()); + if (getAdvancedOcrOptionsCount() > 0) { + hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.TextDetectionParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -305,23 +355,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.TextDetectionParams}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextDetectionParams)
       com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.TextDetectionParams.class,
-              com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p3beta1.TextDetectionParams.class, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder()
@@ -329,27 +377,30 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       enableTextDetectionConfidenceScore_ = false;
 
+      advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -368,9 +419,14 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p3beta1.TextDetectionParams result =
-          new com.google.cloud.vision.v1p3beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p3beta1.TextDetectionParams result = new com.google.cloud.vision.v1p3beta1.TextDetectionParams(this);
+      int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.advancedOcrOptions_ = advancedOcrOptions_;
       onBuilt();
       return result;
     }
@@ -379,39 +435,38 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextDetectionParams) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextDetectionParams)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -419,11 +474,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance()) return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
+      if (!other.advancedOcrOptions_.isEmpty()) {
+        if (advancedOcrOptions_.isEmpty()) {
+          advancedOcrOptions_ = other.advancedOcrOptions_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureAdvancedOcrOptionsIsMutable();
+          advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+        }
+        onChanged();
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -443,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p3beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p3beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -453,11 +516,10 @@ public Builder mergeFrom(
       }
       return this;
     }
+    private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_;
+    private boolean enableTextDetectionConfidenceScore_ ;
     /**
-     *
-     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -465,7 +527,6 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -473,8 +534,6 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -482,19 +541,16 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -502,18 +558,163 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_.getUnmodifiableView(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index to set the value at. + * @param value The advancedOcrOptions to set. + * @return This builder for chaining. + */ + public Builder setAdvancedOcrOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param values The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAllAdvancedOcrOptions( + java.lang.Iterable values) { + ensureAdvancedOcrOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, advancedOcrOptions_); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return This builder for chaining. + */ + public Builder clearAdvancedOcrOptions() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The bytes of the advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p3beta1.TextDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextDetectionParams(); } @@ -537,16 +738,16 @@ public static com.google.cloud.vision.v1p3beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -561,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java new file mode 100644 index 000000000..3b8eedebf --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface TextDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * By default, Cloud Vision API only includes confidence score for
+   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
+   * score for TEXT_DETECTION as well.
+   * 
+ * + * bool enable_text_detection_confidence_score = 9; + * @return The enableTextDetectionConfidenceScore. + */ + boolean getEnableTextDetectionConfidenceScore(); + + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + java.util.List + getAdvancedOcrOptionsList(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + int getAdvancedOcrOptionsCount(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + java.lang.String getAdvancedOcrOptions(int index); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java similarity index 68% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java index 9b14084d6..180b0d570 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductRequest} */ -public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.UpdateProductRequest) UpdateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductRequest() {} + private UpdateProductRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +92,35 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.Product product_; /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -156,36 +128,25 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { @@ -195,8 +156,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -206,7 +165,6 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -214,8 +172,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -225,7 +181,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -233,8 +188,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -251,7 +204,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -263,7 +215,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -280,10 +233,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -293,21 +248,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.UpdateProductRequest other =
-        (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1p3beta1.UpdateProductRequest other = (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct().equals(other.getProduct())) return false;
+      if (!getProduct()
+          .equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -334,127 +290,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.UpdateProductRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.UpdateProductRequest) com.google.cloud.vision.v1p3beta1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.UpdateProductRequest.newBuilder() @@ -462,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -511,8 +458,7 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.UpdateProductRequest result = - new com.google.cloud.vision.v1p3beta1.UpdateProductRequest(this); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest result = new com.google.cloud.vision.v1p3beta1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -531,39 +477,38 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -571,8 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -598,8 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,61 +554,42 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { @@ -681,18 +605,15 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -703,24 +624,18 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder buil return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -732,16 +647,12 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -755,67 +666,51 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, - com.google.cloud.vision.v1p3beta1.Product.Builder, - com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -823,13 +718,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -839,15 +729,12 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -857,21 +744,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -896,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -908,7 +788,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -919,8 +800,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -935,7 +814,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -947,8 +826,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -971,8 +848,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -984,13 +859,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -1005,14 +878,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -1024,24 +894,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1051,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1p3beta1.UpdateProductRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.UpdateProductRequest();
   }
@@ -1065,16 +932,16 @@ public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1089,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
similarity index 67%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
index 38ec96dc9..a7115ee34 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
@@ -1,75 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface UpdateProductRequestOrBuilder
-    extends
+public interface UpdateProductRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -79,13 +47,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -95,13 +60,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
similarity index 68%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
index 657ffe085..3488a6498 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductSetRequest() {} + private UpdateProductSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -192,8 +153,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -202,7 +161,6 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -210,8 +168,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -220,7 +176,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -228,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -245,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -257,7 +209,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -274,10 +227,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,21 +242,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other =
-        (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other = (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet().equals(other.getProductSet())) return false;
+      if (!getProductSet()
+          .equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -328,127 +284,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) com.google.cloud.vision.v1p3beta1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.newBuilder() @@ -456,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -505,8 +452,7 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest result = - new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest result = new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -525,39 +471,38 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -565,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()) return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -592,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,58 +548,39 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -672,15 +596,11 @@ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet( com.google.cloud.vision.v1p3beta1.ProductSet.Builder builderForValue) { @@ -694,23 +614,17 @@ public Builder setProductSet( return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -722,15 +636,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet valu return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -744,64 +654,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, - com.google.cloud.vision.v1p3beta1.ProductSet.Builder, - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -809,13 +703,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -824,15 +713,12 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -841,21 +727,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -879,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -890,7 +769,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -901,8 +781,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -916,7 +794,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -928,8 +806,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -951,8 +827,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -963,13 +837,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -983,14 +855,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -1001,24 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1028,12 +894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest();
   }
@@ -1042,16 +908,16 @@ public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductSetRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductSetRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductSetRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductSetRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
index c0ee40826..9ee7743a6 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface UpdateProductSetRequestOrBuilder
-    extends
+public interface UpdateProductSetRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -75,13 +43,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -90,13 +55,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
similarity index 69%
rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
index 102603797..45b59ccab 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
+++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/geometry.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
- *
- *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Vertex.class,
-            com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Vertex.class, com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,15 +172,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p3beta1.Vertex other = (com.google.cloud.vision.v1p3beta1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,104 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -328,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Vertex)
       com.google.cloud.vision.v1p3beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Vertex.class,
-              com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Vertex.class, com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Vertex.newBuilder()
@@ -352,15 +323,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -393,8 +365,7 @@ public com.google.cloud.vision.v1p3beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Vertex result =
-          new com.google.cloud.vision.v1p3beta1.Vertex(this);
+      com.google.cloud.vision.v1p3beta1.Vertex result = new com.google.cloud.vision.v1p3beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -405,39 +376,38 @@ public com.google.cloud.vision.v1p3beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Vertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -498,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -550,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Vertex) private static final com.google.cloud.vision.v1p3beta1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Vertex(); } @@ -610,16 +562,16 @@ public static com.google.cloud.vision.v1p3beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java new file mode 100644 index 000000000..f1a73eebc --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java similarity index 71% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java index 9ae98d582..1f4bd5944 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/web_detection.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection} */ -public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection) WebDetectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,97 +59,67 @@ private WebDetection( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity>(); - mutable_bitField0_ |= 0x00000001; - } - webEntities_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + webEntities_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000004; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage>(); - mutable_bitField0_ |= 0x00000008; - } - pagesWithMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.parser(), - extensionRegistry)); - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000010; - } - visuallySimilarImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + pagesWithMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel>(); - mutable_bitField0_ |= 0x00000020; - } - bestGuessLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.parser(), - extensionRegistry)); - break; + visuallySimilarImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bestGuessLabels_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -174,7 +127,8 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -198,110 +152,90 @@ private WebDetection( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.class, - com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.class, com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder - extends + public interface WebEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebEntity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebEntity() { entityId_ = ""; description_ = ""; @@ -309,15 +243,16 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -336,32 +271,30 @@ private WebEntity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: { - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,39 +302,34 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ @java.lang.Override @@ -410,29 +338,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -443,15 +371,12 @@ public com.google.protobuf.ByteString getEntityIdBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -462,14 +387,11 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -478,29 +400,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -509,7 +431,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -544,7 +466,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -557,18 +480,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) obj; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getDescription().equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,7 +508,8 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -592,94 +518,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -689,32 +608,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebEntity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.newBuilder() @@ -722,15 +636,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -744,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -765,8 +680,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity result = - new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -778,41 +692,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity)other); } else { super.mergeFrom(other); return this; @@ -820,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -852,8 +762,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -865,20 +774,18 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -887,21 +794,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -909,77 +815,67 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { + public Builder setEntityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -987,38 +883,32 @@ public float getScore() { return score_; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1026,20 +916,18 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1048,21 +936,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1070,66 +957,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1142,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(); } @@ -1156,16 +1035,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,85 +1059,75 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebImageOrBuilder - extends + public interface WebImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); } /** - * - * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebImage} */ - public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebImage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,25 +1146,24 @@ private WebImage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + url_ = s; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1303,39 +1171,34 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -1344,29 +1207,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1377,14 +1240,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1393,7 +1253,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,7 +1264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1425,7 +1285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1435,17 +1296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1460,101 +1322,95 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1564,32 +1420,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebImage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebImage) com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.newBuilder() @@ -1597,15 +1448,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1638,8 +1490,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage result = - new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1650,41 +1501,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebImage)other); } else { super.mergeFrom(other); return this; @@ -1692,8 +1540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1720,8 +1567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1733,20 +1579,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1755,21 +1599,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1777,76 +1620,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1854,41 +1687,34 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1901,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(); } @@ -1915,16 +1741,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,143 +1765,113 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebPageOrBuilder - extends + public interface WebPageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ java.lang.String getPageTitle(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString getPageTitleBytes(); + com.google.protobuf.ByteString + getPageTitleBytes(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ int getFullMatchingImagesCount(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2083,15 +1879,11 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2099,14 +1891,10 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2114,14 +1902,10 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ int getPartialMatchingImagesCount(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2129,15 +1913,11 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2145,32 +1925,27 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); } /** - * - * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebPage} */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebPage() { url_ = ""; pageTitle_ = ""; @@ -2180,15 +1955,16 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2208,60 +1984,48 @@ private WebPage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: { - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000001; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2269,7 +2033,8 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2281,33 +2046,27 @@ private WebPage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -2316,29 +2075,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -2349,14 +2108,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -2367,14 +2123,11 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ @java.lang.Override @@ -2383,29 +2136,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2414,95 +2167,73 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2510,18 +2241,13 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2529,19 +2255,14 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2549,17 +2270,13 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } - /** - * - * + /** *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2567,18 +2284,13 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2586,18 +2298,15 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2609,7 +2318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2638,19 +2348,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2660,21 +2370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getPageTitle() + .equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2689,7 +2402,8 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2706,94 +2420,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2803,32 +2510,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebPage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebPage) com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.newBuilder() @@ -2836,18 +2538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2873,9 +2575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2894,8 +2596,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage result = - new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2926,41 +2627,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebPage)other); } else { super.mergeFrom(other); return this; @@ -2968,8 +2666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2999,10 +2696,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -3026,10 +2722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -3054,8 +2749,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3064,25 +2758,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object url_ = ""; /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -3091,21 +2782,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -3113,76 +2803,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -3190,36 +2870,30 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -3227,20 +2901,18 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -3249,21 +2921,20 @@ public java.lang.String getPageTitle() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -3271,98 +2942,80 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle(java.lang.String value) { + public Builder setPageTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3370,16 +3023,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3389,19 +3038,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3409,16 +3053,12 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3435,20 +3075,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3459,19 +3094,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3485,16 +3115,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3511,16 +3137,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3534,20 +3156,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3558,23 +3175,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3582,16 +3195,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3604,16 +3213,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3626,56 +3231,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3683,70 +3274,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3756,27 +3325,19 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3784,12 +3345,9 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3797,8 +3355,6 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3806,9 +3362,7 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3818,8 +3372,6 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3827,12 +3379,9 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3840,8 +3389,6 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3849,9 +3396,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3868,8 +3413,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3877,13 +3420,10 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3894,8 +3434,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3903,12 +3441,9 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3922,8 +3457,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3931,9 +3464,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3950,8 +3481,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3959,9 +3488,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3975,8 +3502,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3984,13 +3509,10 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -4001,8 +3523,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4010,16 +3530,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -4027,8 +3545,6 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4036,9 +3552,7 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -4051,8 +3565,6 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4060,9 +3572,7 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -4075,8 +3585,6 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4084,17 +3592,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4102,21 +3606,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4124,13 +3623,10 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -4138,8 +3634,6 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4147,19 +3641,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4167,20 +3655,14 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4188,26 +3670,18 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4216,7 +3690,6 @@ public Builder removePartialMatchingImages(int index) { } return partialMatchingImagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4229,12 +3702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebPage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(); } @@ -4243,16 +3716,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4267,41 +3740,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebLabelOrBuilder - extends + public interface WebLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4309,13 +3775,10 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4323,30 +3786,27 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebLabel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { label_ = ""; languageCode_ = ""; @@ -4354,15 +3814,16 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4381,27 +3842,25 @@ private WebLabel( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4409,39 +3868,34 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ @java.lang.Override @@ -4450,29 +3904,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4483,8 +3937,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4492,7 +3944,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -4501,15 +3952,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } - /** - * - * + /** *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4517,15 +3967,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4534,7 +3985,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4546,7 +3996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4576,16 +4027,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4607,94 +4059,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4704,32 +4149,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebLabel} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.newBuilder() @@ -4737,15 +4177,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4757,9 +4198,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4778,8 +4219,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4790,41 +4230,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel)other); } else { super.mergeFrom(other); return this; @@ -4832,8 +4269,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4861,8 +4297,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4874,20 +4309,18 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4896,21 +4329,20 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4918,61 +4350,54 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4980,8 +4405,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4989,13 +4412,13 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -5004,8 +4427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5013,14 +4434,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -5028,8 +4450,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5037,22 +4457,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5060,18 +4478,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5079,21 +4494,20 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5106,12 +4520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(); } @@ -5120,16 +4534,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5144,13 +4558,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5158,13 +4571,10 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5172,13 +4582,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5190,8 +4598,6 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5203,8 +4609,6 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5218,424 +4622,321 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - pagesWithMatchingImages_; + private java.util.List pagesWithMatchingImages_; /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List - visuallySimilarImages_; + private java.util.List visuallySimilarImages_; /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5647,7 +4948,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -5676,29 +4978,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, pagesWithMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, visuallySimilarImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5708,21 +5009,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection other = - (com.google.cloud.vision.v1p3beta1.WebDetection) obj; - - if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) - return false; - if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p3beta1.WebDetection other = (com.google.cloud.vision.v1p3beta1.WebDetection) obj; + + if (!getWebEntitiesList() + .equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList() + .equals(other.getPagesWithMatchingImagesList())) return false; + if (!getVisuallySimilarImagesList() + .equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList() + .equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5763,127 +5068,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection) com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.class, - com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.class, com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder() @@ -5891,13 +5187,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5906,7 +5203,6 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5950,9 +5246,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override @@ -5971,8 +5267,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection result = - new com.google.cloud.vision.v1p3beta1.WebDetection(this); + com.google.cloud.vision.v1p3beta1.WebDetection result = new com.google.cloud.vision.v1p3beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6003,8 +5298,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -6037,39 +5331,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection)other); } else { super.mergeFrom(other); return this; @@ -6096,10 +5389,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebEntitiesFieldBuilder() - : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebEntitiesFieldBuilder() : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -6123,10 +5415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -6150,10 +5441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -6177,10 +5467,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPagesWithMatchingImagesFieldBuilder() - : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPagesWithMatchingImagesFieldBuilder() : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -6204,10 +5493,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVisuallySimilarImagesFieldBuilder() - : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVisuallySimilarImagesFieldBuilder() : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -6231,10 +5519,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBestGuessLabelsFieldBuilder() - : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBestGuessLabelsFieldBuilder() : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -6268,38 +5555,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList( - webEntities_); + webEntities_ = new java.util.ArrayList(webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> - webEntitiesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -6307,8 +5584,6 @@ private void ensureWebEntitiesIsMutable() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6323,8 +5598,6 @@ public int getWebEntitiesCount() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6339,8 +5612,6 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(i } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6362,8 +5633,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6371,8 +5640,7 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -6383,8 +5651,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6405,8 +5671,6 @@ public Builder addWebEntities(com.google.cloud.vision.v1p3beta1.WebDetection.Web return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6428,8 +5692,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6448,8 +5710,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6457,8 +5717,7 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -6469,8 +5728,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6478,11 +5735,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -6490,8 +5747,6 @@ public Builder addAllWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6509,8 +5764,6 @@ public Builder clearWebEntities() { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6528,8 +5781,6 @@ public Builder removeWebEntities(int index) { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6541,34 +5792,28 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder - getWebEntitiesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( + int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); - } else { + return webEntities_.get(index); } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -6576,23 +5821,17 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder getWebEn } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder - addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6601,72 +5840,56 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder getWebEn */ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -6674,15 +5897,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -6692,18 +5912,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -6711,15 +5927,12 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6736,19 +5949,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -6759,18 +5968,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6784,15 +5989,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6809,15 +6011,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6831,19 +6030,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6854,22 +6049,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6877,15 +6069,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6898,15 +6087,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6919,53 +6105,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6973,65 +6148,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -7041,39 +6199,28 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -7081,17 +6228,13 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -7101,20 +6244,15 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -7122,17 +6260,13 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -7149,21 +6283,16 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -7174,20 +6303,15 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7201,17 +6325,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -7228,17 +6348,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7252,21 +6368,16 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -7277,24 +6388,20 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -7302,17 +6409,13 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -7325,17 +6428,13 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -7348,59 +6447,45 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7408,71 +6493,51 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7482,37 +6547,26 @@ public Builder removePartialMatchingImages(int index) { return partialMatchingImagesBuilder_; } - private java.util.List - pagesWithMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List pagesWithMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList( - pagesWithMatchingImages_); + pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> - pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -7520,15 +6574,11 @@ private void ensurePagesWithMatchingImagesIsMutable() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7538,18 +6588,13 @@ public int getPagesWithMatchingImagesCount() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -7557,15 +6602,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchi } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { @@ -7582,15 +6623,11 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7604,18 +6641,13 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public Builder addPagesWithMatchingImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7629,15 +6661,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { @@ -7654,15 +6682,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7676,15 +6700,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7698,22 +6718,18 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -7721,15 +6737,11 @@ public Builder addAllPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7742,15 +6754,11 @@ public Builder clearPagesWithMatchingImages() { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7763,52 +6771,39 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder - getPagesWithMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( + int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); - } else { + return pagesWithMatchingImages_.get(index); } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7816,65 +6811,45 @@ public Builder removePagesWithMatchingImages(int index) { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder(int index) { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( + int index) { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7884,37 +6859,26 @@ public Builder removePagesWithMatchingImages(int index) { return pagesWithMatchingImagesBuilder_; } - private java.util.List - visuallySimilarImages_ = java.util.Collections.emptyList(); - + private java.util.List visuallySimilarImages_ = + java.util.Collections.emptyList(); private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList( - visuallySimilarImages_); + visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -7922,15 +6886,11 @@ private void ensureVisuallySimilarImagesIsMutable() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -7940,18 +6900,13 @@ public int getVisuallySimilarImagesCount() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -7959,15 +6914,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimila } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -7984,19 +6935,14 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -8007,18 +6953,13 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public Builder addVisuallySimilarImages( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8032,15 +6973,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -8057,15 +6994,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -8079,19 +7012,14 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -8102,22 +7030,18 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -8125,15 +7049,11 @@ public Builder addAllVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -8146,15 +7066,11 @@ public Builder clearVisuallySimilarImages() { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -8167,53 +7083,39 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - getVisuallySimilarImagesBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( + int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); - } else { + return visuallySimilarImages_.get(index); } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -8221,65 +7123,45 @@ public Builder removeVisuallySimilarImages(int index) { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder(int index) { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( + int index) { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8289,36 +7171,26 @@ public Builder removeVisuallySimilarImages(int index) { return visuallySimilarImagesBuilder_; } - private java.util.List - bestGuessLabels_ = java.util.Collections.emptyList(); - + private java.util.List bestGuessLabels_ = + java.util.Collections.emptyList(); private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList( - bestGuessLabels_); + bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> - bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -8326,14 +7198,11 @@ private void ensureBestGuessLabelsIsMutable() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -8343,14 +7212,11 @@ public int getBestGuessLabelsCount() { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8360,14 +7226,11 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabel } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { @@ -8384,18 +7247,14 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -8406,17 +7265,13 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public Builder addBestGuessLabels( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8430,14 +7285,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { @@ -8454,14 +7306,11 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -8475,18 +7324,14 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( - int index, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -8497,21 +7342,18 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addAllBestGuessLabels( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -8519,14 +7361,11 @@ public Builder addAllBestGuessLabels( return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -8539,14 +7378,11 @@ public Builder clearBestGuessLabels() { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8559,50 +7395,39 @@ public Builder removeBestGuessLabels(int index) { return this; } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder - getBestGuessLabelsBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( + int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); - } else { + return bestGuessLabels_.get(index); } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> - getBestGuessLabelsOrBuilderList() { + public java.util.List + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -8610,62 +7435,45 @@ public Builder removeBestGuessLabels(int index) { } } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder(int index) { - return getBestGuessLabelsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( + int index) { + return getBestGuessLabelsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -8674,9 +7482,9 @@ public Builder removeBestGuessLabels(int index) { } return bestGuessLabelsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8686,12 +7494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection) private static final com.google.cloud.vision.v1p3beta1.WebDetection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection(); } @@ -8700,16 +7508,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8724,4 +7532,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java index 61b534a94..d4d1d2ed6 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/web_detection.proto package com.google.cloud.vision.v1p3beta1; -public interface WebDetectionOrBuilder - extends +public interface WebDetectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List getWebEntitiesList(); + java.util.List + getWebEntitiesList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -44,8 +25,6 @@ public interface WebDetectionOrBuilder */ com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(int index); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -54,19 +33,15 @@ public interface WebDetectionOrBuilder */ int getWebEntitiesCount(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -77,325 +52,236 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ int getFullMatchingImagesCount(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ int getPartialMatchingImagesCount(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ int getPagesWithMatchingImagesCount(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ int getVisuallySimilarImagesCount(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List getBestGuessLabelsList(); + java.util.List + getBestGuessLabelsList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ int getBestGuessLabelsCount(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** - * - * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java similarity index 69% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java index cadde82ec..226d43449 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetectionParams} */ -public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetectionParams) WebDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WebDetectionParams() {} + private WebDetectionParams() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: - { - includeGeoResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + includeGeoResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** - * - * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetectionParams other = - (com.google.cloud.vision.v1p3beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p3beta1.WebDetectionParams other = (com.google.cloud.vision.v1p3beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() + != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,133 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetectionParams) com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder() @@ -319,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -358,8 +331,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetectionParams result = - new com.google.cloud.vision.v1p3beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p3beta1.WebDetectionParams result = new com.google.cloud.vision.v1p3beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -369,39 +341,38 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetectionParams) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetectionParams)other); } else { super.mergeFrom(other); return this; @@ -409,8 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance()) return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -433,8 +403,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p3beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -444,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_; + private boolean includeGeoResults_ ; /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -461,43 +427,37 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -507,12 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p3beta1.WebDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetectionParams(); } @@ -521,16 +481,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -545,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..75f49a3fb --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface WebDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java new file mode 100644 index 000000000..ea74418d4 --- /dev/null +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/web_detection.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p3beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p3bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p3beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p3beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p3beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p3" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p3beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p3beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p3beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p3beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p3beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p3beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor, + new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { "EntityId", "Score", "Description", }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { "Url", "Score", }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { "Label", "LanguageCode", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java similarity index 77% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java index 4e9027006..51f927e0f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** - * - * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Word} */ -public final class Word extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Word extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Word) WordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Word( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - symbols_.add( - input.readMessage( - com.google.cloud.vision.v1p3beta1.Symbol.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + symbols_.add( + input.readMessage(com.google.cloud.vision.v1p3beta1.Symbol.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -144,33 +118,27 @@ private Word( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Word.class, - com.google.cloud.vision.v1p3beta1.Word.Builder.class); + com.google.cloud.vision.v1p3beta1.Word.class, com.google.cloud.vision.v1p3beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the word.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -316,8 +264,6 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -326,13 +272,11 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -345,8 +289,6 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -359,8 +301,6 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -369,21 +309,19 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -392,7 +330,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -427,16 +365,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,7 +388,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Word)) { return super.equals(obj); @@ -455,15 +397,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getSymbolsList().equals(other.getSymbolsList())) return false; + if (!getSymbolsList() + .equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,133 +434,125 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Word parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Word} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Word) com.google.cloud.vision.v1p3beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Word.class, - com.google.cloud.vision.v1p3beta1.Word.Builder.class); + com.google.cloud.vision.v1p3beta1.Word.class, com.google.cloud.vision.v1p3beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Word.newBuilder() @@ -622,17 +560,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override @@ -681,8 +619,7 @@ public com.google.cloud.vision.v1p3beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Word buildPartial() { - com.google.cloud.vision.v1p3beta1.Word result = - new com.google.cloud.vision.v1p3beta1.Word(this); + com.google.cloud.vision.v1p3beta1.Word result = new com.google.cloud.vision.v1p3beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -712,39 +649,38 @@ public com.google.cloud.vision.v1p3beta1.Word buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Word) other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Word)other); } else { super.mergeFrom(other); return this; @@ -777,10 +713,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSymbolsFieldBuilder() - : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSymbolsFieldBuilder() : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -817,60 +752,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -884,8 +804,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -904,22 +822,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -931,8 +844,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -951,42 +862,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -994,17 +896,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1012,13 +911,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1038,15 +932,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1066,21 +957,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1115,8 +1001,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1149,8 +1033,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1175,9 +1057,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1189,8 +1069,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1223,8 +1101,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1246,13 +1122,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1277,14 +1151,11 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1306,41 +1177,32 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly,
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.BoundingPoly,
-                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Symbol,
-            com.google.cloud.vision.v1p3beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>
-        symbolsBuilder_;
+        com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder> symbolsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1356,8 +1218,6 @@ public java.util.List getSymbolsList()
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1373,8 +1233,6 @@ public int getSymbolsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1390,8 +1248,6 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1399,7 +1255,8 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
+    public Builder setSymbols(
+        int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1413,8 +1270,6 @@ public Builder setSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1434,8 +1289,6 @@ public Builder setSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1457,8 +1310,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1466,7 +1317,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
+    public Builder addSymbols(
+        int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1480,8 +1332,6 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1489,7 +1339,8 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol va
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(
+        com.google.cloud.vision.v1p3beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1500,8 +1351,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1521,8 +1370,6 @@ public Builder addSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1534,7 +1381,8 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1542,8 +1390,6 @@ public Builder addAllSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1562,8 +1408,6 @@ public Builder clearSymbols() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1582,8 +1426,6 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1591,12 +1433,11 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(
+        int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1604,16 +1445,14 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+    public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
+        int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);
-      } else {
+        return symbols_.get(index);  } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1621,8 +1460,8 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsOrBuilderList() {
+    public java.util.List 
+         getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1630,8 +1469,6 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1640,12 +1477,10 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1653,13 +1488,12 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(int index) {
-      return getSymbolsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(
+        int index) {
+      return getSymbolsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1667,38 +1501,32 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsBuilderList() {
+    public java.util.List 
+         getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Symbol,
-            com.google.cloud.vision.v1p3beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>
+        com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder> 
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p3beta1.Symbol,
-                com.google.cloud.vision.v1p3beta1.Symbol.Builder,
-                com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>(
-                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>(
+                symbols_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1706,43 +1534,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1752,12 +1574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Word) private static final com.google.cloud.vision.v1p3beta1.Word DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Word(); } @@ -1766,16 +1588,16 @@ public static com.google.cloud.vision.v1p3beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1790,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java index a8417ae34..70ccd560f 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface WordOrBuilder - extends +public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Word) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
@@ -59,8 +35,6 @@ public interface WordOrBuilder com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,8 +104,6 @@ public interface WordOrBuilder
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -145,10 +111,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsList();
+  java.util.List 
+      getSymbolsList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -158,8 +123,6 @@ public interface WordOrBuilder
    */
   com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index);
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -169,8 +132,6 @@ public interface WordOrBuilder
    */
   int getSymbolsCount();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -178,11 +139,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  java.util.List
+  java.util.List 
       getSymbolsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -190,17 +149,15 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
+  com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto similarity index 99% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto index 5f2111784..ca0b4e86d 100644 --- a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto @@ -557,6 +557,9 @@ message TextDetectionParams { // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence // score for TEXT_DETECTION as well. bool enable_text_detection_confidence_score = 9; + + // A list of advanced OCR options to fine-tune OCR behavior. + repeated string advanced_ocr_options = 11; } // Image context and/or feature-specific parameters. diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto similarity index 100% rename from proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto rename to owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index e01fe084f..782ce1355 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [START vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] import com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest; import com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse; import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient; @@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr } } } -// [END -// vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [END vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index a22008908..1dc8a01ba 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [START vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] import com.google.cloud.vision.v1p3beta1.AnnotateImageRequest; import com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse; import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient; @@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce } } } -// [END -// vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [END vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 89026e696..46d06174e 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index db09e2c8b..3972539cf 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 764412e0f..0069a8cd7 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameString { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameString() throws Excep } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index 154ad305d..b4433e81d 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] +// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringProductname { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetStringProductname() throws Exceptio } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] +// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index 21f18eb16..04c8e04f3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index b0e8dd03c..ef1be0043 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync] import com.google.cloud.vision.v1p3beta1.LocationName; import com.google.cloud.vision.v1p3beta1.Product; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index cb47fdd79..bb8181b35 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] import com.google.cloud.vision.v1p3beta1.LocationName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSet; @@ -39,5 +38,4 @@ public static void syncCreateProductSetLocationnameProductsetString() throws Exc } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index a959d0483..72cc3acec 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync] import com.google.cloud.vision.v1p3beta1.LocationName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSet; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 271a9677d..15c9e6114 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index 54373eaf2..5e27f6618 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 99daaf239..9229c99f6 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p3beta1.DeleteProductRequest; import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProduct { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index f8a2650c4..652a91f43 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -19,6 +19,7 @@ // [START vision_v1p3beta1_generated_productsearchclient_deleteproduct_productname_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductProductname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index f76ab1369..fccc0253d 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -19,6 +19,7 @@ // [START vision_v1p3beta1_generated_productsearchclient_deleteproduct_string_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index e43bfadea..2c9d2ac08 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 854786fad..54de01dea 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -19,6 +19,7 @@ // [START vision_v1p3beta1_generated_productsearchclient_deleteproductset_productsetname_sync] import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetProductsetname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 9826a2c52..2245897cc 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -19,6 +19,7 @@ // [START vision_v1p3beta1_generated_productsearchclient_deleteproductset_string_sync] import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index dbad79626..fc75058db 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImage { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 91% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 04e8d18aa..4c4fc0eba 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -16,10 +16,10 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync] +// [START vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync] import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageReferenceimagename { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index 947dc4824..e7c9525e7 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -19,6 +19,7 @@ // [START vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_string_sync] import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 2dcaf84b0..0cc58433d 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [START vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse; import com.google.cloud.vision.v1p3beta1.LocationName; @@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [END vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index de013a595..08b200f9c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [START vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse; import com.google.cloud.vision.v1p3beta1.LocationName; @@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [END vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 93% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index bf7472304..de62fbffe 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync] +// [START vision_v1p3beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync] import com.google.cloud.vision.v1p3beta1.Product; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 8fc234a05..30adc33a9 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; import com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index d5b1513c1..f7e9c8fc8 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index d305c81a9..79de6ae33 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameString { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 1b4201626..96caddba0 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] +// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringProductname { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringProductname() throws Exc } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] +// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 4b9c7b97c..aa8f842a2 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p3beta1.samples; -// [START -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] +// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] import com.google.cloud.vision.v1p3beta1.ProductName; import com.google.cloud.vision.v1p3beta1.ProductSearchClient; import com.google.cloud.vision.v1p3beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringString { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringString() throws Exceptio } } } -// [END -// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] +// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java index 2f1cabcf5..8cdcc612c 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java index 02757a739..ce8c3b94b 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p4beta1.stub.ImageAnnotatorStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java similarity index 93% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java index f4ee7d0ca..bd0c5b6a8 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -218,7 +218,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -261,7 +261,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -304,7 +304,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -337,7 +337,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -370,7 +370,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -405,7 +405,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -437,7 +437,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -472,7 +472,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -508,7 +508,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -551,7 +551,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -582,7 +582,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -612,7 +612,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -643,7 +643,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -674,8 +674,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -713,8 +713,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -747,8 +747,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -891,9 +891,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -935,9 +935,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -979,9 +979,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1014,9 +1014,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1048,7 +1048,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1083,7 +1083,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1115,7 +1115,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1150,7 +1150,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1186,7 +1186,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1227,7 +1227,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1258,7 +1258,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1288,7 +1288,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1319,7 +1319,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1353,12 +1353,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1397,12 +1397,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1438,12 +1438,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 - * characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than + * 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1596,11 +1596,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1653,11 +1653,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1710,11 +1710,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1755,11 +1755,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1924,8 +1924,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1960,8 +1960,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1994,8 +1994,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2031,8 +2031,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2068,8 +2068,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2112,7 +2112,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2147,7 +2147,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2180,7 +2180,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2213,7 +2213,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2249,7 +2249,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2289,7 +2289,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2329,7 +2329,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2369,7 +2369,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2406,7 +2406,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2441,7 +2441,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2649,7 +2649,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2685,7 +2685,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2719,7 +2719,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2756,7 +2756,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2793,7 +2793,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -3290,10 +3290,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3343,10 +3340,7 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, - ListProductSetsResponse, - ProductSet, - ListProductSetsPage, + ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3367,10 +3361,7 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3419,10 +3410,7 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, - ListProductsResponse, - Product, - ListProductsPage, + ListProductsRequest, ListProductsResponse, Product, ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3442,11 +3430,8 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3467,9 +3452,7 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3502,11 +3485,8 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, - ListReferenceImagesResponse, - ReferenceImage, - ListReferenceImagesPage, - ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3526,11 +3506,8 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3551,9 +3528,7 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3586,11 +3561,8 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, - Product, - ListProductsInProductSetPage, - ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java similarity index 97% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java index 24833d6b6..da6e15354 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p4beta1.stub.ProductSearchStubSettings; @@ -48,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -167,8 +168,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -382,8 +382,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -409,8 +408,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java index 9a5a84155..e4e6d523a 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java @@ -64,6 +64,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java index 233845066..5d41fccea 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,6 +28,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java index 91d9edfc0..2c9b42a32 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java @@ -33,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java index d604bd13b..1542856b8 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java similarity index 100% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java similarity index 98% rename from google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java index ecb4054b1..a609f6d3e 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java +++ b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java @@ -96,9 +96,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -160,8 +160,7 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -369,8 +368,7 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -387,13 +385,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -500,8 +496,7 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -686,8 +681,7 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -697,8 +691,7 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1121,8 +1114,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, - ListReferenceImagesResponse, + ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1148,8 +1140,7 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, - ListProductsInProductSetResponse, + ListProductsInProductSetRequest, ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java b/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java similarity index 100% rename from google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java rename to owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java diff --git a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java b/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java similarity index 51% rename from grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java rename to owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java index 499194d8c..af9e90f11 100644 --- a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java +++ b/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p4beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -37,272 +20,194 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p4beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
-      getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
-            com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
-        getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
-              getBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-                      .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
-      getBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
-          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
-      getBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
-            com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
-        getBatchAnnotateFilesMethod;
+  public static io.grpc.MethodDescriptor getBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
     if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod =
-              getBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
-                      .build();
+        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod = getBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getBatchAnnotateFilesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateImagesMethod;
-    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
+    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateImagesMethod =
-                ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod =
-              getAsyncBatchAnnotateImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
-                      .build();
+        if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod = getAsyncBatchAnnotateImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
-          com.google.longrunning.Operation>
-      getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
-            com.google.longrunning.Operation>
-        getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
-            == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
-              getAsyncBatchAnnotateFilesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-                      .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+              .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorBlockingStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ImageAnnotatorFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ImageAnnotatorFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ImageAnnotatorFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ImageAnnotatorFutureStub(channel, callOptions);
+        }
+      };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { + public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -312,17 +217,12 @@ public void batchAnnotateImages(
      * extracted.
      * 
*/ - public void batchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchAnnotateFilesMethod(), responseObserver); + public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateFilesMethod(), responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -333,16 +233,12 @@ public void batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateImagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateImagesMethod(), responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -352,87 +248,76 @@ public void asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>( - this, METHODID_BATCH_ANNOTATE_FILES))) + getBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>( + this, METHODID_BATCH_ANNOTATE_FILES))) .addMethod( - getAsyncBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) + getAsyncBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub - extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -442,19 +327,13 @@ public void batchAnnotateImages(
      * extracted.
      * 
*/ - public void batchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -465,18 +344,13 @@ public void batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -486,28 +360,23 @@ public void asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -518,21 +387,16 @@ protected ImageAnnotatorBlockingStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -542,15 +406,12 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnota
      * extracted.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -561,15 +422,12 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotat
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateImages( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -579,25 +437,22 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -608,22 +463,17 @@ protected ImageAnnotatorFutureStub build( } /** - * - * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse> - batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -633,16 +483,13 @@ protected ImageAnnotatorFutureStub build(
      * extracted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse> - batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -653,16 +500,13 @@ protected ImageAnnotatorFutureStub build(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateImages( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateImages( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -672,9 +516,8 @@ protected ImageAnnotatorFutureStub build(
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request); } @@ -685,11 +528,11 @@ protected ImageAnnotatorFutureStub build( private static final int METHODID_ASYNC_BATCH_ANNOTATE_IMAGES = 2; private static final int METHODID_ASYNC_BATCH_ANNOTATE_FILES = 3; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -703,27 +546,19 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages( - (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>) - responseObserver); + serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_ANNOTATE_FILES: - serviceImpl.batchAnnotateFiles( - (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>) - responseObserver); + serviceImpl.batchAnnotateFiles((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_IMAGES: - serviceImpl.asyncBatchAnnotateImages( - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) request, + serviceImpl.asyncBatchAnnotateImages((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYNC_BATCH_ANNOTATE_FILES: - serviceImpl.asyncBatchAnnotateFiles( - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) request, + serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -742,9 +577,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -786,15 +620,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .addMethod(getBatchAnnotateFilesMethod()) - .addMethod(getAsyncBatchAnnotateImagesMethod()) - .addMethod(getAsyncBatchAnnotateFilesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .addMethod(getBatchAnnotateFilesMethod()) + .addMethod(getAsyncBatchAnnotateImagesMethod()) + .addMethod(getAsyncBatchAnnotateFilesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java b/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java similarity index 52% rename from grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java rename to owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java index 49992ba8b..066efff1e 100644 --- a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java +++ b/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.vision.v1p4beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -48,937 +31,640 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p4beta1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
-            com.google.cloud.vision.v1p4beta1.ProductSet>
-        getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod =
-              getCreateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.CreateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-                      .build();
+          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+              .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
-      getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
-      getListProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
-            com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
-        getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
+    io.grpc.MethodDescriptor getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod =
-              getListProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductSetsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-                      .build();
+          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+              .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getGetProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
-            com.google.cloud.vision.v1p4beta1.ProductSet>
-        getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
+    io.grpc.MethodDescriptor getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod =
-              getGetProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.GetProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-                      .build();
+          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+              .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ProductSet>
-      getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
-            com.google.cloud.vision.v1p4beta1.ProductSet>
-        getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod =
-              getUpdateProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+              .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-      getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
-        getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod =
-              getDeleteProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+              .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1p4beta1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getCreateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.CreateProductRequest,
-            com.google.cloud.vision.v1p4beta1.Product>
-        getCreateProductMethod;
+  public static io.grpc.MethodDescriptor getCreateProductMethod() {
+    io.grpc.MethodDescriptor getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod =
-              getCreateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.CreateProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-                      .build();
+          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+              .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductsRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductsResponse>
-      getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductsRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductsResponse>
-      getListProductsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.ListProductsRequest,
-            com.google.cloud.vision.v1p4beta1.ListProductsResponse>
-        getListProductsMethod;
+  public static io.grpc.MethodDescriptor getListProductsMethod() {
+    io.grpc.MethodDescriptor getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod =
-              getListProductsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
-                      .build();
+          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
+              .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1p4beta1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getGetProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.GetProductRequest,
-            com.google.cloud.vision.v1p4beta1.Product>
-        getGetProductMethod;
+  public static io.grpc.MethodDescriptor getGetProductMethod() {
+    io.grpc.MethodDescriptor getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod =
-              getGetProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.GetProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-                      .build();
+          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+              .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
-          com.google.cloud.vision.v1p4beta1.Product>
-      getUpdateProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
-            com.google.cloud.vision.v1p4beta1.Product>
-        getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
+    io.grpc.MethodDescriptor getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod =
-              getUpdateProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.UpdateProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-                      .build();
+          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+              .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
-      getDeleteProductMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
-        getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
+    io.grpc.MethodDescriptor getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod =
-              getDeleteProductMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.DeleteProductRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-                      .build();
+          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+              .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1p4beta1.ReferenceImage>
-      getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
-          com.google.cloud.vision.v1p4beta1.ReferenceImage>
-      getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
-            com.google.cloud.vision.v1p4beta1.ReferenceImage>
-        getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod =
-              getCreateReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ReferenceImage
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-                      .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+              .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
-      getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest,
-            com.google.protobuf.Empty>
-        getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
-            == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod =
-              getDeleteReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-                      .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+              .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
-          com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
-      getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
-            com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
-        getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
-            == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod =
-              getListReferenceImagesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-                      .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+              .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1p4beta1.ReferenceImage>
-      getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
-          com.google.cloud.vision.v1p4beta1.ReferenceImage>
-      getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
-            com.google.cloud.vision.v1p4beta1.ReferenceImage>
-        getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod =
-              getGetReferenceImageMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ReferenceImage
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-                      .build();
+          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+              .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
-          com.google.protobuf.Empty>
-      getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
-          com.google.protobuf.Empty>
-      getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
-            com.google.protobuf.Empty>
-        getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod =
-              getAddProductToProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-                      .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+              .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
-          com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
-          com.google.protobuf.Empty>
-      getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
-            com.google.protobuf.Empty>
-        getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod =
-            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod =
-                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
-              getRemoveProductFromProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-                      .build();
+        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+              .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
-          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
-      getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
-            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
-        getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod =
-                ProductSearchGrpc.getListProductsInProductSetMethod)
-            == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod =
-              getListProductsInProductSetMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-                      .build();
+        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+              .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
-          com.google.longrunning.Operation>
-      getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
-          com.google.longrunning.Operation>
-      getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
-            com.google.longrunning.Operation>
-        getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod =
-              getImportProductSetsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-                      .build();
+          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+              .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation>
-      getPurgeProductsMethod;
+  private static volatile io.grpc.MethodDescriptor getPurgeProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PurgeProducts",
       requestType = com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation>
-      getPurgeProductsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.vision.v1p4beta1.PurgeProductsRequest,
-            com.google.longrunning.Operation>
-        getPurgeProductsMethod;
+  public static io.grpc.MethodDescriptor getPurgeProductsMethod() {
+    io.grpc.MethodDescriptor getPurgeProductsMethod;
     if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
-          ProductSearchGrpc.getPurgeProductsMethod =
-              getPurgeProductsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.vision.v1p4beta1.PurgeProductsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
-                      .build();
+          ProductSearchGrpc.getPurgeProductsMethod = getPurgeProductsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
+              .build();
         }
       }
     }
     return getPurgeProductsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchStub(channel, callOptions);
+        }
+      };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchBlockingStub(channel, callOptions);
+        }
+      };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static ProductSearchFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public ProductSearchFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new ProductSearchFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new ProductSearchFutureStub(channel, callOptions);
+        }
+      };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -996,11 +682,9 @@ public ProductSearchFutureStub newStub(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public abstract static class ProductSearchImplBase implements io.grpc.BindableService { + public static abstract class ProductSearchImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1008,17 +692,12 @@ public abstract static class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductSetMethod(), responseObserver); + public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1026,34 +705,24 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductSetsMethod(), responseObserver); + public void listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProductSetMethod(), responseObserver); + public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1063,33 +732,24 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductSetMethod(), responseObserver); + public void updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1099,48 +759,36 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1p4beta1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1p4beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsMethod(), responseObserver); + public void listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1p4beta1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1156,16 +804,12 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1173,16 +817,12 @@ public void updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1201,17 +841,12 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReferenceImageMethod(), responseObserver); + public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1220,16 +855,12 @@ public void createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1238,34 +869,24 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReferenceImageMethod(), responseObserver); + public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1274,30 +895,22 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1306,18 +919,12 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1330,16 +937,12 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1362,146 +965,151 @@ public void importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPurgeProductsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeProductsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest, - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest, + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateProductRequest, - com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateProductRequest, + com.google.cloud.vision.v1p4beta1.Product>( + this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductsRequest, - com.google.cloud.vision.v1p4beta1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductsRequest, + com.google.cloud.vision.v1p4beta1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetProductRequest, - com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetProductRequest, + com.google.cloud.vision.v1p4beta1.Product>( + this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.UpdateProductRequest, - com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.UpdateProductRequest, + com.google.cloud.vision.v1p4beta1.Product>( + this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteProductRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteProductRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest, - com.google.cloud.vision.v1p4beta1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest, + com.google.cloud.vision.v1p4beta1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest, - com.google.cloud.vision.v1p4beta1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest, + com.google.cloud.vision.v1p4beta1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>( + this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_PRODUCT_SETS))) .addMethod( - getPurgeProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, - com.google.longrunning.Operation>(this, METHODID_PURGE_PRODUCTS))) + getPurgeProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, + com.google.longrunning.Operation>( + this, METHODID_PURGE_PRODUCTS))) .build(); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1519,20 +1127,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub - extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1540,19 +1147,13 @@ protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      *   4096 characters.
      * 
*/ - public void createProductSet( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1560,38 +1161,26 @@ public void createProductSet(
      *   than 1.
      * 
*/ - public void listProductSets( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1601,37 +1190,26 @@ public void getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, + public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1641,53 +1219,39 @@ public void deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct( - com.google.cloud.vision.v1p4beta1.CreateProductRequest request, + public void createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts( - com.google.cloud.vision.v1p4beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct( - com.google.cloud.vision.v1p4beta1.GetProductRequest request, + public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1703,18 +1267,13 @@ public void getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, + public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1722,18 +1281,13 @@ public void updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, + public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1752,19 +1306,13 @@ public void deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1773,18 +1321,13 @@ public void createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -1793,38 +1336,26 @@ public void deleteReferenceImage(
      *   than 1.
      * 
*/ - public void listReferenceImages( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1833,34 +1364,24 @@ public void getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, + public void addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1869,20 +1390,13 @@ public void removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse> - responseObserver) { + public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1895,18 +1409,13 @@ public void listProductsInProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, + public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1929,19 +1438,14 @@ public void importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1959,9 +1463,9 @@ public void purgeProducts(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1972,8 +1476,6 @@ protected ProductSearchBlockingStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1981,15 +1483,12 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1997,30 +1496,24 @@ public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -2030,30 +1523,24 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -2063,45 +1550,36 @@ public com.google.protobuf.Empty deleteProductSet(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product createProduct( - com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts( - com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product getProduct( - com.google.cloud.vision.v1p4beta1.GetProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -2117,15 +1595,12 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product updateProduct( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2133,15 +1608,12 @@ public com.google.cloud.vision.v1p4beta1.Product updateProduct(
      * until all related caches are refreshed.
      * 
*/ - public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2160,15 +1632,12 @@ public com.google.protobuf.Empty deleteProduct(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2177,15 +1646,12 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2194,30 +1660,24 @@ public com.google.protobuf.Empty deleteReferenceImage(
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2226,28 +1686,22 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2256,16 +1710,12 @@ public com.google.protobuf.Empty removeProductFromProductSet(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - listProductsInProductSet( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2278,15 +1728,12 @@ public com.google.protobuf.Empty removeProductFromProductSet(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2309,16 +1756,13 @@ public com.google.longrunning.Operation importProductSets(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.longrunning.Operation purgeProducts( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { + public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } /** - * - * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -2336,9 +1780,9 @@ public com.google.longrunning.Operation purgeProducts(
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2349,8 +1793,6 @@ protected ProductSearchFutureStub build( } /** - * - * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -2358,16 +1800,13 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ProductSet> - createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProductSet( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -2375,32 +1814,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse> - listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductSets( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ProductSet> - getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProductSet( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -2410,31 +1843,26 @@ protected ProductSearchFutureStub build(
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ProductSet> - updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProductSet( + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProductSet( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -2444,48 +1872,39 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.Product> - createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture createProduct( + com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ListProductsResponse> - listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProducts( + com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.Product> - getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture getProduct( + com.google.cloud.vision.v1p4beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** - * - * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -2501,16 +1920,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.Product> - updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateProduct( + com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -2518,15 +1934,13 @@ protected ProductSearchFutureStub build(
      * until all related caches are refreshed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteProduct( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request); } /** - * - * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -2545,17 +1959,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ReferenceImage> - createReferenceImage( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReferenceImage( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -2564,16 +1974,13 @@ protected ProductSearchFutureStub build(
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteReferenceImage( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Lists reference images.
      * Possible errors:
@@ -2582,32 +1989,26 @@ protected ProductSearchFutureStub build(
      *   than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse> - listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listReferenceImages( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ReferenceImage> - getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture getReferenceImage( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** - * - * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2616,30 +2017,24 @@ protected ProductSearchFutureStub build(
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - addProductToProductSet( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture addProductToProductSet( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2648,17 +2043,13 @@ protected ProductSearchFutureStub build(
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse> - listProductsInProductSet( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request); } /** - * - * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2671,15 +2062,13 @@ protected ProductSearchFutureStub build(
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture importProductSets( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request); } /** - * - * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2702,8 +2091,8 @@ protected ProductSearchFutureStub build(
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request); } @@ -2729,11 +2118,11 @@ protected ProductSearchFutureStub build( private static final int METHODID_IMPORT_PRODUCT_SETS = 17; private static final int METHODID_PURGE_PRODUCTS = 18; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ProductSearchImplBase serviceImpl; private final int methodId; @@ -2747,113 +2136,79 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_PRODUCT_SET: - serviceImpl.createProductSet( - (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProductSet((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCT_SETS: - serviceImpl.listProductSets( - (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>) - responseObserver); + serviceImpl.listProductSets((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT_SET: - serviceImpl.getProductSet( - (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getProductSet((com.google.cloud.vision.v1p4beta1.GetProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT_SET: - serviceImpl.updateProductSet( - (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProductSet((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT_SET: - serviceImpl.deleteProductSet( - (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) request, + serviceImpl.deleteProductSet((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PRODUCT: - serviceImpl.createProduct( - (com.google.cloud.vision.v1p4beta1.CreateProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createProduct((com.google.cloud.vision.v1p4beta1.CreateProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS: - serviceImpl.listProducts( - (com.google.cloud.vision.v1p4beta1.ListProductsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listProducts((com.google.cloud.vision.v1p4beta1.ListProductsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PRODUCT: - serviceImpl.getProduct( - (com.google.cloud.vision.v1p4beta1.GetProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getProduct((com.google.cloud.vision.v1p4beta1.GetProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PRODUCT: - serviceImpl.updateProduct( - (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateProduct((com.google.cloud.vision.v1p4beta1.UpdateProductRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PRODUCT: - serviceImpl.deleteProduct( - (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) request, + serviceImpl.deleteProduct((com.google.cloud.vision.v1p4beta1.DeleteProductRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_REFERENCE_IMAGE: - serviceImpl.createReferenceImage( - (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createReferenceImage((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_REFERENCE_IMAGE: - serviceImpl.deleteReferenceImage( - (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) request, + serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_REFERENCE_IMAGES: - serviceImpl.listReferenceImages( - (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>) - responseObserver); + serviceImpl.listReferenceImages((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_REFERENCE_IMAGE: - serviceImpl.getReferenceImage( - (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getReferenceImage((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ADD_PRODUCT_TO_PRODUCT_SET: - serviceImpl.addProductToProductSet( - (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) request, + serviceImpl.addProductToProductSet((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET: - serviceImpl.removeProductFromProductSet( - (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) request, + serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET: - serviceImpl.listProductsInProductSet( - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>) - responseObserver); + serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_PRODUCT_SETS: - serviceImpl.importProductSets( - (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) request, + serviceImpl.importProductSets((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PURGE_PRODUCTS: - serviceImpl.purgeProducts( - (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) request, + serviceImpl.purgeProducts((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -2872,9 +2227,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ProductSearchBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ProductSearchBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProductSearchBaseDescriptorSupplier() {} @java.lang.Override @@ -2916,30 +2270,28 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ProductSearchGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) - .addMethod(getCreateProductSetMethod()) - .addMethod(getListProductSetsMethod()) - .addMethod(getGetProductSetMethod()) - .addMethod(getUpdateProductSetMethod()) - .addMethod(getDeleteProductSetMethod()) - .addMethod(getCreateProductMethod()) - .addMethod(getListProductsMethod()) - .addMethod(getGetProductMethod()) - .addMethod(getUpdateProductMethod()) - .addMethod(getDeleteProductMethod()) - .addMethod(getCreateReferenceImageMethod()) - .addMethod(getDeleteReferenceImageMethod()) - .addMethod(getListReferenceImagesMethod()) - .addMethod(getGetReferenceImageMethod()) - .addMethod(getAddProductToProductSetMethod()) - .addMethod(getRemoveProductFromProductSetMethod()) - .addMethod(getListProductsInProductSetMethod()) - .addMethod(getImportProductSetsMethod()) - .addMethod(getPurgeProductsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier()) + .addMethod(getCreateProductSetMethod()) + .addMethod(getListProductSetsMethod()) + .addMethod(getGetProductSetMethod()) + .addMethod(getUpdateProductSetMethod()) + .addMethod(getDeleteProductSetMethod()) + .addMethod(getCreateProductMethod()) + .addMethod(getListProductsMethod()) + .addMethod(getGetProductMethod()) + .addMethod(getUpdateProductMethod()) + .addMethod(getDeleteProductMethod()) + .addMethod(getCreateReferenceImageMethod()) + .addMethod(getDeleteReferenceImageMethod()) + .addMethod(getListReferenceImagesMethod()) + .addMethod(getGetReferenceImageMethod()) + .addMethod(getAddProductToProductSetMethod()) + .addMethod(getRemoveProductFromProductSetMethod()) + .addMethod(getListProductsInProductSetMethod()) + .addMethod(getImportProductSetsMethod()) + .addMethod(getPurgeProductsMethod()) + .build(); } } } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java similarity index 64% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java index 97d701b23..053f1a504 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AddProductToProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -44,15 +26,16 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,18 +153,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -201,33 +168,31 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -236,7 +201,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -278,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AddProductToProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.newBuilder() @@ -437,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance(); } @@ -479,8 +435,7 @@ public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -491,50 +446,46 @@ public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other) { + if (other == com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -562,9 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -628,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -702,24 +631,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -728,25 +653,22 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -754,80 +676,67 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,32 +746,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,8 +781,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..595a24af9 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AddProductToProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java index dd18510bc..97a09cf93 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileRequest} */ -public final class AnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateFileRequest) AnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateFileRequest.newBuilder() to construct. private AnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateFileRequest() { features_ = java.util.Collections.emptyList(); pages_ = emptyIntList(); @@ -44,15 +26,16 @@ private AnnotateFileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,79 +55,69 @@ private AnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); - break; + imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 32: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; } - case 32: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - pages_.addInt(input.readInt32()); - break; + pages_.addInt(input.readInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - pages_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + pages_.addInt(input.readInt32()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -152,7 +125,8 @@ private AnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -164,33 +138,27 @@ private AnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -198,25 +166,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -231,8 +192,6 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -244,8 +203,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -253,13 +210,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -271,8 +226,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -284,8 +237,6 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -293,21 +244,19 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -315,25 +264,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -348,8 +290,6 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr public static final int PAGES_FIELD_NUMBER = 4; private com.google.protobuf.Internal.IntList pages_; /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -364,16 +304,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr
    * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ @java.lang.Override - public java.util.List getPagesList() { + public java.util.List + getPagesList() { return pages_; } /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -388,15 +326,12 @@ public java.util.List getPagesList() {
    * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -411,18 +346,15 @@ public int getPagesCount() {
    * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ public int getPages(int index) { return pages_.getInt(index); } - private int pagesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,7 +366,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); @@ -462,23 +395,28 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } { int dataSize = 0; for (int i = 0; i < pages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pages_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(pages_.getInt(i)); } size += dataSize; if (!getPagesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } pagesMemoizedSerializedSize = dataSize; } @@ -490,24 +428,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other = - (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) obj; + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other = (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } - if (!getPagesList().equals(other.getPagesList())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -541,127 +482,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateFileRequest) com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.newBuilder() @@ -669,17 +600,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -707,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override @@ -728,8 +659,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest result = - new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(this); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest result = new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -763,39 +693,38 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -803,8 +732,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -826,10 +754,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest o featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -867,8 +794,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -877,52 +803,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -943,8 +855,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -963,8 +873,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -975,9 +883,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -989,8 +895,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1009,8 +913,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1018,13 +920,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1035,14 +935,11 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -1050,41 +947,32 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1099,8 +987,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1115,8 +1001,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1131,15 +1015,14 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1153,8 +1036,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1173,8 +1054,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1195,15 +1074,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1217,15 +1095,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1236,8 +1113,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder bui return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1256,8 +1131,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1268,7 +1141,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1276,8 +1150,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1295,8 +1167,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1314,44 +1184,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1359,8 +1224,6 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1368,48 +1231,42 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1417,47 +1274,34 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1478,8 +1322,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1498,8 +1340,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1510,9 +1350,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1524,8 +1362,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1544,8 +1380,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1553,13 +1387,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1570,14 +1402,11 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1585,33 +1414,27 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } private com.google.protobuf.Internal.IntList pages_ = emptyIntList(); - private void ensurePagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pages_ = mutableCopy(pages_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1626,17 +1449,14 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ - public java.util.List getPagesList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(pages_) - : pages_; + public java.util.List + getPagesList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(pages_) : pages_; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1651,15 +1471,12 @@ public java.util.List getPagesList() {
      * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1674,7 +1491,6 @@ public int getPagesCount() {
      * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ @@ -1682,8 +1498,6 @@ public int getPages(int index) { return pages_.getInt(index); } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1698,20 +1512,18 @@ public int getPages(int index) {
      * 
* * repeated int32 pages = 4; - * * @param index The index to set the value at. * @param value The pages to set. * @return This builder for chaining. */ - public Builder setPages(int index, int value) { + public Builder setPages( + int index, int value) { ensurePagesIsMutable(); pages_.setInt(index, value); onChanged(); return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1726,7 +1538,6 @@ public Builder setPages(int index, int value) {
      * 
* * repeated int32 pages = 4; - * * @param value The pages to add. * @return This builder for chaining. */ @@ -1737,8 +1548,6 @@ public Builder addPages(int value) { return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1753,19 +1562,18 @@ public Builder addPages(int value) {
      * 
* * repeated int32 pages = 4; - * * @param values The pages to add. * @return This builder for chaining. */ - public Builder addAllPages(java.lang.Iterable values) { + public Builder addAllPages( + java.lang.Iterable values) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); return this; } /** - * - * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1780,7 +1588,6 @@ public Builder addAllPages(java.lang.Iterable value
      * 
* * repeated int32 pages = 4; - * * @return This builder for chaining. */ public Builder clearPages() { @@ -1789,9 +1596,9 @@ public Builder clearPages() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1801,12 +1608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileRequest) private static final com.google.cloud.vision.v1p4beta1.AnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(); } @@ -1815,16 +1622,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1839,4 +1646,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java index e55c44a24..8afb5a7a9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AnnotateFileRequestOrBuilder - extends +public interface AnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateFileRequestOrBuilder com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -146,8 +106,6 @@ public interface AnnotateFileRequestOrBuilder com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -162,13 +120,10 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @return A list containing the pages. */ java.util.List getPagesList(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -183,13 +138,10 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @return The count of pages. */ int getPagesCount(); /** - * - * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -204,7 +156,6 @@ public interface AnnotateFileRequestOrBuilder
    * 
* * repeated int32 pages = 4; - * * @param index The index of the element to return. * @return The pages at the given index. */ diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java index 0faeea4e8..e25593204 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,62 +55,53 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null;
-              if (inputConfig_ != null) {
-                subBuilder = inputConfig_.toBuilder();
-              }
-              inputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputConfig_);
-                inputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null;
+            if (inputConfig_ != null) {
+              subBuilder = inputConfig_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                responses_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              responses_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(),
-                      extensionRegistry));
-              break;
+            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(inputConfig_);
+              inputConfig_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              totalPages_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              responses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 34:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
+            responses_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), extensionRegistry));
+            break;
+          }
+          case 24: {
 
-              break;
+            totalPages_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -135,7 +109,8 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -144,33 +119,27 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class,
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_;
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -178,25 +147,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -211,8 +173,6 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** - * - * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -221,13 +181,10 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getResponsesList() {
+  public java.util.List getResponsesList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -236,13 +193,11 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -255,8 +210,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -269,8 +222,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -287,14 +238,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
   public static final int TOTAL_PAGES_FIELD_NUMBER = 3;
   private int totalPages_;
   /**
-   *
-   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; - * * @return The totalPages. */ @java.lang.Override @@ -305,15 +253,12 @@ public int getTotalPages() { public static final int ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ @java.lang.Override @@ -321,15 +266,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return The error. */ @java.lang.Override @@ -337,8 +279,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
@@ -352,7 +292,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -364,7 +303,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (inputConfig_ != null) {
       output.writeMessage(1, getInputConfig());
     }
@@ -387,16 +327,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getInputConfig());
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, responses_.get(i));
     }
     if (totalPages_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, totalPages_);
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -406,23 +350,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other =
-        (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) obj;
+    com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) obj;
 
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig().equals(other.getInputConfig())) return false;
+      if (!getInputConfig()
+          .equals(other.getInputConfig())) return false;
     }
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
-    if (getTotalPages() != other.getTotalPages()) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -455,104 +402,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -560,23 +499,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class,
-              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.newBuilder()
@@ -584,17 +521,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -622,9 +559,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -643,8 +580,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse result =
-          new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -674,39 +610,38 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -714,8 +649,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance()) return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -737,10 +671,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResponsesFieldBuilder()
-                    : null;
+            responsesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResponsesFieldBuilder() : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -771,8 +704,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -781,52 +713,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.InputConfig,
-            com.google.cloud.vision.v1p4beta1.InputConfig.Builder,
-            com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>
-        inputConfigBuilder_;
+        com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_;
     /**
-     *
-     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -847,8 +765,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -867,8 +783,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -879,9 +793,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -893,8 +805,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -913,8 +823,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -922,13 +830,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -939,14 +845,11 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Information about the file for which this response is generated.
      * 
@@ -954,43 +857,32 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -998,8 +890,7 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List
-        getResponsesList() {
+    public java.util.List getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -1007,8 +898,6 @@ private void ensureResponsesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1024,8 +913,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1041,8 +928,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1065,8 +950,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1075,8 +958,7 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder setResponses(
-        int index,
-        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -1087,8 +969,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1110,8 +990,6 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateImageRespo
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1134,8 +1012,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1155,8 +1031,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1165,8 +1039,7 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder addResponses(
-        int index,
-        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -1177,8 +1050,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1187,11 +1058,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder addAllResponses(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -1199,8 +1070,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1219,8 +1088,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1239,8 +1106,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1253,8 +1118,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1265,14 +1128,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1280,9 +1140,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List<
-            ? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1290,8 +1149,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
       }
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1300,12 +1157,10 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1315,13 +1170,10 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1329,38 +1181,32 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse,
-            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder,
-            com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>
+        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.AnnotateImageResponse,
-                com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder,
-                com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
 
-    private int totalPages_;
+    private int totalPages_ ;
     /**
-     *
-     *
      * 
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @return The totalPages. */ @java.lang.Override @@ -1368,36 +1214,30 @@ public int getTotalPages() { return totalPages_; } /** - * - * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(int value) { - + totalPages_ = value; onChanged(); return this; } /** - * - * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; - * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0; onChanged(); return this; @@ -1405,33 +1245,26 @@ public Builder clearTotalPages() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1442,8 +1275,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1465,8 +1296,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1474,7 +1303,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 4;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1485,8 +1315,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1497,7 +1325,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1509,8 +1338,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1530,8 +1357,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1540,13 +1365,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 4;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1558,12 +1381,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1572,21 +1394,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1596,12 +1418,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
   private static final com.google.cloud.vision.v1p4beta1.AnnotateFileResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse();
   }
@@ -1610,16 +1432,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateFileResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateFileResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateFileResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateFileResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1634,4 +1456,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
similarity index 80%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
index 9149fa6e0..8cf89b180 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AnnotateFileResponseOrBuilder
-    extends
+public interface AnnotateFileResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** - * - * *
    * Information about the file for which this response is generated.
    * 
@@ -59,8 +35,6 @@ public interface AnnotateFileResponseOrBuilder com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -68,10 +42,9 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -81,8 +54,6 @@ public interface AnnotateFileResponseOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -92,8 +63,6 @@ public interface AnnotateFileResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -101,11 +70,9 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -113,50 +80,40 @@ public interface AnnotateFileResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; - * * @return The totalPages. */ int getTotalPages(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
similarity index 73%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
index 7c9cc37a7..c739b512f 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features, and with context information.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotateImageRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,56 +55,48 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.vision.v1p4beta1.Image.Builder subBuilder = null;
-              if (image_ != null) {
-                subBuilder = image_.toBuilder();
-              }
-              image_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.Image.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(image_);
-                image_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.vision.v1p4beta1.Image.Builder subBuilder = null;
+            if (image_ != null) {
+              subBuilder = image_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry));
-              break;
+            image_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Image.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(image_);
+              image_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null;
-              if (imageContext_ != null) {
-                subBuilder = imageContext_.toBuilder();
-              }
-              imageContext_ =
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(imageContext_);
-                imageContext_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null;
+            if (imageContext_ != null) {
+              subBuilder = imageContext_.toBuilder();
+            }
+            imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(imageContext_);
+              imageContext_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -129,7 +104,8 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -138,33 +114,27 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class,
-            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p4beta1.Image image_;
   /**
-   *
-   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return Whether the image field is set. */ @java.lang.Override @@ -172,14 +142,11 @@ public boolean hasImage() { return image_ != null; } /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return The image. */ @java.lang.Override @@ -187,8 +154,6 @@ public com.google.cloud.vision.v1p4beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; } /** - * - * *
    * The image to be processed.
    * 
@@ -203,8 +168,6 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Requested features.
    * 
@@ -216,8 +179,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Requested features.
    * 
@@ -225,13 +186,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Requested features.
    * 
@@ -243,8 +202,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Requested features.
    * 
@@ -256,8 +213,6 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Requested features.
    * 
@@ -265,21 +220,19 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -287,25 +240,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image.
    * 
@@ -318,7 +264,6 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -350,13 +296,16 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,22 +315,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other = - (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,104 +363,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features, and with context information.
@@ -517,23 +460,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class,
-              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.newBuilder()
@@ -541,17 +482,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,9 +518,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -598,8 +539,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AnnotateImageRequest result =
-          new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p4beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -628,39 +568,38 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()) return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -691,10 +629,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -722,8 +659,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -732,52 +668,38 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.vision.v1p4beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Image,
-            com.google.cloud.vision.v1p4beta1.Image.Builder,
-            com.google.cloud.vision.v1p4beta1.ImageOrBuilder>
-        imageBuilder_;
+        com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder> imageBuilder_;
     /**
-     *
-     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return The image. */ public com.google.cloud.vision.v1p4beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null - ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** - * - * *
      * The image to be processed.
      * 
@@ -798,15 +720,14 @@ public Builder setImage(com.google.cloud.vision.v1p4beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; */ - public Builder setImage(com.google.cloud.vision.v1p4beta1.Image.Builder builderForValue) { + public Builder setImage( + com.google.cloud.vision.v1p4beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -817,8 +738,6 @@ public Builder setImage(com.google.cloud.vision.v1p4beta1.Image.Builder builderF return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -829,9 +748,7 @@ public Builder mergeImage(com.google.cloud.vision.v1p4beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p4beta1.Image.newBuilder(image_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -843,8 +760,6 @@ public Builder mergeImage(com.google.cloud.vision.v1p4beta1.Image value) { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -863,8 +778,6 @@ public Builder clearImage() { return this; } /** - * - * *
      * The image to be processed.
      * 
@@ -872,13 +785,11 @@ public Builder clearImage() { * .google.cloud.vision.v1p4beta1.Image image = 1; */ public com.google.cloud.vision.v1p4beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** - * - * *
      * The image to be processed.
      * 
@@ -889,14 +800,11 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null - ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() - : image_; + return image_ == null ? + com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; } } /** - * - * *
      * The image to be processed.
      * 
@@ -904,41 +812,32 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p4beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Image, - com.google.cloud.vision.v1p4beta1.Image.Builder, - com.google.cloud.vision.v1p4beta1.ImageOrBuilder> + com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Image, - com.google.cloud.vision.v1p4beta1.Image.Builder, - com.google.cloud.vision.v1p4beta1.ImageOrBuilder>( - getImage(), getParentForChildren(), isClean()); + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Requested features.
      * 
@@ -953,8 +852,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Requested features.
      * 
@@ -969,8 +866,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Requested features.
      * 
@@ -985,15 +880,14 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,8 +901,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
@@ -1027,8 +919,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1049,15 +939,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1071,15 +960,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1090,8 +978,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder bui return this; } /** - * - * *
      * Requested features.
      * 
@@ -1110,8 +996,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1122,7 +1006,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1130,8 +1015,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Requested features.
      * 
@@ -1149,8 +1032,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Requested features.
      * 
@@ -1168,44 +1049,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1213,8 +1089,6 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Requested features.
      * 
@@ -1222,48 +1096,42 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1271,47 +1139,34 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1332,8 +1187,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1352,8 +1205,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1364,9 +1215,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1378,8 +1227,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1398,8 +1245,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1407,13 +1252,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1424,14 +1267,11 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image.
      * 
@@ -1439,24 +1279,21 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1466,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p4beta1.AnnotateImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(); } @@ -1480,16 +1317,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,4 +1341,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java index 16535630d..a0c31ffde 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AnnotateImageRequestOrBuilder - extends +public interface AnnotateImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; - * * @return The image. */ com.google.cloud.vision.v1p4beta1.Image getImage(); /** - * - * *
    * The image to be processed.
    * 
@@ -59,18 +35,15 @@ public interface AnnotateImageRequestOrBuilder com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AnnotateImageRequestOrBuilder */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** - * - * *
    * Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AnnotateImageRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java index e05faadda..3e06218ab 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateImageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,223 +59,171 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - faceAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + faceAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.FaceAnnotation.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + labelAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - labelAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + textAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - textAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), - extensionRegistry)); - break; + safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); - } - safeSearchAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); } - case 66: - { - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImageProperties.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); - } - - break; + imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); } - case 74: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - break; + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 90: { + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); - } - break; + break; + } + case 98: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); } - case 106: - { - com.google.cloud.vision.v1p4beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); - } - break; + break; + } + case 106: { + com.google.cloud.vision.v1p4beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); } - case 114: - { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); - } - break; + break; + } + case 114: { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); } - case 170: - { - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - break; + break; + } + case 170: { + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); } - case 178: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation>(); - mutable_bitField0_ |= 0x00000010; - } - localizedObjectAnnotations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.parser(), - extensionRegistry)); - break; + context_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 178: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -300,7 +231,8 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -318,34 +250,28 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -357,8 +283,6 @@ public java.util.List getFaceA return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -366,13 +290,11 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -384,8 +306,6 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -397,8 +317,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -414,8 +332,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -423,13 +339,10 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -437,13 +350,11 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -455,8 +366,6 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -468,8 +377,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -477,16 +384,14 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -494,13 +399,10 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -508,13 +410,11 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -526,8 +426,6 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -539,8 +437,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -556,8 +452,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -565,13 +459,10 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -579,13 +470,11 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -597,8 +486,6 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -610,8 +497,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -625,99 +510,73 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List - localizedObjectAnnotations_; + private java.util.List localizedObjectAnnotations_; /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> + public java.util.List getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { return localizedObjectAnnotations_.get(index); } /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -725,13 +584,10 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedO * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -739,13 +595,11 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedO * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -757,8 +611,6 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -770,8 +622,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -787,8 +637,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p4beta1.TextAnnotation fullTextAnnotation_; /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -797,7 +645,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -805,8 +652,6 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -815,18 +660,13 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -837,22 +677,18 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder
-      getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -860,25 +696,18 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -886,22 +715,18 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p4beta1.ImageProperties imagePropertiesAnnotation_; /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -909,25 +734,18 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } /** - * - * *
    * If present, image properties were extracted successfully.
    * 
@@ -935,22 +753,18 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p4beta1.CropHintsAnnotation cropHintsAnnotation_; /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -958,25 +772,18 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -984,22 +791,18 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p4beta1.WebDetection webDetection_; /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -1007,25 +810,18 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection() { - return webDetection_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; } /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -1040,14 +836,11 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1p4beta1.ProductSearchResults productSearchResults_; /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -1055,25 +848,18 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } /** - * - * *
    * If present, product search has completed successfully.
    * 
@@ -1081,16 +867,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchRe * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1098,7 +881,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchRe
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1106,8 +888,6 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1115,7 +895,6 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ @java.lang.Override @@ -1123,8 +902,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -1141,15 +918,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p4beta1.ImageAnnotationContext context_;
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ @java.lang.Override @@ -1157,26 +931,19 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext() { - return context_ == null - ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_; } /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -1190,7 +957,6 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1202,7 +968,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1255,54 +1022,60 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getImagePropertiesAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              22, localizedObjectAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1312,53 +1085,64 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other =
-        (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
-      return false;
-    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList()
+        .equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList()
+        .equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList()
+        .equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList()
+        .equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList()
+        .equals(other.getLocalizedObjectAnnotationsList())) return false;
+    if (!getTextAnnotationsList()
+        .equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation()
+          .equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation()
+          .equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
-        return false;
+      if (!getImagePropertiesAnnotation()
+          .equals(other.getImagePropertiesAnnotation())) return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation()
+          .equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection().equals(other.getWebDetection())) return false;
+      if (!getWebDetection()
+          .equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults()
+          .equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext().equals(other.getContext())) return false;
+      if (!getContext()
+          .equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1433,127 +1217,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.AnnotateImageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateImageResponse) com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.newBuilder() @@ -1561,13 +1335,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1576,7 +1351,6 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1689,8 +1463,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse result = - new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1730,8 +1503,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1795,39 +1567,38 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageResponse)other); } else { super.mergeFrom(other); return this; @@ -1835,8 +1606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()) return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1855,10 +1625,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFaceAnnotationsFieldBuilder() : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1882,10 +1651,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarkAnnotationsFieldBuilder() - : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarkAnnotationsFieldBuilder() : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1909,10 +1677,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogoAnnotationsFieldBuilder() - : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogoAnnotationsFieldBuilder() : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1936,10 +1703,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1963,10 +1729,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocalizedObjectAnnotationsFieldBuilder() - : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocalizedObjectAnnotationsFieldBuilder() : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1990,10 +1755,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTextAnnotationsFieldBuilder() - : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -2042,8 +1806,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2052,38 +1815,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = - new java.util.ArrayList( - faceAnnotations_); + faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsList() { + public java.util.List getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -2091,8 +1844,6 @@ private void ensureFaceAnnotationsIsMutable() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2107,8 +1858,6 @@ public int getFaceAnnotationsCount() { } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2123,8 +1872,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int i } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2146,8 +1893,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2166,8 +1911,6 @@ public Builder setFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2188,8 +1931,6 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p4beta1.FaceAnnotati return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2211,8 +1952,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2231,8 +1970,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2251,8 +1988,6 @@ public Builder addFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2263,7 +1998,8 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2271,8 +2007,6 @@ public Builder addAllFaceAnnotations( return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2290,8 +2024,6 @@ public Builder clearFaceAnnotations() { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2309,8 +2041,6 @@ public Builder removeFaceAnnotations(int index) { return this; } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2322,8 +2052,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2333,22 +2061,19 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); - } else { + return faceAnnotations_.get(index); } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2356,8 +2081,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2365,12 +2088,10 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
@@ -2379,34 +2100,26 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2416,36 +2129,26 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List - landmarkAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List landmarkAnnotations_ = + java.util.Collections.emptyList(); private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = - new java.util.ArrayList( - landmarkAnnotations_); + landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> - landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsList() { + public java.util.List getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2453,14 +2156,11 @@ private void ensureLandmarkAnnotationsIsMutable() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2470,14 +2170,11 @@ public int getLandmarkAnnotationsCount() { } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2487,14 +2184,11 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { @@ -2511,14 +2205,11 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2532,17 +2223,13 @@ public Builder setLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public Builder addLandmarkAnnotations( - com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2556,14 +2243,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { @@ -2580,14 +2264,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2601,14 +2282,11 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2622,20 +2300,18 @@ public Builder addLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2643,14 +2319,11 @@ public Builder addAllLandmarkAnnotations( return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2663,14 +2336,11 @@ public Builder clearLandmarkAnnotations() { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2683,49 +2353,39 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder - getLandmarkAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( + int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); - } else { + return landmarkAnnotations_.get(index); } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2733,62 +2393,45 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLandmarkAnn } } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder - addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; - * + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2799,34 +2442,25 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = - new java.util.ArrayList( - logoAnnotations_); + logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> - logoAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsList() { + public java.util.List getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2834,8 +2468,6 @@ private void ensureLogoAnnotationsIsMutable() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2850,8 +2482,6 @@ public int getLogoAnnotationsCount() { } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2866,8 +2496,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2889,8 +2517,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2909,8 +2535,6 @@ public Builder setLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2931,8 +2555,6 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnota return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2954,8 +2576,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2974,8 +2594,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -2994,8 +2612,6 @@ public Builder addLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3006,7 +2622,8 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -3014,8 +2631,6 @@ public Builder addAllLogoAnnotations( return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3033,8 +2648,6 @@ public Builder clearLogoAnnotations() { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3052,8 +2665,6 @@ public Builder removeLogoAnnotations(int index) { return this; } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3065,8 +2676,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3076,22 +2685,19 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); - } else { + return logoAnnotations_.get(index); } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3099,8 +2705,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3108,12 +2712,10 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
@@ -3122,35 +2724,26 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3161,34 +2754,25 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = - new java.util.ArrayList( - labelAnnotations_); + labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> - labelAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsList() { + public java.util.List getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -3196,8 +2780,6 @@ private void ensureLabelAnnotationsIsMutable() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3212,8 +2794,6 @@ public int getLabelAnnotationsCount() { } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3228,8 +2808,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(in } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3251,8 +2829,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3271,8 +2847,6 @@ public Builder setLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3293,8 +2867,6 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnot return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3316,8 +2888,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3336,8 +2906,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3356,8 +2924,6 @@ public Builder addLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3368,7 +2934,8 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -3376,8 +2943,6 @@ public Builder addAllLabelAnnotations( return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3395,8 +2960,6 @@ public Builder clearLabelAnnotations() { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3414,8 +2977,6 @@ public Builder removeLabelAnnotations(int index) { return this; } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3427,8 +2988,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3438,22 +2997,19 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); - } else { + return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3461,8 +3017,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3470,12 +3024,10 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
@@ -3484,35 +3036,26 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3522,38 +3065,27 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnota return labelAnnotationsBuilder_; } - private java.util.List - localizedObjectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List localizedObjectAnnotations_ = + java.util.Collections.emptyList(); private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = - new java.util.ArrayList( - localizedObjectAnnotations_); + localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> - localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsList() { + public java.util.List getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3561,16 +3093,12 @@ private void ensureLocalizedObjectAnnotationsIsMutable() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3580,19 +3108,14 @@ public int getLocalizedObjectAnnotationsCount() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation - getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3600,16 +3123,12 @@ public int getLocalizedObjectAnnotationsCount() { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { @@ -3626,20 +3145,15 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder setLocalizedObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.set(index, builderForValue.build()); @@ -3650,19 +3164,14 @@ public Builder setLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public Builder addLocalizedObjectAnnotations( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3676,16 +3185,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { @@ -3702,16 +3207,12 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3725,20 +3226,15 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addLocalizedObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.add(index, builderForValue.build()); @@ -3749,23 +3245,19 @@ public Builder addLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder addAllLocalizedObjectAnnotations( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3773,16 +3265,12 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3795,16 +3283,12 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3817,56 +3301,42 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder - getLocalizedObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( + int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); - } else { + return localizedObjectAnnotations_.get(index); } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3874,70 +3344,48 @@ public Builder removeLocalizedObjectAnnotations(int index) { } } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder - addLocalizedObjectAnnotationsBuilder(int index) { - return getLocalizedObjectAnnotationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( + int index) { + return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3948,34 +3396,25 @@ public Builder removeLocalizedObjectAnnotations(int index) { } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = - new java.util.ArrayList( - textAnnotations_); + textAnnotations_ = new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> - textAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsList() { + public java.util.List getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3983,8 +3422,6 @@ private void ensureTextAnnotationsIsMutable() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3999,8 +3436,6 @@ public int getTextAnnotationsCount() { } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4015,8 +3450,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4038,8 +3471,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4058,8 +3489,6 @@ public Builder setTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4080,8 +3509,6 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnota return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4103,8 +3530,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4123,8 +3548,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4143,8 +3566,6 @@ public Builder addTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4155,7 +3576,8 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -4163,8 +3585,6 @@ public Builder addAllTextAnnotations( return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4182,8 +3602,6 @@ public Builder clearTextAnnotations() { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4201,8 +3619,6 @@ public Builder removeTextAnnotations(int index) { return this; } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4214,8 +3630,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4225,22 +3639,19 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); - } else { + return textAnnotations_.get(index); } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4248,8 +3659,6 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota } } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4257,12 +3666,10 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -4271,35 +3678,26 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** - * - * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -4311,13 +3709,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p4beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation, - com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> - fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4326,15 +3719,12 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4343,21 +3733,16 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() - : fullTextAnnotation_; + return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4381,8 +3766,6 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnnot
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4404,8 +3787,6 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4419,9 +3800,7 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-              com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -4433,8 +3812,6 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnn
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4456,8 +3833,6 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4468,13 +3843,11 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-
+      
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4484,19 +3857,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder
-        getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null
-            ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance()
-            : fullTextAnnotation_;
+        return fullTextAnnotation_ == null ?
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -4507,17 +3876,14 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnot
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.TextAnnotation,
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder,
-            com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>
+        com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> 
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.TextAnnotation,
-                com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder,
-                com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(), getParentForChildren(), isClean());
+        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(),
+                getParentForChildren(),
+                isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -4525,55 +3891,41 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnot
 
     private com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation,
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder,
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>
-        safeSearchAnnotationBuilder_;
+        com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
     /**
-     *
-     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation( - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4587,8 +3939,6 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4607,23 +3957,17 @@ public Builder setSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation( - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder( - safeSearchAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -4635,8 +3979,6 @@ public Builder mergeSafeSearchAnnotation( return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4655,42 +3997,33 @@ public Builder clearSafeSearchAnnotation() { return this; } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder - getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() - : safeSearchAnnotation_; + return safeSearchAnnotation_ == null ? + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; } } /** - * - * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4698,17 +4031,14 @@ public Builder clearSafeSearchAnnotation() { * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), getParentForChildren(), isClean()); + safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), + getParentForChildren(), + isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4716,55 +4046,41 @@ public Builder clearSafeSearchAnnotation() { private com.google.cloud.vision.v1p4beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> - imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation( - com.google.cloud.vision.v1p4beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4778,8 +4094,6 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4798,23 +4112,17 @@ public Builder setImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation( - com.google.cloud.vision.v1p4beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder( - imagePropertiesAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4826,8 +4134,6 @@ public Builder mergeImagePropertiesAnnotation( return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4846,42 +4152,33 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p4beta1.ImageProperties.Builder - getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() - : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null ? + com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; } } /** - * - * *
      * If present, image properties were extracted successfully.
      * 
@@ -4889,17 +4186,14 @@ public Builder clearImagePropertiesAnnotation() { * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, - com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), getParentForChildren(), isClean()); + imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), + getParentForChildren(), + isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4907,55 +4201,41 @@ public Builder clearImagePropertiesAnnotation() { private com.google.cloud.vision.v1p4beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> - cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4969,8 +4249,6 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -4989,22 +4267,17 @@ public Builder setCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -5016,8 +4289,6 @@ public Builder mergeCropHintsAnnotation( return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -5036,42 +4307,33 @@ public Builder clearCropHintsAnnotation() { return this; } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder - getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder - getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() - : cropHintsAnnotation_; + return cropHintsAnnotation_ == null ? + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; } } /** - * - * *
      * If present, crop hints have completed successfully.
      * 
@@ -5079,17 +4341,14 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), getParentForChildren(), isClean()); + cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), + getParentForChildren(), + isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -5097,47 +4356,34 @@ public Builder clearCropHintsAnnotation() { private com.google.cloud.vision.v1p4beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, - com.google.cloud.vision.v1p4beta1.WebDetection.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> - webDetectionBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> webDetectionBuilder_; /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ public com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5158,8 +4404,6 @@ public Builder setWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection va return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5178,8 +4422,6 @@ public Builder setWebDetection( return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5190,9 +4432,7 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder(webDetection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); } else { webDetection_ = value; } @@ -5204,8 +4444,6 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5224,8 +4462,6 @@ public Builder clearWebDetection() { return this; } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5233,13 +4469,11 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p4beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5250,14 +4484,11 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() - : webDetection_; + return webDetection_ == null ? + com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; } } /** - * - * *
      * If present, web detection has completed successfully.
      * 
@@ -5265,17 +4496,14 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, - com.google.cloud.vision.v1p4beta1.WebDetection.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, - com.google.cloud.vision.v1p4beta1.WebDetection.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder>( - getWebDetection(), getParentForChildren(), isClean()); + webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder>( + getWebDetection(), + getParentForChildren(), + isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -5283,55 +4511,41 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.cloud.vision.v1p4beta1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> - productSearchResultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public Builder setProductSearchResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { + public Builder setProductSearchResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5345,8 +4559,6 @@ public Builder setProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5365,23 +4577,17 @@ public Builder setProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { + public Builder mergeProductSearchResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder( - productSearchResults_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); } else { productSearchResults_ = value; } @@ -5393,8 +4599,6 @@ public Builder mergeProductSearchResults( return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5413,42 +4617,33 @@ public Builder clearProductSearchResults() { return this; } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder - getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() - : productSearchResults_; + return productSearchResults_ == null ? + com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; } } /** - * - * *
      * If present, product search has completed successfully.
      * 
@@ -5456,17 +4651,14 @@ public Builder clearProductSearchResults() { * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), getParentForChildren(), isClean()); + productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), + getParentForChildren(), + isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -5474,11 +4666,8 @@ public Builder clearProductSearchResults() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5486,15 +4675,12 @@ public Builder clearProductSearchResults() {
      * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5502,7 +4688,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -5513,8 +4698,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5537,8 +4720,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5547,7 +4728,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -5558,8 +4740,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5571,7 +4751,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -5583,8 +4764,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5605,8 +4784,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5616,13 +4793,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5635,12 +4810,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -5650,14 +4824,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -5665,49 +4839,36 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p4beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>
-        contextBuilder_;
+        com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return The context. */ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5729,8 +4890,6 @@ public Builder setContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationConte
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5750,8 +4909,6 @@ public Builder setContext(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5763,9 +4920,7 @@ public Builder mergeContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder(context_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
         } else {
           context_ = value;
         }
@@ -5777,8 +4932,6 @@ public Builder mergeContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationCon
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5798,8 +4951,6 @@ public Builder clearContext() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5808,13 +4959,11 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder getContextBuilder() {
-
+      
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5826,14 +4975,11 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null
-            ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance()
-            : context_;
+        return context_ == null ?
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -5842,24 +4988,21 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>
+        com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder> 
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
-                com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
-                com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>(
-                getContext(), getParentForChildren(), isClean());
+        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>(
+                getContext(),
+                getParentForChildren(),
+                isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5869,12 +5012,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p4beta1.AnnotateImageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse();
   }
@@ -5883,16 +5026,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotateImageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotateImageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotateImageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotateImageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5907,4 +5050,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
index d0331e36c..1111293c4 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AnnotateImageResponseOrBuilder
-    extends
+public interface AnnotateImageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - java.util.List getFaceAnnotationsList(); + java.util.List + getFaceAnnotationsList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -44,8 +25,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int index); /** - * - * *
    * If present, face detection has completed successfully.
    * 
@@ -54,40 +33,34 @@ public interface AnnotateImageResponseOrBuilder */ int getFaceAnnotationsCount(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** - * - * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List getLandmarkAnnotationsList(); + java.util.List + getLandmarkAnnotationsList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,8 +69,6 @@ public interface AnnotateImageResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations(int index); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -106,19 +77,15 @@ public interface AnnotateImageResponseOrBuilder */ int getLandmarkAnnotationsCount(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** - * - * *
    * If present, landmark detection has completed successfully.
    * 
@@ -129,18 +96,15 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List getLogoAnnotationsList(); + java.util.List + getLogoAnnotationsList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -149,8 +113,6 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int index); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -159,19 +121,15 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** - * - * *
    * If present, logo detection has completed successfully.
    * 
@@ -182,18 +140,15 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - java.util.List getLabelAnnotationsList(); + java.util.List + getLabelAnnotationsList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -202,8 +157,6 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(int index); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -212,19 +165,15 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** - * - * *
    * If present, label detection has completed successfully.
    * 
@@ -235,88 +184,64 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( - int index); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ int getLocalizedObjectAnnotationsCount(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** - * - * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; - * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; */ - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder - getLocalizedObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( + int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - java.util.List getTextAnnotationsList(); + java.util.List + getTextAnnotationsList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -325,8 +250,6 @@ com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAn */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int index); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -335,19 +258,15 @@ com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAn */ int getTextAnnotationsCount(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** - * - * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -358,8 +277,6 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -368,13 +285,10 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -383,13 +297,10 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; - * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation(); /** - * - * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -402,104 +313,78 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; - * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** - * - * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder - getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; - * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation(); /** - * - * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder - getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; - * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation(); /** - * - * *
    * If present, crop hints have completed successfully.
    * 
@@ -509,32 +394,24 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; - * * @return The webDetection. */ com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection(); /** - * - * *
    * If present, web detection has completed successfully.
    * 
@@ -544,44 +421,33 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; - * * @return The productSearchResults. */ com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults(); /** - * - * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder - getProductSearchResultsOrBuilder(); + com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -589,13 +455,10 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -603,13 +466,10 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -621,34 +481,26 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; - * * @return The context. */ com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext(); /** - * - * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
index 166bb2965..5b23b25b4 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,61 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +116,8 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -153,33 +126,27 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -187,25 +154,18 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Information about the input file.
    * 
@@ -220,8 +180,6 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** - * - * *
    * Required. Requested features.
    * 
@@ -233,8 +191,6 @@ public java.util.List getFeaturesList return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -242,13 +198,11 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Required. Requested features.
    * 
@@ -260,8 +214,6 @@ public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Required. Requested features.
    * 
@@ -273,8 +225,6 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Required. Requested features.
    * 
@@ -282,21 +232,19 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -304,25 +252,18 @@ public boolean hasImageContext() { return imageContext_ != null; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -337,14 +278,11 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -352,25 +290,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -383,7 +314,6 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -418,16 +349,20 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,26 +372,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other = - (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext().equals(other.getImageContext())) return false; + if (!getImageContext() + .equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -491,127 +429,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.newBuilder() @@ -619,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -682,8 +610,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest result = - new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -717,39 +644,38 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest)other); } else { super.mergeFrom(other); return this; @@ -757,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -780,10 +705,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeaturesFieldBuilder() - : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -814,8 +738,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -824,52 +747,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -890,8 +799,6 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -910,8 +817,6 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -922,9 +827,7 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -936,8 +839,6 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -956,8 +857,6 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -965,13 +864,11 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -982,14 +879,11 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Information about the input file.
      * 
@@ -997,41 +891,32 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder, - com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Required. Requested features.
      * 
@@ -1046,8 +931,6 @@ public java.util.List getFeaturesList } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1062,8 +945,6 @@ public int getFeaturesCount() { } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1078,15 +959,14 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1100,8 +980,6 @@ public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1120,8 +998,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1142,15 +1018,14 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures( + int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1164,15 +1039,14 @@ public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures( + com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1183,8 +1057,6 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder bui return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1203,8 +1075,6 @@ public Builder addFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1215,7 +1085,8 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1223,8 +1094,6 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1242,8 +1111,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Required. Requested features.
      * 
@@ -1261,44 +1128,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( + int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1306,8 +1168,6 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i } } /** - * - * *
      * Required. Requested features.
      * 
@@ -1315,48 +1175,42 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { - return getFeaturesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** - * - * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, - com.google.cloud.vision.v1p4beta1.Feature.Builder, - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1364,47 +1218,34 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> - imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1425,8 +1266,6 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1445,8 +1284,6 @@ public Builder setImageContext( return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1457,9 +1294,7 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); } else { imageContext_ = value; } @@ -1471,8 +1306,6 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1491,8 +1324,6 @@ public Builder clearImageContext() { return this; } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1500,13 +1331,11 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1517,14 +1346,11 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null - ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() - : imageContext_; + return imageContext_ == null ? + com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; } } /** - * - * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1532,17 +1358,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder, - com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), getParentForChildren(), isClean()); + imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), + getParentForChildren(), + isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1550,47 +1373,34 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1611,8 +1421,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1631,8 +1439,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1643,9 +1449,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1657,8 +1461,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1677,8 +1479,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1686,13 +1486,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1703,14 +1501,11 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1718,24 +1513,21 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1745,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(); } @@ -1759,16 +1551,16 @@ public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1783,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java index a1d2f4bd5..d2e427e25 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncAnnotateFileRequestOrBuilder - extends +public interface AsyncAnnotateFileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Information about the input file.
    * 
@@ -59,18 +35,15 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Required. Requested features.
    * 
@@ -79,8 +52,6 @@ public interface AsyncAnnotateFileRequestOrBuilder */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** - * - * *
    * Required. Requested features.
    * 
@@ -89,54 +60,43 @@ public interface AsyncAnnotateFileRequestOrBuilder */ int getFeaturesCount(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( + int index); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; - * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** - * - * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -146,32 +106,24 @@ public interface AsyncAnnotateFileRequestOrBuilder com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; - * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java index 6a86ab0ea..1dd7a1d72 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncAnnotateFileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncAnnotateFileResponse() {} + private AsyncAnnotateFileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other = - (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.newBuilder() @@ -366,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -409,8 +370,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse result = - new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -424,39 +384,38 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse)other); } else { super.mergeFrom(other); return this; @@ -464,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -488,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -501,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -562,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -582,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -594,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -608,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -628,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -637,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -654,14 +586,11 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -669,24 +598,21 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(); } @@ -710,16 +636,16 @@ public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java index 4d7c24e4e..d8ff569dd 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncAnnotateFileResponseOrBuilder - extends +public interface AsyncAnnotateFileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java index 69adbd184..7af88b49b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsyncBatchAnnotateFilesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,22 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requests_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              requests_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              requests_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requests_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +78,8 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -110,97 +88,72 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
-            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
-   *
-   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -209,7 +162,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -235,7 +188,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,104 +229,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -380,23 +326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
-              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -404,17 +348,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,14 +372,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -450,8 +393,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result =
-          new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -470,50 +412,46 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other
-          == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -532,10 +470,9 @@ public Builder mergeFrom(
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRequestsFieldBuilder()
-                    : null;
+            requestsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRequestsFieldBuilder() : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -560,9 +497,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -571,40 +506,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List requests_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ =
-            new java.util.ArrayList(
-                requests_);
+        requests_ = new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest,
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder,
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>
-        requestsBuilder_;
+        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -612,15 +535,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -630,15 +549,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -648,15 +563,11 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(in } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -673,19 +584,14 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( - int index, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -696,15 +602,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -720,15 +622,11 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRe return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -745,15 +643,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -767,19 +661,14 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( - int index, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -790,22 +679,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -813,15 +698,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -834,15 +715,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -855,53 +732,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -909,74 +772,56 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -986,32 +831,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,8 +866,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..f2d3b993a --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java index d2c58a8fb..1ee4eba65 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,22 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +77,8 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -109,27 +87,22 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -138,13 +111,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getResponsesList() {
+  public java.util.List getResponsesList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -153,14 +123,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -173,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -187,8 +152,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -203,7 +166,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -229,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -269,147 +233,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -445,8 +396,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,50 +415,46 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other) { + if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -527,10 +473,9 @@ public Builder mergeFrom( responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -555,9 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,30 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -597,8 +531,7 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesList() {
+    public java.util.List getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -606,8 +539,6 @@ private void ensureResponsesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -623,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -640,8 +569,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -664,8 +591,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -674,8 +599,7 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index,
-        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -686,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -709,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileR
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -733,8 +653,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -754,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -764,8 +680,7 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index,
-        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -776,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -786,11 +699,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -798,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -818,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -838,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -852,8 +759,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -861,17 +766,14 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder
-        getResponsesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
+        int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -879,9 +781,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -889,8 +790,6 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -898,15 +797,11 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder
-        addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -916,14 +811,10 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
      */
     public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -931,30 +822,27 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse,
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse,
-                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -964,32 +852,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstance() {
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1001,8 +887,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index f5a3e8d57..8fe1eb059 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder
-    extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
similarity index 62%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
index a2fd9a052..1f1a1e7f4 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
@@ -1,58 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Request for async image annotation for a list of images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest} */ -public final class AsyncBatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesRequest.newBuilder() to construct. - private AsyncBatchAnnotateImagesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,43 +54,35 @@ private AsyncBatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +90,8 @@ private AsyncBatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -125,95 +100,72 @@ private AsyncBatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -224,16 +176,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -241,34 +188,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -276,7 +212,6 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -305,10 +241,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -318,18 +256,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -356,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for async image annotation for a list of images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -516,14 +443,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance(); } @@ -538,8 +464,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -563,50 +488,46 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other) { + if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -625,10 +546,9 @@ public Builder mergeFrom( requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -656,9 +576,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,40 +585,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -708,15 +614,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -726,15 +628,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -744,15 +642,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -769,15 +663,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -791,15 +681,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -815,15 +701,11 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageReques return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -840,15 +722,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -862,15 +740,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -884,22 +758,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -907,15 +777,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -928,15 +794,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -949,52 +811,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -1002,65 +851,49 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; @@ -1068,58 +901,39 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequest private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1135,15 +949,11 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.vision.v1p4beta1.OutputConfig.Builder builderForValue) { @@ -1157,23 +967,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1185,15 +989,11 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1207,71 +1007,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1281,32 +1065,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1318,8 +1100,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..45006d846 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AsyncBatchAnnotateImagesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The outputConfig. + */ + com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); + /** + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java index bf190cef2..e937d1cc9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java @@ -1,56 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response to an async batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse} */ -public final class AsyncBatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncBatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesResponse.newBuilder() to construct. - private AsyncBatchAnnotateImagesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AsyncBatchAnnotateImagesResponse() {} + private AsyncBatchAnnotateImagesResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AsyncBatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,29 +52,26 @@ private AsyncBatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private AsyncBatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
@@ -170,7 +138,6 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -196,7 +164,8 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -239,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to an async batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -391,16 +349,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - .getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.getDefaultInstance(); } @java.lang.Override @@ -414,8 +370,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse build( @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -429,51 +384,46 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) { - return mergeFrom( - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other) { + if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -496,9 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -510,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -571,8 +506,6 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -591,8 +524,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -603,9 +534,7 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -617,8 +546,6 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -637,8 +564,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -646,13 +571,11 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -663,14 +586,11 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -678,24 +598,21 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -705,32 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,8 +657,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java index a46a4db38..9bb3274f9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncBatchAnnotateImagesResponseOrBuilder - extends +public interface AsyncBatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; - * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** - * - * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java index d78bdcd21..a1da2dffc 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A list of requests to annotate files using the BatchAnnotateFiles API.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest} */ -public final class BatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateFilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) BatchAnnotateFilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesRequest.newBuilder() to construct. private BatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateFilesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateFilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateFilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateFilesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateFilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -108,100 +87,77 @@ private BatchAnnotateFilesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -210,7 +166,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -236,7 +192,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -246,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,127 +233,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A list of requests to annotate files using the BatchAnnotateFiles API.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.newBuilder() @@ -404,17 +351,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override @@ -449,8 +396,7 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest result = - new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -469,39 +415,38 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest)other); } else { super.mergeFrom(other); return this; @@ -509,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -529,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesReq requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -557,8 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,38 +509,27 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -608,16 +539,12 @@ public java.util.List get } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -627,16 +554,12 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -646,16 +569,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int ind } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -672,16 +591,12 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -695,16 +610,12 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -720,16 +631,12 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -746,16 +653,12 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -769,16 +672,12 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -792,23 +691,19 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -816,16 +711,12 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -838,16 +729,12 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -860,55 +747,42 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -916,75 +790,59 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest } } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); } /** - * - * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -994,12 +852,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(); } @@ -1008,16 +866,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java index 36879ffac..fa9180402 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java @@ -1,92 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface BatchAnnotateFilesRequestOrBuilder - extends +public interface BatchAnnotateFilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getRequestsList(); + java.util.List + getRequestsList(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getRequestsCount(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** - * - * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java index c13e71838..da076569e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A list of file annotation responses.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse} */ -public final class BatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateFilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) BatchAnnotateFilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesResponse.newBuilder() to construct. private BatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateFilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AnnotateFileResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private BatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -141,8 +115,6 @@ public java.util.List ge
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -151,13 +123,11 @@ public java.util.List ge
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -170,8 +140,6 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -184,8 +152,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int i
     return responses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -200,7 +166,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,7 +177,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -226,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other =
-        (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (!getResponsesList()
+        .equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -266,127 +233,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A list of file annotation responses.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.newBuilder() @@ -394,17 +351,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -418,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance(); } @@ -440,8 +396,7 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse result = - new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -460,39 +415,38 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)other); } else { super.mergeFrom(other); return this; @@ -500,9 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -521,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRes responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -549,8 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,30 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, - com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> responsesBuilder_; /** - * - * *
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -590,8 +531,7 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesList() {
+    public java.util.List getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -599,8 +539,6 @@ private void ensureResponsesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -616,8 +554,6 @@ public int getResponsesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -633,8 +569,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int i
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -657,8 +591,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -678,8 +610,6 @@ public Builder setResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -701,8 +631,6 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateFileRespon
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -725,8 +653,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -746,8 +672,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -767,8 +691,6 @@ public Builder addResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -777,11 +699,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -789,8 +711,6 @@ public Builder addAllResponses(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -809,8 +729,6 @@ public Builder clearResponses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -829,8 +747,6 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -843,8 +759,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder getRespons
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -855,14 +769,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder getRespons
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);
-      } else {
+        return responses_.get(index);  } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -870,8 +781,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesOrBuilderList() {
+    public java.util.List 
+         getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -879,8 +790,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
       }
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -889,12 +798,10 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -904,13 +811,10 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addRespons
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -918,30 +822,27 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addRespons
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List
-        getResponsesBuilderList() {
+    public java.util.List 
+         getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse,
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder,
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>
+        com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> 
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.AnnotateFileResponse,
-                com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder,
-                com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>(
-                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>(
+                responses_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -951,13 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse();
   }
@@ -966,16 +866,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchAnnotateFilesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchAnnotateFilesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchAnnotateFilesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchAnnotateFilesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -990,4 +890,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
index 7e90c8988..91cba2e22 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface BatchAnnotateFilesResponseOrBuilder
-    extends
+public interface BatchAnnotateFilesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -33,10 +15,9 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  java.util.List getResponsesList();
+  java.util.List 
+      getResponsesList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -46,8 +27,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int index);
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -57,8 +36,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    */
   int getResponsesCount();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -66,11 +43,9 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  java.util.List
+  java.util.List 
       getResponsesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -78,5 +53,6 @@ public interface BatchAnnotateFilesResponseOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
index 2914d96fb..d398103bd 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requests_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -108,95 +87,72 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** - * - * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -205,7 +161,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -231,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.newBuilder() @@ -399,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -445,8 +391,7 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest result = - new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -465,39 +410,38 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -526,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -554,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); + requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> - requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsList() { + public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -605,15 +533,11 @@ private void ensureRequestsIsMutable() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -623,15 +547,11 @@ public int getRequestsCount() { } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -641,15 +561,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -666,15 +582,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -688,15 +600,11 @@ public Builder setRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -712,15 +620,11 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageReques return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -737,15 +641,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -759,15 +659,11 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -781,22 +677,18 @@ public Builder addRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -804,15 +696,11 @@ public Builder addAllRequests( return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -825,15 +713,11 @@ public Builder clearRequests() { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -846,52 +730,39 @@ public Builder removeRequests(int index) { return this; } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); - } else { + return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -899,72 +770,56 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** - * - * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); requests_ = null; } return requestsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(); } @@ -989,16 +843,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..a5d680e08 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface BatchAnnotateImagesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getRequestsCount(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java index 521791531..c36f1e0db 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchAnnotateImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse>(); - mutable_bitField0_ |= 0x00000001; - } - responses_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + responses_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -108,27 +87,22 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -136,13 +110,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -150,13 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -168,8 +137,6 @@ public int getResponsesCount() { return responses_.size(); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -181,8 +148,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -196,7 +161,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -222,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getResponsesList() + .equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.newBuilder() @@ -390,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -436,8 +391,7 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse result = - new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +410,38 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -496,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -517,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResponsesFieldBuilder() - : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -545,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,38 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = - new java.util.ArrayList( - responses_); + responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> - responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesList() { + public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -595,8 +533,6 @@ private void ensureResponsesIsMutable() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -611,8 +547,6 @@ public int getResponsesCount() { } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -627,8 +561,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -650,8 +582,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,8 +589,7 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -671,8 +600,6 @@ public Builder setResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -693,8 +620,6 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateImageRespo return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -716,8 +641,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -736,8 +659,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -745,8 +666,7 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -757,8 +677,6 @@ public Builder addResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -766,11 +684,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -778,8 +696,6 @@ public Builder addAllResponses( return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -797,8 +713,6 @@ public Builder clearResponses() { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -816,8 +730,6 @@ public Builder removeResponses(int index) { return this; } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -829,8 +741,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -840,23 +750,19 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); - } else { + return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -864,8 +770,6 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo } } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -873,12 +777,10 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -887,43 +789,37 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); } /** - * - * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>( - responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>( + responses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); responses_ = null; } return responsesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(); } @@ -948,16 +843,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +867,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java index 600868752..a85f5923d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface BatchAnnotateImagesResponseOrBuilder - extends +public interface BatchAnnotateImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - java.util.List getResponsesList(); + java.util.List + getResponsesList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -44,8 +25,6 @@ public interface BatchAnnotateImagesResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int index); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -54,24 +33,21 @@ public interface BatchAnnotateImagesResponseOrBuilder */ int getResponsesCount(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** - * - * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java index 25de67fe2..609ca27f0 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchOperationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,50 +55,45 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (submitTime_ != null) {
+              subBuilder = submitTime_.toBuilder();
+            }
+            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(submitTime_);
+              submitTime_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (submitTime_ != null) {
-                subBuilder = submitTime_.toBuilder();
-              }
-              submitTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(submitTime_);
-                submitTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,41 +101,36 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class,
-            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -166,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is actively being processed.
      * 
@@ -176,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROCESSING(1), /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -187,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCESSFUL(2),
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -197,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -212,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -222,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is actively being processed.
      * 
@@ -232,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROCESSING_VALUE = 1; /** - * - * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -243,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
-     *
-     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -253,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -265,6 +220,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -289,55 +245,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return PROCESSING;
-        case 2:
-          return SUCCESSFUL;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return PROCESSING;
+        case 2: return SUCCESSFUL;
+        case 3: return FAILED;
+        case 4: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -357,52 +309,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -410,14 +348,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -425,8 +360,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -441,8 +374,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -450,7 +381,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -458,8 +388,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -467,7 +395,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -475,8 +402,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -491,7 +416,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -503,10 +427,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (state_
-        != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
-            .getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (state_ != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -524,16 +447,17 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_
-        != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+    if (state_ != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -543,22 +467,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other =
-        (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other = (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -587,104 +512,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -693,23 +610,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
       com.google.cloud.vision.v1p4beta1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class,
-              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.newBuilder()
@@ -717,15 +632,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -747,9 +663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -768,8 +684,7 @@ public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata result =
-          new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata result = new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -789,39 +704,38 @@ public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchOperationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -829,8 +743,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -859,8 +772,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -872,67 +784,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -940,24 +836,21 @@ public Builder setState(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -965,47 +858,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1026,15 +906,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -1045,8 +924,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1057,7 +934,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1069,8 +946,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1089,8 +964,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1098,13 +971,11 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1115,14 +986,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the batch request was submitted to the server.
      * 
@@ -1130,17 +998,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1148,13 +1013,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1162,15 +1022,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1178,7 +1035,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1189,8 +1045,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1213,8 +1067,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1223,7 +1075,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1234,8 +1087,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1248,7 +1099,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1260,8 +1111,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1282,8 +1131,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1293,13 +1140,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1312,12 +1157,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1327,24 +1171,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1354,12 +1195,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1p4beta1.BatchOperationMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata();
   }
@@ -1368,16 +1209,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchOperationMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new BatchOperationMetadata(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchOperationMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new BatchOperationMetadata(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1392,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
index 0cf2b3b85..dc1d431a3 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
@@ -1,80 +1,50 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface BatchOperationMetadataOrBuilder
-    extends
+public interface BatchOperationMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the batch request was submitted to the server.
    * 
@@ -84,8 +54,6 @@ public interface BatchOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +61,10 @@ public interface BatchOperationMetadataOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchOperationMetadataOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
similarity index 77%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
index e993771f9..3fba75ae6 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/text_annotation.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Block} */ -public final class Block extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Block extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Block) BlockOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -44,15 +26,16 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,71 +55,59 @@ private Block( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - paragraphs_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Paragraph.parser(), extensionRegistry)); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - blockType_ = rawValue; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 45: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + paragraphs_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Paragraph.parser(), extensionRegistry)); + break; + } + case 32: { + int rawValue = input.readEnum(); + + blockType_ = rawValue; + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +115,8 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -153,35 +125,29 @@ private Block( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Block.class, - com.google.cloud.vision.v1p4beta1.Block.Builder.class); + com.google.cloud.vision.v1p4beta1.Block.class, com.google.cloud.vision.v1p4beta1.Block.Builder.class); } /** - * - * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.Block.BlockType} */ - public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown block type.
      * 
@@ -190,8 +156,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Regular text block.
      * 
@@ -200,8 +164,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(1), /** - * - * *
      * Table block.
      * 
@@ -210,8 +172,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ TABLE(2), /** - * - * *
      * Image block.
      * 
@@ -220,8 +180,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ PICTURE(3), /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -230,8 +188,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ RULER(4), /** - * - * *
      * Barcode block.
      * 
@@ -243,8 +199,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown block type.
      * 
@@ -253,8 +207,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Regular text block.
      * 
@@ -263,8 +215,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 1; /** - * - * *
      * Table block.
      * 
@@ -273,8 +223,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TABLE_VALUE = 2; /** - * - * *
      * Image block.
      * 
@@ -283,8 +231,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PICTURE_VALUE = 3; /** - * - * *
      * Horizontal/vertical line box.
      * 
@@ -293,8 +239,6 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RULER_VALUE = 4; /** - * - * *
      * Barcode block.
      * 
@@ -303,6 +247,7 @@ public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BARCODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -327,55 +272,52 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return TEXT; - case 2: - return TABLE; - case 3: - return PICTURE; - case 4: - return RULER; - case 5: - return BARCODE; - default: - return null; + case 0: return UNKNOWN; + case 1: return TEXT; + case 2: return TABLE; + case 3: return PICTURE; + case 4: return RULER; + case 5: return BARCODE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlockType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p4beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -395,14 +337,11 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -410,25 +349,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the block.
    * 
@@ -436,16 +368,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -465,7 +394,6 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -473,8 +401,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -494,18 +420,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -534,8 +455,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -547,8 +466,6 @@ public java.util.List getParagraphs return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -556,13 +473,11 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -574,8 +489,6 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -587,8 +500,6 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -596,57 +507,46 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Block.BlockType result = - com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p4beta1.Block.BlockType result = com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -655,7 +555,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -667,7 +566,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -693,19 +593,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p4beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -715,7 +620,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Block)) { return super.equals(obj); @@ -724,16 +629,20 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getParagraphsList().equals(other.getParagraphsList())) return false; + if (!getParagraphsList() + .equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -760,133 +669,125 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Block} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Block) com.google.cloud.vision.v1p4beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Block.class, - com.google.cloud.vision.v1p4beta1.Block.Builder.class); + com.google.cloud.vision.v1p4beta1.Block.class, com.google.cloud.vision.v1p4beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Block.newBuilder() @@ -894,17 +795,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -934,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override @@ -955,8 +856,7 @@ public com.google.cloud.vision.v1p4beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block buildPartial() { - com.google.cloud.vision.v1p4beta1.Block result = - new com.google.cloud.vision.v1p4beta1.Block(this); + com.google.cloud.vision.v1p4beta1.Block result = new com.google.cloud.vision.v1p4beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -987,39 +887,38 @@ public com.google.cloud.vision.v1p4beta1.Block buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Block) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Block)other); } else { super.mergeFrom(other); return this; @@ -1052,10 +951,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParagraphsFieldBuilder() - : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParagraphsFieldBuilder() : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -1095,60 +993,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,8 +1045,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1182,22 +1063,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -1209,8 +1085,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1229,42 +1103,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the block.
      * 
@@ -1272,17 +1137,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1290,13 +1152,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1316,15 +1173,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1344,21 +1198,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1393,8 +1242,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1427,8 +1274,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1453,9 +1298,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1467,8 +1310,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1501,8 +1342,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1524,13 +1363,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1555,14 +1392,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1584,42 +1418,32 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ =
-            new java.util.ArrayList(paragraphs_);
+        paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Paragraph,
-            com.google.cloud.vision.v1p4beta1.Paragraph.Builder,
-            com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>
-        paragraphsBuilder_;
+        com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> paragraphsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1634,8 +1458,6 @@ public java.util.List getParagraphs } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1650,8 +1472,6 @@ public int getParagraphsCount() { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1666,15 +1486,14 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { + public Builder setParagraphs( + int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1688,8 +1507,6 @@ public Builder setParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1708,8 +1525,6 @@ public Builder setParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1730,15 +1545,14 @@ public Builder addParagraphs(com.google.cloud.vision.v1p4beta1.Paragraph value) return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { + public Builder addParagraphs( + int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1752,8 +1566,6 @@ public Builder addParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragr return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1772,8 +1584,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1792,8 +1602,6 @@ public Builder addParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1804,7 +1612,8 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1812,8 +1621,6 @@ public Builder addAllParagraphs( return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1831,8 +1638,6 @@ public Builder clearParagraphs() { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1850,44 +1655,39 @@ public Builder removeParagraphs(int index) { return this; } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.Paragraph.Builder getParagraphsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Paragraph.Builder getParagraphsBuilder( + int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); - } else { + return paragraphs_.get(index); } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1895,8 +1695,6 @@ public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1904,48 +1702,42 @@ public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder(int index) { - return getParagraphsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder( + int index) { + return getParagraphsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); } /** - * - * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Paragraph, - com.google.cloud.vision.v1p4beta1.Paragraph.Builder, - com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Paragraph, - com.google.cloud.vision.v1p4beta1.Paragraph.Builder, - com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>( - paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>( + paragraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1953,67 +1745,51 @@ public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override - public int getBlockTypeValue() { + @java.lang.Override public int getBlockTypeValue() { return blockType_; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Block.BlockType result = - com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); - return result == null - ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.Block.BlockType result = com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); + return result == null ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED : result; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @param value The blockType to set. * @return This builder for chaining. */ @@ -2021,39 +1797,33 @@ public Builder setBlockType(com.google.cloud.vision.v1p4beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -2061,43 +1831,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2107,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Block) private static final com.google.cloud.vision.v1p4beta1.Block DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Block(); } @@ -2121,16 +1885,16 @@ public static com.google.cloud.vision.v1p4beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2145,4 +1909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java index 4b0c967d8..e8b0d95ff 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface BlockOrBuilder - extends +public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Block) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the block.
    * 
@@ -59,8 +35,6 @@ public interface BlockOrBuilder com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface BlockOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface BlockOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - java.util.List getParagraphsList(); + java.util.List + getParagraphsList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -156,8 +121,6 @@ public interface BlockOrBuilder */ com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -166,61 +129,49 @@ public interface BlockOrBuilder */ int getParagraphsCount(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** - * - * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( + int index); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** - * - * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; - * * @return The blockType. */ com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType(); /** - * - * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java index 9f1e3abc8..36961f228 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BoundingPoly} */ -public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BoundingPoly) BoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,31 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.NormalizedVertex.parser(), - extensionRegistry)); - break; + vertices_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Vertex.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + normalizedVertices_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +87,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -122,27 +100,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.GeometryProto - .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.GeometryProto - .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BoundingPoly.class, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p4beta1.BoundingPoly.class, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -154,8 +127,6 @@ public java.util.List getVerticesList( return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -163,13 +134,11 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -181,8 +150,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -194,8 +161,6 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -203,15 +168,14 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -219,13 +183,10 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -233,13 +194,11 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -251,8 +210,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -264,8 +221,6 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -279,7 +234,6 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -308,11 +263,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,16 +278,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BoundingPoly other = - (com.google.cloud.vision.v1p4beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p4beta1.BoundingPoly other = (com.google.cloud.vision.v1p4beta1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,127 +313,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BoundingPoly) com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.GeometryProto - .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.GeometryProto - .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BoundingPoly.class, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p4beta1.BoundingPoly.class, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder() @@ -484,18 +432,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.GeometryProto - .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -536,8 +484,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p4beta1.BoundingPoly result = - new com.google.cloud.vision.v1p4beta1.BoundingPoly(this); + com.google.cloud.vision.v1p4beta1.BoundingPoly result = new com.google.cloud.vision.v1p4beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -565,39 +512,38 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BoundingPoly) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -624,10 +570,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -651,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNormalizedVerticesFieldBuilder() - : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNormalizedVerticesFieldBuilder() : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -688,28 +632,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, - com.google.cloud.vision.v1p4beta1.Vertex.Builder, - com.google.cloud.vision.v1p4beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -724,8 +661,6 @@ public java.util.List getVerticesList( } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -740,8 +675,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -756,15 +689,14 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.vision.v1p4beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,8 +710,6 @@ public Builder setVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -798,8 +728,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -820,15 +748,14 @@ public Builder addVertices(com.google.cloud.vision.v1p4beta1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.vision.v1p4beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -842,15 +769,14 @@ public Builder addVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex v return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.vision.v1p4beta1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.vision.v1p4beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -861,8 +787,6 @@ public Builder addVertices(com.google.cloud.vision.v1p4beta1.Vertex.Builder buil return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -881,8 +805,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -893,7 +815,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -901,8 +824,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -920,8 +841,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -939,44 +858,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -984,8 +898,6 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(in } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -993,83 +905,67 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(in * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, - com.google.cloud.vision.v1p4beta1.Vertex.Builder, - com.google.cloud.vision.v1p4beta1.VertexOrBuilder> + com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, - com.google.cloud.vision.v1p4beta1.Vertex.Builder, - com.google.cloud.vision.v1p4beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = - new java.util.ArrayList( - normalizedVertices_); + normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, - com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -1077,14 +973,11 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -1094,14 +987,11 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1111,14 +1001,11 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices( } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { @@ -1135,14 +1022,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1156,14 +1040,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1179,14 +1060,11 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p4beta1.Normalize return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { @@ -1203,14 +1081,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1224,14 +1099,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1245,20 +1117,18 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1266,14 +1136,11 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1286,14 +1153,11 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1306,49 +1170,39 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1356,62 +1210,45 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder getNormalizedV } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; - * + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, - com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, - com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, - com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1420,9 +1257,9 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1432,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BoundingPoly) private static final com.google.cloud.vision.v1p4beta1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BoundingPoly(); } @@ -1446,16 +1283,16 @@ public static com.google.cloud.vision.v1p4beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1307,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java index 28d5cb902..72e8b2769 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,40 +33,34 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( + int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List getNormalizedVerticesList(); + java.util.List + getNormalizedVerticesList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -96,8 +69,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -106,19 +77,15 @@ public interface BoundingPolyOrBuilder */ int getNormalizedVerticesCount(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java index c9ee4d375..a4881d938 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A Celebrity is a group of Faces with an identity.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} */ -public final class Celebrity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Celebrity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Celebrity) CelebrityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Celebrity.newBuilder() to construct. private Celebrity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Celebrity() { name_ = ""; displayName_ = ""; @@ -45,15 +27,16 @@ private Celebrity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Celebrity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Celebrity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private Celebrity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,40 +87,35 @@ private Celebrity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Celebrity.class, - com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + com.google.cloud.vision.v1p4beta1.Celebrity.class, com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -149,30 +124,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -183,14 +158,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -199,29 +171,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -232,14 +204,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * The Celebrity's description.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -248,29 +217,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The Celebrity's description.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -279,7 +248,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -327,17 +296,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Celebrity)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Celebrity other = - (com.google.cloud.vision.v1p4beta1.Celebrity) obj; + com.google.cloud.vision.v1p4beta1.Celebrity other = (com.google.cloud.vision.v1p4beta1.Celebrity) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -360,127 +331,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Celebrity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Celebrity is a group of Faces with an identity.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Celebrity) com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Celebrity.class, - com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + com.google.cloud.vision.v1p4beta1.Celebrity.class, com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder() @@ -488,15 +450,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override @@ -531,8 +494,7 @@ public com.google.cloud.vision.v1p4beta1.Celebrity build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Celebrity buildPartial() { - com.google.cloud.vision.v1p4beta1.Celebrity result = - new com.google.cloud.vision.v1p4beta1.Celebrity(this); + com.google.cloud.vision.v1p4beta1.Celebrity result = new com.google.cloud.vision.v1p4beta1.Celebrity(this); result.name_ = name_; result.displayName_ = displayName_; result.description_ = description_; @@ -544,39 +506,38 @@ public com.google.cloud.vision.v1p4beta1.Celebrity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Celebrity) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Celebrity) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Celebrity)other); } else { super.mergeFrom(other); return this; @@ -628,21 +589,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -651,22 +610,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -674,64 +632,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -739,20 +690,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -761,21 +710,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -783,61 +731,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -845,20 +786,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The Celebrity's description.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -867,21 +806,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The Celebrity's description.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -889,68 +827,61 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The Celebrity's description.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The Celebrity's description.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The Celebrity's description.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -960,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Celebrity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Celebrity) private static final com.google.cloud.vision.v1p4beta1.Celebrity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Celebrity(); } @@ -974,16 +905,16 @@ public static com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Celebrity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Celebrity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Celebrity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Celebrity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -998,4 +929,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java index 9aa7b3108..cbac3c185 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface CelebrityOrBuilder - extends +public interface CelebrityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Celebrity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The Celebrity's description.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The Celebrity's description.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java new file mode 100644 index 000000000..fcfce1c34 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class CelebrityProto { + private CelebrityProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/vision/v1p4beta1/face.pro" + + "to\022\035google.cloud.vision.v1p4beta1\032\034googl" + + "e/api/annotations.proto\032,google/cloud/vi" + + "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" + + "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" + + "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" + + "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" + + ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" + + "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" + + "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" + + "lang.org/genproto/googleapis/cloud/visio" + + "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor, + new java.lang.String[] { "CelebritySet", }); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", }); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor, + new java.lang.String[] { "Celebrity", "Confidence", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java index 052de2e41..8998d3391 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ColorInfo}
  */
-public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ColorInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ColorInfo)
     ColorInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ColorInfo() {}
+  private ColorInfo() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,37 +53,36 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Color.Builder subBuilder = null;
-              if (color_ != null) {
-                subBuilder = color_.toBuilder();
-              }
-              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(color_);
-                color_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 21:
-            {
-              score_ = input.readFloat();
-              break;
+          case 10: {
+            com.google.type.Color.Builder subBuilder = null;
+            if (color_ != null) {
+              subBuilder = color_.toBuilder();
             }
-          case 29:
-            {
-              pixelFraction_ = input.readFloat();
-              break;
+            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(color_);
+              color_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 21: {
+
+            score_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            pixelFraction_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -107,39 +90,34 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ColorInfo.class,
-            com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ColorInfo.class, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
-   *
-   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ @java.lang.Override @@ -147,14 +125,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
    * RGB components of the color.
    * 
@@ -178,14 +151,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -196,15 +166,12 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -213,7 +180,6 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -245,13 +212,16 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,22 +231,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ColorInfo other = - (com.google.cloud.vision.v1p4beta1.ColorInfo) obj; + com.google.cloud.vision.v1p4beta1.ColorInfo other = (com.google.cloud.vision.v1p4beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,112 +265,107 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -406,23 +373,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ColorInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ColorInfo)
       com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ColorInfo.class,
-              com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ColorInfo.class, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ColorInfo.newBuilder()
@@ -430,15 +395,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -477,8 +443,7 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ColorInfo result =
-          new com.google.cloud.vision.v1p4beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p4beta1.ColorInfo result = new com.google.cloud.vision.v1p4beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -494,39 +459,38 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ColorInfo) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ColorInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -575,31 +539,24 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
-        colorBuilder_;
+        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
     /**
-     *
-     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; - * * @return The color. */ public com.google.type.Color getColor() { @@ -610,8 +567,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
      * RGB components of the color.
      * 
@@ -632,15 +587,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor(com.google.type.Color.Builder builderForValue) { + public Builder setColor( + com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -651,8 +605,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -662,7 +614,8 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = + com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -674,8 +627,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -694,8 +645,6 @@ public Builder clearColor() { return this; } /** - * - * *
      * RGB components of the color.
      * 
@@ -703,13 +652,11 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
      * RGB components of the color.
      * 
@@ -720,12 +667,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? + com.google.type.Color.getDefaultInstance() : color_; } } /** - * - * *
      * RGB components of the color.
      * 
@@ -733,29 +679,26 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); + colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getColor(), + getParentForChildren(), + isClean()); color_ = null; } return colorBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -763,52 +706,43 @@ public float getScore() { return score_; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_; + private float pixelFraction_ ; /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ @java.lang.Override @@ -816,45 +750,39 @@ public float getPixelFraction() { return pixelFraction_; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** - * - * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; - * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ColorInfo) private static final com.google.cloud.vision.v1p4beta1.ColorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ColorInfo(); } @@ -878,16 +806,16 @@ public static com.google.cloud.vision.v1p4beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java similarity index 64% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java index 204805956..362574b0f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ColorInfoOrBuilder - extends +public interface ColorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
    * RGB components of the color.
    * 
@@ -59,28 +35,22 @@ public interface ColorInfoOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; - * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java index a66460b92..1fc8e2b85 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductRequest} */ -public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateProductRequest) CreateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -44,15 +26,16 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,43 +93,36 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, - com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,16 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.Product product_; /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -214,34 +178,23 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { @@ -251,8 +204,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -261,7 +212,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * string product_id = 3; - * * @return The productId. */ @java.lang.Override @@ -270,15 +220,14 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -287,15 +236,16 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -304,7 +254,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -339,7 +289,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -352,20 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateProductRequest other = - (com.google.cloud.vision.v1p4beta1.CreateProductRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateProductRequest other = (com.google.cloud.vision.v1p4beta1.CreateProductRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } - if (!getProductId().equals(other.getProductId())) return false; + if (!getProductId() + .equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,127 +344,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.CreateProductRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateProductRequest) com.google.cloud.vision.v1p4beta1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, - com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateProductRequest.newBuilder() @@ -519,15 +462,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override @@ -566,8 +510,7 @@ public com.google.cloud.vision.v1p4beta1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateProductRequest result = - new com.google.cloud.vision.v1p4beta1.CreateProductRequest(this); + com.google.cloud.vision.v1p4beta1.CreateProductRequest result = new com.google.cloud.vision.v1p4beta1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -583,39 +526,38 @@ public com.google.cloud.vision.v1p4beta1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -655,8 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.CreateProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -668,24 +608,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -694,25 +630,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,73 +653,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -794,58 +714,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -861,17 +762,14 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -882,23 +780,17 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder buil return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -910,15 +802,11 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -932,64 +820,48 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The product to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -997,8 +869,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() private java.lang.Object productId_ = ""; /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1007,13 +877,13 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * string product_id = 3; - * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -1022,8 +892,6 @@ public java.lang.String getProductId() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1032,14 +900,15 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; - * * @return The bytes for productId. */ - public com.google.protobuf.ByteString getProductIdBytes() { + public com.google.protobuf.ByteString + getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productId_ = b; return b; } else { @@ -1047,8 +916,6 @@ public com.google.protobuf.ByteString getProductIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1057,22 +924,20 @@ public com.google.protobuf.ByteString getProductIdBytes() {
      * 
* * string product_id = 3; - * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId(java.lang.String value) { + public Builder setProductId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1081,18 +946,15 @@ public Builder setProductId(java.lang.String value) {
      * 
* * string product_id = 3; - * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1101,23 +963,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; - * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1127,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductRequest) private static final com.google.cloud.vision.v1p4beta1.CreateProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateProductRequest(); } @@ -1141,16 +1003,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java index 36ca60142..ce7922518 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateProductRequestOrBuilder - extends +public interface CreateProductRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** - * - * *
    * Required. The product to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -108,13 +67,10 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The productId. */ java.lang.String getProductId(); /** - * - * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -123,8 +79,8 @@ public interface CreateProductRequestOrBuilder
    * 
* * string product_id = 3; - * * @return The bytes for productId. */ - com.google.protobuf.ByteString getProductIdBytes(); + com.google.protobuf.ByteString + getProductIdBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java index bfeed107a..10e5cb30d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -44,15 +26,16 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + productSet_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + productSetId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -259,7 +210,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -285,15 +234,16 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other = (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductSet() + .equals(other.getProductSet())) return false; } - if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!getProductSetId() + .equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateProductSetRequest) com.google.cloud.vision.v1p4beta1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest result = new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -581,39 +524,38 @@ public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -876,23 +773,17 @@ public Builder setProductSet( return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -904,15 +795,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -926,64 +813,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet to create.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -991,8 +862,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil private java.lang.Object productSetId_ = ""; /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1001,13 +870,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * string product_set_id = 3; - * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -1016,8 +885,6 @@ public java.lang.String getProductSetId() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1026,14 +893,15 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -1041,8 +909,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1051,22 +917,20 @@ public com.google.protobuf.ByteString getProductSetIdBytes() {
      * 
* * string product_set_id = 3; - * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId(java.lang.String value) { + public Builder setProductSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1075,18 +939,15 @@ public Builder setProductSetId(java.lang.String value) {
      * 
* * string product_set_id = 3; - * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -1095,23 +956,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; - * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.CreateProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(); } @@ -1135,16 +996,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java index 0a6c77500..68f3f7c82 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateProductSetRequestOrBuilder - extends +public interface CreateProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet to create.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -106,13 +65,10 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The productSetId. */ java.lang.String getProductSetId(); /** - * - * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -121,8 +77,8 @@ public interface CreateProductSetRequestOrBuilder
    * 
* * string product_set_id = 3; - * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString getProductSetIdBytes(); + com.google.protobuf.ByteString + getProductSetIdBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java index c7b14905b..9bb7b84b6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -44,15 +26,16 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); - } - - break; + referenceImage_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceImageId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +93,29 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -149,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -161,15 +132,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -177,18 +147,17 @@ public java.lang.String getParent() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -199,17 +168,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ReferenceImage referenceImage_; /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -217,36 +181,25 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { - return referenceImage_ == null - ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -256,8 +209,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -266,7 +217,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ @java.lang.Override @@ -275,15 +225,14 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -292,15 +241,16 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -309,7 +259,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +270,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -344,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -357,20 +308,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other = - (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage().equals(other.getReferenceImage())) return false; + if (!getReferenceImage() + .equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId() + .equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.newBuilder() @@ -524,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -550,14 +494,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance(); } @@ -572,8 +515,7 @@ public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest result = - new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -589,39 +531,38 @@ public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -629,9 +570,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -662,9 +601,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,8 +613,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -685,16 +620,14 @@ public Builder mergeFrom(
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -703,8 +636,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -712,17 +643,16 @@ public java.lang.String getParent() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -730,8 +660,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -739,25 +667,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -765,21 +689,16 @@ public Builder setParent(java.lang.String value) {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -787,19 +706,17 @@ public Builder clearParent() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -807,61 +724,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p4beta1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> - referenceImageBuilder_; + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImageBuilder_; /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null - ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -877,16 +775,12 @@ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImag return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReferenceImage( com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder builderForValue) { @@ -900,24 +794,18 @@ public Builder setReferenceImage( return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder(referenceImage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); } else { referenceImage_ = value; } @@ -929,16 +817,12 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceIm return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -952,67 +836,51 @@ public Builder clearReferenceImage() { return this; } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null - ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() - : referenceImage_; + return referenceImage_ == null ? + com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; } } /** - * - * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( - getReferenceImage(), getParentForChildren(), isClean()); + referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + getReferenceImage(), + getParentForChildren(), + isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -1020,8 +888,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma private java.lang.Object referenceImageId_ = ""; /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1030,13 +896,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma
      * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -1045,8 +911,6 @@ public java.lang.String getReferenceImageId() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1055,14 +919,15 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString getReferenceImageIdBytes() { + public com.google.protobuf.ByteString + getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -1070,8 +935,6 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() { } } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1080,22 +943,20 @@ public com.google.protobuf.ByteString getReferenceImageIdBytes() {
      * 
* * string reference_image_id = 3; - * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId(java.lang.String value) { + public Builder setReferenceImageId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1104,18 +965,15 @@ public Builder setReferenceImageId(java.lang.String value) {
      * 
* * string reference_image_id = 3; - * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** - * - * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -1124,23 +982,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; - * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,13 +1008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) - private static final com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(); } @@ -1165,16 +1022,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java index 506ffcbf9..3c48cbcb4 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateReferenceImageRequestOrBuilder - extends +public interface CreateReferenceImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -33,16 +15,11 @@ public interface CreateReferenceImageRequestOrBuilder
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -50,61 +27,43 @@ public interface CreateReferenceImageRequestOrBuilder
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The referenceImage. */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(); /** - * - * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -113,13 +72,10 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** - * - * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -128,8 +84,8 @@ public interface CreateReferenceImageRequestOrBuilder
    * 
* * string reference_image_id = 3; - * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString getReferenceImageIdBytes(); + com.google.protobuf.ByteString + getReferenceImageIdBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java index 889caeeaf..2594a271d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHint} */ -public final class CropHint extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHint) CropHintOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CropHint() {} + private CropHint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,39 +52,36 @@ private CropHint( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; + case 10: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 29: - { - importanceFraction_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 29: { + + importanceFraction_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +89,35 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHint.class, - com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHint.class, com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -149,26 +125,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -184,14 +153,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -202,15 +168,12 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -219,7 +182,6 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -251,13 +214,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,22 +233,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHint other = - (com.google.cloud.vision.v1p4beta1.CropHint) obj; + com.google.cloud.vision.v1p4beta1.CropHint other = (com.google.cloud.vision.v1p4beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,135 +267,128 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHint} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHint) com.google.cloud.vision.v1p4beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHint.class, - com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHint.class, com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHint.newBuilder() @@ -435,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override @@ -482,8 +444,7 @@ public com.google.cloud.vision.v1p4beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHint result = - new com.google.cloud.vision.v1p4beta1.CropHint(this); + com.google.cloud.vision.v1p4beta1.CropHint result = new com.google.cloud.vision.v1p4beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -499,39 +460,38 @@ public com.google.cloud.vision.v1p4beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHint) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHint)other); } else { super.mergeFrom(other); return this; @@ -580,49 +540,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -644,8 +591,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -665,8 +610,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -678,9 +621,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -692,8 +633,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -713,8 +652,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -723,13 +660,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -741,14 +676,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -757,32 +689,26 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -790,52 +716,43 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_; + private float importanceFraction_ ; /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ @java.lang.Override @@ -843,45 +760,39 @@ public float getImportanceFraction() { return importanceFraction_; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** - * - * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; - * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHint) private static final com.google.cloud.vision.v1p4beta1.CropHint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHint(); } @@ -905,16 +816,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java index 54a80fb89..b6b460e23 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintOrBuilder - extends +public interface CropHintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -62,28 +38,22 @@ public interface CropHintOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; - * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java index 68ffc226e..80d54ed43 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cropHints_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.CropHint.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cropHints_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.CropHint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -105,27 +87,22 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** - * - * *
    * Crop hint results.
    * 
@@ -137,8 +114,6 @@ public java.util.List getCropHintsLi return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -146,13 +121,11 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** - * - * *
    * Crop hint results.
    * 
@@ -164,8 +137,6 @@ public int getCropHintsCount() { return cropHints_.size(); } /** - * - * *
    * Crop hint results.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** - * - * *
    * Crop hint results.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other = - (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) obj; - if (!getCropHintsList().equals(other.getCropHintsList())) return false; + if (!getCropHintsList() + .equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHintsAnnotation) com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation result = - new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance()) return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCropHintsFieldBuilder() - : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCropHintsFieldBuilder() : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = - new java.util.ArrayList(cropHints_); + cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, - com.google.cloud.vision.v1p4beta1.CropHint.Builder, - com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> - cropHintsBuilder_; + com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> cropHintsBuilder_; /** - * - * *
      * Crop hint results.
      * 
@@ -585,8 +533,6 @@ public java.util.List getCropHintsLi } } /** - * - * *
      * Crop hint results.
      * 
@@ -601,8 +547,6 @@ public int getCropHintsCount() { } } /** - * - * *
      * Crop hint results.
      * 
@@ -617,15 +561,14 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public Builder setCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHint value) { + public Builder setCropHints( + int index, com.google.cloud.vision.v1p4beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,8 +582,6 @@ public Builder setCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -659,8 +600,6 @@ public Builder setCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -681,15 +620,14 @@ public Builder addCropHints(com.google.cloud.vision.v1p4beta1.CropHint value) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public Builder addCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHint value) { + public Builder addCropHints( + int index, com.google.cloud.vision.v1p4beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,8 +641,6 @@ public Builder addCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHin return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -723,8 +659,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -743,8 +677,6 @@ public Builder addCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -755,7 +687,8 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -763,8 +696,6 @@ public Builder addAllCropHints( return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -782,8 +713,6 @@ public Builder clearCropHints() { return this; } /** - * - * *
      * Crop hint results.
      * 
@@ -801,44 +730,39 @@ public Builder removeCropHints(int index) { return this; } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHint.Builder getCropHintsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.CropHint.Builder getCropHintsBuilder( + int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); - } else { + return cropHints_.get(index); } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -846,8 +770,6 @@ public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** - * - * *
      * Crop hint results.
      * 
@@ -855,55 +777,49 @@ public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder(int index) { - return getCropHintsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder( + int index) { + return getCropHintsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); } /** - * - * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, - com.google.cloud.vision.v1p4beta1.CropHint.Builder, - com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, - com.google.cloud.vision.v1p4beta1.CropHint.Builder, - com.google.cloud.vision.v1p4beta1.CropHintOrBuilder>( - cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder>( + cropHints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cropHints_ = null; } return cropHintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p4beta1.CropHintsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(); } @@ -927,16 +843,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java index 7423188c1..37cbfcbe2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintsAnnotationOrBuilder - extends +public interface CropHintsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - java.util.List getCropHintsList(); + java.util.List + getCropHintsList(); /** - * - * *
    * Crop hint results.
    * 
@@ -44,8 +25,6 @@ public interface CropHintsAnnotationOrBuilder */ com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index); /** - * - * *
    * Crop hint results.
    * 
@@ -54,24 +33,21 @@ public interface CropHintsAnnotationOrBuilder */ int getCropHintsCount(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** - * - * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java index 99fddce83..03f3deb04 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsParams} */ -public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CropHintsParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHintsParams) CropHintsParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +54,34 @@ private CropHintsParams( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + aspectRatios_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - aspectRatios_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -117,27 +99,22 @@ private CropHintsParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsParams.class, - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsParams.class, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -148,16 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List getAspectRatiosList() { + public java.util.List + getAspectRatiosList() { return aspectRatios_; } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -168,15 +143,12 @@ public java.util.List getAspectRatiosList() {
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -187,18 +159,15 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } - private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -234,7 +204,8 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -246,15 +217,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHintsParams other = - (com.google.cloud.vision.v1p4beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p4beta1.CropHintsParams other = (com.google.cloud.vision.v1p4beta1.CropHintsParams) obj; - if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList() + .equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,126 +247,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHintsParams) com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsParams.class, - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsParams.class, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder() @@ -403,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -442,8 +405,7 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHintsParams result = - new com.google.cloud.vision.v1p4beta1.CropHintsParams(this); + com.google.cloud.vision.v1p4beta1.CropHintsParams result = new com.google.cloud.vision.v1p4beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -458,39 +420,38 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsParams) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsParams)other); } else { super.mergeFrom(other); return this; @@ -498,8 +459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance()) return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -529,8 +489,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,20 +498,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); - private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -563,17 +518,14 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ - public java.util.List getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(aspectRatios_) - : aspectRatios_; + public java.util.List + getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -584,15 +536,12 @@ public java.util.List getAspectRatiosList() {
      * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -603,7 +552,6 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -611,8 +559,6 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -623,20 +569,18 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; - * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios(int index, float value) { + public Builder setAspectRatios( + int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -647,7 +591,6 @@ public Builder setAspectRatios(int index, float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -658,8 +601,6 @@ public Builder addAspectRatios(float value) { return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -670,19 +611,18 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; - * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios(java.lang.Iterable values) { + public Builder addAllAspectRatios( + java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aspectRatios_); onChanged(); return this; } /** - * - * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -693,7 +633,6 @@ public Builder addAllAspectRatios(java.lang.Iterable
      * 
* * repeated float aspect_ratios = 1; - * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -702,9 +641,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsParams) private static final com.google.cloud.vision.v1p4beta1.CropHintsParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHintsParams(); } @@ -728,16 +667,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java index 631fc0a27..e599bbad2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintsParamsOrBuilder - extends +public interface CropHintsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -36,13 +18,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -53,13 +32,10 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** - * - * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -70,7 +46,6 @@ public interface CropHintsParamsOrBuilder
    * 
* * repeated float aspect_ratios = 1; - * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java index 4b3bf6210..3d1f84fc2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductRequest} */ -public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteProductRequest) DeleteProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteProductRequest other = - (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteProductRequest other = (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteProductRequest) com.google.cloud.vision.v1p4beta1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteProductRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteProductRequest result = - new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest result = new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductRequest) private static final com.google.cloud.vision.v1p4beta1.DeleteProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..e279feab2 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java index a676ea068..b9948566e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other = (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) com.google.cloud.vision.v1p4beta1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest result = new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..521a1ae8a --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java index 29a253a2c..aecc9d0ee 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other = - (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest result = - new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - private static final com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..a14db6150 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java index 224e30169..ab8b30593 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DominantColorsAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - colors_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.ColorInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + colors_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.ColorInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -105,27 +87,22 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,8 +114,6 @@ public java.util.List getColorsList return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -146,13 +121,11 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -164,8 +137,6 @@ public int getColorsCount() { return colors_.size(); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other = - (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) obj; - if (!getColorsList().equals(other.getColorsList())) return false; + if (!getColorsList() + .equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DominantColorsAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder() @@ -385,17 +346,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -430,8 +391,7 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation result = - new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +410,38 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation)other); } else { super.mergeFrom(other); return this; @@ -490,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance()) return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColorsFieldBuilder() - : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -538,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,28 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, - com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> - colorsBuilder_; + com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> colorsBuilder_; /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -584,8 +533,6 @@ public java.util.List getColorsList } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,8 +547,6 @@ public int getColorsCount() { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -616,15 +561,14 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder setColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { + public Builder setColors( + int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +582,6 @@ public Builder setColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -658,8 +600,6 @@ public Builder setColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -680,15 +620,14 @@ public Builder addColors(com.google.cloud.vision.v1p4beta1.ColorInfo value) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder addColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { + public Builder addColors( + int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,15 +641,14 @@ public Builder addColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder addColors(com.google.cloud.vision.v1p4beta1.ColorInfo.Builder builderForValue) { + public Builder addColors( + com.google.cloud.vision.v1p4beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -721,8 +659,6 @@ public Builder addColors(com.google.cloud.vision.v1p4beta1.ColorInfo.Builder bui return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -741,8 +677,6 @@ public Builder addColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -753,7 +687,8 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -761,8 +696,6 @@ public Builder addAllColors( return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -780,8 +713,6 @@ public Builder clearColors() { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -799,44 +730,39 @@ public Builder removeColors(int index) { return this; } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder getColorsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder getColorsBuilder( + int index) { return getColorsFieldBuilder().getBuilder(index); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index) { if (colorsBuilder_ == null) { - return colors_.get(index); - } else { + return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,8 +770,6 @@ public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(i } } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -853,55 +777,49 @@ public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder(int index) { - return getColorsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); } /** - * - * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, - com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, - com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, - com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder>( - colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder>( + colors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); colors_ = null; } return colorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(); } @@ -925,16 +843,16 @@ public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java index 2622e3c78..a8d649e11 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface DominantColorsAnnotationOrBuilder - extends +public interface DominantColorsAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - java.util.List getColorsList(); + java.util.List + getColorsList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -44,8 +25,6 @@ public interface DominantColorsAnnotationOrBuilder */ com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -54,24 +33,21 @@ public interface DominantColorsAnnotationOrBuilder */ int getColorsCount(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** - * - * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java similarity index 78% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java index 2da866534..8940d16c1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.EntityAnnotation} */ -public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.EntityAnnotation) EntityAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -47,15 +29,16 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,88 +58,77 @@ private EntityAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + locale_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; - } - case 53: - { - topicality_ = input.readFloat(); - break; + description_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + case 53: { + + topicality_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 58: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.LocationInfo.parser(), extensionRegistry)); - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - properties_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Property.parser(), extensionRegistry)); - break; + locations_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + properties_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Property.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -164,7 +136,8 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -176,27 +149,22 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -204,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -213,15 +180,14 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -229,15 +195,16 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -248,15 +215,12 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ @java.lang.Override @@ -265,30 +229,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -299,14 +263,11 @@ public com.google.protobuf.ByteString getLocaleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -315,29 +276,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +309,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -366,8 +324,6 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -377,22 +333,18 @@ public float getScore() {
    * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated - public float getConfidence() { + @java.lang.Deprecated public float getConfidence() { return confidence_; } public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -402,7 +354,6 @@ public float getConfidence() {
    * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -413,15 +364,12 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -429,26 +377,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -464,8 +405,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -481,8 +420,6 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -494,13 +431,11 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -516,8 +451,6 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -533,8 +466,6 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -546,15 +477,14 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -567,8 +497,6 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -577,13 +505,11 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -596,8 +522,6 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -610,8 +534,6 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -620,12 +542,12 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+  public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -637,7 +559,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -684,22 +607,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -709,29 +638,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.EntityAnnotation other =
-        (com.google.cloud.vision.v1p4beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p4beta1.EntityAnnotation other = (com.google.cloud.vision.v1p4beta1.EntityAnnotation) obj;
 
-    if (!getMid().equals(other.getMid())) return false;
-    if (!getLocale().equals(other.getLocale())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getMid()
+        .equals(other.getMid())) return false;
+    if (!getLocale()
+        .equals(other.getLocale())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly()
+          .equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList().equals(other.getLocationsList())) return false;
-    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
+    if (!getLocationsList()
+        .equals(other.getLocationsList())) return false;
+    if (!getPropertiesList()
+        .equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -750,11 +687,14 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -773,126 +713,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.EntityAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.EntityAnnotation) com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, - com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.EntityAnnotation.newBuilder() @@ -900,18 +831,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -949,9 +880,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -970,8 +901,7 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.EntityAnnotation result = - new com.google.cloud.vision.v1p4beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p4beta1.EntityAnnotation result = new com.google.cloud.vision.v1p4beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -1010,39 +940,38 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.EntityAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.EntityAnnotation)other); } else { super.mergeFrom(other); return this; @@ -1050,8 +979,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1094,10 +1022,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1121,10 +1048,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1149,8 +1075,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1159,13 +1084,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mid_ = ""; /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1173,13 +1095,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1188,8 +1110,6 @@ public java.lang.String getMid() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1197,14 +1117,15 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1212,8 +1133,6 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1221,22 +1140,20 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1244,18 +1161,15 @@ public Builder setMid(java.lang.String value) {
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1263,16 +1177,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1280,21 +1194,19 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object locale_ = ""; /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1303,22 +1215,21 @@ public java.lang.String getLocale() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return The bytes for locale. */ - public com.google.protobuf.ByteString getLocaleBytes() { + public com.google.protobuf.ByteString + getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locale_ = b; return b; } else { @@ -1326,64 +1237,57 @@ public com.google.protobuf.ByteString getLocaleBytes() { } } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale(java.lang.String value) { + public Builder setLocale( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** - * - * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; - * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes(com.google.protobuf.ByteString value) { + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1391,20 +1295,18 @@ public Builder setLocaleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1413,21 +1315,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1435,76 +1336,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1512,45 +1403,37 @@ public float getScore() { return score_; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1560,19 +1443,15 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated - public float getConfidence() { + @java.lang.Deprecated public float getConfidence() { return confidence_; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1582,22 +1461,18 @@ public float getConfidence() {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @param value The confidence to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setConfidence(float value) { - + @java.lang.Deprecated public Builder setConfidence(float value) { + confidence_ = value; onChanged(); return this; } /** - * - * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1607,23 +1482,19 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearConfidence() { - + @java.lang.Deprecated public Builder clearConfidence() { + confidence_ = 0F; onChanged(); return this; } - private float topicality_; + private float topicality_ ; /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1633,7 +1504,6 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; - * * @return The topicality. */ @java.lang.Override @@ -1641,8 +1511,6 @@ public float getTopicality() { return topicality_; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1652,19 +1520,16 @@ public float getTopicality() {
      * 
* * float topicality = 6; - * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** - * - * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1674,11 +1539,10 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; - * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1686,49 +1550,36 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1750,8 +1601,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1771,8 +1620,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1784,9 +1631,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1798,8 +1643,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1819,8 +1662,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1829,13 +1670,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1847,14 +1686,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1863,42 +1699,32 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ =
-            new java.util.ArrayList(locations_);
+        locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.LocationInfo,
-            com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>
-        locationsBuilder_;
+        com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder> locationsBuilder_;
 
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1917,8 +1743,6 @@ public java.util.List getLocatio
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1937,8 +1761,6 @@ public int getLocationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1957,8 +1779,6 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1969,7 +1789,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
+    public Builder setLocations(
+        int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1983,8 +1804,6 @@ public Builder setLocations(int index, com.google.cloud.vision.v1p4beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2007,8 +1826,6 @@ public Builder setLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2033,8 +1850,6 @@ public Builder addLocations(com.google.cloud.vision.v1p4beta1.LocationInfo value
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2045,7 +1860,8 @@ public Builder addLocations(com.google.cloud.vision.v1p4beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
+    public Builder addLocations(
+        int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2059,8 +1875,6 @@ public Builder addLocations(int index, com.google.cloud.vision.v1p4beta1.Locatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2083,8 +1897,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2107,8 +1919,6 @@ public Builder addLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2123,7 +1933,8 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -2131,8 +1942,6 @@ public Builder addAllLocations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2154,8 +1963,6 @@ public Builder clearLocations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2177,8 +1984,6 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2189,12 +1994,11 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilder(
+        int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2208,14 +2012,11 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);
-      } else {
+        return locations_.get(index);  } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2226,8 +2027,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsOrBuilderList() {
+    public java.util.List 
+         getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2235,8 +2036,6 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2248,12 +2047,10 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2264,13 +2061,12 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder(int index) {
-      return getLocationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder(
+        int index) {
+      return getLocationsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2281,48 +2077,38 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public java.util.List
-        getLocationsBuilderList() {
+    public java.util.List 
+         getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.LocationInfo,
-            com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
-            com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>
+        com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder> 
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.LocationInfo,
-                com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
-                com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>(
-                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>(
+                locations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ =
-            new java.util.ArrayList(properties_);
+        properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Property,
-            com.google.cloud.vision.v1p4beta1.Property.Builder,
-            com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>
-        propertiesBuilder_;
+        com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder> propertiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2338,8 +2124,6 @@ public java.util.List getPropertiesL
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2355,8 +2139,6 @@ public int getPropertiesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2372,8 +2154,6 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2381,7 +2161,8 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public Builder setProperties(int index, com.google.cloud.vision.v1p4beta1.Property value) {
+    public Builder setProperties(
+        int index, com.google.cloud.vision.v1p4beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2395,8 +2176,6 @@ public Builder setProperties(int index, com.google.cloud.vision.v1p4beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2416,8 +2195,6 @@ public Builder setProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2439,8 +2216,6 @@ public Builder addProperties(com.google.cloud.vision.v1p4beta1.Property value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2448,7 +2223,8 @@ public Builder addProperties(com.google.cloud.vision.v1p4beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public Builder addProperties(int index, com.google.cloud.vision.v1p4beta1.Property value) {
+    public Builder addProperties(
+        int index, com.google.cloud.vision.v1p4beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2462,8 +2238,6 @@ public Builder addProperties(int index, com.google.cloud.vision.v1p4beta1.Proper
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2483,8 +2257,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2504,8 +2276,6 @@ public Builder addProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2517,7 +2287,8 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2525,8 +2296,6 @@ public Builder addAllProperties(
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2545,8 +2314,6 @@ public Builder clearProperties() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2565,8 +2332,6 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2574,12 +2339,11 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(
+        int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2587,16 +2351,14 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
+        int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);
-      } else {
+        return properties_.get(index);  } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2604,8 +2366,8 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesOrBuilderList() {
+    public java.util.List 
+         getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2613,8 +2375,6 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2623,12 +2383,10 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2636,13 +2394,12 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(int index) {
-      return getPropertiesFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(
+        int index) {
+      return getPropertiesFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2650,30 +2407,27 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(i
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public java.util.List
-        getPropertiesBuilderList() {
+    public java.util.List 
+         getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Property,
-            com.google.cloud.vision.v1p4beta1.Property.Builder,
-            com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder> 
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.Property,
-                com.google.cloud.vision.v1p4beta1.Property.Builder,
-                com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>(
-                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>(
+                properties_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2683,12 +2437,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p4beta1.EntityAnnotation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.EntityAnnotation();
   }
@@ -2697,16 +2451,16 @@ public static com.google.cloud.vision.v1p4beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public EntityAnnotation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new EntityAnnotation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntityAnnotation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new EntityAnnotation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2721,4 +2475,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
similarity index 84%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
index 1344ad02b..31f9fb2bd 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface EntityAnnotationOrBuilder
-    extends
+public interface EntityAnnotationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -33,13 +15,10 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -47,79 +26,64 @@ public interface EntityAnnotationOrBuilder
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The locale. */ java.lang.String getLocale(); /** - * - * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; - * * @return The bytes for locale. */ - com.google.protobuf.ByteString getLocaleBytes(); + com.google.protobuf.ByteString + getLocaleBytes(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -129,17 +93,13 @@ public interface EntityAnnotationOrBuilder
    * 
* * float confidence = 5 [deprecated = true]; - * - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See - * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. + * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ - @java.lang.Deprecated - float getConfidence(); + @java.lang.Deprecated float getConfidence(); /** - * - * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -149,40 +109,31 @@ public interface EntityAnnotationOrBuilder
    * 
* * float topicality = 6; - * * @return The topicality. */ float getTopicality(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -193,8 +144,6 @@ public interface EntityAnnotationOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -205,10 +154,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  java.util.List getLocationsList();
+  java.util.List 
+      getLocationsList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -221,8 +169,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index);
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -235,8 +181,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getLocationsCount();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -247,11 +191,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  java.util.List
+  java.util.List 
       getLocationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -262,11 +204,10 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -274,10 +215,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  java.util.List getPropertiesList();
+  java.util.List 
+      getPropertiesList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -287,8 +227,6 @@ public interface EntityAnnotationOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.Property getProperties(int index);
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -298,8 +236,6 @@ public interface EntityAnnotationOrBuilder
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -307,11 +243,9 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  java.util.List
+  java.util.List 
       getPropertiesOrBuilderList();
   /**
-   *
-   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -319,5 +253,6 @@ public interface EntityAnnotationOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
similarity index 77%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
index 0b4346e9e..ce737b5d6 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation} */ -public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceAnnotation) FaceAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -51,15 +33,16 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -79,147 +62,124 @@ private FaceAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); - } - fdBoundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark>(); - mutable_bitField0_ |= 0x00000001; - } - landmarks_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.parser(), - extensionRegistry)); - break; + case 10: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 37: - { - rollAngle_ = input.readFloat(); - break; - } - case 45: - { - panAngle_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 53: - { - tiltAngle_ = input.readFloat(); - break; - } - case 61: - { - detectionConfidence_ = input.readFloat(); - break; + + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); } - case 69: - { - landmarkingConfidence_ = input.readFloat(); - break; + fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); } - case 72: - { - int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + landmarks_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); + break; + } + case 37: { - sorrowLikelihood_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + rollAngle_ = input.readFloat(); + break; + } + case 45: { - angerLikelihood_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + panAngle_ = input.readFloat(); + break; + } + case 53: { - surpriseLikelihood_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); + tiltAngle_ = input.readFloat(); + break; + } + case 61: { - underExposedLikelihood_ = rawValue; - break; - } - case 112: - { - int rawValue = input.readEnum(); + detectionConfidence_ = input.readFloat(); + break; + } + case 69: { - blurredLikelihood_ = rawValue; - break; - } - case 120: - { - int rawValue = input.readEnum(); + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - recognitionResult_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult>(); - mutable_bitField0_ |= 0x00000002; - } - recognitionResult_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.parser(), - extensionRegistry)); - break; + joyLikelihood_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); + + sorrowLikelihood_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + angerLikelihood_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + surpriseLikelihood_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + underExposedLikelihood_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + blurredLikelihood_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + headwearLikelihood_ = rawValue; + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + recognitionResult_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + recognitionResult_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,7 +187,8 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -239,79 +200,61 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder - extends + public interface LandmarkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return The position. */ com.google.cloud.vision.v1p4beta1.Position getPosition(); /** - * - * *
      * Face landmark position.
      * 
@@ -321,39 +264,37 @@ public interface LandmarkOrBuilder com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Landmark extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -372,36 +313,32 @@ private Landmark( case 0: done = true; break; - case 24: - { - int rawValue = input.readEnum(); + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.vision.v1p4beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p4beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; + position_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -409,31 +346,27 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); } /** - * - * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -443,10 +376,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -455,8 +387,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_LANDMARK(0), /** - * - * *
        * Left eye.
        * 
@@ -465,8 +395,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE(1), /** - * - * *
        * Right eye.
        * 
@@ -475,8 +403,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE(2), /** - * - * *
        * Left of left eyebrow.
        * 
@@ -485,8 +411,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_LEFT_EYEBROW(3), /** - * - * *
        * Right of left eyebrow.
        * 
@@ -495,8 +419,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_LEFT_EYEBROW(4), /** - * - * *
        * Left of right eyebrow.
        * 
@@ -505,8 +427,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_OF_RIGHT_EYEBROW(5), /** - * - * *
        * Right of right eyebrow.
        * 
@@ -515,8 +435,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_OF_RIGHT_EYEBROW(6), /** - * - * *
        * Midpoint between eyes.
        * 
@@ -525,8 +443,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MIDPOINT_BETWEEN_EYES(7), /** - * - * *
        * Nose tip.
        * 
@@ -535,8 +451,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_TIP(8), /** - * - * *
        * Upper lip.
        * 
@@ -545,8 +459,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ UPPER_LIP(9), /** - * - * *
        * Lower lip.
        * 
@@ -555,8 +467,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOWER_LIP(10), /** - * - * *
        * Mouth left.
        * 
@@ -565,8 +475,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_LEFT(11), /** - * - * *
        * Mouth right.
        * 
@@ -575,8 +483,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_RIGHT(12), /** - * - * *
        * Mouth center.
        * 
@@ -585,8 +491,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ MOUTH_CENTER(13), /** - * - * *
        * Nose, bottom right.
        * 
@@ -595,8 +499,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_RIGHT(14), /** - * - * *
        * Nose, bottom left.
        * 
@@ -605,8 +507,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_LEFT(15), /** - * - * *
        * Nose, bottom center.
        * 
@@ -615,8 +515,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NOSE_BOTTOM_CENTER(16), /** - * - * *
        * Left eye, top boundary.
        * 
@@ -625,8 +523,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_TOP_BOUNDARY(17), /** - * - * *
        * Left eye, right corner.
        * 
@@ -635,8 +531,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_RIGHT_CORNER(18), /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -645,8 +539,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** - * - * *
        * Left eye, left corner.
        * 
@@ -655,8 +547,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_LEFT_CORNER(20), /** - * - * *
        * Right eye, top boundary.
        * 
@@ -665,8 +555,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_TOP_BOUNDARY(21), /** - * - * *
        * Right eye, right corner.
        * 
@@ -675,8 +563,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_RIGHT_CORNER(22), /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -685,8 +571,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** - * - * *
        * Right eye, left corner.
        * 
@@ -695,8 +579,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_LEFT_CORNER(24), /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -705,8 +587,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -715,8 +595,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** - * - * *
        * Left ear tragion.
        * 
@@ -725,8 +603,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EAR_TRAGION(27), /** - * - * *
        * Right ear tragion.
        * 
@@ -735,8 +611,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EAR_TRAGION(28), /** - * - * *
        * Left eye pupil.
        * 
@@ -745,8 +619,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LEFT_EYE_PUPIL(29), /** - * - * *
        * Right eye pupil.
        * 
@@ -755,8 +627,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ RIGHT_EYE_PUPIL(30), /** - * - * *
        * Forehead glabella.
        * 
@@ -765,8 +635,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FOREHEAD_GLABELLA(31), /** - * - * *
        * Chin gnathion.
        * 
@@ -775,8 +643,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_GNATHION(32), /** - * - * *
        * Chin left gonion.
        * 
@@ -785,8 +651,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CHIN_LEFT_GONION(33), /** - * - * *
        * Chin right gonion.
        * 
@@ -798,8 +662,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -808,8 +670,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** - * - * *
        * Left eye.
        * 
@@ -818,8 +678,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_VALUE = 1; /** - * - * *
        * Right eye.
        * 
@@ -828,8 +686,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_VALUE = 2; /** - * - * *
        * Left of left eyebrow.
        * 
@@ -838,8 +694,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** - * - * *
        * Right of left eyebrow.
        * 
@@ -848,8 +702,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** - * - * *
        * Left of right eyebrow.
        * 
@@ -858,8 +710,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** - * - * *
        * Right of right eyebrow.
        * 
@@ -868,8 +718,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** - * - * *
        * Midpoint between eyes.
        * 
@@ -878,8 +726,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** - * - * *
        * Nose tip.
        * 
@@ -888,8 +734,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_TIP_VALUE = 8; /** - * - * *
        * Upper lip.
        * 
@@ -898,8 +742,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPPER_LIP_VALUE = 9; /** - * - * *
        * Lower lip.
        * 
@@ -908,8 +750,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOWER_LIP_VALUE = 10; /** - * - * *
        * Mouth left.
        * 
@@ -918,8 +758,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_LEFT_VALUE = 11; /** - * - * *
        * Mouth right.
        * 
@@ -928,8 +766,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_RIGHT_VALUE = 12; /** - * - * *
        * Mouth center.
        * 
@@ -938,8 +774,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MOUTH_CENTER_VALUE = 13; /** - * - * *
        * Nose, bottom right.
        * 
@@ -948,8 +782,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** - * - * *
        * Nose, bottom left.
        * 
@@ -958,8 +790,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** - * - * *
        * Nose, bottom center.
        * 
@@ -968,8 +798,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** - * - * *
        * Left eye, top boundary.
        * 
@@ -978,8 +806,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** - * - * *
        * Left eye, right corner.
        * 
@@ -988,8 +814,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** - * - * *
        * Left eye, bottom boundary.
        * 
@@ -998,8 +822,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** - * - * *
        * Left eye, left corner.
        * 
@@ -1008,8 +830,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** - * - * *
        * Right eye, top boundary.
        * 
@@ -1018,8 +838,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** - * - * *
        * Right eye, right corner.
        * 
@@ -1028,8 +846,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** - * - * *
        * Right eye, bottom boundary.
        * 
@@ -1038,8 +854,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** - * - * *
        * Right eye, left corner.
        * 
@@ -1048,8 +862,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** - * - * *
        * Left eyebrow, upper midpoint.
        * 
@@ -1058,8 +870,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** - * - * *
        * Right eyebrow, upper midpoint.
        * 
@@ -1068,8 +878,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** - * - * *
        * Left ear tragion.
        * 
@@ -1078,8 +886,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** - * - * *
        * Right ear tragion.
        * 
@@ -1088,8 +894,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** - * - * *
        * Left eye pupil.
        * 
@@ -1098,8 +902,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** - * - * *
        * Right eye pupil.
        * 
@@ -1108,8 +910,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** - * - * *
        * Forehead glabella.
        * 
@@ -1118,8 +918,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** - * - * *
        * Chin gnathion.
        * 
@@ -1128,8 +926,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_GNATHION_VALUE = 32; /** - * - * *
        * Chin left gonion.
        * 
@@ -1138,8 +934,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** - * - * *
        * Chin right gonion.
        * 
@@ -1148,6 +942,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHIN_RIGHT_GONION_VALUE = 34; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1172,115 +967,81 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return UNKNOWN_LANDMARK; - case 1: - return LEFT_EYE; - case 2: - return RIGHT_EYE; - case 3: - return LEFT_OF_LEFT_EYEBROW; - case 4: - return RIGHT_OF_LEFT_EYEBROW; - case 5: - return LEFT_OF_RIGHT_EYEBROW; - case 6: - return RIGHT_OF_RIGHT_EYEBROW; - case 7: - return MIDPOINT_BETWEEN_EYES; - case 8: - return NOSE_TIP; - case 9: - return UPPER_LIP; - case 10: - return LOWER_LIP; - case 11: - return MOUTH_LEFT; - case 12: - return MOUTH_RIGHT; - case 13: - return MOUTH_CENTER; - case 14: - return NOSE_BOTTOM_RIGHT; - case 15: - return NOSE_BOTTOM_LEFT; - case 16: - return NOSE_BOTTOM_CENTER; - case 17: - return LEFT_EYE_TOP_BOUNDARY; - case 18: - return LEFT_EYE_RIGHT_CORNER; - case 19: - return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: - return LEFT_EYE_LEFT_CORNER; - case 21: - return RIGHT_EYE_TOP_BOUNDARY; - case 22: - return RIGHT_EYE_RIGHT_CORNER; - case 23: - return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: - return RIGHT_EYE_LEFT_CORNER; - case 25: - return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: - return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: - return LEFT_EAR_TRAGION; - case 28: - return RIGHT_EAR_TRAGION; - case 29: - return LEFT_EYE_PUPIL; - case 30: - return RIGHT_EYE_PUPIL; - case 31: - return FOREHEAD_GLABELLA; - case 32: - return CHIN_GNATHION; - case 33: - return CHIN_LEFT_GONION; - case 34: - return CHIN_RIGHT_GONION; - default: - return null; + case 0: return UNKNOWN_LANDMARK; + case 1: return LEFT_EYE; + case 2: return RIGHT_EYE; + case 3: return LEFT_OF_LEFT_EYEBROW; + case 4: return RIGHT_OF_LEFT_EYEBROW; + case 5: return LEFT_OF_RIGHT_EYEBROW; + case 6: return RIGHT_OF_RIGHT_EYEBROW; + case 7: return MIDPOINT_BETWEEN_EYES; + case 8: return NOSE_TIP; + case 9: return UPPER_LIP; + case 10: return LOWER_LIP; + case 11: return MOUTH_LEFT; + case 12: return MOUTH_RIGHT; + case 13: return MOUTH_CENTER; + case 14: return NOSE_BOTTOM_RIGHT; + case 15: return NOSE_BOTTOM_LEFT; + case 16: return NOSE_BOTTOM_CENTER; + case 17: return LEFT_EYE_TOP_BOUNDARY; + case 18: return LEFT_EYE_RIGHT_CORNER; + case 19: return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: return LEFT_EYE_LEFT_CORNER; + case 21: return RIGHT_EYE_TOP_BOUNDARY; + case 22: return RIGHT_EYE_RIGHT_CORNER; + case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: return RIGHT_EYE_LEFT_CORNER; + case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: return LEFT_EAR_TRAGION; + case 28: return RIGHT_EAR_TRAGION; + case 29: return LEFT_EYE_PUPIL; + case 30: return RIGHT_EYE_PUPIL; + case 31: return FOREHEAD_GLABELLA; + case 32: return CHIN_GNATHION; + case 33: return CHIN_LEFT_GONION; + case 34: return CHIN_RIGHT_GONION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1300,52 +1061,38 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.Position position_; /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return Whether the position field is set. */ @java.lang.Override @@ -1353,25 +1100,18 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Position getPosition() { - return position_ == null - ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; } /** - * - * *
      * Face landmark position.
      * 
@@ -1384,7 +1124,6 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1396,10 +1135,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1414,13 +1152,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1430,18 +1168,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other = - (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1466,94 +1204,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1563,32 +1294,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.newBuilder() @@ -1596,15 +1322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1620,9 +1347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1641,8 +1368,7 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark result = - new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1657,41 +1383,38 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark)other); } else { super.mergeFrom(other); return this; @@ -1699,8 +1422,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1726,8 +1448,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1739,67 +1460,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1807,24 +1512,21 @@ public Builder setType(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1832,47 +1534,34 @@ public Builder clearType() { private com.google.cloud.vision.v1p4beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, - com.google.cloud.vision.v1p4beta1.Position.Builder, - com.google.cloud.vision.v1p4beta1.PositionOrBuilder> - positionBuilder_; + com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder> positionBuilder_; /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** - * - * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; - * * @return The position. */ public com.google.cloud.vision.v1p4beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } - /** - * - * + /** *
        * Face landmark position.
        * 
@@ -1893,8 +1582,6 @@ public Builder setPosition(com.google.cloud.vision.v1p4beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1913,8 +1600,6 @@ public Builder setPosition( return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1925,9 +1610,7 @@ public Builder mergePosition(com.google.cloud.vision.v1p4beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p4beta1.Position.newBuilder(position_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } @@ -1939,8 +1622,6 @@ public Builder mergePosition(com.google.cloud.vision.v1p4beta1.Position value) { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1959,8 +1640,6 @@ public Builder clearPosition() { return this; } /** - * - * *
        * Face landmark position.
        * 
@@ -1968,13 +1647,11 @@ public Builder clearPosition() { * .google.cloud.vision.v1p4beta1.Position position = 4; */ public com.google.cloud.vision.v1p4beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Face landmark position.
        * 
@@ -1985,14 +1662,11 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; } } /** - * - * *
        * Face landmark position.
        * 
@@ -2000,22 +1674,18 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p4beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, - com.google.cloud.vision.v1p4beta1.Position.Builder, - com.google.cloud.vision.v1p4beta1.PositionOrBuilder> + com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, - com.google.cloud.vision.v1p4beta1.Position.Builder, - com.google.cloud.vision.v1p4beta1.PositionOrBuilder>( - getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2028,12 +1698,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(); } @@ -2042,16 +1712,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2066,13 +1736,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2084,7 +1753,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2092,8 +1760,6 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2105,18 +1771,13 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -2137,8 +1798,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p4beta1.BoundingPoly fdBoundingPoly_;
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2149,7 +1808,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -2157,8 +1815,6 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2169,18 +1825,13 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -2200,8 +1851,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
@@ -2209,13 +1858,10 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2223,14 +1869,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2242,8 +1885,6 @@ public int getLandmarksCount() { return landmarks_.size(); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2255,8 +1896,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** - * - * *
    * Detected face landmarks.
    * 
@@ -2272,8 +1911,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -2281,7 +1918,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -2292,8 +1928,6 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -2301,7 +1935,6 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -2312,15 +1945,12 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -2331,14 +1961,11 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -2349,14 +1976,11 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2367,261 +1991,195 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int RECOGNITION_RESULT_FIELD_NUMBER = 16; - private java.util.List - recognitionResult_; + private java.util.List recognitionResult_; /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2630,17 +2188,13 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ @java.lang.Override - public java.util.List - getRecognitionResultList() { + public java.util.List getRecognitionResultList() { return recognitionResult_; } /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2649,17 +2203,14 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ @java.lang.Override - public java.util.List + public java.util.List getRecognitionResultOrBuilderList() { return recognitionResult_; } /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2668,16 +2219,13 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ @java.lang.Override public int getRecognitionResultCount() { return recognitionResult_.size(); } /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2686,16 +2234,13 @@ public int getRecognitionResultCount() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { return recognitionResult_.get(index); } /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2704,17 +2249,15 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder - getRecognitionResultOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( + int index) { return recognitionResult_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2726,7 +2269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2763,8 +2307,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (surpriseLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2786,54 +2329,68 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ - != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, headwearLikelihood_); } for (int i = 0; i < recognitionResult_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, recognitionResult_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, recognitionResult_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2843,33 +2400,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceAnnotation other = - (com.google.cloud.vision.v1p4beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p4beta1.FaceAnnotation other = (com.google.cloud.vision.v1p4beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly() + .equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getLandmarksList() + .equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits( + other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2877,7 +2441,8 @@ public boolean equals(final java.lang.Object obj) { if (underExposedLikelihood_ != other.underExposedLikelihood_) return false; if (blurredLikelihood_ != other.blurredLikelihood_) return false; if (headwearLikelihood_ != other.headwearLikelihood_) return false; - if (!getRecognitionResultList().equals(other.getRecognitionResultList())) return false; + if (!getRecognitionResultList() + .equals(other.getRecognitionResultList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2902,15 +2467,20 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2934,127 +2504,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceAnnotation) com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceAnnotation.newBuilder() @@ -3062,18 +2623,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); getRecognitionResultFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3129,9 +2690,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -3150,8 +2711,7 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceAnnotation result = - new com.google.cloud.vision.v1p4beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p4beta1.FaceAnnotation result = new com.google.cloud.vision.v1p4beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -3201,39 +2761,38 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation)other); } else { super.mergeFrom(other); return this; @@ -3241,8 +2800,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -3267,10 +2825,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLandmarksFieldBuilder() - : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLandmarksFieldBuilder() : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -3330,10 +2887,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) recognitionResultBuilder_ = null; recognitionResult_ = other.recognitionResult_; bitField0_ = (bitField0_ & ~0x00000002); - recognitionResultBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRecognitionResultFieldBuilder() - : null; + recognitionResultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRecognitionResultFieldBuilder() : null; } else { recognitionResultBuilder_.addAllMessages(other.recognitionResult_); } @@ -3367,18 +2923,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3390,15 +2940,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3410,21 +2957,16 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3451,8 +2993,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3477,8 +3017,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3495,9 +3033,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3509,8 +3045,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3535,8 +3069,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3550,13 +3082,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3573,14 +3103,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3594,17 +3121,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3612,13 +3136,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p4beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
-        fdBoundingPolyBuilder_;
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3629,15 +3148,12 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3648,21 +3164,16 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : fdBoundingPoly_; + return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3688,8 +3199,6 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3713,8 +3222,6 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3730,9 +3237,7 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3744,8 +3249,6 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPol
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3769,8 +3272,6 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3783,13 +3284,11 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-
+      
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3805,14 +3304,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : fdBoundingPoly_;
+        return fdBoundingPoly_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3825,51 +3321,39 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(), getParentForChildren(), isClean());
+        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ =
-            new java.util.ArrayList(
-                landmarks_);
+        landmarks_ = new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark,
-            com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder,
-            com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>
-        landmarksBuilder_;
+        com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
 
     /**
-     *
-     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksList() { + public java.util.List getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3877,8 +3361,6 @@ private void ensureLandmarksIsMutable() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3893,8 +3375,6 @@ public int getLandmarksCount() { } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3909,8 +3389,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(in } } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3932,8 +3410,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3941,8 +3417,7 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3953,8 +3428,6 @@ public Builder setLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3975,8 +3448,6 @@ public Builder addLandmarks(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Lan return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -3998,8 +3469,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4018,8 +3487,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4027,8 +3494,7 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -4039,8 +3505,6 @@ public Builder addLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4048,11 +3512,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -4060,8 +3524,6 @@ public Builder addAllLandmarks( return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4079,8 +3541,6 @@ public Builder clearLandmarks() { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4098,8 +3558,6 @@ public Builder removeLandmarks(int index) { return this; } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4111,8 +3569,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4122,32 +3578,26 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); - } else { + return landmarks_.get(index); } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(landmarks_); } } - /** - * - * + /** *
      * Detected face landmarks.
      * 
@@ -4155,13 +3605,10 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
@@ -4170,46 +3617,37 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** - * - * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, - com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_; + private float rollAngle_ ; /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4217,7 +3655,6 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; - * * @return The rollAngle. */ @java.lang.Override @@ -4225,8 +3662,6 @@ public float getRollAngle() { return rollAngle_; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4234,19 +3669,16 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; - * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** - * - * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -4254,20 +3686,17 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; - * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_; + private float panAngle_ ; /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4275,7 +3704,6 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; - * * @return The panAngle. */ @java.lang.Override @@ -4283,8 +3711,6 @@ public float getPanAngle() { return panAngle_; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4292,19 +3718,16 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; - * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** - * - * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -4312,27 +3735,23 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; - * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_; + private float tiltAngle_ ; /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ @java.lang.Override @@ -4340,53 +3759,44 @@ public float getTiltAngle() { return tiltAngle_; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** - * - * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; - * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_; + private float detectionConfidence_ ; /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ @java.lang.Override @@ -4394,51 +3804,42 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; - * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_; + private float landmarkingConfidence_ ; /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ @java.lang.Override @@ -4446,36 +3847,30 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** - * - * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; - * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -4483,65 +3878,51 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override - public int getJoyLikelihoodValue() { + @java.lang.Override public int getJoyLikelihoodValue() { return joyLikelihood_; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -4549,24 +3930,21 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -4574,65 +3952,51 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override - public int getSorrowLikelihoodValue() { + @java.lang.Override public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4640,24 +4004,21 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4665,65 +4026,51 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override - public int getAngerLikelihoodValue() { + @java.lang.Override public int getAngerLikelihoodValue() { return angerLikelihood_; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4731,24 +4078,21 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4756,65 +4100,51 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override - public int getSurpriseLikelihoodValue() { + @java.lang.Override public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4822,24 +4152,21 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p4beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4847,65 +4174,51 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override - public int getUnderExposedLikelihoodValue() { + @java.lang.Override public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4913,24 +4226,21 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p4beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4938,65 +4248,51 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override - public int getBlurredLikelihoodValue() { + @java.lang.Override public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -5004,24 +4300,21 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -5029,65 +4322,51 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override - public int getHeadwearLikelihoodValue() { + @java.lang.Override public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -5095,50 +4374,39 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p4beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - private java.util.List - recognitionResult_ = java.util.Collections.emptyList(); - + private java.util.List recognitionResult_ = + java.util.Collections.emptyList(); private void ensureRecognitionResultIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - recognitionResult_ = - new java.util.ArrayList( - recognitionResult_); + recognitionResult_ = new java.util.ArrayList(recognitionResult_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> - recognitionResultBuilder_; + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> recognitionResultBuilder_; /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5147,11 +4415,9 @@ private void ensureRecognitionResultIsMutable() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public java.util.List - getRecognitionResultList() { + public java.util.List getRecognitionResultList() { if (recognitionResultBuilder_ == null) { return java.util.Collections.unmodifiableList(recognitionResult_); } else { @@ -5159,8 +4425,6 @@ private void ensureRecognitionResultIsMutable() { } } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5169,8 +4433,7 @@ private void ensureRecognitionResultIsMutable() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public int getRecognitionResultCount() { if (recognitionResultBuilder_ == null) { @@ -5180,8 +4443,6 @@ public int getRecognitionResultCount() { } } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5190,8 +4451,7 @@ public int getRecognitionResultCount() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { if (recognitionResultBuilder_ == null) { @@ -5201,8 +4461,6 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes } } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5211,8 +4469,7 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder setRecognitionResult( int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { @@ -5229,8 +4486,6 @@ public Builder setRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5239,12 +4494,10 @@ public Builder setRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder setRecognitionResult( - int index, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); recognitionResult_.set(index, builderForValue.build()); @@ -5255,8 +4508,6 @@ public Builder setRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5265,11 +4516,9 @@ public Builder setRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public Builder addRecognitionResult( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { + public Builder addRecognitionResult(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { if (recognitionResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5283,8 +4532,6 @@ public Builder addRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5293,8 +4540,7 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder addRecognitionResult( int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { @@ -5311,8 +4557,6 @@ public Builder addRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5321,8 +4565,7 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder addRecognitionResult( com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { @@ -5336,8 +4579,6 @@ public Builder addRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5346,12 +4587,10 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder addRecognitionResult( - int index, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); recognitionResult_.add(index, builderForValue.build()); @@ -5362,8 +4601,6 @@ public Builder addRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5372,15 +4609,14 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder addAllRecognitionResult( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognitionResult_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recognitionResult_); onChanged(); } else { recognitionResultBuilder_.addAllMessages(values); @@ -5388,8 +4624,6 @@ public Builder addAllRecognitionResult( return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5398,8 +4632,7 @@ public Builder addAllRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder clearRecognitionResult() { if (recognitionResultBuilder_ == null) { @@ -5412,8 +4645,6 @@ public Builder clearRecognitionResult() { return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5422,8 +4653,7 @@ public Builder clearRecognitionResult() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ public Builder removeRecognitionResult(int index) { if (recognitionResultBuilder_ == null) { @@ -5436,8 +4666,6 @@ public Builder removeRecognitionResult(int index) { return this; } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5446,16 +4674,13 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder - getRecognitionResultBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder getRecognitionResultBuilder( + int index) { return getRecognitionResultFieldBuilder().getBuilder(index); } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5464,20 +4689,16 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder - getRecognitionResultOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( + int index) { if (recognitionResultBuilder_ == null) { - return recognitionResult_.get(index); - } else { + return recognitionResult_.get(index); } else { return recognitionResultBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5486,12 +4707,10 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> - getRecognitionResultOrBuilderList() { + public java.util.List + getRecognitionResultOrBuilderList() { if (recognitionResultBuilder_ != null) { return recognitionResultBuilder_.getMessageOrBuilderList(); } else { @@ -5499,8 +4718,6 @@ public Builder removeRecognitionResult(int index) { } } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5509,17 +4726,13 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder - addRecognitionResultBuilder() { - return getRecognitionResultFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecognitionResultBuilder() { + return getRecognitionResultFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5528,18 +4741,14 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder - addRecognitionResultBuilder(int index) { - return getRecognitionResultFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecognitionResultBuilder( + int index) { + return getRecognitionResultFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); } /** - * - * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -5548,25 +4757,18 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - public java.util.List - getRecognitionResultBuilderList() { + public java.util.List + getRecognitionResultBuilderList() { return getRecognitionResultFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> getRecognitionResultFieldBuilder() { if (recognitionResultBuilder_ == null) { - recognitionResultBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder>( + recognitionResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder>( recognitionResult_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5575,9 +4777,9 @@ public Builder removeRecognitionResult(int index) { } return recognitionResultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5587,12 +4789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p4beta1.FaceAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceAnnotation(); } @@ -5601,16 +4803,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5625,4 +4827,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java index dafad7997..99d90c218 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceAnnotationOrBuilder - extends +public interface FaceAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -37,13 +19,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -55,13 +34,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -77,8 +53,6 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -89,13 +63,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -106,13 +77,10 @@ public interface FaceAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; - * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly(); /** - * - * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -127,18 +95,15 @@ public interface FaceAnnotationOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List getLandmarksList(); + java.util.List + getLandmarksList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -147,8 +112,6 @@ public interface FaceAnnotationOrBuilder */ com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(int index); /** - * - * *
    * Detected face landmarks.
    * 
@@ -157,19 +120,15 @@ public interface FaceAnnotationOrBuilder */ int getLandmarksCount(); /** - * - * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** - * - * *
    * Detected face landmarks.
    * 
@@ -180,8 +139,6 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** - * - * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -189,14 +146,11 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; - * * @return The rollAngle. */ float getRollAngle(); /** - * - * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -204,229 +158,175 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; - * * @return The panAngle. */ float getPanAngle(); /** - * - * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; - * * @return The tiltAngle. */ float getTiltAngle(); /** - * - * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; - * * @return The detectionConfidence. */ float getDetectionConfidence(); /** - * - * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; - * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** - * - * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; - * * @return The joyLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** - * - * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; - * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** - * - * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; - * * @return The angerLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** - * - * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; - * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** - * - * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; - * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** - * - * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; - * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** - * - * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; - * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood(); /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -435,14 +335,11 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - java.util.List + java.util.List getRecognitionResultList(); /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -451,13 +348,10 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index); /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -466,13 +360,10 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ int getRecognitionResultCount(); /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -481,14 +372,11 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ - java.util.List + java.util.List getRecognitionResultOrBuilderList(); /** - * - * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -497,8 +385,7 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; - * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; */ com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java index 9667c8ef2..ba867dacc 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Parameters for a celebrity recognition request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} */ -public final class FaceRecognitionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceRecognitionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) FaceRecognitionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceRecognitionParams.newBuilder() to construct. private FaceRecognitionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceRecognitionParams() { celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceRecognitionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceRecognitionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private FaceRecognitionParams( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - celebritySet_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - celebritySet_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + celebritySet_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + celebritySet_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private FaceRecognitionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { celebritySet_ = celebritySet_.getUnmodifiableView(); @@ -104,27 +87,22 @@ private FaceRecognitionParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); } public static final int CELEBRITY_SET_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList celebritySet_; /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -134,15 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string celebrity_set = 1; - * * @return A list containing the celebritySet. */ - public com.google.protobuf.ProtocolStringList getCelebritySetList() { + public com.google.protobuf.ProtocolStringList + getCelebritySetList() { return celebritySet_; } /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -152,15 +128,12 @@ public com.google.protobuf.ProtocolStringList getCelebritySetList() {
    * 
* * repeated string celebrity_set = 1; - * * @return The count of celebritySet. */ public int getCelebritySetCount() { return celebritySet_.size(); } /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -170,7 +143,6 @@ public int getCelebritySetCount() {
    * 
* * repeated string celebrity_set = 1; - * * @param index The index of the element to return. * @return The celebritySet at the given index. */ @@ -178,8 +150,6 @@ public java.lang.String getCelebritySet(int index) { return celebritySet_.get(index); } /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -189,16 +159,15 @@ public java.lang.String getCelebritySet(int index) {
    * 
* * repeated string celebrity_set = 1; - * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - public com.google.protobuf.ByteString getCelebritySetBytes(int index) { + public com.google.protobuf.ByteString + getCelebritySetBytes(int index) { return celebritySet_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < celebritySet_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, celebritySet_.getRaw(i)); } @@ -239,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other = - (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) obj; + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other = (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) obj; - if (!getCelebritySetList().equals(other.getCelebritySetList())) return false; + if (!getCelebritySetList() + .equals(other.getCelebritySetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,127 +239,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for a celebrity recognition request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder() @@ -397,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override @@ -436,8 +397,7 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = - new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(this); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { celebritySet_ = celebritySet_.getUnmodifiableView(); @@ -452,39 +412,38 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionParams)other); } else { super.mergeFrom(other); return this; @@ -492,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance()) return this; if (!other.celebritySet_.isEmpty()) { if (celebritySet_.isEmpty()) { celebritySet_ = other.celebritySet_; @@ -523,8 +481,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,21 +490,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList celebritySet_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCelebritySetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { celebritySet_ = new com.google.protobuf.LazyStringArrayList(celebritySet_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -557,15 +509,13 @@ private void ensureCelebritySetIsMutable() {
      * 
* * repeated string celebrity_set = 1; - * * @return A list containing the celebritySet. */ - public com.google.protobuf.ProtocolStringList getCelebritySetList() { + public com.google.protobuf.ProtocolStringList + getCelebritySetList() { return celebritySet_.getUnmodifiableView(); } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -575,15 +525,12 @@ public com.google.protobuf.ProtocolStringList getCelebritySetList() {
      * 
* * repeated string celebrity_set = 1; - * * @return The count of celebritySet. */ public int getCelebritySetCount() { return celebritySet_.size(); } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -593,7 +540,6 @@ public int getCelebritySetCount() {
      * 
* * repeated string celebrity_set = 1; - * * @param index The index of the element to return. * @return The celebritySet at the given index. */ @@ -601,8 +547,6 @@ public java.lang.String getCelebritySet(int index) { return celebritySet_.get(index); } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -612,16 +556,14 @@ public java.lang.String getCelebritySet(int index) {
      * 
* * repeated string celebrity_set = 1; - * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - public com.google.protobuf.ByteString getCelebritySetBytes(int index) { + public com.google.protobuf.ByteString + getCelebritySetBytes(int index) { return celebritySet_.getByteString(index); } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -631,23 +573,21 @@ public com.google.protobuf.ByteString getCelebritySetBytes(int index) {
      * 
* * repeated string celebrity_set = 1; - * * @param index The index to set the value at. * @param value The celebritySet to set. * @return This builder for chaining. */ - public Builder setCelebritySet(int index, java.lang.String value) { + public Builder setCelebritySet( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCelebritySetIsMutable(); + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); celebritySet_.set(index, value); onChanged(); return this; } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -657,22 +597,20 @@ public Builder setCelebritySet(int index, java.lang.String value) {
      * 
* * repeated string celebrity_set = 1; - * * @param value The celebritySet to add. * @return This builder for chaining. */ - public Builder addCelebritySet(java.lang.String value) { + public Builder addCelebritySet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCelebritySetIsMutable(); + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); celebritySet_.add(value); onChanged(); return this; } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -682,19 +620,18 @@ public Builder addCelebritySet(java.lang.String value) {
      * 
* * repeated string celebrity_set = 1; - * * @param values The celebritySet to add. * @return This builder for chaining. */ - public Builder addAllCelebritySet(java.lang.Iterable values) { + public Builder addAllCelebritySet( + java.lang.Iterable values) { ensureCelebritySetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, celebritySet_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, celebritySet_); onChanged(); return this; } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -704,7 +641,6 @@ public Builder addAllCelebritySet(java.lang.Iterable values) {
      * 
* * repeated string celebrity_set = 1; - * * @return This builder for chaining. */ public Builder clearCelebritySet() { @@ -714,8 +650,6 @@ public Builder clearCelebritySet() { return this; } /** - * - * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -725,23 +659,23 @@ public Builder clearCelebritySet() {
      * 
* * repeated string celebrity_set = 1; - * * @param value The bytes of the celebritySet to add. * @return This builder for chaining. */ - public Builder addCelebritySetBytes(com.google.protobuf.ByteString value) { + public Builder addCelebritySetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCelebritySetIsMutable(); celebritySet_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -751,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(); } @@ -765,16 +699,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceRecognitionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceRecognitionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,4 +723,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java index df6fbaf22..8844c1c8e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceRecognitionParamsOrBuilder - extends +public interface FaceRecognitionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -35,13 +17,11 @@ public interface FaceRecognitionParamsOrBuilder
    * 
* * repeated string celebrity_set = 1; - * * @return A list containing the celebritySet. */ - java.util.List getCelebritySetList(); + java.util.List + getCelebritySetList(); /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -51,13 +31,10 @@ public interface FaceRecognitionParamsOrBuilder
    * 
* * repeated string celebrity_set = 1; - * * @return The count of celebritySet. */ int getCelebritySetCount(); /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -67,14 +44,11 @@ public interface FaceRecognitionParamsOrBuilder
    * 
* * repeated string celebrity_set = 1; - * * @param index The index of the element to return. * @return The celebritySet at the given index. */ java.lang.String getCelebritySet(int index); /** - * - * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -84,9 +58,9 @@ public interface FaceRecognitionParamsOrBuilder
    * 
* * repeated string celebrity_set = 1; - * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - com.google.protobuf.ByteString getCelebritySetBytes(int index); + com.google.protobuf.ByteString + getCelebritySetBytes(int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java index e671f1954..ce40c856b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Information about a face's identity.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} */ -public final class FaceRecognitionResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaceRecognitionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) FaceRecognitionResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaceRecognitionResult.newBuilder() to construct. private FaceRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FaceRecognitionResult() {} + private FaceRecognitionResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaceRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaceRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private FaceRecognitionResult( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.Celebrity.Builder subBuilder = null; - if (celebrity_ != null) { - subBuilder = celebrity_.toBuilder(); - } - celebrity_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.Celebrity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(celebrity_); - celebrity_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.Celebrity.Builder subBuilder = null; + if (celebrity_ != null) { + subBuilder = celebrity_.toBuilder(); } - case 21: - { - confidence_ = input.readFloat(); - break; + celebrity_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Celebrity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(celebrity_); + celebrity_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,40 +84,35 @@ private FaceRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); } public static final int CELEBRITY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return Whether the celebrity field is set. */ @java.lang.Override @@ -144,26 +120,19 @@ public boolean hasCelebrity() { return celebrity_ != null; } /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return The celebrity. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { - return celebrity_ == null - ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() - : celebrity_; + return celebrity_ == null ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_; } /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
@@ -179,14 +148,11 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Recognition confidence. Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -195,7 +161,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (celebrity_ != null) { output.writeMessage(1, getCelebrity()); } @@ -224,10 +190,12 @@ public int getSerializedSize() { size = 0; if (celebrity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelebrity()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCelebrity()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,20 +205,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other = - (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) obj; + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other = (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) obj; if (hasCelebrity() != other.hasCelebrity()) return false; if (hasCelebrity()) { - if (!getCelebrity().equals(other.getCelebrity())) return false; + if (!getCelebrity() + .equals(other.getCelebrity())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,134 +236,125 @@ public int hashCode() { hash = (53 * hash) + getCelebrity().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a face's identity.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.newBuilder() @@ -402,15 +362,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto - .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override @@ -447,8 +408,7 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = - new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(this); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(this); if (celebrityBuilder_ == null) { result.celebrity_ = celebrity_; } else { @@ -463,39 +423,38 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -503,8 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()) return this; if (other.hasCelebrity()) { mergeCelebrity(other.getCelebrity()); } @@ -530,8 +488,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -543,49 +500,36 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Celebrity, - com.google.cloud.vision.v1p4beta1.Celebrity.Builder, - com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> - celebrityBuilder_; + com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> celebrityBuilder_; /** - * - * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
      * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return Whether the celebrity field is set. */ public boolean hasCelebrity() { return celebrityBuilder_ != null || celebrity_ != null; } /** - * - * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
      * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return The celebrity. */ public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { if (celebrityBuilder_ == null) { - return celebrity_ == null - ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() - : celebrity_; + return celebrity_ == null ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_; } else { return celebrityBuilder_.getMessage(); } } /** - * - * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -607,8 +551,6 @@ public Builder setCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -628,8 +570,6 @@ public Builder setCelebrity(
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -641,9 +581,7 @@ public Builder mergeCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value)
       if (celebrityBuilder_ == null) {
         if (celebrity_ != null) {
           celebrity_ =
-              com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder(celebrity_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder(celebrity_).mergeFrom(value).buildPartial();
         } else {
           celebrity_ = value;
         }
@@ -655,8 +593,6 @@ public Builder mergeCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -676,8 +612,6 @@ public Builder clearCelebrity() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -686,13 +620,11 @@ public Builder clearCelebrity() {
      * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
      */
     public com.google.cloud.vision.v1p4beta1.Celebrity.Builder getCelebrityBuilder() {
-
+      
       onChanged();
       return getCelebrityFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -704,14 +636,11 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
       if (celebrityBuilder_ != null) {
         return celebrityBuilder_.getMessageOrBuilder();
       } else {
-        return celebrity_ == null
-            ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance()
-            : celebrity_;
+        return celebrity_ == null ?
+            com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_;
       }
     }
     /**
-     *
-     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -720,32 +649,26 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
      * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Celebrity,
-            com.google.cloud.vision.v1p4beta1.Celebrity.Builder,
-            com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>
+        com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> 
         getCelebrityFieldBuilder() {
       if (celebrityBuilder_ == null) {
-        celebrityBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.Celebrity,
-                com.google.cloud.vision.v1p4beta1.Celebrity.Builder,
-                com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>(
-                getCelebrity(), getParentForChildren(), isClean());
+        celebrityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>(
+                getCelebrity(),
+                getParentForChildren(),
+                isClean());
         celebrity_ = null;
       }
       return celebrityBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -753,43 +676,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(); } @@ -813,16 +730,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,4 +754,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java similarity index 65% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java index e68ec4988..aca1c9f89 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceRecognitionResultOrBuilder - extends +public interface FaceRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return Whether the celebrity field is set. */ boolean hasCelebrity(); /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; - * * @return The celebrity. */ com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity(); /** - * - * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
@@ -62,14 +38,11 @@ public interface FaceRecognitionResultOrBuilder
   com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilder();
 
   /**
-   *
-   *
    * 
    * Recognition confidence. Range [0, 1].
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java index da9ca19fc..acffc5cf6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Feature}
  */
-public final class Feature extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Feature extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Feature)
     FeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -46,15 +28,16 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,30 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              maxResults_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              model_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maxResults_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,41 +87,36 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Feature.class,
-            com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Feature.class, com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified feature type.
      * 
@@ -149,8 +125,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Run face detection.
      * 
@@ -159,8 +133,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ FACE_DETECTION(1), /** - * - * *
      * Run landmark detection.
      * 
@@ -169,8 +141,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LANDMARK_DETECTION(2), /** - * - * *
      * Run logo detection.
      * 
@@ -179,8 +149,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LOGO_DETECTION(3), /** - * - * *
      * Run label detection.
      * 
@@ -189,8 +157,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ LABEL_DETECTION(4), /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -201,8 +167,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     TEXT_DETECTION(5),
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -212,8 +176,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -223,8 +185,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     SAFE_SEARCH_DETECTION(6),
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -234,8 +194,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     IMAGE_PROPERTIES(7),
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -244,8 +202,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CROP_HINTS(9), /** - * - * *
      * Run web detection.
      * 
@@ -254,8 +210,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ WEB_DETECTION(10), /** - * - * *
      * Run Product Search.
      * 
@@ -264,8 +218,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PRODUCT_SEARCH(12), /** - * - * *
      * Run localizer for object detection.
      * 
@@ -277,8 +229,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified feature type.
      * 
@@ -287,8 +237,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Run face detection.
      * 
@@ -297,8 +245,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACE_DETECTION_VALUE = 1; /** - * - * *
      * Run landmark detection.
      * 
@@ -307,8 +253,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LANDMARK_DETECTION_VALUE = 2; /** - * - * *
      * Run logo detection.
      * 
@@ -317,8 +261,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOGO_DETECTION_VALUE = 3; /** - * - * *
      * Run label detection.
      * 
@@ -327,8 +269,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LABEL_DETECTION_VALUE = 4; /** - * - * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -339,8 +279,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
-     *
-     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -350,8 +288,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -361,8 +297,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
-     *
-     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -372,8 +306,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
-     *
-     *
      * 
      * Run crop hints.
      * 
@@ -382,8 +314,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CROP_HINTS_VALUE = 9; /** - * - * *
      * Run web detection.
      * 
@@ -392,8 +322,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEB_DETECTION_VALUE = 10; /** - * - * *
      * Run Product Search.
      * 
@@ -402,8 +330,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_SEARCH_VALUE = 12; /** - * - * *
      * Run localizer for object detection.
      * 
@@ -412,6 +338,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBJECT_LOCALIZATION_VALUE = 19; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,69 +363,59 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return FACE_DETECTION; - case 2: - return LANDMARK_DETECTION; - case 3: - return LOGO_DETECTION; - case 4: - return LABEL_DETECTION; - case 5: - return TEXT_DETECTION; - case 11: - return DOCUMENT_TEXT_DETECTION; - case 6: - return SAFE_SEARCH_DETECTION; - case 7: - return IMAGE_PROPERTIES; - case 9: - return CROP_HINTS; - case 10: - return WEB_DETECTION; - case 12: - return PRODUCT_SEARCH; - case 19: - return OBJECT_LOCALIZATION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return FACE_DETECTION; + case 2: return LANDMARK_DETECTION; + case 3: return LOGO_DETECTION; + case 4: return LABEL_DETECTION; + case 5: return TEXT_DETECTION; + case 11: return DOCUMENT_TEXT_DETECTION; + case 6: return SAFE_SEARCH_DETECTION; + case 7: return IMAGE_PROPERTIES; + case 9: return CROP_HINTS; + case 10: return WEB_DETECTION; + case 12: return PRODUCT_SEARCH; + case 19: return OBJECT_LOCALIZATION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vision.v1p4beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -518,51 +435,39 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Feature.Type result = - com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p4beta1.Feature.Type result = com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p4beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -573,8 +478,6 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -582,7 +485,6 @@ public int getMaxResults() {
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -591,15 +493,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -607,15 +508,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -624,7 +526,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,7 +537,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p4beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -656,10 +558,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p4beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -672,17 +576,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Feature other = - (com.google.cloud.vision.v1p4beta1.Feature) obj; + com.google.cloud.vision.v1p4beta1.Feature other = (com.google.cloud.vision.v1p4beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() != other.getMaxResults()) return false; - if (!getModel().equals(other.getModel())) return false; + if (getMaxResults() + != other.getMaxResults()) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -705,104 +610,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -811,23 +709,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Feature}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Feature)
       com.google.cloud.vision.v1p4beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Feature.class,
-              com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Feature.class, com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Feature.newBuilder()
@@ -835,15 +731,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -857,9 +754,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -878,8 +775,7 @@ public com.google.cloud.vision.v1p4beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Feature result =
-          new com.google.cloud.vision.v1p4beta1.Feature(this);
+      com.google.cloud.vision.v1p4beta1.Feature result = new com.google.cloud.vision.v1p4beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -891,39 +787,38 @@ public com.google.cloud.vision.v1p4beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Feature) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Feature)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -973,65 +868,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Feature.Type result = - com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p4beta1.Feature.Type result = com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p4beta1.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1039,40 +920,34 @@ public Builder setType(com.google.cloud.vision.v1p4beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return The maxResults. */ @java.lang.Override @@ -1080,38 +955,32 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -1119,8 +988,6 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1128,13 +995,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1143,8 +1010,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1152,14 +1017,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1167,8 +1033,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1176,22 +1040,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1199,18 +1061,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1218,23 +1077,23 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Feature) private static final com.google.cloud.vision.v1p4beta1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Feature(); } @@ -1258,16 +1117,16 @@ public static com.google.cloud.vision.v1p4beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1141,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java index 34a23fcc1..260fdb051 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java @@ -1,70 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.vision.v1p4beta1.Feature.Type getType(); /** - * - * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -72,13 +45,10 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -86,8 +56,8 @@ public interface FeatureOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java similarity index 78% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java index 425b21fbd..db7192858 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsDestination.class, - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsDestination.class, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -140,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -149,15 +126,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -180,15 +156,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -197,7 +174,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +185,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -233,15 +210,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GcsDestination other = - (com.google.cloud.vision.v1p4beta1.GcsDestination) obj; + com.google.cloud.vision.v1p4beta1.GcsDestination other = (com.google.cloud.vision.v1p4beta1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,127 +237,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GcsDestination) com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsDestination.class, - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsDestination.class, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder() @@ -388,15 +356,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override @@ -427,8 +396,7 @@ public com.google.cloud.vision.v1p4beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p4beta1.GcsDestination result = - new com.google.cloud.vision.v1p4beta1.GcsDestination(this); + com.google.cloud.vision.v1p4beta1.GcsDestination result = new com.google.cloud.vision.v1p4beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -438,39 +406,38 @@ public com.google.cloud.vision.v1p4beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -478,8 +445,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -515,8 +481,6 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -539,13 +503,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -554,8 +518,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -578,14 +540,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -593,8 +556,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -617,22 +578,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -655,18 +614,15 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -689,23 +645,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -715,12 +671,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsDestination) private static final com.google.cloud.vision.v1p4beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GcsDestination(); } @@ -729,16 +685,16 @@ public static com.google.cloud.vision.v1p4beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,4 +709,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java index 2d3a6a7a4..a03073206 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -48,13 +30,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -77,8 +56,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java index 6de3a1d88..482c4df28 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsSource.class, - com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsSource.class, com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GcsSource other = - (com.google.cloud.vision.v1p4beta1.GcsSource) obj; + com.google.cloud.vision.v1p4beta1.GcsSource other = (com.google.cloud.vision.v1p4beta1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GcsSource) com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsSource.class, - com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsSource.class, com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.vision.v1p4beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p4beta1.GcsSource result = - new com.google.cloud.vision.v1p4beta1.GcsSource(this); + com.google.cloud.vision.v1p4beta1.GcsSource result = new com.google.cloud.vision.v1p4beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.vision.v1p4beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsSource) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -482,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -505,22 +470,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -528,71 +492,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsSource) private static final com.google.cloud.vision.v1p4beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GcsSource(); } @@ -616,16 +573,16 @@ public static com.google.cloud.vision.v1p4beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java similarity index 53% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java index 07a3dfbd3..aee02ac59 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java new file mode 100644 index 000000000..8d0b4e7fb --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class GeometryProto { + private GeometryProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p4beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p4beta1\032\034g" + + "oogle/api/annotations.proto\"\036\n\006Vertex\022\t\n" + + "\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022" + + "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014BoundingPoly\0227" + + "\n\010vertices\030\001 \003(\0132%.google.cloud.vision.v" + + "1p4beta1.Vertex\022L\n\023normalized_vertices\030\002" + + " \003(\0132/.google.cloud.vision.v1p4beta1.Nor" + + "malizedVertex\"+\n\010Position\022\t\n\001x\030\001 \001(\002\022\t\n\001" + + "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.google.cloud." + + "vision.v1p4beta1B\rGeometryProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/v" + + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor, + new java.lang.String[] { "Vertices", "NormalizedVertices", }); + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor, + new java.lang.String[] { "X", "Y", "Z", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java index dc54c6851..80cfd627c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `GetProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductRequest} */ -public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetProductRequest) GetProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductRequest.class, - com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductRequest.class, com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetProductRequest other = - (com.google.cloud.vision.v1p4beta1.GetProductRequest) obj; + com.google.cloud.vision.v1p4beta1.GetProductRequest other = (com.google.cloud.vision.v1p4beta1.GetProductRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetProductRequest) com.google.cloud.vision.v1p4beta1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductRequest.class, - com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductRequest.class, com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetProductRequest.newBuilder() @@ -362,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetProductRequest result = - new com.google.cloud.vision.v1p4beta1.GetProductRequest(this); + com.google.cloud.vision.v1p4beta1.GetProductRequest result = new com.google.cloud.vision.v1p4beta1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductRequest)other); } else { super.mergeFrom(other); return this; @@ -452,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.GetProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.GetProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductRequest) private static final com.google.cloud.vision.v1p4beta1.GetProductRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetProductRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.GetProductRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..5e52735fd --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetProductRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java index 43ffcccb3..dede5ee39 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductSetRequest} */ -public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetProductSetRequest) GetProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.GetProductSetRequest other = (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetProductSetRequest) com.google.cloud.vision.v1p4beta1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetProductSetRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest result = new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.GetProductSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..3582244f4 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java index a32889b47..4ed37a907 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetReferenceImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other = - (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetReferenceImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) com.google.cloud.vision.v1p4beta1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest result = - new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..3b372ed67 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetReferenceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java index 67d860e4d..acf102b5e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,31 @@ private Image( case 0: done = true; break; - case 10: - { - content_ = input.readBytes(); - break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,33 +85,29 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Image.class, - com.google.cloud.vision.v1p4beta1.Image.Builder.class); + com.google.cloud.vision.v1p4beta1.Image.class, com.google.cloud.vision.v1p4beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -139,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -150,8 +125,6 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ImageSource source_; /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -159,7 +132,6 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ @java.lang.Override @@ -167,8 +139,6 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -176,18 +146,13 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageSource getSource() { - return source_ == null - ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_; } /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -202,7 +167,6 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +178,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -231,10 +196,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,17 +211,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p4beta1.Image other = (com.google.cloud.vision.v1p4beta1.Image) obj;
 
-    if (!getContent().equals(other.getContent())) return false;
+    if (!getContent()
+        .equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,127 +247,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.Image parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Image) com.google.cloud.vision.v1p4beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Image.class, - com.google.cloud.vision.v1p4beta1.Image.Builder.class); + com.google.cloud.vision.v1p4beta1.Image.class, com.google.cloud.vision.v1p4beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Image.newBuilder() @@ -406,15 +366,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override @@ -451,8 +412,7 @@ public com.google.cloud.vision.v1p4beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Image buildPartial() { - com.google.cloud.vision.v1p4beta1.Image result = - new com.google.cloud.vision.v1p4beta1.Image(this); + com.google.cloud.vision.v1p4beta1.Image result = new com.google.cloud.vision.v1p4beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -467,39 +427,38 @@ public com.google.cloud.vision.v1p4beta1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Image) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Image)other); } else { super.mergeFrom(other); return this; @@ -545,8 +504,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -554,7 +511,6 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -562,8 +518,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -571,22 +525,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -594,11 +545,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -606,13 +556,8 @@ public Builder clearContent() { private com.google.cloud.vision.v1p4beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageSource, - com.google.cloud.vision.v1p4beta1.ImageSource.Builder, - com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> - sourceBuilder_; + com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> sourceBuilder_; /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -620,15 +565,12 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -636,21 +578,16 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return The source. */ public com.google.cloud.vision.v1p4beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -673,8 +610,6 @@ public Builder setSource(com.google.cloud.vision.v1p4beta1.ImageSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -695,8 +630,6 @@ public Builder setSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -709,9 +642,7 @@ public Builder mergeSource(com.google.cloud.vision.v1p4beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-              com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder(source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -723,8 +654,6 @@ public Builder mergeSource(com.google.cloud.vision.v1p4beta1.ImageSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -745,8 +674,6 @@ public Builder clearSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -756,13 +683,11 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p4beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p4beta1.ImageSource.Builder getSourceBuilder() {
-
+      
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -775,14 +700,11 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null
-            ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance()
-            : source_;
+        return source_ == null ?
+            com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_;
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -792,24 +714,21 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p4beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImageSource,
-            com.google.cloud.vision.v1p4beta1.ImageSource.Builder,
-            com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>
+        com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> 
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.ImageSource,
-                com.google.cloud.vision.v1p4beta1.ImageSource.Builder,
-                com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>(
-                getSource(), getParentForChildren(), isClean());
+        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>(
+                getSource(),
+                getParentForChildren(),
+                isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -819,12 +738,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Image)
   private static final com.google.cloud.vision.v1p4beta1.Image DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Image();
   }
@@ -833,16 +752,16 @@ public static com.google.cloud.vision.v1p4beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Image parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Image(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Image parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Image(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -857,4 +776,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
similarity index 70%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
index 8f8e83fa7..ae08dff58 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageAnnotationContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageNumber_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            uri_ = s;
+            break;
+          }
+          case 16: {
+
+            pageNumber_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class,
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
-   *
-   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -171,15 +148,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -188,7 +162,6 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other = - (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) obj; - if (!getUri().equals(other.getUri())) return false; - if (getPageNumber() != other.getPageNumber()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getPageNumber() + != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,104 +237,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -366,23 +334,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class,
-              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder()
@@ -390,15 +356,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -431,8 +398,7 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImageAnnotationContext result =
-          new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p4beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -443,39 +409,38 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageAnnotationContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance()) return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -511,8 +475,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -524,20 +487,18 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
-     *
-     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -546,21 +507,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -568,77 +528,67 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_; + private int pageNumber_ ; /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return The pageNumber. */ @java.lang.Override @@ -646,45 +596,39 @@ public int getPageNumber() { return pageNumber_; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** - * - * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; - * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,12 +638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p4beta1.ImageAnnotationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(); } @@ -708,16 +652,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java index 326a4a538..73a22344a 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java @@ -1,63 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageAnnotationContextOrBuilder - extends +public interface ImageAnnotationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; - * * @return The pageNumber. */ int getPageNumber(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..f3ee62adc --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java @@ -0,0 +1,767 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p4beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p4b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032(google/cloud/vision/v1p4be" + + "ta1/face.proto\032,google/cloud/vision/v1p4" + + "beta1/geometry.proto\0322google/cloud/visio" + + "n/v1p4beta1/product_search.proto\0323google" + + "/cloud/vision/v1p4beta1/text_annotation." + + "proto\0321google/cloud/vision/v1p4beta1/web" + + "_detection.proto\032#google/longrunning/ope" + + "rations.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\027google/rpc/status.proto\032\027google/type/c" + + "olor.proto\032\030google/type/latlng.proto\"\216\003\n" + + "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" + + "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" + + "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" + + "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" + + "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" + + "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" + + "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" + + "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" + + "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" + + "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" + + "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" + + "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" + + "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" + + "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" + + "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" + + "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" + + "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" + + "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." + + "google.cloud.vision.v1p4beta1.FaceAnnota" + + "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" + + "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" + + "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" + + "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" + + ".google.cloud.vision.v1p4beta1.Likelihoo" + + "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" + + "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" + + "_likelihood\030\013 \001(\0162).google.cloud.vision." + + "v1p4beta1.Likelihood\022F\n\023surprise_likelih" + + "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" + + "1.Likelihood\022K\n\030under_exposed_likelihood" + + "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" + + "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." + + "google.cloud.vision.v1p4beta1.Likelihood" + + "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" + + "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" + + "gnition_result\030\020 \003(\01324.google.cloud.visi" + + "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" + + "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" + + "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" + + "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" + + "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" + + "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" + + "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" + + "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" + + "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" + + "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" + + "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" + + "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" + + "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" + + "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" + + "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" + + "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" + + "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" + + "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" + + "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" + + "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" + + "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" + + "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" + + "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" + + "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" + + "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" + + "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." + + "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" + + "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" + + "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" + + "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" + + "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" + + "gle.cloud.vision.v1p4beta1.BoundingPoly\022" + + ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" + + ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " + + "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" + + "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" + + "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" + + " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" + + "(\0132+.google.cloud.vision.v1p4beta1.Bound" + + "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" + + "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." + + "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" + + ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" + + "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" + + "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" + + "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " + + "\001(\0162).google.cloud.vision.v1p4beta1.Like" + + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" + + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" + + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" + + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" + + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" + + "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" + + "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" + + "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" + + "(\01327.google.cloud.vision.v1p4beta1.Domin" + + "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" + + "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" + + "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" + + "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" + + "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" + + ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" + + "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" + + "bDetectionParams\022\033\n\023include_geo_results\030" + + "\002 \001(\010\"c\n\023TextDetectionParams\022.\n&enable_t" + + "ext_detection_confidence_score\030\t \001(\010\022\034\n\024" + + "advanced_ocr_options\030\013 \003(\t\"\202\004\n\014ImageCont" + + "ext\022A\n\rlat_long_rect\030\001 \001(\0132*.google.clou" + + "d.vision.v1p4beta1.LatLongRect\022\026\n\016langua" + + "ge_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(" + + "\0132..google.cloud.vision.v1p4beta1.CropHi" + + "ntsParams\022U\n\027face_recognition_params\030\n \001" + + "(\01324.google.cloud.vision.v1p4beta1.FaceR" + + "ecognitionParams\022Q\n\025product_search_param" + + "s\030\005 \001(\01322.google.cloud.vision.v1p4beta1." + + "ProductSearchParams\022O\n\024web_detection_par" + + "ams\030\006 \001(\01321.google.cloud.vision.v1p4beta" + + "1.WebDetectionParams\022Q\n\025text_detection_p" + + "arams\030\014 \001(\01322.google.cloud.vision.v1p4be" + + "ta1.TextDetectionParams\"\311\001\n\024AnnotateImag" + + "eRequest\0223\n\005image\030\001 \001(\0132$.google.cloud.v" + + "ision.v1p4beta1.Image\0228\n\010features\030\002 \003(\0132" + + "&.google.cloud.vision.v1p4beta1.Feature\022" + + "B\n\rimage_context\030\003 \001(\0132+.google.cloud.vi" + + "sion.v1p4beta1.ImageContext\":\n\026ImageAnno" + + "tationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numbe" + + "r\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fac" + + "e_annotations\030\001 \003(\0132-.google.cloud.visio" + + "n.v1p4beta1.FaceAnnotation\022M\n\024landmark_a" + + "nnotations\030\002 \003(\0132/.google.cloud.vision.v" + + "1p4beta1.EntityAnnotation\022I\n\020logo_annota" + + "tions\030\003 \003(\0132/.google.cloud.vision.v1p4be" + + "ta1.EntityAnnotation\022J\n\021label_annotation" + + "s\030\004 \003(\0132/.google.cloud.vision.v1p4beta1." + + "EntityAnnotation\022^\n\034localized_object_ann" + + "otations\030\026 \003(\01328.google.cloud.vision.v1p" + + "4beta1.LocalizedObjectAnnotation\022I\n\020text" + + "_annotations\030\005 \003(\0132/.google.cloud.vision" + + ".v1p4beta1.EntityAnnotation\022K\n\024full_text" + + "_annotation\030\014 \001(\0132-.google.cloud.vision." + + "v1p4beta1.TextAnnotation\022S\n\026safe_search_" + + "annotation\030\006 \001(\01323.google.cloud.vision.v" + + "1p4beta1.SafeSearchAnnotation\022S\n\033image_p" + + "roperties_annotation\030\010 \001(\0132..google.clou" + + "d.vision.v1p4beta1.ImageProperties\022Q\n\025cr" + + "op_hints_annotation\030\013 \001(\01322.google.cloud" + + ".vision.v1p4beta1.CropHintsAnnotation\022B\n" + + "\rweb_detection\030\r \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.WebDetection\022S\n\026product_sea" + + "rch_results\030\016 \001(\01323.google.cloud.vision." + + "v1p4beta1.ProductSearchResults\022!\n\005error\030" + + "\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001" + + "(\01325.google.cloud.vision.v1p4beta1.Image" + + "AnnotationContext\"h\n\032BatchAnnotateImages" + + "Request\022J\n\010requests\030\001 \003(\01323.google.cloud" + + ".vision.v1p4beta1.AnnotateImageRequestB\003" + + "\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tre" + + "sponses\030\001 \003(\01324.google.cloud.vision.v1p4" + + "beta1.AnnotateImageResponse\"\344\001\n\023Annotate" + + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + + "le.cloud.vision.v1p4beta1.InputConfig\0228\n" + + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + + "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.ImageCont" + + "ext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFileRespo" + + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud" + + ".vision.v1p4beta1.InputConfig\022G\n\trespons" + + "es\030\002 \003(\01324.google.cloud.vision.v1p4beta1" + + ".AnnotateImageResponse\022\023\n\013total_pages\030\003 " + + "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"f" + + "\n\031BatchAnnotateFilesRequest\022I\n\010requests\030" + + "\001 \003(\01322.google.cloud.vision.v1p4beta1.An" + + "notateFileRequestB\003\340A\002\"d\n\032BatchAnnotateF" + + "ilesResponse\022F\n\tresponses\030\001 \003(\01323.google" + + ".cloud.vision.v1p4beta1.AnnotateFileResp" + + "onse\"\236\002\n\030AsyncAnnotateFileRequest\022@\n\014inp" + + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + + "p4beta1.InputConfig\0228\n\010features\030\002 \003(\0132&." + + "google.cloud.vision.v1p4beta1.Feature\022B\n" + + "\rimage_context\030\003 \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.ImageContext\022B\n\routput_conf" + + "ig\030\004 \001(\0132+.google.cloud.vision.v1p4beta1" + + ".OutputConfig\"_\n\031AsyncAnnotateFileRespon" + + "se\022B\n\routput_config\030\001 \001(\0132+.google.cloud" + + ".vision.v1p4beta1.OutputConfig\"\266\001\n\037Async" + + "BatchAnnotateImagesRequest\022J\n\010requests\030\001" + + " \003(\01323.google.cloud.vision.v1p4beta1.Ann" + + "otateImageRequestB\003\340A\002\022G\n\routput_config\030" + + "\002 \001(\0132+.google.cloud.vision.v1p4beta1.Ou" + + "tputConfigB\003\340A\002\"f\n AsyncBatchAnnotateIma" + + "gesResponse\022B\n\routput_config\030\001 \001(\0132+.goo" + + "gle.cloud.vision.v1p4beta1.OutputConfig\"" + + "p\n\036AsyncBatchAnnotateFilesRequest\022N\n\010req" + + "uests\030\001 \003(\01327.google.cloud.vision.v1p4be" + + "ta1.AsyncAnnotateFileRequestB\003\340A\002\"n\n\037Asy" + + "ncBatchAnnotateFilesResponse\022K\n\tresponse" + + "s\030\001 \003(\01328.google.cloud.vision.v1p4beta1." + + "AsyncAnnotateFileResponse\"o\n\013InputConfig" + + "\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud.visi" + + "on.v1p4beta1.GcsSource\022\017\n\007content\030\003 \001(\014\022" + + "\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gc" + + "s_destination\030\001 \001(\0132-.google.cloud.visio" + + "n.v1p4beta1.GcsDestination\022\022\n\nbatch_size" + + "\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsD" + + "estination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMet" + + "adata\022E\n\005state\030\001 \001(\01626.google.cloud.visi" + + "on.v1p4beta1.OperationMetadata.State\022/\n\013" + + "create_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013update_time\030\006 \001(\0132\032.google.prot" + + "obuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE" + + "\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNO" + + "WN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n" + + "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005" + + "2\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateIma" + + "ges\0229.google.cloud.vision.v1p4beta1.Batc" + + "hAnnotateImagesRequest\032:.google.cloud.vi" + + "sion.v1p4beta1.BatchAnnotateImagesRespon" + + "se\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:annotate:\001" + + "*\332A\010requests\022\272\001\n\022BatchAnnotateFiles\0228.go" + + "ogle.cloud.vision.v1p4beta1.BatchAnnotat" + + "eFilesRequest\0329.google.cloud.vision.v1p4" + + "beta1.BatchAnnotateFilesResponse\"/\202\323\344\223\002\036" + + "\"\031/v1p4beta1/files:annotate:\001*\332A\010request" + + "s\022\374\001\n\030AsyncBatchAnnotateImages\022>.google." + + "cloud.vision.v1p4beta1.AsyncBatchAnnotat" + + "eImagesRequest\032\035.google.longrunning.Oper" + + "ation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:asyncB" + + "atchAnnotate:\001*\332A\026requests,output_config" + + "\312A5\n AsyncBatchAnnotateImagesResponse\022\021O" + + "perationMetadata\022\351\001\n\027AsyncBatchAnnotateF" + + "iles\022=.google.cloud.vision.v1p4beta1.Asy" + + "ncBatchAnnotateFilesRequest\032\035.google.lon" + + "grunning.Operation\"p\202\323\344\223\002(\"#/v1p4beta1/f" + + "iles:asyncBatchAnnotate:\001*\332A\010requests\312A4" + + "\n\037AsyncBatchAnnotateFilesResponse\022\021Opera" + + "tionMetadata\032v\312A\025vision.googleapis.com\322A" + + "[https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-visionB\211\001\n!com.google.cloud.vision" + + ".v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/v" + + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor, + new java.lang.String[] { "Type", "MaxResults", "Model", }); + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor, + new java.lang.String[] { "GcsImageUri", "ImageUri", }); + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor, + new java.lang.String[] { "Content", "Source", }); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor, + new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", "RecognitionResult", }); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { "Type", "Position", }); + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor, + new java.lang.String[] { "LatLng", }); + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor, + new java.lang.String[] { "Name", "Value", "Uint64Value", }); + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor, + new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor, + new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", }); + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor, + new java.lang.String[] { "MinLatLng", "MaxLatLng", }); + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor, + new java.lang.String[] { "Color", "Score", "PixelFraction", }); + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { "Colors", }); + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor, + new java.lang.String[] { "DominantColors", }); + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor, + new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { "CropHints", }); + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor, + new java.lang.String[] { "AspectRatios", }); + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor, + new java.lang.String[] { "IncludeGeoResults", }); + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor, + new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor, + new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "FaceRecognitionParams", "ProductSearchParams", "WebDetectionParams", "TextDetectionParams", }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { "Image", "Features", "ImageContext", }); + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { "Uri", "PageNumber", }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "LocalizedObjectAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "ProductSearchResults", "Error", "Context", }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor, + new java.lang.String[] { "InputConfig", "Features", "ImageContext", "Pages", }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { "InputConfig", "Responses", "TotalPages", "Error", }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { "OutputConfig", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { "Requests", "OutputConfig", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { "OutputConfig", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { "Responses", }); + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Content", "MimeType", }); + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BatchSize", }); + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor, + new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java index 2d274047f..5f620da30 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageContext} */ -public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageContext) ImageContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,124 +54,100 @@ private ImageContext( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = input.readMessage(com.google.cloud.vision.v1p4beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + case 34: { + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); + } + productSearchParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; + + break; + } + case 50: { + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); } - case 34: - { - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.CropHintsParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; + webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); - } - productSearchParams_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSearchParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 82: { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder subBuilder = null; + if (faceRecognitionParams_ != null) { + subBuilder = faceRecognitionParams_.toBuilder(); } - case 50: - { - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); - } - webDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); - } - - break; + faceRecognitionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(faceRecognitionParams_); + faceRecognitionParams_ = subBuilder.buildPartial(); } - case 82: - { - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder subBuilder = null; - if (faceRecognitionParams_ != null) { - subBuilder = faceRecognitionParams_.toBuilder(); - } - faceRecognitionParams_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(faceRecognitionParams_); - faceRecognitionParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); } - case 98: - { - com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); - } - textDetectionParams_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextDetectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); - } - - break; + textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -196,7 +155,8 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -205,33 +165,27 @@ private ImageContext( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageContext.class, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageContext.class, com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.LatLongRect latLongRect_; /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -239,25 +193,18 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null - ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; } /** - * - * *
    * Not used.
    * 
@@ -272,8 +219,6 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -286,15 +231,13 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_; } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -307,15 +250,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -328,7 +268,6 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -336,8 +275,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -350,25 +287,22 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.CropHintsParams cropHintsParams_; /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -376,25 +310,18 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -409,14 +336,11 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int FACE_RECOGNITION_PARAMS_FIELD_NUMBER = 10; private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; /** - * - * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * * @return Whether the faceRecognitionParams field is set. */ @java.lang.Override @@ -424,25 +348,18 @@ public boolean hasFaceRecognitionParams() { return faceRecognitionParams_ != null; } /** - * - * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * * @return The faceRecognitionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { - return faceRecognitionParams_ == null - ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() - : faceRecognitionParams_; + return faceRecognitionParams_ == null ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; } /** - * - * *
    * Parameters for face recognition.
    * 
@@ -450,22 +367,18 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitio * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder - getFaceRecognitionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder() { return getFaceRecognitionParams(); } public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -473,25 +386,18 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } /** - * - * *
    * Parameters for product search.
    * 
@@ -499,22 +405,18 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchPar * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder - getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { return getProductSearchParams(); } public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p4beta1.WebDetectionParams webDetectionParams_; /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -522,25 +424,18 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } /** - * - * *
    * Parameters for web detection.
    * 
@@ -548,22 +443,18 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p4beta1.TextDetectionParams textDetectionParams_; /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -571,25 +462,18 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } /** - * - * *
    * Parameters for text detection and document text detection.
    * 
@@ -597,13 +481,11 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -615,7 +497,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -647,7 +530,8 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -658,21 +542,24 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWebDetectionParams()); } if (faceRecognitionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFaceRecognitionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getFaceRecognitionParams()); } if (textDetectionParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -682,38 +569,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageContext other = - (com.google.cloud.vision.v1p4beta1.ImageContext) obj; + com.google.cloud.vision.v1p4beta1.ImageContext other = (com.google.cloud.vision.v1p4beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect().equals(other.getLatLongRect())) return false; + if (!getLatLongRect() + .equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList() + .equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams() + .equals(other.getCropHintsParams())) return false; } if (hasFaceRecognitionParams() != other.hasFaceRecognitionParams()) return false; if (hasFaceRecognitionParams()) { - if (!getFaceRecognitionParams().equals(other.getFaceRecognitionParams())) return false; + if (!getFaceRecognitionParams() + .equals(other.getFaceRecognitionParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams() + .equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams() + .equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams() + .equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -759,127 +652,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageContext} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageContext) com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageContext.class, - com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageContext.class, com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder() @@ -887,15 +771,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -941,9 +826,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override @@ -962,8 +847,7 @@ public com.google.cloud.vision.v1p4beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageContext result = - new com.google.cloud.vision.v1p4beta1.ImageContext(this); + com.google.cloud.vision.v1p4beta1.ImageContext result = new com.google.cloud.vision.v1p4beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -1008,39 +892,38 @@ public com.google.cloud.vision.v1p4beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageContext) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageContext)other); } else { super.mergeFrom(other); return this; @@ -1105,52 +988,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> - latLongRectBuilder_; + com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> latLongRectBuilder_; /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** - * - * *
      * Not used.
      * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ public com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null - ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** - * - * *
      * Not used.
      * 
@@ -1171,8 +1040,6 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect valu return this; } /** - * - * *
      * Not used.
      * 
@@ -1191,8 +1058,6 @@ public Builder setLatLongRect( return this; } /** - * - * *
      * Not used.
      * 
@@ -1203,9 +1068,7 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder(latLongRect_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); } else { latLongRect_ = value; } @@ -1217,8 +1080,6 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect va return this; } /** - * - * *
      * Not used.
      * 
@@ -1237,8 +1098,6 @@ public Builder clearLatLongRect() { return this; } /** - * - * *
      * Not used.
      * 
@@ -1246,13 +1105,11 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p4beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** - * - * *
      * Not used.
      * 
@@ -1263,14 +1120,11 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null - ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() - : latLongRect_; + return latLongRect_ == null ? + com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; } } /** - * - * *
      * Not used.
      * 
@@ -1278,34 +1132,27 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, - com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder>( - getLatLongRect(), getParentForChildren(), isClean()); + latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder>( + getLatLongRect(), + getParentForChildren(), + isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1318,15 +1165,13 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1339,15 +1184,12 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() {
      * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1360,7 +1202,6 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1368,8 +1209,6 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1382,16 +1221,14 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1404,23 +1241,21 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) {
      * 
* * repeated string language_hints = 2; - * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints(int index, java.lang.String value) { + public Builder setLanguageHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1433,22 +1268,20 @@ public Builder setLanguageHints(int index, java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints(java.lang.String value) { + public Builder addLanguageHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1461,19 +1294,18 @@ public Builder addLanguageHints(java.lang.String value) {
      * 
* * repeated string language_hints = 2; - * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints(java.lang.Iterable values) { + public Builder addAllLanguageHints( + java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); onChanged(); return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1486,7 +1318,6 @@ public Builder addAllLanguageHints(java.lang.Iterable values)
      * 
* * repeated string language_hints = 2; - * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1496,8 +1327,6 @@ public Builder clearLanguageHints() { return this; } /** - * - * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1510,15 +1339,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; - * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1527,47 +1356,34 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p4beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> - cropHintsParamsBuilder_; + com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1588,8 +1404,6 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsPar return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1608,8 +1422,6 @@ public Builder setCropHintsParams( return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1620,9 +1432,7 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder(cropHintsParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); } else { cropHintsParams_ = value; } @@ -1634,8 +1444,6 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsP return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1654,8 +1462,6 @@ public Builder clearCropHintsParams() { return this; } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1663,32 +1469,26 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder - getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null - ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() - : cropHintsParams_; + return cropHintsParams_ == null ? + com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; } } /** - * - * *
      * Parameters for crop hints annotation request.
      * 
@@ -1696,17 +1496,14 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder getCropHintsPar * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, - com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), getParentForChildren(), isClean()); + cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), + getParentForChildren(), + isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1714,58 +1511,41 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder getCropHintsPar private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> - faceRecognitionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> faceRecognitionParamsBuilder_; /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; * @return Whether the faceRecognitionParams field is set. */ public boolean hasFaceRecognitionParams() { return faceRecognitionParamsBuilder_ != null || faceRecognitionParams_ != null; } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; * @return The faceRecognitionParams. */ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { if (faceRecognitionParamsBuilder_ == null) { - return faceRecognitionParams_ == null - ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() - : faceRecognitionParams_; + return faceRecognitionParams_ == null ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; } else { return faceRecognitionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - public Builder setFaceRecognitionParams( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + public Builder setFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { if (faceRecognitionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1779,14 +1559,11 @@ public Builder setFaceRecognitionParams( return this; } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ public Builder setFaceRecognitionParams( com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder builderForValue) { @@ -1800,24 +1577,17 @@ public Builder setFaceRecognitionParams( return this; } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - public Builder mergeFaceRecognitionParams( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + public Builder mergeFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { if (faceRecognitionParamsBuilder_ == null) { if (faceRecognitionParams_ != null) { faceRecognitionParams_ = - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder( - faceRecognitionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder(faceRecognitionParams_).mergeFrom(value).buildPartial(); } else { faceRecognitionParams_ = value; } @@ -1829,14 +1599,11 @@ public Builder mergeFaceRecognitionParams( return this; } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ public Builder clearFaceRecognitionParams() { if (faceRecognitionParamsBuilder_ == null) { @@ -1850,63 +1617,48 @@ public Builder clearFaceRecognitionParams() { return this; } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder - getFaceRecognitionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder getFaceRecognitionParamsBuilder() { + onChanged(); return getFaceRecognitionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder - getFaceRecognitionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder() { if (faceRecognitionParamsBuilder_ != null) { return faceRecognitionParamsBuilder_.getMessageOrBuilder(); } else { - return faceRecognitionParams_ == null - ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() - : faceRecognitionParams_; + return faceRecognitionParams_ == null ? + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; } } /** - * - * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> getFaceRecognitionParamsFieldBuilder() { if (faceRecognitionParamsBuilder_ == null) { - faceRecognitionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, - com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder>( - getFaceRecognitionParams(), getParentForChildren(), isClean()); + faceRecognitionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder>( + getFaceRecognitionParams(), + getParentForChildren(), + isClean()); faceRecognitionParams_ = null; } return faceRecognitionParamsBuilder_; @@ -1914,55 +1666,41 @@ public Builder clearFaceRecognitionParams() { private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> - productSearchParamsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public Builder setProductSearchParams( - com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { + public Builder setProductSearchParams(com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1976,8 +1714,6 @@ public Builder setProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -1996,22 +1732,17 @@ public Builder setProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public Builder mergeProductSearchParams( - com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { + public Builder mergeProductSearchParams(com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder(productSearchParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); } else { productSearchParams_ = value; } @@ -2023,8 +1754,6 @@ public Builder mergeProductSearchParams( return this; } /** - * - * *
      * Parameters for product search.
      * 
@@ -2043,42 +1772,33 @@ public Builder clearProductSearchParams() { return this; } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder - getProductSearchParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder getProductSearchParamsBuilder() { + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder - getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() - : productSearchParams_; + return productSearchParams_ == null ? + com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; } } /** - * - * *
      * Parameters for product search.
      * 
@@ -2086,17 +1806,14 @@ public Builder clearProductSearchParams() { * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), getParentForChildren(), isClean()); + productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), + getParentForChildren(), + isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -2104,55 +1821,41 @@ public Builder clearProductSearchParams() { private com.google.cloud.vision.v1p4beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> - webDetectionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams( - com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { + public Builder setWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2166,8 +1869,6 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -2186,22 +1887,17 @@ public Builder setWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams( - com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder(webDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); } else { webDetectionParams_ = value; } @@ -2213,8 +1909,6 @@ public Builder mergeWebDetectionParams( return this; } /** - * - * *
      * Parameters for web detection.
      * 
@@ -2233,42 +1927,33 @@ public Builder clearWebDetectionParams() { return this; } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder - getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder - getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() - : webDetectionParams_; + return webDetectionParams_ == null ? + com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; } } /** - * - * *
      * Parameters for web detection.
      * 
@@ -2276,17 +1961,14 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), getParentForChildren(), isClean()); + webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), + getParentForChildren(), + isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -2294,55 +1976,41 @@ public Builder clearWebDetectionParams() { private com.google.cloud.vision.v1p4beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, - com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> - textDetectionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams( - com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { + public Builder setTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2356,8 +2024,6 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2376,22 +2042,17 @@ public Builder setTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams( - com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder(textDetectionParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); } else { textDetectionParams_ = value; } @@ -2403,8 +2064,6 @@ public Builder mergeTextDetectionParams( return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2423,42 +2082,33 @@ public Builder clearTextDetectionParams() { return this; } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder - getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder - getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null - ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() - : textDetectionParams_; + return textDetectionParams_ == null ? + com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; } } /** - * - * *
      * Parameters for text detection and document text detection.
      * 
@@ -2466,24 +2116,21 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, - com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, - com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, - com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), getParentForChildren(), isClean()); + textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), + getParentForChildren(), + isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2493,12 +2140,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageContext) private static final com.google.cloud.vision.v1p4beta1.ImageContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageContext(); } @@ -2507,16 +2154,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2531,4 +2178,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java similarity index 88% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java index a75d128cf..7c65993e3 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageContextOrBuilder - extends +public interface ImageContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** - * - * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; - * * @return The latLongRect. */ com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect(); /** - * - * *
    * Not used.
    * 
@@ -59,8 +35,6 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -73,13 +47,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return A list containing the languageHints. */ - java.util.List getLanguageHintsList(); + java.util.List + getLanguageHintsList(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -92,13 +64,10 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @return The count of languageHints. */ int getLanguageHintsCount(); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -111,14 +80,11 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** - * - * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -131,39 +97,31 @@ public interface ImageContextOrBuilder
    * 
* * repeated string language_hints = 2; - * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString getLanguageHintsBytes(int index); + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; - * * @return The cropHintsParams. */ com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams(); /** - * - * *
    * Parameters for crop hints annotation request.
    * 
@@ -173,68 +131,51 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** - * - * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * * @return Whether the faceRecognitionParams field is set. */ boolean hasFaceRecognitionParams(); /** - * - * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; - * * @return The faceRecognitionParams. */ com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams(); /** - * - * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder - getFaceRecognitionParamsOrBuilder(); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; - * * @return The productSearchParams. */ com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams(); /** - * - * *
    * Parameters for product search.
    * 
@@ -244,32 +185,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; - * * @return The webDetectionParams. */ com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams(); /** - * - * *
    * Parameters for web detection.
    * 
@@ -279,32 +212,24 @@ public interface ImageContextOrBuilder com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; - * * @return The textDetectionParams. */ com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams(); /** - * - * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java index c8d901bad..710fcc3e1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -33,14 +15,11 @@ public interface ImageOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -48,13 +27,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -62,13 +38,10 @@ public interface ImageOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; - * * @return The source. */ com.google.cloud.vision.v1p4beta1.ImageSource getSource(); /** - * - * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
similarity index 69%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
index 13968dfc8..14f27e7c7 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageProperties} */ -public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageProperties) ImagePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageProperties() {} + private ImageProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageProperties( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); - } - dominantColors_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dominantColors_ = input.readMessage(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageProperties.class, - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageProperties.class, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominantColors_; /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null - ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } /** - * - * *
    * If present, dominant colors completed successfully.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageProperties other = - (com.google.cloud.vision.v1p4beta1.ImageProperties) obj; + com.google.cloud.vision.v1p4beta1.ImageProperties other = (com.google.cloud.vision.v1p4beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors().equals(other.getDominantColors())) return false; + if (!getDominantColors() + .equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageProperties) com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageProperties.class, - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageProperties.class, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder() @@ -367,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override @@ -410,8 +370,7 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageProperties result = - new com.google.cloud.vision.v1p4beta1.ImageProperties(this); + com.google.cloud.vision.v1p4beta1.ImageProperties result = new com.google.cloud.vision.v1p4beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageProperties) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageProperties)other); } else { super.mergeFrom(other); return this; @@ -465,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance()) return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -489,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> - dominantColorsBuilder_; + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null - ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { + public Builder setDominantColors(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -564,8 +506,6 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -584,22 +524,17 @@ public Builder setDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder(dominantColors_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); } else { dominantColors_ = value; } @@ -611,8 +546,6 @@ public Builder mergeDominantColors( return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -631,42 +564,33 @@ public Builder clearDominantColors() { return this; } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder - getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder - getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null - ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() - : dominantColors_; + return dominantColors_ == null ? + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; } } /** - * - * *
      * If present, dominant colors completed successfully.
      * 
@@ -674,24 +598,21 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), getParentForChildren(), isClean()); + dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), + getParentForChildren(), + isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageProperties) private static final com.google.cloud.vision.v1p4beta1.ImageProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageProperties(); } @@ -715,16 +636,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java index 4a6497c4c..b0fffd0ba 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImagePropertiesOrBuilder - extends +public interface ImagePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; - * * @return The dominantColors. */ com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors(); /** - * - * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java similarity index 77% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java index e18486524..0bb4bbfa1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageSource} */ -public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageSource) ImageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -44,15 +26,16 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ImageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageSource.class, - com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageSource.class, com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -135,7 +112,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ @java.lang.Override @@ -144,15 +120,14 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -162,15 +137,16 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -181,8 +157,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -201,7 +175,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
    * 
* * string image_uri = 2; - * * @return The imageUri. */ @java.lang.Override @@ -210,15 +183,14 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -237,15 +209,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -254,7 +227,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -296,16 +269,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageSource other = - (com.google.cloud.vision.v1p4beta1.ImageSource) obj; + com.google.cloud.vision.v1p4beta1.ImageSource other = (com.google.cloud.vision.v1p4beta1.ImageSource) obj; - if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; + if (!getGcsImageUri() + .equals(other.getGcsImageUri())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +300,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageSource) com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageSource.class, - com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageSource.class, com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder() @@ -454,15 +419,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p4beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageSource result = - new com.google.cloud.vision.v1p4beta1.ImageSource(this); + com.google.cloud.vision.v1p4beta1.ImageSource result = new com.google.cloud.vision.v1p4beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -507,39 +472,38 @@ public com.google.cloud.vision.v1p4beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageSource) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageSource)other); } else { super.mergeFrom(other); return this; @@ -587,8 +551,6 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -598,13 +560,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -613,8 +575,6 @@ public java.lang.String getGcsImageUri() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -624,14 +584,15 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString getGcsImageUriBytes() { + public com.google.protobuf.ByteString + getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -639,8 +600,6 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() { } } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,22 +609,20 @@ public com.google.protobuf.ByteString getGcsImageUriBytes() {
      * 
* * string gcs_image_uri = 1; - * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri(java.lang.String value) { + public Builder setGcsImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -675,18 +632,15 @@ public Builder setGcsImageUri(java.lang.String value) {
      * 
* * string gcs_image_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** - * - * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -696,16 +650,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; - * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -713,8 +667,6 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -733,13 +685,13 @@ public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 2; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -748,8 +700,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -768,14 +718,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -783,8 +734,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -803,22 +752,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 2; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -837,18 +784,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 2; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -867,23 +811,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageSource) private static final com.google.cloud.vision.v1p4beta1.ImageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageSource(); } @@ -907,16 +851,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java index ddaf2c110..f0aaf41fd 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageSourceOrBuilder - extends +public interface ImageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -35,13 +17,10 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** - * - * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -51,14 +30,12 @@ public interface ImageSourceOrBuilder
    * 
* * string gcs_image_uri = 1; - * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString getGcsImageUriBytes(); + com.google.protobuf.ByteString + getGcsImageUriBytes(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -77,13 +54,10 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -102,8 +76,8 @@ public interface ImageSourceOrBuilder
    * 
* * string image_uri = 2; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java similarity index 83% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java index 42d3e7f41..fb590200b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsGcsSource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              csvFileUri_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            csvFileUri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class,
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
-   *
-   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -172,7 +150,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ @java.lang.Override @@ -181,15 +158,14 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -243,15 +219,16 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -260,7 +237,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +248,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -296,15 +273,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other = - (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri() + .equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,104 +301,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -429,23 +398,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class,
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder()
@@ -453,15 +420,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,14 +439,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource
-        getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
     }
 
@@ -493,8 +460,7 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource result =
-          new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -504,39 +470,38 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -544,9 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other) {
-      if (other
-          == com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -570,8 +533,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -583,8 +545,6 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
-     *
-     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -638,13 +598,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -653,8 +613,6 @@ public java.lang.String getCsvFileUri() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -708,14 +666,15 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString getCsvFileUriBytes() { + public com.google.protobuf.ByteString + getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -723,8 +682,6 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() { } } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -778,22 +735,20 @@ public com.google.protobuf.ByteString getCsvFileUriBytes() {
      * 
* * string csv_file_uri = 1; - * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri(java.lang.String value) { + public Builder setCsvFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -847,18 +802,15 @@ public Builder setCsvFileUri(java.lang.String value) {
      * 
* * string csv_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** - * - * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -912,23 +864,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; - * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,13 +890,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) - private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(); } @@ -953,16 +904,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +928,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java similarity index 89% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java index dd1f2d87c..adea37a5b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ImportProductSetsGcsSourceOrBuilder - extends +public interface ImportProductSetsGcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -79,13 +61,10 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** - * - * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -139,8 +118,8 @@ public interface ImportProductSetsGcsSourceOrBuilder
    * 
* * string csv_file_uri = 1; - * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString getCsvFileUriBytes(); + com.google.protobuf.ByteString + getCsvFileUriBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java similarity index 68% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java index 54314a249..c703bb523 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportProductSetsInputConfig() {} + private ImportProductSetsInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,27 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder subBuilder = - null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_) - .toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +80,34 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -151,35 +123,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -187,27 +154,22 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -216,16 +178,14 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource
    * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder
-      getGcsSourceOrBuilder() {
+  public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_;
+       return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -237,10 +197,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
-      output.writeMessage(
-          1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
+      output.writeMessage(1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
     }
     unknownFields.writeTo(output);
   }
@@ -252,9 +212,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -264,18 +223,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other =
-        (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -305,127 +264,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder() @@ -433,15 +382,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -451,14 +401,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance(); } @@ -473,8 +422,7 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig result = - new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -491,39 +439,38 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)other); } else { super.mergeFrom(other); return this; @@ -531,19 +478,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other) { - if (other - == com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -564,9 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,12 +516,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -590,21 +531,16 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -612,15 +548,12 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -638,8 +571,6 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource } } /** - * - * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -647,8 +578,7 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
+    public Builder setGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -662,8 +592,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -683,8 +611,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -692,18 +618,12 @@ public Builder setGcsSource(
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder mergeGcsSource(
-        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
+    public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_
-                != com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource
-                    .getDefaultInstance()) {
-          source_ =
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder(
-                      (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -719,8 +639,6 @@ public Builder mergeGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -745,8 +663,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -754,13 +670,10 @@ public Builder clearGcsSource() {
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder
-        getGcsSourceBuilder() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -769,8 +682,7 @@ public Builder clearGcsSource() {
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder
-        getGcsSourceOrBuilder() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
       if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
@@ -781,8 +693,6 @@ public Builder clearGcsSource() {
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -791,33 +701,26 @@ public Builder clearGcsSource() {
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource,
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder,
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>
+        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
-          source_ =
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
+          source_ = com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource,
-                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder,
-                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -827,32 +730,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
-  private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig();
   }
 
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
-      getDefaultInstance() {
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsInputConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsInputConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -864,8 +765,9 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
-      getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
similarity index 67%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
index 1260a78e3..a76404b96 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ImportProductSetsInputConfigOrBuilder
-    extends
+public interface ImportProductSetsInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
similarity index 63%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
index eb8a03560..660a4779a 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,38 +53,32 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder subBuilder = - null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,42 +86,35 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig inputConfig_; /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -206,43 +169,30 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. The input content for the list of requests.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other = - (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) com.google.cloud.vision.v1p4beta1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.newBuilder() @@ -448,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -493,8 +437,7 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest result = - new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -509,39 +452,38 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -549,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -711,61 +631,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfig( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { + public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,15 +679,11 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -801,25 +697,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeInputConfig( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { + public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder( - inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -831,15 +719,11 @@ public Builder mergeInputConfig( return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -853,73 +737,55 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder - getInputConfigBuilder() { - + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. The input content for the list of requests.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(); } @@ -943,16 +809,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..719684bff --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface ImportProductSetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The inputConfig. + */ + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig(); + /** + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java similarity index 79% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java index 5c4a1043e..46f251f6a 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportProductSetsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -49,15 +31,16 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,35 +60,31 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                referenceImages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              referenceImages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              referenceImages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                statuses_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-              break;
+            referenceImages_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              statuses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            statuses_.add(
+                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,7 +92,8 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -125,27 +105,22 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class,
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -157,8 +132,6 @@ public java.util.List getRefer return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -166,13 +139,11 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -184,8 +155,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -214,8 +181,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -231,8 +196,6 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -244,12 +207,11 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List getStatusesOrBuilderList() {
+  public java.util.List 
+      getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -265,8 +227,6 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -282,8 +242,6 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -295,12 +253,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -312,7 +270,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -329,10 +288,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -342,16 +303,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other =
-        (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList().equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList()
+        .equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList()
+        .equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -377,104 +339,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -486,23 +440,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
       com.google.cloud.vision.v1p4beta1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class,
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.newBuilder()
@@ -510,18 +462,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -541,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -562,8 +514,7 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse result =
-          new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -591,39 +542,38 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -631,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.getDefaultInstance()) return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -651,10 +600,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResp
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReferenceImagesFieldBuilder()
-                    : null;
+            referenceImagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReferenceImagesFieldBuilder() : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -678,10 +626,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResp
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStatusesFieldBuilder()
-                    : null;
+            statusesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStatusesFieldBuilder() : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -706,8 +653,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -716,38 +662,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ =
-            new java.util.ArrayList(
-                referenceImages_);
+        referenceImages_ = new java.util.ArrayList(referenceImages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ReferenceImage,
-            com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder,
-            com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>
-        referenceImagesBuilder_;
+        com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImagesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesList() { + public java.util.List getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -755,8 +691,6 @@ private void ensureReferenceImagesIsMutable() { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -771,8 +705,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -787,8 +719,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -810,8 +740,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -830,8 +758,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -852,8 +778,6 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p4beta1.ReferenceIma return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -875,8 +799,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -895,8 +817,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -915,8 +835,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -927,7 +845,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -935,8 +854,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -954,8 +871,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -973,8 +888,6 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -986,8 +899,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -997,22 +908,19 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -1020,8 +928,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma } } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -1029,12 +935,10 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
@@ -1043,34 +947,26 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1080,22 +976,19 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private java.util.List statuses_ = java.util.Collections.emptyList(); - + private java.util.List statuses_ = + java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; /** - * - * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1114,8 +1007,6 @@ public java.util.List getStatusesList() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1134,8 +1025,6 @@ public int getStatusesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1154,8 +1043,6 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1166,7 +1053,8 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status value) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1180,8 +1068,6 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1192,7 +1078,8 @@ public Builder setStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1203,8 +1090,6 @@ public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1229,8 +1114,6 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1241,7 +1124,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status value) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1255,8 +1139,6 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1267,7 +1149,8 @@ public Builder addStatuses(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1278,8 +1161,6 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1290,7 +1171,8 @@ public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1301,8 +1183,6 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1313,10 +1193,12 @@ public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForVa
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(java.lang.Iterable values) {
+    public Builder addAllStatuses(
+        java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1324,8 +1206,6 @@ public Builder addAllStatuses(java.lang.Iterable
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1347,8 +1227,6 @@ public Builder clearStatuses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1370,8 +1248,6 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1382,12 +1258,11 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(
+        int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1398,16 +1273,14 @@ public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+        int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);
-      } else {
+        return statuses_.get(index);  } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1418,7 +1291,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesOrBuilderList() {
+    public java.util.List 
+         getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1426,8 +1300,6 @@ public java.util.List getStatusesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1439,11 +1311,10 @@ public java.util.List getStatusesOrBui
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1454,13 +1325,12 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
-      return getStatusesFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(
+        int index) {
+      return getStatusesFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1471,27 +1341,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List getStatusesBuilderList() {
+    public java.util.List 
+         getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                statuses_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1501,12 +1371,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse();
   }
@@ -1515,16 +1385,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ImportProductSetsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ImportProductSetsResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportProductSetsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ImportProductSetsResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1539,4 +1409,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
similarity index 78%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
index 498ccdf2e..01f166bcc 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
@@ -1,41 +1,22 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ImportProductSetsResponseOrBuilder
-    extends
+public interface ImportProductSetsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -44,8 +25,6 @@ public interface ImportProductSetsResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
@@ -54,30 +33,25 @@ public interface ImportProductSetsResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -88,10 +62,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesList();
+  java.util.List 
+      getStatusesList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -104,8 +77,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   com.google.rpc.Status getStatuses(int index);
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -118,8 +89,6 @@ public interface ImportProductSetsResponseOrBuilder
    */
   int getStatusesCount();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -130,10 +99,9 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List getStatusesOrBuilderList();
+  java.util.List 
+      getStatusesOrBuilderList();
   /**
-   *
-   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -144,5 +112,6 @@ public interface ImportProductSetsResponseOrBuilder
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
similarity index 73%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
index ccb0fd56b..3cb8c40ce 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { content_ = com.google.protobuf.ByteString.EMPTY; mimeType_ = ""; @@ -44,15 +26,16 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,41 +54,37 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - mimeType_ = s; - break; - } - case 26: - { - content_ = input.readBytes(); - break; + gcsSource_ = input.readMessage(com.google.cloud.vision.v1p4beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + case 26: { + + content_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,39 +92,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.InputConfig.class, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.InputConfig.class, com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.GcsSource gcsSource_; /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -153,25 +127,18 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; } /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -186,8 +153,6 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int CONTENT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString content_; /** - * - * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -197,7 +162,6 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde
    * 
* * bytes content = 3; - * * @return The content. */ @java.lang.Override @@ -208,15 +172,12 @@ public com.google.protobuf.ByteString getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -225,30 +186,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -257,7 +218,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -289,13 +250,15 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, content_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,20 +268,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.InputConfig other = - (com.google.cloud.vision.v1p4beta1.InputConfig) obj; + com.google.cloud.vision.v1p4beta1.InputConfig other = (com.google.cloud.vision.v1p4beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; } - if (!getContent().equals(other.getContent())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,127 +308,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.InputConfig) com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.InputConfig.class, - com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.InputConfig.class, com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder() @@ -471,15 +427,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override @@ -518,8 +475,7 @@ public com.google.cloud.vision.v1p4beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.InputConfig result = - new com.google.cloud.vision.v1p4beta1.InputConfig(this); + com.google.cloud.vision.v1p4beta1.InputConfig result = new com.google.cloud.vision.v1p4beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -535,39 +491,38 @@ public com.google.cloud.vision.v1p4beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.InputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -617,47 +572,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, - com.google.cloud.vision.v1p4beta1.GcsSource.Builder, - com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ public com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -678,8 +620,6 @@ public Builder setGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -698,8 +638,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -710,9 +648,7 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); } else { gcsSource_ = value; } @@ -724,8 +660,6 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -744,8 +678,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -753,13 +685,11 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p4beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -770,14 +700,11 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null - ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() - : gcsSource_; + return gcsSource_ == null ? + com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; } } /** - * - * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -785,17 +712,14 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, - com.google.cloud.vision.v1p4beta1.GcsSource.Builder, - com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, - com.google.cloud.vision.v1p4beta1.GcsSource.Builder, - com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder>( - getGcsSource(), getParentForChildren(), isClean()); + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder>( + getGcsSource(), + getParentForChildren(), + isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -803,8 +727,6 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -814,7 +736,6 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde
      * 
* * bytes content = 3; - * * @return The content. */ @java.lang.Override @@ -822,8 +743,6 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -833,22 +752,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 3; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -858,11 +774,10 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 3; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -870,21 +785,19 @@ public Builder clearContent() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -893,22 +806,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -916,71 +828,64 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -990,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.InputConfig) private static final com.google.cloud.vision.v1p4beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.InputConfig(); } @@ -1004,16 +909,16 @@ public static com.google.cloud.vision.v1p4beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java index 2183cd158..9f58b2070 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -59,8 +35,6 @@ public interface InputConfigOrBuilder com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -70,35 +44,29 @@ public interface InputConfigOrBuilder
    * 
* * bytes content = 3; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java index 0f7b90551..e0df3f18e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LatLongRect} */ -public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LatLongRect extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LatLongRect) LatLongRectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatLongRect() {} + private LatLongRect() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,41 +52,39 @@ private LatLongRect( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); } - case 18: - { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); - } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); - } - - break; + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,39 +92,34 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LatLongRect.class, - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p4beta1.LatLongRect.class, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -150,14 +127,11 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ @java.lang.Override @@ -165,8 +139,6 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** - * - * *
    * Min lat/long pair.
    * 
@@ -181,14 +153,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -196,14 +165,11 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ @java.lang.Override @@ -211,8 +177,6 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** - * - * *
    * Max lat/long pair.
    * 
@@ -225,7 +189,6 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -254,10 +218,12 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LatLongRect other = - (com.google.cloud.vision.v1p4beta1.LatLongRect) obj; + com.google.cloud.vision.v1p4beta1.LatLongRect other = (com.google.cloud.vision.v1p4beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng().equals(other.getMinLatLng())) return false; + if (!getMinLatLng() + .equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng() + .equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LatLongRect} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LatLongRect) com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LatLongRect.class, - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p4beta1.LatLongRect.class, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder() @@ -435,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override @@ -484,8 +443,7 @@ public com.google.cloud.vision.v1p4beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p4beta1.LatLongRect result = - new com.google.cloud.vision.v1p4beta1.LatLongRect(this); + com.google.cloud.vision.v1p4beta1.LatLongRect result = new com.google.cloud.vision.v1p4beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -504,39 +462,38 @@ public com.google.cloud.vision.v1p4beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LatLongRect) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LatLongRect)other); } else { super.mergeFrom(other); return this; @@ -582,31 +539,24 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -617,8 +567,6 @@ public com.google.type.LatLng getMinLatLng() { } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -639,15 +587,14 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng( + com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -658,8 +605,6 @@ public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -670,7 +615,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -682,8 +627,6 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -702,8 +645,6 @@ public Builder clearMinLatLng() { return this; } /** - * - * *
      * Min lat/long pair.
      * 
@@ -711,13 +652,11 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Min lat/long pair.
      * 
@@ -728,12 +667,11 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** - * - * *
      * Min lat/long pair.
      * 
@@ -741,14 +679,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); + minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMinLatLng(), + getParentForChildren(), + isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -756,31 +694,24 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -791,8 +722,6 @@ public com.google.type.LatLng getMaxLatLng() { } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -813,15 +742,14 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng( + com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -832,8 +760,6 @@ public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -844,7 +770,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -856,8 +782,6 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -876,8 +800,6 @@ public Builder clearMaxLatLng() { return this; } /** - * - * *
      * Max lat/long pair.
      * 
@@ -885,13 +807,11 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * Max lat/long pair.
      * 
@@ -902,12 +822,11 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** - * - * *
      * Max lat/long pair.
      * 
@@ -915,21 +834,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); + maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getMaxLatLng(), + getParentForChildren(), + isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LatLongRect) private static final com.google.cloud.vision.v1p4beta1.LatLongRect DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LatLongRect(); } @@ -953,16 +872,16 @@ public static com.google.cloud.vision.v1p4beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java index ce181ed3a..cdbd20fc7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LatLongRectOrBuilder - extends +public interface LatLongRectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; - * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** - * - * *
    * Min lat/long pair.
    * 
@@ -59,32 +35,24 @@ public interface LatLongRectOrBuilder com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; - * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** - * - * *
    * Max lat/long pair.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java similarity index 68% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java index 973d03e9c..c9e148cfe 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p4beta1.Likelihood}
  */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Unknown likelihood.
    * 
@@ -40,8 +22,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
    * It is very unlikely.
    * 
@@ -50,8 +30,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ VERY_UNLIKELY(1), /** - * - * *
    * It is unlikely.
    * 
@@ -60,8 +38,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ UNLIKELY(2), /** - * - * *
    * It is possible.
    * 
@@ -70,8 +46,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ POSSIBLE(3), /** - * - * *
    * It is likely.
    * 
@@ -80,8 +54,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ LIKELY(4), /** - * - * *
    * It is very likely.
    * 
@@ -93,8 +65,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown likelihood.
    * 
@@ -103,8 +73,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
    * It is very unlikely.
    * 
@@ -113,8 +81,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_UNLIKELY_VALUE = 1; /** - * - * *
    * It is unlikely.
    * 
@@ -123,8 +89,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNLIKELY_VALUE = 2; /** - * - * *
    * It is possible.
    * 
@@ -133,8 +97,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSSIBLE_VALUE = 3; /** - * - * *
    * It is likely.
    * 
@@ -143,8 +105,6 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIKELY_VALUE = 4; /** - * - * *
    * It is very likely.
    * 
@@ -153,6 +113,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERY_LIKELY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -177,57 +138,52 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return VERY_UNLIKELY; - case 2: - return UNLIKELY; - case 3: - return POSSIBLE; - case 4: - return LIKELY; - case 5: - return VERY_LIKELY; - default: - return null; + case 0: return UNKNOWN; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -243,3 +199,4 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p4beta1.Likelihood) } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java index 2cfac52fc..f06a7a024 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,14 +171,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,29 +184,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -284,7 +250,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -297,17 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other = - (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other = (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +300,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductSetsRequest) com.google.cloud.vision.v1p4beta1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.newBuilder() @@ -459,15 +418,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -502,8 +462,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest result = - new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest result = new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -515,39 +474,38 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -555,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -587,8 +544,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -600,23 +556,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -650,85 +599,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -736,36 +669,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -773,20 +700,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -795,21 +720,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -817,68 +741,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsRequest) private static final com.google.cloud.vision.v1p4beta1.ListProductSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(); } @@ -902,16 +819,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java index ca91b22a9..123a9b789 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductSetsRequestOrBuilder - extends +public interface ListProductSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java index 78e412970..1f6d9f941 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productSets_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + productSets_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -114,27 +94,22 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** - * - * *
    * List of ProductSets.
    * 
@@ -146,8 +121,6 @@ public java.util.List getProductSe return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -155,13 +128,11 @@ public java.util.List getProductSe * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** - * - * *
    * List of ProductSets.
    * 
@@ -173,8 +144,6 @@ public int getProductSetsCount() { return productSets_.size(); } /** - * - * *
    * List of ProductSets.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** - * - * *
    * List of ProductSets.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( + int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other = - (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other = (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) obj; - if (!getProductSetsList().equals(other.getProductSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductSetsList() + .equals(other.getProductSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductSetsResponse) com.google.cloud.vision.v1p4beta1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse result = - new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse result = new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()) return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsRespon productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductSetsFieldBuilder() - : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductSetsFieldBuilder() : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productSets_ = - new java.util.ArrayList(productSets_); + productSets_ = new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> - productSetsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetsBuilder_; /** - * - * *
      * List of ProductSets.
      * 
@@ -661,8 +605,6 @@ public java.util.List getProductSe } } /** - * - * *
      * List of ProductSets.
      * 
@@ -677,8 +619,6 @@ public int getProductSetsCount() { } } /** - * - * *
      * List of ProductSets.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public Builder setProductSets(int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { + public Builder setProductSets( + int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setProductSets(int index, com.google.cloud.vision.v1p4beta1.Produ return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -735,8 +672,6 @@ public Builder setProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -757,15 +692,14 @@ public Builder addProductSets(com.google.cloud.vision.v1p4beta1.ProductSet value return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public Builder addProductSets(int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { + public Builder addProductSets( + int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addProductSets(int index, com.google.cloud.vision.v1p4beta1.Produ return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -799,8 +731,6 @@ public Builder addProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -819,8 +749,6 @@ public Builder addProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -831,7 +759,8 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllProductSets( return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -858,8 +785,6 @@ public Builder clearProductSets() { return this; } /** - * - * *
      * List of ProductSets.
      * 
@@ -877,20 +802,17 @@ public Builder removeProductSets(int index) { return this; } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilder( + int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of ProductSets.
      * 
@@ -900,22 +822,19 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilde public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); - } else { + return productSets_.get(index); } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -923,8 +842,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBui } } /** - * - * *
      * List of ProductSets.
      * 
@@ -932,48 +849,42 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBui * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder(int index) { - return getProductSetsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder( + int index) { + return getProductSetsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); } /** - * - * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + productSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); productSets_ = null; } return productSetsBuilder_; @@ -981,21 +892,19 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1004,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1027,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsResponse) private static final com.google.cloud.vision.v1p4beta1.ListProductSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(); } @@ -1115,16 +1016,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java index 4c029ec87..d7fb99296 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductSetsResponseOrBuilder - extends +public interface ListProductSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - java.util.List getProductSetsList(); + java.util.List + getProductSetsList(); /** - * - * *
    * List of ProductSets.
    * 
@@ -44,8 +25,6 @@ public interface ListProductSetsResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index); /** - * - * *
    * List of ProductSets.
    * 
@@ -54,51 +33,43 @@ public interface ListProductSetsResponseOrBuilder */ int getProductSetsCount(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** - * - * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java index 853bffbfc..5a3f3996f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,43 +85,36 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -150,33 +123,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -187,14 +158,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -205,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -252,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -300,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,145 +302,134 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,14 +443,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance(); } @@ -508,8 +464,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -521,50 +476,46 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other) { + if (other == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -595,9 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -635,25 +580,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -661,88 +603,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -750,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -809,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -831,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -902,32 +812,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -939,8 +847,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java index 0eb4691bf..d85881897 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsInProductSetRequestOrBuilder - extends +public interface ListProductsInProductSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java index 654a94b31..87c18456e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsInProductSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,31 +55,28 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -114,27 +94,22 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * The list of Products.
    * 
@@ -146,8 +121,6 @@ public java.util.List getProductsList return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -155,13 +128,11 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * The list of Products.
    * 
@@ -173,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * The list of Products.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * The list of Products.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other = - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - .getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance(); } @java.lang.Override @@ -505,8 +458,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse build( @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse result = - new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -526,51 +478,46 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) { - return mergeFrom( - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other) { + if (other == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -589,10 +536,9 @@ public Builder mergeFrom( productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -621,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -632,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * The list of Products.
      * 
@@ -668,8 +605,6 @@ public java.util.List getProductsList } } /** - * - * *
      * The list of Products.
      * 
@@ -684,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * The list of Products.
      * 
@@ -700,15 +633,14 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product return this; } /** - * - * *
      * The list of Products.
      * 
@@ -742,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -764,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -786,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -805,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder bui return this; } /** - * - * *
      * The list of Products.
      * 
@@ -825,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -837,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -845,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * The list of Products.
      * 
@@ -864,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * The list of Products.
      * 
@@ -883,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -928,8 +842,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(i } } /** - * - * *
      * The list of Products.
      * 
@@ -937,48 +849,42 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** - * - * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -986,21 +892,19 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1009,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1032,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) - private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1037,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java index 44999f2cf..f3bf90041 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsInProductSetResponseOrBuilder - extends +public interface ListProductsInProductSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * The list of Products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsInProductSetResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.Product getProducts(int index); /** - * - * *
    * The list of Products.
    * 
@@ -54,51 +33,43 @@ public interface ListProductsInProductSetResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** - * - * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java index 47f8808f3..a9f76c9e5 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsRequest} */ -public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsRequest) ListProductsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProductsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,14 +173,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,29 +186,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -286,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -299,17 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsRequest other = - (com.google.cloud.vision.v1p4beta1.ListProductsRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductsRequest other = (com.google.cloud.vision.v1p4beta1.ListProductsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +302,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsRequest) com.google.cloud.vision.v1p4beta1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, - com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductsRequest.newBuilder() @@ -461,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override @@ -504,8 +464,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsRequest result = - new com.google.cloud.vision.v1p4beta1.ListProductsRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductsRequest result = new com.google.cloud.vision.v1p4beta1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -517,39 +476,38 @@ public com.google.cloud.vision.v1p4beta1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -589,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,24 +558,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,25 +580,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -654,88 +603,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -743,36 +676,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -780,20 +707,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -802,21 +727,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -824,68 +748,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsRequest) private static final com.google.cloud.vision.v1p4beta1.ListProductsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsRequest(); } @@ -909,16 +826,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,4 +850,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java index 090524e9e..900fcf86f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsRequestOrBuilder - extends +public interface ListProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java index cfb0d92f4..ac7a78e41 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsResponse} */ -public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProductsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsResponse) ListProductsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListProductsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - products_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + products_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -113,27 +94,22 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** - * - * *
    * List of products.
    * 
@@ -145,8 +121,6 @@ public java.util.List getProductsList return products_; } /** - * - * *
    * List of products.
    * 
@@ -154,13 +128,11 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** - * - * *
    * List of products.
    * 
@@ -172,8 +144,6 @@ public int getProductsCount() { return products_.size(); } /** - * - * *
    * List of products.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { return products_.get(index); } /** - * - * *
    * List of products.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsResponse other = - (com.google.cloud.vision.v1p4beta1.ListProductsResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductsResponse other = (com.google.cloud.vision.v1p4beta1.ListProductsResponse) obj; - if (!getProductsList().equals(other.getProductsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProductsList() + .equals(other.getProductsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListProductsResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsResponse) com.google.cloud.vision.v1p4beta1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, - com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductsResponse.newBuilder() @@ -453,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override @@ -500,8 +458,7 @@ public com.google.cloud.vision.v1p4beta1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsResponse result = - new com.google.cloud.vision.v1p4beta1.ListProductsResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductsResponse result = new com.google.cloud.vision.v1p4beta1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -521,39 +478,38 @@ public com.google.cloud.vision.v1p4beta1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsResponse)other); } else { super.mergeFrom(other); return this; @@ -561,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -581,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsResponse productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductsFieldBuilder() - : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductsFieldBuilder() : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -613,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListProductsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> - productsBuilder_; + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productsBuilder_; /** - * - * *
      * List of products.
      * 
@@ -659,8 +605,6 @@ public java.util.List getProductsList } } /** - * - * *
      * List of products.
      * 
@@ -675,8 +619,6 @@ public int getProductsCount() { } } /** - * - * *
      * List of products.
      * 
@@ -691,15 +633,14 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder setProducts( + int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +654,6 @@ public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product return this; } /** - * - * *
      * List of products.
      * 
@@ -733,8 +672,6 @@ public Builder setProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -755,15 +692,14 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder addProducts( + int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +713,14 @@ public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder addProducts( + com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -796,8 +731,6 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder bui return this; } /** - * - * *
      * List of products.
      * 
@@ -816,8 +749,6 @@ public Builder addProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -828,7 +759,8 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -836,8 +768,6 @@ public Builder addAllProducts( return this; } /** - * - * *
      * List of products.
      * 
@@ -855,8 +785,6 @@ public Builder clearProducts() { return this; } /** - * - * *
      * List of products.
      * 
@@ -874,44 +802,39 @@ public Builder removeProducts(int index) { return this; } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder( + int index) { return getProductsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index) { if (productsBuilder_ == null) { - return products_.get(index); - } else { + return products_.get(index); } else { return productsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +842,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(i } } /** - * - * *
      * List of products.
      * 
@@ -928,48 +849,42 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(i * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int index) { - return getProductsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( + int index) { + return getProductsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** - * - * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + products_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); products_ = null; } return productsBuilder_; @@ -977,21 +892,19 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsResponse) private static final com.google.cloud.vision.v1p4beta1.ListProductsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsResponse(); } @@ -1111,16 +1016,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java index 064f53dd1..5844ea2a1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsResponseOrBuilder - extends +public interface ListProductsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List getProductsList(); + java.util.List + getProductsList(); /** - * - * *
    * List of products.
    * 
@@ -44,8 +25,6 @@ public interface ListProductsResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.Product getProducts(int index); /** - * - * *
    * List of products.
    * 
@@ -54,51 +33,43 @@ public interface ListProductsResponseOrBuilder */ int getProductsCount(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** - * - * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java index 5eba823a6..45e744070 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,14 +158,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -213,7 +180,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -222,15 +188,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -238,15 +203,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -290,7 +256,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other = - (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest result = - new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,39 +480,38 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest)other); } else { super.mergeFrom(other); return this; @@ -562,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,24 +562,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,25 +584,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,88 +607,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -749,36 +680,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -786,8 +711,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -795,13 +718,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -810,8 +733,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -819,14 +740,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -834,8 +756,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -843,22 +763,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -866,18 +784,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -885,23 +800,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -911,13 +826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(); } @@ -926,16 +840,16 @@ public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java index a8a4fb83a..421a08033 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java @@ -1,77 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListReferenceImagesRequestOrBuilder - extends +public interface ListReferenceImagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -79,13 +49,10 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -93,8 +60,8 @@ public interface ListReferenceImagesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java index 2f5999148..3edd79740 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReferenceImagesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,33 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - referenceImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), - extensionRegistry)); - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + referenceImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry)); + break; + } + case 16: { - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +89,8 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -120,27 +99,22 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** - * - * *
    * The list of reference images.
    * 
@@ -152,8 +126,6 @@ public java.util.List getRefer return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -161,13 +133,11 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** - * - * *
    * The list of reference images.
    * 
@@ -179,8 +149,6 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** - * - * *
    * The list of reference images.
    * 
@@ -192,8 +160,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** - * - * *
    * The list of reference images.
    * 
@@ -209,14 +175,11 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -227,14 +190,11 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -243,29 +203,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -274,7 +234,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -306,10 +266,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -322,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other = - (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList() + .equals(other.getReferenceImagesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,127 +322,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.newBuilder() @@ -486,17 +440,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,14 +468,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance(); } @@ -536,8 +489,7 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse result = - new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,39 +510,38 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse)other); } else { super.mergeFrom(other); return this; @@ -598,9 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other) { - if (other - == com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()) return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -619,10 +568,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRe referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReferenceImagesFieldBuilder() - : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReferenceImagesFieldBuilder() : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -654,9 +602,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,38 +611,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = - new java.util.ArrayList( - referenceImages_); + referenceImages_ = new java.util.ArrayList(referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> - referenceImagesBuilder_; + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImagesBuilder_; /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesList() { + public java.util.List getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -704,8 +640,6 @@ private void ensureReferenceImagesIsMutable() { } } /** - * - * *
      * The list of reference images.
      * 
@@ -720,8 +654,6 @@ public int getReferenceImagesCount() { } } /** - * - * *
      * The list of reference images.
      * 
@@ -736,8 +668,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i } } /** - * - * *
      * The list of reference images.
      * 
@@ -759,8 +689,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -779,8 +707,6 @@ public Builder setReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -801,8 +727,6 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p4beta1.ReferenceIma return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -824,8 +748,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -844,8 +766,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -864,8 +784,6 @@ public Builder addReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -876,7 +794,8 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -884,8 +803,6 @@ public Builder addAllReferenceImages( return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -903,8 +820,6 @@ public Builder clearReferenceImages() { return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -922,8 +837,6 @@ public Builder removeReferenceImages(int index) { return this; } /** - * - * *
      * The list of reference images.
      * 
@@ -935,8 +848,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of reference images.
      * 
@@ -946,22 +857,19 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); - } else { + return referenceImages_.get(index); } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -969,8 +877,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma } } /** - * - * *
      * The list of reference images.
      * 
@@ -978,12 +884,10 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
@@ -992,34 +896,26 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** - * - * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1029,16 +925,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1046,36 +939,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1083,20 +970,18 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1105,21 +990,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1127,68 +1011,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1198,13 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(); } @@ -1213,16 +1089,16 @@ public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1113,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java index 99ca65159..0460633c3 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListReferenceImagesResponseOrBuilder - extends +public interface ListReferenceImagesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List getReferenceImagesList(); + java.util.List + getReferenceImagesList(); /** - * - * *
    * The list of reference images.
    * 
@@ -44,8 +25,6 @@ public interface ListReferenceImagesResponseOrBuilder */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int index); /** - * - * *
    * The list of reference images.
    * 
@@ -54,62 +33,51 @@ public interface ListReferenceImagesResponseOrBuilder */ int getReferenceImagesCount(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** - * - * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( + int index); /** - * - * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java index 5783f6bfe..d1e2d9eaf 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocalizedObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -45,15 +27,16 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,55 +55,49 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + case 42: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 37: - { - score_ = input.readFloat(); - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,39 +105,34 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -169,29 +141,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -202,8 +174,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -211,7 +181,6 @@ public com.google.protobuf.ByteString getMidBytes() {
    * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -220,15 +189,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -236,15 +204,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -255,14 +224,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -271,29 +237,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -304,14 +270,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -322,14 +285,11 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -337,25 +297,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -368,7 +321,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -415,10 +368,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -428,22 +383,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other = - (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -463,7 +422,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -474,127 +434,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.newBuilder() @@ -602,15 +552,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -653,8 +604,7 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation result = - new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -672,39 +622,38 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation)other); } else { super.mergeFrom(other); return this; @@ -712,8 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -751,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -764,20 +711,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -786,21 +731,20 @@ public java.lang.String getMid() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -808,61 +752,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -870,8 +807,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -879,13 +814,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -894,8 +829,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -903,14 +836,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -918,8 +852,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -927,22 +859,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -950,18 +880,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -969,16 +896,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -986,20 +913,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1008,21 +933,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1030,76 +954,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1107,36 +1021,30 @@ public float getScore() { return score_; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1144,47 +1052,34 @@ public Builder clearScore() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1205,8 +1100,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1225,8 +1118,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1237,9 +1128,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -1251,8 +1140,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1271,8 +1158,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1280,13 +1165,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1297,14 +1180,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1312,24 +1192,21 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1339,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(); } @@ -1353,16 +1230,16 @@ public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1377,4 +1254,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java index 655a25db6..f73265e41 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LocalizedObjectAnnotationOrBuilder - extends +public interface LocalizedObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -58,13 +35,10 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -72,76 +46,60 @@ public interface LocalizedObjectAnnotationOrBuilder
    * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; - * * @return The score. */ float getScore(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java index a96ef4372..7f8849a10 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocationInfo} */ -public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LocationInfo) LocationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LocationInfo() {} + private LocationInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,27 +52,26 @@ private LocationInfo( case 0: done = true; break; - case 10: - { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); - } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +79,34 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocationInfo.class, - com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p4beta1.LocationInfo.class, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -136,14 +114,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -151,8 +126,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * lat/long location coordinates.
    * 
@@ -165,7 +138,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -191,7 +164,8 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,17 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LocationInfo other = - (com.google.cloud.vision.v1p4beta1.LocationInfo) obj; + com.google.cloud.vision.v1p4beta1.LocationInfo other = (com.google.cloud.vision.v1p4beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -233,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LocationInfo) com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocationInfo.class, - com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p4beta1.LocationInfo.class, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LocationInfo.newBuilder() @@ -361,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override @@ -404,8 +370,7 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p4beta1.LocationInfo result = - new com.google.cloud.vision.v1p4beta1.LocationInfo(this); + com.google.cloud.vision.v1p4beta1.LocationInfo result = new com.google.cloud.vision.v1p4beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -419,39 +384,38 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LocationInfo) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LocationInfo)other); } else { super.mergeFrom(other); return this; @@ -494,31 +458,24 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -529,8 +486,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -551,15 +506,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -570,8 +524,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -581,7 +533,8 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = + com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -593,8 +546,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -613,8 +564,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -622,13 +571,11 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -639,12 +586,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * lat/long location coordinates.
      * 
@@ -652,21 +598,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocationInfo) private static final com.google.cloud.vision.v1p4beta1.LocationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LocationInfo(); } @@ -690,16 +636,16 @@ public static com.google.cloud.vision.v1p4beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java index b7044f9bc..f186f7fc0 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LocationInfoOrBuilder - extends +public interface LocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * lat/long location coordinates.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java similarity index 67% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java index 1d29d9c7b..8a6062a4a 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NormalizedVertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private NormalizedVertex() {}
+  private NormalizedVertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,23 +54,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,39 +78,34 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.NormalizedVertex.class,
-            com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p4beta1.NormalizedVertex.class, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -137,14 +116,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -153,7 +129,6 @@ public float getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,18 +173,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.NormalizedVertex other = - (com.google.cloud.vision.v1p4beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p4beta1.NormalizedVertex other = (com.google.cloud.vision.v1p4beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,112 +198,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -333,23 +307,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.NormalizedVertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.NormalizedVertex)
       com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.NormalizedVertex.class,
-              com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p4beta1.NormalizedVertex.class, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.NormalizedVertex.newBuilder()
@@ -357,15 +329,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -398,8 +371,7 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p4beta1.NormalizedVertex result =
-          new com.google.cloud.vision.v1p4beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p4beta1.NormalizedVertex result = new com.google.cloud.vision.v1p4beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -410,39 +382,38 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -450,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()) return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -477,8 +447,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -488,16 +457,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -505,51 +471,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -557,43 +514,37 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p4beta1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.NormalizedVertex(); } @@ -617,16 +568,16 @@ public static com.google.cloud.vision.v1p4beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..80edfacff --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java index 739315313..87edb7fc7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,45 @@ private OperationMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +99,36 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OperationMetadata.class, - com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p4beta1.OperationMetadata.class, com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); } /** - * - * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.OperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -164,8 +137,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is received.
      * 
@@ -174,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * Request is actively being processed.
      * 
@@ -184,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing is done.
      * 
@@ -194,8 +161,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DONE(3), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -207,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -217,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is received.
      * 
@@ -227,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * Request is actively being processed.
      * 
@@ -237,8 +196,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing is done.
      * 
@@ -247,8 +204,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -257,6 +212,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,55 +237,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATED; - case 2: - return RUNNING; - case 3: - return DONE; - case 4: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATED; + case 2: return RUNNING; + case 3: return DONE; + case 4: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.OperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,52 +301,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -402,14 +340,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ @java.lang.Override @@ -417,8 +352,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the batch request was received.
    * 
@@ -433,14 +366,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -448,14 +378,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -463,8 +390,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the operation result was last updated.
    * 
@@ -477,7 +402,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,10 +413,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -510,16 +433,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -529,22 +453,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.OperationMetadata other = - (com.google.cloud.vision.v1p4beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p4beta1.OperationMetadata other = (com.google.cloud.vision.v1p4beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -573,126 +498,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.OperationMetadata) com.google.cloud.vision.v1p4beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OperationMetadata.class, - com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p4beta1.OperationMetadata.class, com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.OperationMetadata.newBuilder() @@ -700,15 +616,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -730,9 +647,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -751,8 +668,7 @@ public com.google.cloud.vision.v1p4beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p4beta1.OperationMetadata result = - new com.google.cloud.vision.v1p4beta1.OperationMetadata(this); + com.google.cloud.vision.v1p4beta1.OperationMetadata result = new com.google.cloud.vision.v1p4beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -772,39 +688,38 @@ public com.google.cloud.vision.v1p4beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -812,8 +727,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p4beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.OperationMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -842,8 +756,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -855,67 +768,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = - com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -923,24 +820,21 @@ public Builder setState(com.google.cloud.vision.v1p4beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -948,47 +842,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1009,15 +890,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1028,8 +908,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1040,7 +918,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1052,8 +930,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1072,8 +948,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1081,13 +955,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1098,14 +970,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the batch request was received.
      * 
@@ -1113,17 +982,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1131,47 +997,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1192,15 +1045,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1211,8 +1063,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1223,7 +1073,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1235,8 +1085,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1255,8 +1103,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1264,13 +1110,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1281,14 +1125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the operation result was last updated.
      * 
@@ -1296,24 +1137,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1161,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OperationMetadata) private static final com.google.cloud.vision.v1p4beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.OperationMetadata(); } @@ -1337,16 +1175,16 @@ public static com.google.cloud.vision.v1p4beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1199,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java index 4b44fd177..3bb865124 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the batch request was received.
    * 
@@ -84,32 +54,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the operation result was last updated.
    * 
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java similarity index 73% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java index 5e6d44b85..6bdb7e150 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); - } - gcsDestination_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); } - case 16: - { - batchSize_ = input.readInt32(); - break; + gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p4beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + batchSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,39 +84,34 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OutputConfig.class, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.OutputConfig.class, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.GcsDestination gcsDestination_; /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -143,25 +119,18 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -176,8 +145,6 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -191,7 +158,6 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -200,7 +166,6 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -229,10 +195,12 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,19 +210,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.OutputConfig other = - (com.google.cloud.vision.v1p4beta1.OutputConfig) obj; + com.google.cloud.vision.v1p4beta1.OutputConfig other = (com.google.cloud.vision.v1p4beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; } - if (getBatchSize() != other.getBatchSize()) return false; + if (getBatchSize() + != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -277,127 +246,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.OutputConfig) com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OutputConfig.class, - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.OutputConfig.class, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder() @@ -405,15 +365,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override @@ -450,8 +411,7 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.OutputConfig result = - new com.google.cloud.vision.v1p4beta1.OutputConfig(this); + com.google.cloud.vision.v1p4beta1.OutputConfig result = new com.google.cloud.vision.v1p4beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -466,39 +426,38 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -544,47 +503,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ public com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -605,8 +551,6 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinatio return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -625,8 +569,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -637,9 +579,7 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); } else { gcsDestination_ = value; } @@ -651,8 +591,6 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinat return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -671,8 +609,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -680,13 +616,11 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p4beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -697,14 +631,11 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null - ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() - : gcsDestination_; + return gcsDestination_ == null ? + com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; } } /** - * - * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -712,26 +643,21 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, - com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder>( - getGcsDestination(), getParentForChildren(), isClean()); + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder>( + getGcsDestination(), + getParentForChildren(), + isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_; + private int batchSize_ ; /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -745,7 +671,6 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; - * * @return The batchSize. */ @java.lang.Override @@ -753,8 +678,6 @@ public int getBatchSize() { return batchSize_; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -768,19 +691,16 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; - * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** - * - * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -794,18 +714,17 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; - * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OutputConfig) private static final com.google.cloud.vision.v1p4beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.OutputConfig(); } @@ -829,16 +748,16 @@ public static com.google.cloud.vision.v1p4beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java index 267ca0c4c..3548d5df2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -59,8 +35,6 @@ public interface OutputConfigOrBuilder com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -74,7 +48,6 @@ public interface OutputConfigOrBuilder
    * 
* * int32 batch_size = 2; - * * @return The batchSize. */ int getBatchSize(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java index 9d437ab64..779046420 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Page} */ -public final class Page extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Page extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Page) PageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,50 @@ private Page( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - width_ = input.readInt32(); - break; + case 10: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 24: - { - height_ = input.readInt32(); - break; + property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blocks_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 16: { + + width_ = input.readInt32(); + break; + } + case 24: { + + height_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + blocks_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,8 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -138,33 +115,27 @@ private Page( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Page.class, - com.google.cloud.vision.v1p4beta1.Page.Builder.class); + com.google.cloud.vision.v1p4beta1.Page.class, com.google.cloud.vision.v1p4beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -172,25 +143,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected on the page.
    * 
@@ -198,23 +162,19 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -225,15 +185,12 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -244,8 +201,6 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -257,8 +212,6 @@ public java.util.List getBlocksList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -266,13 +219,11 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -284,8 +235,6 @@ public int getBlocksCount() { return blocks_.size(); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -297,8 +246,6 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { return blocks_.get(index); } /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -306,21 +253,19 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -329,7 +274,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -367,19 +312,24 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389,7 +339,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Page)) { return super.equals(obj); @@ -398,13 +348,18 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; - } - if (getWidth() != other.getWidth()) return false; - if (getHeight() != other.getHeight()) return false; - if (!getBlocksList().equals(other.getBlocksList())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; + } + if (getWidth() + != other.getWidth()) return false; + if (getHeight() + != other.getHeight()) return false; + if (!getBlocksList() + .equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,133 +384,125 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Page parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Page} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Page) com.google.cloud.vision.v1p4beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Page.class, - com.google.cloud.vision.v1p4beta1.Page.Builder.class); + com.google.cloud.vision.v1p4beta1.Page.class, com.google.cloud.vision.v1p4beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Page.newBuilder() @@ -563,17 +510,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override @@ -620,8 +567,7 @@ public com.google.cloud.vision.v1p4beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Page buildPartial() { - com.google.cloud.vision.v1p4beta1.Page result = - new com.google.cloud.vision.v1p4beta1.Page(this); + com.google.cloud.vision.v1p4beta1.Page result = new com.google.cloud.vision.v1p4beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -648,39 +594,38 @@ public com.google.cloud.vision.v1p4beta1.Page buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Page) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Page)other); } else { super.mergeFrom(other); return this; @@ -716,10 +661,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlocksFieldBuilder() - : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -756,60 +700,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -823,8 +752,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -843,22 +770,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -870,8 +792,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -890,42 +810,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected on the page.
      * 
@@ -933,33 +844,27 @@ public Builder clearProperty() { * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; } - private int width_; + private int width_ ; /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return The width. */ @java.lang.Override @@ -967,54 +872,45 @@ public int getWidth() { return width_; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return The height. */ @java.lang.Override @@ -1022,62 +918,50 @@ public int getHeight() { return height_; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, - com.google.cloud.vision.v1p4beta1.Block.Builder, - com.google.cloud.vision.v1p4beta1.BlockOrBuilder> - blocksBuilder_; + com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder> blocksBuilder_; /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1092,8 +976,6 @@ public java.util.List getBlocksList() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1108,8 +990,6 @@ public int getBlocksCount() { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1124,15 +1004,14 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder setBlocks(int index, com.google.cloud.vision.v1p4beta1.Block value) { + public Builder setBlocks( + int index, com.google.cloud.vision.v1p4beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1146,8 +1025,6 @@ public Builder setBlocks(int index, com.google.cloud.vision.v1p4beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1166,8 +1043,6 @@ public Builder setBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1188,15 +1063,14 @@ public Builder addBlocks(com.google.cloud.vision.v1p4beta1.Block value) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder addBlocks(int index, com.google.cloud.vision.v1p4beta1.Block value) { + public Builder addBlocks( + int index, com.google.cloud.vision.v1p4beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1210,15 +1084,14 @@ public Builder addBlocks(int index, com.google.cloud.vision.v1p4beta1.Block valu return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder addBlocks(com.google.cloud.vision.v1p4beta1.Block.Builder builderForValue) { + public Builder addBlocks( + com.google.cloud.vision.v1p4beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1229,8 +1102,6 @@ public Builder addBlocks(com.google.cloud.vision.v1p4beta1.Block.Builder builder return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1249,8 +1120,6 @@ public Builder addBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1261,7 +1130,8 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1269,8 +1139,6 @@ public Builder addAllBlocks( return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1288,8 +1156,6 @@ public Builder clearBlocks() { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1307,44 +1173,39 @@ public Builder removeBlocks(int index) { return this; } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.Block.Builder getBlocksBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Block.Builder getBlocksBuilder( + int index) { return getBlocksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( + int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); - } else { + return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1352,8 +1213,6 @@ public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int i } } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1361,62 +1220,54 @@ public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int i * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder(int index) { - return getBlocksFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); } /** - * - * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public java.util.List getBlocksBuilderList() { + public java.util.List + getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, - com.google.cloud.vision.v1p4beta1.Block.Builder, - com.google.cloud.vision.v1p4beta1.BlockOrBuilder> + com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, - com.google.cloud.vision.v1p4beta1.Block.Builder, - com.google.cloud.vision.v1p4beta1.BlockOrBuilder>( - blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return The confidence. */ @java.lang.Override @@ -1424,43 +1275,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1470,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Page) private static final com.google.cloud.vision.v1p4beta1.Page DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Page(); } @@ -1484,16 +1329,16 @@ public static com.google.cloud.vision.v1p4beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java similarity index 76% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java index 0b6186c42..28ea75a68 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface PageOrBuilder - extends +public interface PageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Page) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected on the page.
    * 
@@ -59,46 +35,37 @@ public interface PageOrBuilder com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; - * * @return The width. */ int getWidth(); /** - * - * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; - * * @return The height. */ int getHeight(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - java.util.List getBlocksList(); + java.util.List + getBlocksList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -107,8 +74,6 @@ public interface PageOrBuilder */ com.google.cloud.vision.v1p4beta1.Block getBlocks(int index); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
@@ -117,36 +82,30 @@ public interface PageOrBuilder */ int getBlocksCount(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** - * - * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java similarity index 77% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java index 5074698c9..b12009a75 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Paragraph} */ -public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Paragraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Paragraph) ParagraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Paragraph( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Word.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Word.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -144,33 +118,27 @@ private Paragraph( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Paragraph.class, - com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p4beta1.Paragraph.class, com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
-   *
-   *
    * 
    * List of all words in this paragraph.
    * 
@@ -315,8 +263,6 @@ public java.util.List getWordsList() { return words_; } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -324,13 +270,11 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -342,8 +286,6 @@ public int getWordsCount() { return words_.size(); } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -355,8 +297,6 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { return words_.get(index); } /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -364,21 +304,19 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( + int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -387,7 +325,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -422,16 +360,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -441,25 +383,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Paragraph other = - (com.google.cloud.vision.v1p4beta1.Paragraph) obj; + com.google.cloud.vision.v1p4beta1.Paragraph other = (com.google.cloud.vision.v1p4beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,133 +429,125 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Paragraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Paragraph) com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Paragraph.class, - com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p4beta1.Paragraph.class, com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Paragraph.newBuilder() @@ -618,17 +555,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override @@ -677,8 +614,7 @@ public com.google.cloud.vision.v1p4beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p4beta1.Paragraph result = - new com.google.cloud.vision.v1p4beta1.Paragraph(this); + com.google.cloud.vision.v1p4beta1.Paragraph result = new com.google.cloud.vision.v1p4beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -708,39 +644,38 @@ public com.google.cloud.vision.v1p4beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Paragraph) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Paragraph)other); } else { super.mergeFrom(other); return this; @@ -773,10 +708,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -813,60 +747,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -880,8 +799,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -900,22 +817,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -927,8 +839,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -947,42 +857,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the paragraph.
      * 
@@ -990,17 +891,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1008,13 +906,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1034,15 +927,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1062,21 +952,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,8 +996,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1145,8 +1028,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,9 +1052,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1185,8 +1064,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1219,8 +1096,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,13 +1117,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1273,14 +1146,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1302,41 +1172,32 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Word,
-            com.google.cloud.vision.v1p4beta1.Word.Builder,
-            com.google.cloud.vision.v1p4beta1.WordOrBuilder>
-        wordsBuilder_;
+        com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder> wordsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of all words in this paragraph.
      * 
@@ -1351,8 +1212,6 @@ public java.util.List getWordsList() { } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1367,8 +1226,6 @@ public int getWordsCount() { } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1383,15 +1240,14 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { } } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder setWords(int index, com.google.cloud.vision.v1p4beta1.Word value) { + public Builder setWords( + int index, com.google.cloud.vision.v1p4beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1405,8 +1261,6 @@ public Builder setWords(int index, com.google.cloud.vision.v1p4beta1.Word value) return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1425,8 +1279,6 @@ public Builder setWords( return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1447,15 +1299,14 @@ public Builder addWords(com.google.cloud.vision.v1p4beta1.Word value) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder addWords(int index, com.google.cloud.vision.v1p4beta1.Word value) { + public Builder addWords( + int index, com.google.cloud.vision.v1p4beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1469,15 +1320,14 @@ public Builder addWords(int index, com.google.cloud.vision.v1p4beta1.Word value) return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder addWords(com.google.cloud.vision.v1p4beta1.Word.Builder builderForValue) { + public Builder addWords( + com.google.cloud.vision.v1p4beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1488,8 +1338,6 @@ public Builder addWords(com.google.cloud.vision.v1p4beta1.Word.Builder builderFo return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1508,8 +1356,6 @@ public Builder addWords( return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1520,7 +1366,8 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1528,8 +1375,6 @@ public Builder addAllWords( return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1547,8 +1392,6 @@ public Builder clearWords() { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1566,44 +1409,39 @@ public Builder removeWords(int index) { return this; } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.Word.Builder getWordsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Word.Builder getWordsBuilder( + int index) { return getWordsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( + int index) { if (wordsBuilder_ == null) { - return words_.get(index); - } else { + return words_.get(index); } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1611,8 +1449,6 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int ind } } /** - * - * *
      * List of all words in this paragraph.
      * 
@@ -1620,62 +1456,54 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int ind * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder(int index) { - return getWordsFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder( + int index) { + return getWordsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); } /** - * - * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public java.util.List getWordsBuilderList() { + public java.util.List + getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Word, - com.google.cloud.vision.v1p4beta1.Word.Builder, - com.google.cloud.vision.v1p4beta1.WordOrBuilder> + com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Word, - com.google.cloud.vision.v1p4beta1.Word.Builder, - com.google.cloud.vision.v1p4beta1.WordOrBuilder>( - words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder>( + words_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1683,43 +1511,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1729,12 +1551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Paragraph) private static final com.google.cloud.vision.v1p4beta1.Paragraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Paragraph(); } @@ -1743,16 +1565,16 @@ public static com.google.cloud.vision.v1p4beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1767,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java similarity index 84% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java index a6337cbb7..96b561659 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface ParagraphOrBuilder - extends +public interface ParagraphOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the paragraph.
    * 
@@ -59,8 +35,6 @@ public interface ParagraphOrBuilder com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface ParagraphOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,18 +104,15 @@ public interface ParagraphOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -156,8 +121,6 @@ public interface ParagraphOrBuilder */ com.google.cloud.vision.v1p4beta1.Word getWords(int index); /** - * - * *
    * List of all words in this paragraph.
    * 
@@ -166,35 +129,30 @@ public interface ParagraphOrBuilder */ int getWordsCount(); /** - * - * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - java.util.List getWordsOrBuilderList(); + java.util.List + getWordsOrBuilderList(); /** - * - * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( + int index); /** - * - * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java similarity index 68% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java index dc5469c7d..78d4cbbeb 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Position}
  */
-public final class Position extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Position extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Position)
     PositionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Position() {}
+  private Position() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13:
-            {
-              x_ = input.readFloat();
-              break;
-            }
-          case 21:
-            {
-              y_ = input.readFloat();
-              break;
-            }
-          case 29:
-            {
-              z_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 13: {
+
+            x_ = input.readFloat();
+            break;
+          }
+          case 21: {
+
+            y_ = input.readFloat();
+            break;
+          }
+          case 29: {
+
+            z_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,39 +83,34 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Position.class,
-            com.google.cloud.vision.v1p4beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Position.class, com.google.cloud.vision.v1p4beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -142,14 +121,11 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -160,14 +136,11 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -176,7 +149,6 @@ public float getZ() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -208,13 +181,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -224,20 +200,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Position other = - (com.google.cloud.vision.v1p4beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) - return false; - if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) - return false; - if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) - return false; + com.google.cloud.vision.v1p4beta1.Position other = (com.google.cloud.vision.v1p4beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) + != java.lang.Float.floatToIntBits( + other.getX())) return false; + if (java.lang.Float.floatToIntBits(getY()) + != java.lang.Float.floatToIntBits( + other.getY())) return false; + if (java.lang.Float.floatToIntBits(getZ()) + != java.lang.Float.floatToIntBits( + other.getZ())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -250,114 +228,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -366,23 +340,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Position}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Position)
       com.google.cloud.vision.v1p4beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Position.class,
-              com.google.cloud.vision.v1p4beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Position.class, com.google.cloud.vision.v1p4beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Position.newBuilder()
@@ -390,15 +362,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +406,7 @@ public com.google.cloud.vision.v1p4beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Position result =
-          new com.google.cloud.vision.v1p4beta1.Position(this);
+      com.google.cloud.vision.v1p4beta1.Position result = new com.google.cloud.vision.v1p4beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -446,39 +418,38 @@ public com.google.cloud.vision.v1p4beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Position) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Position)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,16 +496,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -542,51 +510,42 @@ public float getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -594,51 +553,42 @@ public float getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_; + private float z_ ; /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return The z. */ @java.lang.Override @@ -646,43 +596,37 @@ public float getZ() { return z_; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** - * - * *
      * Z coordinate (or depth).
      * 
* * float z = 3; - * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Position) private static final com.google.cloud.vision.v1p4beta1.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Position(); } @@ -706,16 +650,16 @@ public static com.google.cloud.vision.v1p4beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +674,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java similarity index 50% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java index 989c23eac..780b193f9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; -public interface PositionOrBuilder - extends +public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Position) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * X coordinate.
    * 
* * float x = 1; - * * @return The x. */ float getX(); /** - * - * *
    * Y coordinate.
    * 
* * float y = 2; - * * @return The y. */ float getY(); /** - * - * *
    * Z coordinate (or depth).
    * 
* * float z = 3; - * * @return The z. */ float getZ(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java similarity index 80% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java index 13d3ad520..e00e0bca2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product} */ -public final class Product extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Product extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Product) ProductOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Product() { name_ = ""; displayName_ = ""; @@ -47,15 +29,16 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,54 +58,46 @@ private Product( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.KeyValue.parser(), - extensionRegistry)); - break; + productCategory_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + productLabels_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Product.KeyValue.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,7 +105,8 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -139,100 +115,83 @@ private Product( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.class, - com.google.cloud.vision.v1p4beta1.Product.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.class, com.google.cloud.vision.v1p4beta1.Product.Builder.class); } - public interface KeyValueOrBuilder - extends + public interface KeyValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product.KeyValue} */ - public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KeyValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KeyValue() { key_ = ""; value_ = ""; @@ -240,15 +199,16 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -267,27 +227,25 @@ private KeyValue( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -295,40 +253,35 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, - com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -337,30 +290,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -371,15 +324,12 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -388,30 +338,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -420,7 +370,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,7 +381,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -462,16 +412,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Product.KeyValue other = - (com.google.cloud.vision.v1p4beta1.Product.KeyValue) obj; + com.google.cloud.vision.v1p4beta1.Product.KeyValue other = (com.google.cloud.vision.v1p4beta1.Product.KeyValue) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -493,93 +444,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -589,32 +534,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product.KeyValue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Product.KeyValue) com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, - com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Product.KeyValue.newBuilder() @@ -622,15 +562,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override @@ -663,8 +604,7 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1p4beta1.Product.KeyValue result = - new com.google.cloud.vision.v1p4beta1.Product.KeyValue(this); + com.google.cloud.vision.v1p4beta1.Product.KeyValue result = new com.google.cloud.vision.v1p4beta1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -675,41 +615,38 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Product.KeyValue) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Product.KeyValue)other); } else { super.mergeFrom(other); return this; @@ -717,8 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Product.KeyValue other) { - if (other == com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -746,8 +682,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.Product.KeyValue) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.Product.KeyValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -759,21 +694,19 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -782,22 +715,21 @@ public java.lang.String getKey() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -805,64 +737,57 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -870,21 +795,19 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -893,22 +816,21 @@ public java.lang.String getValue() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -916,69 +838,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -991,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product.KeyValue) private static final com.google.cloud.vision.v1p4beta1.Product.KeyValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Product.KeyValue(); } @@ -1005,16 +919,16 @@ public static com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,13 +943,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1044,7 +957,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInstanceForT
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1053,15 +965,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -1070,15 +981,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1089,15 +1001,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1106,30 +1015,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1140,15 +1049,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -1157,30 +1063,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1191,8 +1097,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** - * - * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -1201,7 +1105,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ @java.lang.Override @@ -1210,15 +1113,14 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** - * - * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -1227,15 +1129,16 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1246,8 +1149,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1268,8 +1169,6 @@ public java.util.List getPro
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1286,13 +1185,11 @@ public java.util.List getPro
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1313,8 +1210,6 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1335,8 +1230,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i
     return productLabels_.get(index);
   }
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1359,7 +1252,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1371,7 +1263,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1409,7 +1302,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1419,19 +1313,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Product)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.Product other =
-        (com.google.cloud.vision.v1p4beta1.Product) obj;
-
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getProductCategory().equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
+    com.google.cloud.vision.v1p4beta1.Product other = (com.google.cloud.vision.v1p4beta1.Product) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getProductCategory()
+        .equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList()
+        .equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1460,127 +1358,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.Product parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Product) com.google.cloud.vision.v1p4beta1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.class, - com.google.cloud.vision.v1p4beta1.Product.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.class, com.google.cloud.vision.v1p4beta1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Product.newBuilder() @@ -1588,17 +1477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1620,9 +1509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override @@ -1641,8 +1530,7 @@ public com.google.cloud.vision.v1p4beta1.Product build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product buildPartial() { - com.google.cloud.vision.v1p4beta1.Product result = - new com.google.cloud.vision.v1p4beta1.Product(this); + com.google.cloud.vision.v1p4beta1.Product result = new com.google.cloud.vision.v1p4beta1.Product(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1665,39 +1553,38 @@ public com.google.cloud.vision.v1p4beta1.Product buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Product) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Product) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Product)other); } else { super.mergeFrom(other); return this; @@ -1740,10 +1627,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductLabelsFieldBuilder() - : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductLabelsFieldBuilder() : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1777,13 +1663,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1792,13 +1675,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1807,8 +1690,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1817,14 +1698,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1832,8 +1714,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1842,22 +1722,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1866,18 +1744,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the product.
      * Format is:
@@ -1886,16 +1761,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1903,21 +1778,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1926,22 +1799,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1949,64 +1821,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2014,21 +1879,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2037,22 +1900,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2060,64 +1922,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2125,8 +1980,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object productCategory_ = ""; /** - * - * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2135,13 +1988,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -2150,8 +2003,6 @@ public java.lang.String getProductCategory() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2160,14 +2011,15 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString getProductCategoryBytes() { + public com.google.protobuf.ByteString + getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2175,8 +2027,6 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { } } /** - * - * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2185,22 +2035,20 @@ public com.google.protobuf.ByteString getProductCategoryBytes() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory(java.lang.String value) { + public Builder setProductCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2209,18 +2057,15 @@ public Builder setProductCategory(java.lang.String value) {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** - * - * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2229,42 +2074,34 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = - new java.util.ArrayList( - productLabels_); + productLabels_ = new java.util.ArrayList(productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product.KeyValue, - com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, - com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> - productLabelsBuilder_; + com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> productLabelsBuilder_; /** - * - * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2280,8 +2117,7 @@ private void ensureProductLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsList() {
+    public java.util.List getProductLabelsList() {
       if (productLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(productLabels_);
       } else {
@@ -2289,8 +2125,6 @@ private void ensureProductLabelsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2314,8 +2148,6 @@ public int getProductLabelsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2339,8 +2171,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2371,8 +2201,6 @@ public Builder setProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2400,8 +2228,6 @@ public Builder setProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2431,8 +2257,6 @@ public Builder addProductLabels(com.google.cloud.vision.v1p4beta1.Product.KeyVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2463,8 +2287,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2492,8 +2314,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2521,8 +2341,6 @@ public Builder addProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2542,7 +2360,8 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2550,8 +2369,6 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2578,8 +2395,6 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2606,8 +2421,6 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2628,8 +2441,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder getProductLabe
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2648,14 +2459,11 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder getProductLabe
     public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);
-      } else {
+        return productLabels_.get(index);  } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2671,8 +2479,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsOrBuilderList() {
+    public java.util.List 
+         getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2680,8 +2488,6 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
       }
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2698,12 +2504,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2721,13 +2525,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
      */
     public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabelsBuilder(
         int index) {
-      return getProductLabelsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2743,22 +2544,16 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List
-        getProductLabelsBuilderList() {
+    public java.util.List 
+         getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Product.KeyValue,
-            com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder,
-            com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>
+        com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> 
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.Product.KeyValue,
-                com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder,
-                com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2767,9 +2562,9 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
       }
       return productLabelsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2779,12 +2574,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product)
   private static final com.google.cloud.vision.v1p4beta1.Product DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Product();
   }
@@ -2793,16 +2588,16 @@ public static com.google.cloud.vision.v1p4beta1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Product parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Product(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Product parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Product(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2817,4 +2612,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
similarity index 100%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
similarity index 86%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
index 8df40ae97..1255e6fd9 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ProductOrBuilder
-    extends
+public interface ProductOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the product.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the product.
    * Format is:
@@ -49,68 +28,56 @@ public interface ProductOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -119,13 +86,10 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The productCategory. */ java.lang.String getProductCategory(); /** - * - * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -134,14 +98,12 @@ public interface ProductOrBuilder
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString getProductCategoryBytes(); + com.google.protobuf.ByteString + getProductCategoryBytes(); /** - * - * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -157,10 +119,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List getProductLabelsList();
+  java.util.List 
+      getProductLabelsList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -178,8 +139,6 @@ public interface ProductOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int index);
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -197,8 +156,6 @@ public interface ProductOrBuilder
    */
   int getProductLabelsCount();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -214,11 +171,9 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List
+  java.util.List 
       getProductLabelsOrBuilderList();
   /**
-   *
-   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -234,5 +189,6 @@ public interface ProductOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
similarity index 78%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
index 81f65c9a3..abb07a792 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchParams} */ -public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchParams) ProductSearchParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,53 +56,47 @@ private ProductSearchParams( case 0: done = true; break; - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - productCategories_.add(s); - break; + productSet_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + productCategories_.add(s); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + filter_ = s; + break; + } + case 74: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); } - case 74: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); - } - - break; + boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +104,8 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -136,34 +114,28 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -171,26 +143,19 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -206,8 +171,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
-   *
-   *
    * 
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -217,7 +180,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ @java.lang.Override @@ -226,15 +188,14 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** - * - * *
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -244,15 +205,16 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -263,8 +225,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -276,15 +236,13 @@ public com.google.protobuf.ByteString getProductSetBytes() {
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_; } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -296,15 +254,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -316,7 +271,6 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -324,8 +278,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -337,19 +289,17 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -361,7 +311,6 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
    * 
* * string filter = 8; - * * @return The filter. */ @java.lang.Override @@ -370,15 +319,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -390,15 +338,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -407,7 +356,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -419,7 +367,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -456,7 +405,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -466,21 +416,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchParams other = - (com.google.cloud.vision.v1p4beta1.ProductSearchParams) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchParams other = (com.google.cloud.vision.v1p4beta1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; - } - if (!getProductSet().equals(other.getProductSet())) return false; - if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; + } + if (!getProductSet() + .equals(other.getProductSet())) return false; + if (!getProductCategoriesList() + .equals(other.getProductCategoriesList())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -510,127 +463,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchParams) com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder() @@ -638,15 +581,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +610,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override @@ -687,8 +631,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchParams result = - new com.google.cloud.vision.v1p4beta1.ProductSearchParams(this); + com.google.cloud.vision.v1p4beta1.ProductSearchParams result = new com.google.cloud.vision.v1p4beta1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -710,39 +653,38 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchParams) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchParams)other); } else { super.mergeFrom(other); return this; @@ -750,8 +692,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchParams other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance()) return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -792,8 +733,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ProductSearchParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -802,54 +742,40 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -871,8 +797,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -892,8 +816,6 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -905,9 +827,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -919,8 +839,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -940,8 +858,6 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -950,13 +866,11 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-
+      
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -968,14 +882,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingPoly_;
+        return boundingPoly_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -984,17 +895,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(), getParentForChildren(), isClean());
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(),
+                getParentForChildren(),
+                isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -1002,8 +910,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private java.lang.Object productSet_ = "";
     /**
-     *
-     *
      * 
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1013,13 +919,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -1028,8 +934,6 @@ public java.lang.String getProductSet() { } } /** - * - * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1039,14 +943,15 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString getProductSetBytes() { + public com.google.protobuf.ByteString + getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSet_ = b; return b; } else { @@ -1054,8 +959,6 @@ public com.google.protobuf.ByteString getProductSetBytes() { } } /** - * - * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1065,22 +968,20 @@ public com.google.protobuf.ByteString getProductSetBytes() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet(java.lang.String value) { + public Builder setProductSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1090,18 +991,15 @@ public Builder setProductSet(java.lang.String value) {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** - * - * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1111,33 +1009,29 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1149,15 +1043,13 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList + getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1169,15 +1061,12 @@ public com.google.protobuf.ProtocolStringList getProductCategoriesList() {
      * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1189,7 +1078,6 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1197,8 +1085,6 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1210,16 +1096,14 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1231,23 +1115,21 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) {
      * 
* * repeated string product_categories = 7; - * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories(int index, java.lang.String value) { + public Builder setProductCategories( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1259,22 +1141,20 @@ public Builder setProductCategories(int index, java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories(java.lang.String value) { + public Builder addProductCategories( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1286,19 +1166,18 @@ public Builder addProductCategories(java.lang.String value) {
      * 
* * repeated string product_categories = 7; - * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories(java.lang.Iterable values) { + public Builder addAllProductCategories( + java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productCategories_); onChanged(); return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1310,7 +1189,6 @@ public Builder addAllProductCategories(java.lang.Iterable valu
      * 
* * repeated string product_categories = 7; - * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1320,8 +1198,6 @@ public Builder clearProductCategories() { return this; } /** - * - * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1333,15 +1209,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; - * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1350,8 +1226,6 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1363,13 +1237,13 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 8; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1378,8 +1252,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1391,14 +1263,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1406,8 +1279,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1419,22 +1290,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 8; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1446,18 +1315,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 8; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1469,23 +1335,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1495,12 +1361,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchParams) private static final com.google.cloud.vision.v1p4beta1.ProductSearchParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchParams(); } @@ -1509,16 +1375,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSearchParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1533,4 +1399,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java index dcff9e74d..865e292ba 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSearchParamsOrBuilder - extends +public interface ProductSearchParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -62,8 +38,6 @@ public interface ProductSearchParamsOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -73,13 +47,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The productSet. */ java.lang.String getProductSet(); /** - * - * *
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -89,14 +60,12 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for productSet. */ - com.google.protobuf.ByteString getProductSetBytes(); + com.google.protobuf.ByteString + getProductSetBytes(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -108,13 +77,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return A list containing the productCategories. */ - java.util.List getProductCategoriesList(); + java.util.List + getProductCategoriesList(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -126,13 +93,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @return The count of productCategories. */ int getProductCategoriesCount(); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -144,14 +108,11 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** - * - * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -163,15 +124,13 @@ public interface ProductSearchParamsOrBuilder
    * 
* * repeated string product_categories = 7; - * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString getProductCategoriesBytes(int index); + com.google.protobuf.ByteString + getProductCategoriesBytes(int index); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -183,13 +142,10 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -201,8 +157,8 @@ public interface ProductSearchParamsOrBuilder
    * 
* * string filter = 8; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java new file mode 100644 index 000000000..93bca89bb --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/vision/v1p4beta1/product_" + + "search.proto\022\035google.cloud.vision.v1p4be" + + "ta1\032\034google/api/annotations.proto\032\031googl" + + "e/api/resource.proto\032,google/cloud/visio" + + "n/v1p4beta1/geometry.proto\032:google/cloud" + + "/vision/v1p4beta1/product_search_service" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" + + "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" + + "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" + + "ision.googleapis.com/ProductSet\022\032\n\022produ" + + "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" + + "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022K\n\007results\030" + + "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" + + "oductSearchResults.Result\022b\n\027product_gro" + + "uped_results\030\006 \003(\0132A.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.GroupedR" + + "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" + + "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" + + "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" + + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" + + "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" + + "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" + + "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" + + "a1.ProductSearchResults.Result\022`\n\022object" + + "_annotations\030\003 \003(\0132D.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.ObjectAn" + + "notationB\210\001\n!com.google.cloud.vision.v1p" + + "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor, + new java.lang.String[] { "BoundingPoly", "ProductSet", "ProductCategories", "Filter", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor, + new java.lang.String[] { "IndexTime", "Results", "ProductGroupedResults", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor, + new java.lang.String[] { "Product", "Score", "Image", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor, + new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor, + new java.lang.String[] { "BoundingPoly", "Results", "ObjectAnnotations", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java index 819e5892c..f2313eff9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Results for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults} */ -public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSearchResults extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults) ProductSearchResultsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,44 @@ private ProductSearchResults( case 0: done = true; break; - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), - extensionRegistry)); - break; + indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult>(); - mutable_bitField0_ |= 0x00000002; - } - productGroupedResults_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.parser(), - extensionRegistry)); - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + results_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +100,8 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -141,54 +113,42 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder - extends + public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** - * - * *
      * The Product.
      * 
@@ -198,80 +158,70 @@ public interface ResultOrBuilder com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); } /** - * - * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.Result} */ - public static final class Result extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -290,41 +240,37 @@ private Result( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); } - case 21: - { - score_ = input.readFloat(); - break; + product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -332,39 +278,34 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Product product_; /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return Whether the product field is set. */ @java.lang.Override @@ -372,25 +313,18 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } /** - * - * *
      * The Product.
      * 
@@ -405,15 +339,12 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -424,15 +355,12 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The image. */ @java.lang.Override @@ -441,30 +369,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -473,7 +401,6 @@ public com.google.protobuf.ByteString getImageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,7 +412,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -505,10 +433,12 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -521,21 +451,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct().equals(other.getProduct())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getImage().equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getImage() + .equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,7 +484,8 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -561,94 +494,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -658,32 +584,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.Result} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.newBuilder() @@ -691,15 +612,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -717,14 +639,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance(); } @@ -739,8 +660,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result result = - new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -756,52 +676,46 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other) { - if (other - == com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other) { + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -831,9 +745,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -845,47 +757,34 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; - * * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
        * The Product.
        * 
@@ -906,15 +805,14 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; */ - public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -925,8 +823,6 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder buil return this; } /** - * - * *
        * The Product.
        * 
@@ -937,9 +833,7 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -951,8 +845,6 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
        * The Product.
        * 
@@ -971,8 +863,6 @@ public Builder clearProduct() { return this; } /** - * - * *
        * The Product.
        * 
@@ -980,13 +870,11 @@ public Builder clearProduct() { * .google.cloud.vision.v1p4beta1.Product product = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
        * The Product.
        * 
@@ -997,14 +885,11 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
        * The Product.
        * 
@@ -1012,33 +897,27 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() * .google.cloud.vision.v1p4beta1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; } - private float score_; + private float score_ ; /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1046,38 +925,32 @@ public float getScore() { return score_; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1085,21 +958,19 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1108,22 +979,21 @@ public java.lang.String getImage() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1131,69 +1001,61 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1206,32 +1068,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1243,45 +1103,37 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ObjectAnnotationOrBuilder - extends + public interface ObjectAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ java.lang.String getMid(); /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ - com.google.protobuf.ByteString getMidBytes(); + com.google.protobuf.ByteString + getMidBytes(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1289,13 +1141,10 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1303,68 +1152,57 @@ public interface ObjectAnnotationOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ float getScore(); } /** - * - * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ObjectAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1373,15 +1211,16 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1400,39 +1239,36 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mid_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 37: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1440,40 +1276,34 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - .class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The mid. */ @java.lang.Override @@ -1482,29 +1312,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** - * - * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; - * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -1515,8 +1345,6 @@ public com.google.protobuf.ByteString getMidBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1524,7 +1352,6 @@ public com.google.protobuf.ByteString getMidBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -1533,15 +1360,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1549,15 +1375,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1568,14 +1395,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The name. */ @java.lang.Override @@ -1584,29 +1408,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1617,14 +1441,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** - * - * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -1633,7 +1454,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1645,7 +1465,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1677,7 +1498,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1687,20 +1509,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)) { + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid().equals(other.getMid())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getMid() + .equals(other.getMid())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1719,102 +1543,95 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1824,50 +1641,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - .class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1883,22 +1694,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); } @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation build() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = - buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1906,10 +1714,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation b } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = - new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(this); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation buildPartial() { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1922,54 +1728,46 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom( - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) other); + if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other) { - if (other - == com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other) { + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -2000,14 +1798,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parsedMessage = - null; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2019,20 +1814,18 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -2041,21 +1834,20 @@ public java.lang.String getMid() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return The bytes for mid. */ - public com.google.protobuf.ByteString getMidBytes() { + public com.google.protobuf.ByteString + getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mid_ = b; return b; } else { @@ -2063,61 +1855,54 @@ public com.google.protobuf.ByteString getMidBytes() { } } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid(java.lang.String value) { + public Builder setMid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** - * - * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; - * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes(com.google.protobuf.ByteString value) { + public Builder setMidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -2125,8 +1910,6 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2134,13 +1917,13 @@ public Builder setMidBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2149,8 +1932,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2158,14 +1939,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2173,8 +1955,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2182,22 +1962,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. - */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + */ + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2205,18 +1983,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -2224,16 +1999,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2241,20 +2016,18 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2263,21 +2036,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2285,76 +2057,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return The score. */ @java.lang.Override @@ -2362,41 +2124,34 @@ public float getScore() { return score_; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2409,33 +2164,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(); + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2447,44 +2199,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GroupedResultOrBuilder - extends + public interface GroupedResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2494,18 +2237,15 @@ public interface GroupedResultOrBuilder com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2514,8 +2254,6 @@ public interface GroupedResultOrBuilder */ com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2524,19 +2262,15 @@ public interface GroupedResultOrBuilder */ int getResultsCount(); /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2547,75 +2281,50 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List + java.util.List getObjectAnnotationsList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( - int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ int getObjectAnnotationsCount(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - java.util.List< - ? extends - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + java.util.List getObjectAnnotationsOrBuilderList(); /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index); } /** - * - * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2623,16 +2332,15 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjec
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GroupedResult extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2640,15 +2348,16 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2668,59 +2377,44 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null;
-                if (boundingPoly_ != null) {
-                  subBuilder = boundingPoly_.toBuilder();
-                }
-                boundingPoly_ =
-                    input.readMessage(
-                        com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(boundingPoly_);
-                  boundingPoly_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null;
+              if (boundingPoly_ != null) {
+                subBuilder = boundingPoly_.toBuilder();
+              }
+              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(boundingPoly_);
+                boundingPoly_ = subBuilder.buildPartial();
               }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  results_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                results_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(),
-                        extensionRegistry));
-                break;
+
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 26:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  objectAnnotations_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.vision.v1p4beta1.ProductSearchResults
-                              .ObjectAnnotation>();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                objectAnnotations_.add(
-                    input.readMessage(
-                        com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation
-                            .parser(),
-                        extensionRegistry));
-                break;
+              results_.add(
+                  input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), extensionRegistry));
+              break;
+            }
+            case 26: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                objectAnnotations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              objectAnnotations_.add(
+                  input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2728,7 +2422,8 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2740,33 +2435,27 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchProto
-          .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class,
-              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_;
     /**
-     *
-     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2774,25 +2463,18 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } /** - * - * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2807,8 +2489,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2816,13 +2496,10 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2830,14 +2507,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2849,8 +2523,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2862,8 +2534,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -2871,98 +2541,72 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List - objectAnnotations_; + private java.util.List objectAnnotations_; /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + public java.util.List getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { return objectAnnotations_.get(index); } /** - * - * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2974,7 +2618,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2994,14 +2639,16 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3011,20 +2658,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList() + .equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3054,95 +2703,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3152,8 +2793,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about the products similar to a single product in a query
      * image.
@@ -3161,44 +2800,40 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class,
-                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.newBuilder()
+      // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3224,22 +2859,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
-            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
-          getDefaultInstanceForType() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
-            .getDefaultInstance();
+      public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult build() {
-        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result =
-            buildPartial();
+        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3248,8 +2880,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buil
 
       @java.lang.Override
       public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result =
-            new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -3282,53 +2913,46 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buil
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) {
-          return mergeFrom(
-              (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) other);
+          return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other) {
-        if (other
-            == com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other) {
+        if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -3350,10 +2974,9 @@ public Builder mergeFrom(
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getResultsFieldBuilder()
-                      : null;
+              resultsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getResultsFieldBuilder() : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3377,10 +3000,9 @@ public Builder mergeFrom(
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getObjectAnnotationsFieldBuilder()
-                      : null;
+              objectAnnotationsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getObjectAnnotationsFieldBuilder() : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3405,9 +3027,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3416,52 +3036,38 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.vision.v1p4beta1.BoundingPoly,
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-              com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
-          boundingPolyBuilder_;
+          com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
       /**
-       *
-       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3482,8 +3088,6 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3502,8 +3106,6 @@ public Builder setBoundingPoly( return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3514,9 +3116,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); } else { boundingPoly_ = value; } @@ -3528,8 +3128,6 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3548,8 +3146,6 @@ public Builder clearBoundingPoly() { return this; } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3557,13 +3153,11 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3574,14 +3168,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingPoly_; + return boundingPoly_ == null ? + com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; } } /** - * - * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3589,52 +3180,39 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), getParentForChildren(), isClean()); + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), + getParentForChildren(), + isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - private java.util.List - results_ = java.util.Collections.emptyList(); - + private java.util.List results_ = + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>(results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> - resultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3642,14 +3220,11 @@ private void ensureResultsIsMutable() { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -3659,14 +3234,11 @@ public int getResultsCount() { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index) { if (resultsBuilder_ == null) { @@ -3676,14 +3248,11 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder setResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { @@ -3700,18 +3269,14 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder setResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3722,17 +3287,13 @@ public Builder setResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public Builder addResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { + public Builder addResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3746,14 +3307,11 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { @@ -3770,14 +3328,11 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { @@ -3791,18 +3346,14 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder addResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3813,22 +3364,18 @@ public Builder addResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder addAllResults( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result> - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3836,14 +3383,11 @@ public Builder addAllResults( return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -3856,14 +3400,11 @@ public Builder clearResults() { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -3876,50 +3417,39 @@ public Builder removeResults(int index) { return this; } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder - getResultsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3927,103 +3457,74 @@ public Builder removeResults(int index) { } } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } - /** - * - * + /** *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> - objectAnnotations_ = java.util.Collections.emptyList(); - + private java.util.List objectAnnotations_ = + java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation>( - objectAnnotations_); + objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> - objectAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List - getObjectAnnotationsList() { + public java.util.List getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -4031,15 +3532,11 @@ private void ensureObjectAnnotationsIsMutable() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -4049,18 +3546,13 @@ public int getObjectAnnotationsCount() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -4068,19 +3560,14 @@ public int getObjectAnnotationsCount() { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4094,20 +3581,14 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder setObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -4118,18 +3599,13 @@ public Builder setObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public Builder addObjectAnnotations( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4143,19 +3619,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4169,19 +3640,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -4192,20 +3658,14 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addObjectAnnotations( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -4216,23 +3676,18 @@ public Builder addObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder addAllObjectAnnotations( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> - values) { + java.lang.Iterable values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -4240,15 +3695,11 @@ public Builder addAllObjectAnnotations( return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -4261,15 +3712,11 @@ public Builder clearObjectAnnotations() { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -4282,54 +3729,39 @@ public Builder removeObjectAnnotations(int index) { return this; } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - getObjectAnnotationsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( + int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder - getObjectAnnotationsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); - } else { + return objectAnnotations_.get(index); } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - ? extends - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> - getObjectAnnotationsOrBuilderList() { + public java.util.List + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -4337,70 +3769,45 @@ public Builder removeObjectAnnotations(int index) { } } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder - addObjectAnnotationsBuilder(int index) { - return getObjectAnnotationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( + int index) { + return getObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); } /** - * - * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; */ - public java.util.List< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder> - getObjectAnnotationsBuilderList() { + public java.util.List + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4409,7 +3816,6 @@ public Builder removeObjectAnnotations(int index) { } return objectAnnotationsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4422,32 +3828,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4459,17 +3863,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4477,7 +3879,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -4485,8 +3886,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4494,7 +3893,6 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ @java.lang.Override @@ -4502,8 +3900,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -4520,8 +3916,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
@@ -4529,13 +3923,10 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4543,14 +3934,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4562,8 +3950,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4575,8 +3961,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** - * - * *
    * List of results, one for each product match.
    * 
@@ -4590,11 +3974,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List - productGroupedResults_; + private java.util.List productGroupedResults_; /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4602,18 +3983,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4621,19 +3997,14 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + public java.util.List getProductGroupedResultsOrBuilderList() { return productGroupedResults_; } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4641,17 +4012,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override public int getProductGroupedResultsCount() { return productGroupedResults_.size(); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4659,18 +4026,13 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { return productGroupedResults_.get(index); } /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4678,18 +4040,15 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4701,7 +4060,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4721,15 +4081,16 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, productGroupedResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4739,20 +4100,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults other = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime().equals(other.getIndexTime())) return false; + if (!getIndexTime() + .equals(other.getIndexTime())) return false; } - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList() + .equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4782,127 +4145,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults) com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder() @@ -4910,18 +4263,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4947,9 +4300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4968,8 +4321,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults result = - new com.google.cloud.vision.v1p4beta1.ProductSearchResults(this); + com.google.cloud.vision.v1p4beta1.ProductSearchResults result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -5002,39 +4354,38 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults)other); } else { super.mergeFrom(other); return this; @@ -5042,8 +4393,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance()) return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -5065,10 +4415,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -5092,10 +4441,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProductGroupedResultsFieldBuilder() - : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProductGroupedResultsFieldBuilder() : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -5120,8 +4468,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ProductSearchResults) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5130,18 +4477,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5149,15 +4490,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5165,7 +4503,6 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -5176,8 +4513,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5200,8 +4535,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5210,7 +4543,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -5221,8 +4555,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5235,7 +4567,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -5247,8 +4579,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5269,8 +4599,6 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5280,13 +4608,11 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-
+      
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5299,12 +4625,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -5314,51 +4639,39 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(), getParentForChildren(), isClean());
+        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(),
+                getParentForChildren(),
+                isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result,
-            com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder,
-            com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -5366,8 +4679,6 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5382,8 +4693,6 @@ public int getResultsCount() { } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5398,8 +4707,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( } } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5421,8 +4728,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5430,8 +4735,7 @@ public Builder setResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder setResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -5442,8 +4746,6 @@ public Builder setResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5464,8 +4766,6 @@ public Builder addResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5487,8 +4787,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5507,8 +4805,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5516,8 +4812,7 @@ public Builder addResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder addResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -5528,8 +4823,6 @@ public Builder addResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5537,11 +4830,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -5549,8 +4842,6 @@ public Builder addAllResults( return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5568,8 +4859,6 @@ public Builder clearResults() { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5587,8 +4876,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5600,34 +4887,28 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder get return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -5635,23 +4916,17 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder get } } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
@@ -5660,64 +4935,48 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder get */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** - * - * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List - productGroupedResults_ = java.util.Collections.emptyList(); - + private java.util.List productGroupedResults_ = + java.util.Collections.emptyList(); private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult>( - productGroupedResults_); + productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> - productGroupedResultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5725,12 +4984,9 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List - getProductGroupedResultsList() { + public java.util.List getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -5738,8 +4994,6 @@ private void ensureProductGroupedResultsIsMutable() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5747,9 +5001,7 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5759,8 +5011,6 @@ public int getProductGroupedResultsCount() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5768,12 +5018,9 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5781,8 +5028,6 @@ public int getProductGroupedResultsCount() { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5790,9 +5035,7 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { @@ -5809,8 +5052,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5818,14 +5059,10 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder setProductGroupedResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5836,8 +5073,6 @@ public Builder setProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5845,12 +5080,9 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public Builder addProductGroupedResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5864,8 +5096,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5873,9 +5103,7 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { @@ -5892,8 +5120,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5901,13 +5127,10 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(builderForValue.build()); @@ -5918,8 +5141,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5927,14 +5148,10 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addProductGroupedResults( - int index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5945,8 +5162,6 @@ public Builder addProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5954,17 +5169,14 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder addAllProductGroupedResults( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult> - values) { + java.lang.Iterable values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5972,8 +5184,6 @@ public Builder addAllProductGroupedResults( return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5981,9 +5191,7 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5996,8 +5204,6 @@ public Builder clearProductGroupedResults() { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6005,9 +5211,7 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -6020,8 +5224,6 @@ public Builder removeProductGroupedResults(int index) { return this; } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6029,17 +5231,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - getProductGroupedResultsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( + int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6047,21 +5245,16 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); - } else { + return productGroupedResults_.get(index); } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6069,13 +5262,10 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> - getProductGroupedResultsOrBuilderList() { + public java.util.List + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -6083,8 +5273,6 @@ public Builder removeProductGroupedResults(int index) { } } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6092,20 +5280,13 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6113,21 +5294,14 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder - addProductGroupedResultsBuilder(int index) { - return getProductGroupedResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( + int index) { + return getProductGroupedResultsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** - * - * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -6135,27 +5309,18 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - public java.util.List< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder> - getProductGroupedResultsBuilderList() { + public java.util.List + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6164,9 +5329,9 @@ public Builder removeProductGroupedResults(int index) { } return productGroupedResultsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6176,12 +5341,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults) private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults(); } @@ -6190,16 +5355,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSearchResults getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6214,4 +5379,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java index c2073ad9c..727cac78c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSearchResultsOrBuilder - extends +public interface ProductSearchResultsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -33,13 +15,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -47,13 +26,10 @@ public interface ProductSearchResultsOrBuilder
    * 
* * .google.protobuf.Timestamp index_time = 2; - * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -65,18 +41,15 @@ public interface ProductSearchResultsOrBuilder
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -85,8 +58,6 @@ public interface ProductSearchResultsOrBuilder */ com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -95,19 +66,15 @@ public interface ProductSearchResultsOrBuilder */ int getResultsCount(); /** - * - * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
    * List of results, one for each product match.
    * 
@@ -118,8 +85,6 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -127,15 +92,11 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List + java.util.List getProductGroupedResultsList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -143,15 +104,10 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults( - int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -159,14 +115,10 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ int getProductGroupedResultsCount(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -174,16 +126,11 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + java.util.List getProductGroupedResultsOrBuilderList(); /** - * - * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -191,10 +138,8 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; - * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder - getProductGroupedResultsOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( + int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java new file mode 100644 index 000000000..2673ab528 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java @@ -0,0 +1,649 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/vision/v1p4beta1/product_" + + "search_service.proto\022\035google.cloud.visio" + + "n.v1p4beta1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032,google/cloud/vision/v1p4beta1/ge" + + "ometry.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + + "4beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + + "gleapis.com/Product\022:projects/{project}/" + + "locations/{location}/products/{product}\"" + + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + + "on.googleapis.com/ProductSet\022Aprojects/{" + + "project}/locations/{location}/productSet" + + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + + "olys\030\003 \003(\0132+.google.cloud.vision.v1p4bet" + + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + + "leapis.com/ReferenceImage\022\\projects/{pro" + + "ject}/locations/{location}/products/{pro" + + "duct}/referenceImages/{reference_image}\"" + + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + + "on.v1p4beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + + "ts\030\001 \003(\0132&.google.cloud.vision.v1p4beta1" + + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + + "loud.vision.v1p4beta1.ProductB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + + "oud.vision.v1p4beta1.ProductSetB\003\340A\002\022\026\n\016" + + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + + "le.cloud.vision.v1p4beta1.ProductSet\022\027\n\017" + + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + + "cloud.vision.v1p4beta1.ProductSetB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + + "ProductSet\"\275\001\n\033CreateReferenceImageReque" + + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + + "eapis.com/Product\022K\n\017reference_image\030\002 \001" + + "(\0132-.google.cloud.vision.v1p4beta1.Refer" + + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + + "\n\020reference_images\030\001 \003(\0132-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\022\021\n\tpage_" + + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + + "ReferenceImage\"\217\001\n\035AddProductToProductSe" + + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"u\n ListProductsInProductSetResponse\0228" + + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + + "1p4beta1.Product\022\027\n\017next_page_token\030\002 \001(" + + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + + ".vision.v1p4beta1.ImportProductSetsGcsSo" + + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022V\n\014input_config" + + "\030\002 \001(\0132;.google.cloud.vision.v1p4beta1.I" + + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + + "ortProductSetsResponse\022G\n\020reference_imag" + + "es\030\001 \003(\0132-.google.cloud.vision.v1p4beta1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + + "p4beta1.BatchOperationMetadata.State\022/\n\013" + + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + + "AILED\020\003\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurg" + + "eConfig\022\026\n\016product_set_id\030\001 \001(\t\"\346\001\n\024Purg" + + "eProductsRequest\022X\n\030product_set_purge_co" + + "nfig\030\002 \001(\01324.google.cloud.vision.v1p4bet" + + "a1.ProductSetPurgeConfigH\000\022 \n\026delete_orp" + + "han_products\030\003 \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\r\n\005force\030\004 \001(\010B\010\n\006target2\322 \n\rProductSear" + + "ch\022\346\001\n\020CreateProductSet\0226.google.cloud.v" + + "ision.v1p4beta1.CreateProductSetRequest\032" + + ").google.cloud.vision.v1p4beta1.ProductS" + + "et\"o\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" + + "*/locations/*}/productSets:\013product_set\332" + + "A!parent,product_set,product_set_id\022\311\001\n\017" + + "ListProductSets\0225.google.cloud.vision.v1" + + "p4beta1.ListProductSetsRequest\0326.google." + + "cloud.vision.v1p4beta1.ListProductSetsRe" + + "sponse\"G\202\323\344\223\0028\0226/v1p4beta1/{parent=proje" + + "cts/*/locations/*}/productSets\332A\006parent\022" + + "\266\001\n\rGetProductSet\0223.google.cloud.vision." + + "v1p4beta1.GetProductSetRequest\032).google." + + "cloud.vision.v1p4beta1.ProductSet\"E\202\323\344\223\002" + + "8\0226/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}\332A\004name\022\350\001\n\020UpdateProdu" + + "ctSet\0226.google.cloud.vision.v1p4beta1.Up" + + "dateProductSetRequest\032).google.cloud.vis" + + "ion.v1p4beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p4b" + + "eta1/{product_set.name=projects/*/locati" + + "ons/*/productSets/*}:\013product_set\332A\027prod" + + "uct_set,update_mask\022\251\001\n\020DeleteProductSet" + + "\0226.google.cloud.vision.v1p4beta1.DeleteP" + + "roductSetRequest\032\026.google.protobuf.Empty" + + "\"E\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/lo" + + "cations/*/productSets/*}\332A\004name\022\316\001\n\rCrea" + + "teProduct\0223.google.cloud.vision.v1p4beta" + + "1.CreateProductRequest\032&.google.cloud.vi" + + "sion.v1p4beta1.Product\"`\202\323\344\223\002>\"3/v1p4bet" + + "a1/{parent=projects/*/locations/*}/produ" + + "cts:\007product\332A\031parent,product,product_id" + + "\022\275\001\n\014ListProducts\0222.google.cloud.vision." + + "v1p4beta1.ListProductsRequest\0323.google.c" + + "loud.vision.v1p4beta1.ListProductsRespon" + + "se\"D\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/" + + "*/locations/*}/products\332A\006parent\022\252\001\n\nGet" + + "Product\0220.google.cloud.vision.v1p4beta1." + + "GetProductRequest\032&.google.cloud.vision." + + "v1p4beta1.Product\"B\202\323\344\223\0025\0223/v1p4beta1/{n" + + "ame=projects/*/locations/*/products/*}\332A" + + "\004name\022\320\001\n\rUpdateProduct\0223.google.cloud.v" + + "ision.v1p4beta1.UpdateProductRequest\032&.g" + + "oogle.cloud.vision.v1p4beta1.Product\"b\202\323" + + "\344\223\002F2;/v1p4beta1/{product.name=projects/" + + "*/locations/*/products/*}:\007product\332A\023pro" + + "duct,update_mask\022\240\001\n\rDeleteProduct\0223.goo" + + "gle.cloud.vision.v1p4beta1.DeleteProduct" + + "Request\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*" + + "3/v1p4beta1/{name=projects/*/locations/*" + + "/products/*}\332A\004name\022\216\002\n\024CreateReferenceI" + + "mage\022:.google.cloud.vision.v1p4beta1.Cre" + + "ateReferenceImageRequest\032-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\"\212\001\202\323\344\223\002X" + + "\"E/v1p4beta1/{parent=projects/*/location" + + "s/*/products/*}/referenceImages:\017referen" + + "ce_image\332A)parent,reference_image,refere" + + "nce_image_id\022\300\001\n\024DeleteReferenceImage\022:." + + "google.cloud.vision.v1p4beta1.DeleteRefe" + + "renceImageRequest\032\026.google.protobuf.Empt" + + "y\"T\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/l" + + "ocations/*/products/*/referenceImages/*}" + + "\332A\004name\022\344\001\n\023ListReferenceImages\0229.google" + + ".cloud.vision.v1p4beta1.ListReferenceIma" + + "gesRequest\032:.google.cloud.vision.v1p4bet" + + "a1.ListReferenceImagesResponse\"V\202\323\344\223\002G\022E" + + "/v1p4beta1/{parent=projects/*/locations/" + + "*/products/*}/referenceImages\332A\006parent\022\321" + + "\001\n\021GetReferenceImage\0227.google.cloud.visi" + + "on.v1p4beta1.GetReferenceImageRequest\032-." + + "google.cloud.vision.v1p4beta1.ReferenceI" + + "mage\"T\202\323\344\223\002G\022E/v1p4beta1/{name=projects/" + + "*/locations/*/products/*/referenceImages" + + "/*}\332A\004name\022\313\001\n\026AddProductToProductSet\022<." + + "google.cloud.vision.v1p4beta1.AddProduct" + + "ToProductSetRequest\032\026.google.protobuf.Em" + + "pty\"[\202\323\344\223\002F\"A/v1p4beta1/{name=projects/*" + + "/locations/*/productSets/*}:addProduct:\001" + + "*\332A\014name,product\022\330\001\n\033RemoveProductFromPr" + + "oductSet\022A.google.cloud.vision.v1p4beta1" + + ".RemoveProductFromProductSetRequest\032\026.go" + + "ogle.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p4beta1/" + + "{name=projects/*/locations/*/productSets" + + "/*}:removeProduct:\001*\332A\014name,product\022\353\001\n\030" + + "ListProductsInProductSet\022>.google.cloud." + + "vision.v1p4beta1.ListProductsInProductSe" + + "tRequest\032?.google.cloud.vision.v1p4beta1" + + ".ListProductsInProductSetResponse\"N\202\323\344\223\002" + + "A\022?/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}/products\332A\004name\022\202\002\n\021Im" + + "portProductSets\0227.google.cloud.vision.v1" + + "p4beta1.ImportProductSetsRequest\032\035.googl" + + "e.longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p4b" + + "eta1/{parent=projects/*/locations/*}/pro" + + "ductSets:import:\001*\332A\023parent,input_config" + + "\312A3\n\031ImportProductSetsResponse\022\026BatchOpe" + + "rationMetadata\022\344\001\n\rPurgeProducts\0223.googl" + + "e.cloud.vision.v1p4beta1.PurgeProductsRe" + + "quest\032\035.google.longrunning.Operation\"\177\202\323" + + "\344\223\002>\"9/v1p4beta1/{parent=projects/*/loca" + + "tions/*}/products:purge:\001*\332A\006parent\312A/\n\025" + + "google.protobuf.Empty\022\026BatchOperationMet" + + "adata\032v\312A\025vision.googleapis.com\322A[https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/cloud-v" + + "isionB\217\001\n!com.google.cloud.vision.v1p4be" + + "ta1B\031ProductSearchServiceProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/vi" + + "sion/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", }); + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor = + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor, + new java.lang.String[] { "Name", "DisplayName", "IndexTime", "IndexError", }); + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor, + new java.lang.String[] { "Name", "Uri", "BoundingPolys", }); + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor, + new java.lang.String[] { "Parent", "Product", "ProductId", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor, + new java.lang.String[] { "Products", "NextPageToken", }); + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor, + new java.lang.String[] { "Product", "UpdateMask", }); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor, + new java.lang.String[] { "Parent", "ProductSet", "ProductSetId", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor, + new java.lang.String[] { "ProductSets", "NextPageToken", }); + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor, + new java.lang.String[] { "ProductSet", "UpdateMask", }); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor, + new java.lang.String[] { "Parent", "ReferenceImage", "ReferenceImageId", }); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor, + new java.lang.String[] { "ReferenceImages", "PageSize", "NextPageToken", }); + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor, + new java.lang.String[] { "Name", "Product", }); + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor, + new java.lang.String[] { "Name", "Product", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor, + new java.lang.String[] { "Products", "NextPageToken", }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor, + new java.lang.String[] { "CsvFileUri", }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor, + new java.lang.String[] { "Parent", "InputConfig", }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor, + new java.lang.String[] { "ReferenceImages", "Statuses", }); + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor, + new java.lang.String[] { "State", "SubmitTime", "EndTime", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor, + new java.lang.String[] { "ProductSetId", }); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor, + new java.lang.String[] { "ProductSetPurgeConfig", "DeleteOrphanProducts", "Parent", "Force", "Target", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java similarity index 76% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java index b2f56da7b..322846f8d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A ProductSet contains Products. A ProductSet can contain a maximum of 1
  * million reference images. If the limit is exceeded, periodic indexing will
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSet}
  */
-public final class ProductSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ProductSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSet)
     ProductSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ProductSet.newBuilder() to construct.
   private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ProductSet() {
     name_ = "";
     displayName_ = "";
@@ -46,15 +28,16 @@ private ProductSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ProductSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ProductSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,56 +56,51 @@ private ProductSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (indexTime_ != null) {
+              subBuilder = indexTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (indexTime_ != null) {
-                subBuilder = indexTime_.toBuilder();
-              }
-              indexTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(indexTime_);
-                indexTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(indexTime_);
+              indexTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (indexError_ != null) {
-                subBuilder = indexError_.toBuilder();
-              }
-              indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(indexError_);
-                indexError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (indexError_ != null) {
+              subBuilder = indexError_.toBuilder();
+            }
+            indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(indexError_);
+              indexError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -130,33 +108,29 @@ private ProductSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ProductSet.class,
-            com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ProductSet.class, com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -165,7 +139,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -174,15 +147,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -191,15 +163,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -210,15 +183,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -227,30 +197,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -261,8 +231,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -271,9 +239,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ @java.lang.Override @@ -281,8 +247,6 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -291,9 +255,7 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ @java.lang.Override @@ -301,8 +263,6 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -311,8 +271,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -322,8 +281,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -331,7 +288,6 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ @java.lang.Override @@ -339,8 +295,6 @@ public boolean hasIndexError() { return indexError_ != null; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -348,7 +302,6 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ @java.lang.Override @@ -356,8 +309,6 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -372,7 +323,6 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -384,7 +334,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -413,10 +364,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -426,23 +379,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSet)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ProductSet other =
-        (com.google.cloud.vision.v1p4beta1.ProductSet) obj;
+    com.google.cloud.vision.v1p4beta1.ProductSet other = (com.google.cloud.vision.v1p4beta1.ProductSet) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime().equals(other.getIndexTime())) return false;
+      if (!getIndexTime()
+          .equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError().equals(other.getIndexError())) return false;
+      if (!getIndexError()
+          .equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -472,104 +428,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -578,23 +527,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSet)
       com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ProductSet.class,
-              com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ProductSet.class, com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder()
@@ -602,15 +549,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -634,9 +582,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -655,8 +603,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ProductSet result =
-          new com.google.cloud.vision.v1p4beta1.ProductSet(this);
+      com.google.cloud.vision.v1p4beta1.ProductSet result = new com.google.cloud.vision.v1p4beta1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -677,39 +624,38 @@ public com.google.cloud.vision.v1p4beta1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSet) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -763,8 +709,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -773,13 +717,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -788,8 +732,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -798,14 +740,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -813,8 +756,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -823,22 +764,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -847,18 +786,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ProductSet.
      * Format is:
@@ -867,16 +803,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -884,21 +820,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -907,22 +841,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -930,64 +863,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -995,13 +921,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - indexTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1010,17 +931,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1029,9 +946,7 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -1042,8 +957,6 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1052,8 +965,7 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -1069,8 +981,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1079,10 +989,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -1093,8 +1003,6 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1103,14 +1011,13 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1122,8 +1029,6 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1132,8 +1037,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1147,8 +1051,6 @@ public Builder clearIndexTime() { return this; } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1157,17 +1059,14 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1176,19 +1075,17 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** - * - * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1197,21 +1094,17 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), getParentForChildren(), isClean()); + indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), + getParentForChildren(), + isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1219,11 +1112,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1231,15 +1121,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1247,7 +1134,6 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1258,8 +1144,6 @@ public com.google.rpc.Status getIndexError() { } } /** - * - * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1282,8 +1166,6 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1292,7 +1174,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1303,8 +1186,6 @@ public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1317,7 +1198,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1329,8 +1210,6 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1351,8 +1230,6 @@ public Builder clearIndexError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1362,13 +1239,11 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-
+      
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1381,12 +1256,11 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1396,21 +1270,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
+        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getIndexError(),
+                getParentForChildren(),
+                isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1420,12 +1294,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSet)
   private static final com.google.cloud.vision.v1p4beta1.ProductSet DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSet();
   }
@@ -1434,16 +1308,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSet getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ProductSet parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ProductSet(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ProductSet parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ProductSet(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1458,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
similarity index 100%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
similarity index 79%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
index b067ed338..9b10318dc 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ProductSetOrBuilder
-    extends
+public interface ProductSetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -34,13 +16,10 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ProductSet.
    * Format is:
@@ -49,41 +28,34 @@ public interface ProductSetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -92,15 +64,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -109,15 +77,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** - * - * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -126,14 +90,11 @@ public interface ProductSetOrBuilder
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -141,13 +102,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -155,13 +113,10 @@ public interface ProductSetOrBuilder
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** - * - * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
similarity index 70%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
index d1118b075..30d6cd995 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Config to control which ProductSet contains the Products to be deleted.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} */ -public final class ProductSetPurgeConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductSetPurgeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) ProductSetPurgeConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductSetPurgeConfig.newBuilder() to construct. private ProductSetPurgeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductSetPurgeConfig() { productSetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductSetPurgeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductSetPurgeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ProductSetPurgeConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + productSetId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private ProductSetPurgeConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); } public static final int PRODUCT_SET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object productSetId_; /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string product_set_id = 1; - * * @return The productSetId. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -150,15 +126,16 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productSetId_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other = - (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) obj; + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other = (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) obj; - if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!getProductSetId() + .equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to control which ProductSet contains the Products to be deleted.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = - new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(this); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(this); result.productSetId_ = productSetId_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) return this; if (!other.getProductSetId().isEmpty()) { productSetId_ = other.productSetId_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object productSetId_ = ""; /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string product_set_id = 1; - * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getProductSetId() { } } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -520,14 +480,15 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString getProductSetIdBytes() { + public com.google.protobuf.ByteString + getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); productSetId_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getProductSetIdBytes() { } } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getProductSetIdBytes() {
      * 
* * string product_set_id = 1; - * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId(java.lang.String value) { + public Builder setProductSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -567,18 +524,15 @@ public Builder setProductSetId(java.lang.String value) {
      * 
* * string product_set_id = 1; - * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** - * - * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -586,23 +540,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 1; - * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) private static final com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(); } @@ -626,16 +580,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSetPurgeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSetPurgeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSetPurgeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSetPurgeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java index 9c93161da..6da4f7de9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSetPurgeConfigOrBuilder - extends +public interface ProductSetPurgeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -33,13 +15,10 @@ public interface ProductSetPurgeConfigOrBuilder
    * 
* * string product_set_id = 1; - * * @return The productSetId. */ java.lang.String getProductSetId(); /** - * - * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -47,8 +26,8 @@ public interface ProductSetPurgeConfigOrBuilder
    * 
* * string product_set_id = 1; - * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString getProductSetIdBytes(); + com.google.protobuf.ByteString + getProductSetIdBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java index e18c65ce9..102b6ba75 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; value_ = ""; @@ -44,15 +26,16 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private Property( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 24: - { - uint64Value_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + case 24: { + + uint64Value_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Property.class, - com.google.cloud.vision.v1p4beta1.Property.Builder.class); + com.google.cloud.vision.v1p4beta1.Property.class, com.google.cloud.vision.v1p4beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -194,29 +167,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -227,14 +200,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -243,7 +213,6 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,17 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Property other = - (com.google.cloud.vision.v1p4beta1.Property) obj; + com.google.cloud.vision.v1p4beta1.Property other = (com.google.cloud.vision.v1p4beta1.Property) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (getUint64Value() != other.getUint64Value()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (getUint64Value() + != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,133 +291,125 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Property) com.google.cloud.vision.v1p4beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Property.class, - com.google.cloud.vision.v1p4beta1.Property.Builder.class); + com.google.cloud.vision.v1p4beta1.Property.class, com.google.cloud.vision.v1p4beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Property.newBuilder() @@ -452,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override @@ -495,8 +461,7 @@ public com.google.cloud.vision.v1p4beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Property buildPartial() { - com.google.cloud.vision.v1p4beta1.Property result = - new com.google.cloud.vision.v1p4beta1.Property(this); + com.google.cloud.vision.v1p4beta1.Property result = new com.google.cloud.vision.v1p4beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -508,39 +473,38 @@ public com.google.cloud.vision.v1p4beta1.Property buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Property) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Property)other); } else { super.mergeFrom(other); return this; @@ -591,20 +555,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,21 +575,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,61 +596,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the property.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -697,20 +651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -719,21 +671,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -741,76 +692,66 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * Value of the property.
      * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_; + private long uint64Value_ ; /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ @java.lang.Override @@ -818,43 +759,37 @@ public long getUint64Value() { return uint64Value_; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** - * - * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; - * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -864,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Property) private static final com.google.cloud.vision.v1p4beta1.Property DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Property(); } @@ -878,16 +813,16 @@ public static com.google.cloud.vision.v1p4beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java similarity index 56% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java index a9023f1fd..eba732a7d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the property.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Value of the property.
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; - * * @return The uint64Value. */ long getUint64Value(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java index c4a79219c..30c0e2389 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `PurgeProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} */ -public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PurgeProductsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) PurgeProductsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PurgeProductsRequest.newBuilder() to construct. private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PurgeProductsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PurgeProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PurgeProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,43 @@ private PurgeProductsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = - ((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_).toBuilder(); - } - target_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; - } - case 24: - { - target_ = input.readBool(); - targetCase_ = 3; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_).toBuilder(); } - case 32: - { - force_ = input.readBool(); - break; + target_ = + input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + target_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetCase_ = 2; + break; + } + case 24: { + target_ = input.readBool(); + targetCase_ = 3; + break; + } + case 32: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,40 +97,35 @@ private PurgeProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_SET_PURGE_CONFIG(2), DELETE_ORPHAN_PRODUCTS(3), TARGET_NOT_SET(0); private final int value; - private TargetCase(int value) { this.value = value; } @@ -170,36 +141,30 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: - return PRODUCT_SET_PURGE_CONFIG; - case 3: - return DELETE_ORPHAN_PRODUCTS; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 2: return PRODUCT_SET_PURGE_CONFIG; + case 3: return DELETE_ORPHAN_PRODUCTS; + case 0: return TARGET_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -207,26 +172,21 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return The productSetPurgeConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -234,25 +194,21 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurg * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder - getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER = 3; /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ @java.lang.Override @@ -260,15 +216,12 @@ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ @java.lang.Override @@ -282,17 +235,12 @@ public boolean getDeleteOrphanProducts() { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -301,32 +249,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -337,15 +283,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_; /** - * - * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -354,7 +297,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -374,7 +317,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) target_)); + output.writeBool( + 3, (boolean)((java.lang.Boolean) target_)); } if (force_ != false) { output.writeBool(4, force_); @@ -392,17 +336,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (targetCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) target_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) target_)); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,23 +356,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other = - (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) obj; + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other = (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getForce() != other.getForce()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getForce() + != other.getForce()) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getProductSetPurgeConfig().equals(other.getProductSetPurgeConfig())) return false; + if (!getProductSetPurgeConfig() + .equals(other.getProductSetPurgeConfig())) return false; break; case 3: - if (getDeleteOrphanProducts() != other.getDeleteOrphanProducts()) return false; + if (getDeleteOrphanProducts() + != other.getDeleteOrphanProducts()) return false; break; case 0: default: @@ -447,7 +394,8 @@ public int hashCode() { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); switch (targetCase_) { case 2: hash = (37 * hash) + PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER; @@ -455,7 +403,8 @@ public int hashCode() { break; case 3: hash = (37 * hash) + DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteOrphanProducts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleteOrphanProducts()); break; case 0: default: @@ -466,127 +415,117 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `PurgeProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) com.google.cloud.vision.v1p4beta1.PurgeProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.newBuilder() @@ -594,15 +533,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override @@ -637,8 +577,7 @@ public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = - new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(this); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(this); if (targetCase_ == 2) { if (productSetPurgeConfigBuilder_ == null) { result.target_ = target_; @@ -660,39 +599,38 @@ public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest)other); } else { super.mergeFrom(other); return this; @@ -700,8 +638,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -710,20 +647,17 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest setForce(other.getForce()); } switch (other.getTargetCase()) { - case PRODUCT_SET_PURGE_CONFIG: - { - mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); - break; - } - case DELETE_ORPHAN_PRODUCTS: - { - setDeleteOrphanProducts(other.getDeleteOrphanProducts()); - break; - } - case TARGET_NOT_SET: - { - break; - } + case PRODUCT_SET_PURGE_CONFIG: { + mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); + break; + } + case DELETE_ORPHAN_PRODUCTS: { + setDeleteOrphanProducts(other.getDeleteOrphanProducts()); + break; + } + case TARGET_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -744,8 +678,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -754,12 +687,12 @@ public Builder mergeFrom( } return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -769,21 +702,15 @@ public Builder clearTarget() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> - productSetPurgeConfigBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> productSetPurgeConfigBuilder_; /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -791,15 +718,11 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; * @return The productSetPurgeConfig. */ @java.lang.Override @@ -817,17 +740,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurg } } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder setProductSetPurgeConfig( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -841,14 +760,11 @@ public Builder setProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ public Builder setProductSetPurgeConfig( com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder builderForValue) { @@ -862,26 +778,18 @@ public Builder setProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder mergeProductSetPurgeConfig( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { - if (targetCase_ == 2 - && target_ - != com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) { - target_ = - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder( - (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_) - .mergeFrom(value) - .buildPartial(); + if (targetCase_ == 2 && + target_ != com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) { + target_ = com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_) + .mergeFrom(value).buildPartial(); } else { target_ = value; } @@ -897,14 +805,11 @@ public Builder mergeProductSetPurgeConfig( return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ public Builder clearProductSetPurgeConfig() { if (productSetPurgeConfigBuilder_ == null) { @@ -923,32 +828,24 @@ public Builder clearProductSetPurgeConfig() { return this; } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder - getProductSetPurgeConfigBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder getProductSetPurgeConfigBuilder() { return getProductSetPurgeConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder - getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { if ((targetCase_ == 2) && (productSetPurgeConfigBuilder_ != null)) { return productSetPurgeConfigBuilder_.getMessageOrBuilder(); } else { @@ -959,65 +856,50 @@ public Builder clearProductSetPurgeConfig() { } } /** - * - * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> getProductSetPurgeConfigFieldBuilder() { if (productSetPurgeConfigBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } - productSetPurgeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder>( + productSetPurgeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder>( (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; - onChanged(); - ; + onChanged();; return productSetPurgeConfigBuilder_; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ public boolean getDeleteOrphanProducts() { @@ -1027,15 +909,12 @@ public boolean getDeleteOrphanProducts() { return false; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @param value The deleteOrphanProducts to set. * @return This builder for chaining. */ @@ -1046,15 +925,12 @@ public Builder setDeleteOrphanProducts(boolean value) { return this; } /** - * - * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; - * * @return This builder for chaining. */ public Builder clearDeleteOrphanProducts() { @@ -1068,23 +944,19 @@ public Builder clearDeleteOrphanProducts() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1093,24 +965,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1118,86 +987,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -1205,45 +1058,39 @@ public boolean getForce() { return force_; } /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1253,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) private static final com.google.cloud.vision.v1p4beta1.PurgeProductsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(); } @@ -1267,16 +1114,16 @@ public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1291,4 +1138,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java index d373cefe8..1674236f2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java @@ -1,132 +1,89 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface PurgeProductsRequestOrBuilder - extends +public interface PurgeProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.PurgeProductsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return Whether the productSetPurgeConfig field is set. */ boolean hasProductSetPurgeConfig(); /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; - * * @return The productSetPurgeConfig. */ com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig(); /** - * - * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder - getProductSetPurgeConfigOrBuilder(); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder(); /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return Whether the deleteOrphanProducts field is set. */ boolean hasDeleteOrphanProducts(); /** - * - * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; - * * @return The deleteOrphanProducts. */ boolean getDeleteOrphanProducts(); /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java index 9cd9e61de..1db5a0eb6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ReferenceImage}
  */
-public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReferenceImage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ReferenceImage)
     ReferenceImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -46,15 +28,16 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,39 +57,34 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                boundingPolys_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              boundingPolys_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry));
-              break;
+            uri_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              boundingPolys_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundingPolys_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,7 +92,8 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -123,27 +102,22 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-        .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
-            com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ReferenceImage.class, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -152,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -161,15 +134,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -178,15 +150,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -197,15 +170,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -214,30 +184,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -248,8 +218,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -260,17 +228,13 @@ public com.google.protobuf.ByteString getUriBytes() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -281,18 +245,14 @@ public java.util.List getBoundin
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -303,17 +263,13 @@ public java.util.List getBoundin
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -324,17 +280,13 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -345,9 +297,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( @@ -356,7 +306,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,7 +317,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -394,7 +344,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -404,17 +355,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ReferenceImage other = - (com.google.cloud.vision.v1p4beta1.ReferenceImage) obj; + com.google.cloud.vision.v1p4beta1.ReferenceImage other = (com.google.cloud.vision.v1p4beta1.ReferenceImage) obj; - if (!getName().equals(other.getName())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getBoundingPolysList() + .equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -439,104 +392,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -544,23 +490,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ReferenceImage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ReferenceImage)
       com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
-              com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ReferenceImage.class, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder()
@@ -568,17 +512,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -596,9 +540,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
-          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -617,8 +561,7 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ReferenceImage result =
-          new com.google.cloud.vision.v1p4beta1.ReferenceImage(this);
+      com.google.cloud.vision.v1p4beta1.ReferenceImage result = new com.google.cloud.vision.v1p4beta1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -639,39 +582,38 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ReferenceImage) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ReferenceImage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -679,8 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ReferenceImage other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -707,10 +648,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ReferenceImage other)
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBoundingPolysFieldBuilder()
-                    : null;
+            boundingPolysBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBoundingPolysFieldBuilder() : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -744,13 +684,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -759,13 +696,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -774,8 +711,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -784,14 +719,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -799,8 +735,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -809,22 +743,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -833,18 +765,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the reference image.
      * Format is:
@@ -853,16 +782,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -870,21 +799,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -893,22 +820,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -916,89 +842,75 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = - new java.util.ArrayList(boundingPolys_); + boundingPolys_ = new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingPolysBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolysBuilder_; /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1009,9 +921,7 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -1021,8 +931,6 @@ public java.util.List getBoundin } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1033,9 +941,7 @@ public java.util.List getBoundin
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -1045,8 +951,6 @@ public int getBoundingPolysCount() { } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1057,9 +961,7 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1069,8 +971,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1081,9 +981,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -1100,8 +998,6 @@ public Builder setBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1112,9 +1008,7 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1128,8 +1022,6 @@ public Builder setBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1140,9 +1032,7 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1158,8 +1048,6 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1170,9 +1058,7 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -1189,8 +1075,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1201,9 +1085,7 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1217,8 +1099,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1229,9 +1109,7 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1245,8 +1123,6 @@ public Builder addBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1257,15 +1133,14 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1273,8 +1148,6 @@ public Builder addAllBoundingPolys( return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1285,9 +1158,7 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1300,8 +1171,6 @@ public Builder clearBoundingPolys() { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1312,9 +1181,7 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1327,8 +1194,6 @@ public Builder removeBoundingPolys(int index) { return this; } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1339,17 +1204,13 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBuilder( int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1360,21 +1221,16 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); - } else { + return boundingPolys_.get(index); } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1385,12 +1241,10 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1398,8 +1252,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO } } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1410,17 +1262,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1431,18 +1279,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder( int index) { - return getBoundingPolysFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); } /** - * - * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1453,26 +1297,18 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1481,9 +1317,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu } return boundingPolysBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ReferenceImage) private static final com.google.cloud.vision.v1p4beta1.ReferenceImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ReferenceImage(); } @@ -1507,16 +1343,16 @@ public static com.google.cloud.vision.v1p4beta1.ReferenceImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1367,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java similarity index 72% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java index 04149af76..0168999b0 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ReferenceImageOrBuilder - extends +public interface ReferenceImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -34,13 +16,10 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the reference image.
    * Format is:
@@ -49,41 +28,34 @@ public interface ReferenceImageOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -94,14 +66,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getBoundingPolysList(); + java.util.List + getBoundingPolysList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -112,14 +81,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -130,14 +95,10 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getBoundingPolysCount(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -148,15 +109,11 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** - * - * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -167,9 +124,8 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java similarity index 63% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java index 7232b3ee7..fdcef3b96 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RemoveProductFromProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -45,15 +26,16 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,27 +54,25 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + product_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,43 +80,36 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -145,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,8 +153,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** - * - * *
    * Required. The resource name for the Product to be removed from this
    * ProductSet.
@@ -191,10 +160,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ @java.lang.Override @@ -203,15 +169,14 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** - * - * *
    * Required. The resource name for the Product to be removed from this
    * ProductSet.
@@ -219,18 +184,17 @@ public java.lang.String getProduct() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -239,7 +203,6 @@ public com.google.protobuf.ByteString getProductBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +214,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,16 +245,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other = - (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProduct().equals(other.getProduct())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProduct() + .equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,145 +277,134 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -462,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - .getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance(); } @java.lang.Override @@ -485,8 +437,7 @@ public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buil @java.lang.Override public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -497,51 +448,46 @@ public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) { - return mergeFrom( - (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other) { - if (other - == com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other) { + if (other == com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -569,9 +515,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -583,24 +527,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -609,25 +549,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -635,73 +572,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -709,8 +633,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object product_ = ""; /** - * - * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -718,16 +640,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -736,8 +656,6 @@ public java.lang.String getProduct() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -745,17 +663,16 @@ public java.lang.String getProduct() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for product. */ - public com.google.protobuf.ByteString getProductBytes() { + public com.google.protobuf.ByteString + getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); product_ = b; return b; } else { @@ -763,8 +680,6 @@ public com.google.protobuf.ByteString getProductBytes() { } } /** - * - * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -772,25 +687,21 @@ public com.google.protobuf.ByteString getProductBytes() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct(java.lang.String value) { + public Builder setProduct( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -798,21 +709,16 @@ public Builder setProduct(java.lang.String value) {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -820,26 +726,24 @@ public Builder clearProduct() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes(com.google.protobuf.ByteString value) { + public Builder setProductBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -849,32 +753,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -886,8 +788,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..8e1d54f4c --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface RemoveProductFromProductSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The product. + */ + java.lang.String getProduct(); + /** + *
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for product. + */ + com.google.protobuf.ByteString + getProductBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java similarity index 76% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java index 19309a52f..7586ab5ab 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SafeSearchAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -49,15 +31,16 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,48 +59,43 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              adult_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            adult_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              spoof_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            spoof_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              medical_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            medical_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              violence_ = rawValue;
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            violence_ = rawValue;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              racy_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            racy_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,33 +103,29 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class,
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
-   *
-   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -159,16 +133,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -176,22 +146,17 @@ public int getAdultValue() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The adult. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -199,16 +164,12 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -216,94 +177,71 @@ public int getSpoofValue() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The spoof. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The medical. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The violence. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -312,16 +250,12 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -330,19 +264,15 @@ public int getRacyValue() {
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The racy. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -380,19 +311,24 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -402,13 +338,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other = - (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -442,104 +377,96 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -548,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class,
-              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder()
@@ -572,15 +497,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +545,7 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation result =
-          new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -634,39 +559,38 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -674,8 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -710,8 +633,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -723,8 +645,6 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
-     *
-     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -732,16 +652,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override - public int getAdultValue() { + @java.lang.Override public int getAdultValue() { return adult_; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -749,19 +665,16 @@ public int getAdultValue() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -769,19 +682,15 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -789,7 +698,6 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @param value The adult to set. * @return This builder for chaining. */ @@ -797,14 +705,12 @@ public Builder setAdult(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -812,11 +718,10 @@ public Builder setAdult(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -824,8 +729,6 @@ public Builder clearAdult() { private int spoof_ = 0; /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -833,16 +736,12 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override - public int getSpoofValue() { + @java.lang.Override public int getSpoofValue() { return spoof_; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -850,19 +749,16 @@ public int getSpoofValue() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -870,19 +766,15 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -890,7 +782,6 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @param value The spoof to set. * @return This builder for chaining. */ @@ -898,14 +789,12 @@ public Builder setSpoof(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -913,11 +802,10 @@ public Builder setSpoof(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -925,65 +813,51 @@ public Builder clearSpoof() { private int medical_ = 0; /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override - public int getMedicalValue() { + @java.lang.Override public int getMedicalValue() { return medical_; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @param value The medical to set. * @return This builder for chaining. */ @@ -991,24 +865,21 @@ public Builder setMedical(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -1016,65 +887,51 @@ public Builder clearMedical() { private int violence_ = 0; /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override - public int getViolenceValue() { + @java.lang.Override public int getViolenceValue() { return violence_; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @param value The violence to set. * @return This builder for chaining. */ @@ -1082,24 +939,21 @@ public Builder setViolence(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -1107,8 +961,6 @@ public Builder clearViolence() { private int racy_ = 0; /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1117,16 +969,12 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override - public int getRacyValue() { + @java.lang.Override public int getRacyValue() { return racy_; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1135,19 +983,16 @@ public int getRacyValue() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1156,19 +1001,15 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = - com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1177,7 +1018,6 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @param value The racy to set. * @return This builder for chaining. */ @@ -1185,14 +1025,12 @@ public Builder setRacy(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1201,18 +1039,17 @@ public Builder setRacy(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1222,12 +1059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(); } @@ -1236,16 +1073,16 @@ public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java index 5938a5045..215efc070 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface SafeSearchAnnotationOrBuilder - extends +public interface SafeSearchAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -33,13 +15,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** - * - * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -47,14 +26,11 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; - * * @return The adult. */ com.google.cloud.vision.v1p4beta1.Likelihood getAdult(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -62,13 +38,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** - * - * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -76,64 +49,49 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; - * * @return The spoof. */ com.google.cloud.vision.v1p4beta1.Likelihood getSpoof(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** - * - * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; - * * @return The medical. */ com.google.cloud.vision.v1p4beta1.Likelihood getMedical(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** - * - * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; - * * @return The violence. */ com.google.cloud.vision.v1p4beta1.Likelihood getViolence(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -142,13 +100,10 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** - * - * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -157,7 +112,6 @@ public interface SafeSearchAnnotationOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; - * * @return The racy. */ com.google.cloud.vision.v1p4beta1.Likelihood getRacy(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java similarity index 75% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java index 363cde8de..704cc93c6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Symbol} */ -public final class Symbol extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Symbol extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Symbol) SymbolOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,50 @@ private Symbol( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - - break; + property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 37: - { - confidence_ = input.readFloat(); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,39 +104,34 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Symbol.class, - com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p4beta1.Symbol.class, com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -170,25 +139,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -196,16 +158,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -225,7 +184,6 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -233,8 +191,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -254,18 +210,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -294,14 +245,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ @java.lang.Override @@ -310,29 +258,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -343,14 +291,11 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -359,7 +304,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -394,16 +339,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,7 +361,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Symbol)) { return super.equals(obj); @@ -422,15 +370,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,133 +405,125 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Symbol} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Symbol) com.google.cloud.vision.v1p4beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Symbol.class, - com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p4beta1.Symbol.class, com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Symbol.newBuilder() @@ -587,15 +531,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override @@ -640,8 +585,7 @@ public com.google.cloud.vision.v1p4beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p4beta1.Symbol result = - new com.google.cloud.vision.v1p4beta1.Symbol(this); + com.google.cloud.vision.v1p4beta1.Symbol result = new com.google.cloud.vision.v1p4beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -662,39 +606,38 @@ public com.google.cloud.vision.v1p4beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Symbol) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Symbol)other); } else { super.mergeFrom(other); return this; @@ -747,55 +690,41 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,8 +738,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -829,22 +756,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -856,8 +778,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -876,42 +796,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the symbol.
      * 
@@ -919,17 +830,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -937,13 +845,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -963,15 +866,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,21 +891,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1040,8 +935,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1074,8 +967,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1100,9 +991,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1114,8 +1003,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1148,8 +1035,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1171,13 +1056,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1202,14 +1085,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1231,17 +1111,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1249,20 +1126,18 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1271,21 +1146,20 @@ public java.lang.String getText() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1293,76 +1167,66 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1370,43 +1234,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Symbol) private static final com.google.cloud.vision.v1p4beta1.Symbol DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Symbol(); } @@ -1430,16 +1288,16 @@ public static com.google.cloud.vision.v1p4beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,4 +1312,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java similarity index 83% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java index ef397e425..b4ee30e25 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface SymbolOrBuilder - extends +public interface SymbolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the symbol.
    * 
@@ -59,8 +35,6 @@ public interface SymbolOrBuilder com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface SymbolOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,39 +104,31 @@ public interface SymbolOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java similarity index 70% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java index 2e1bbca8d..70b394e9c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation}
  */
-public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -51,15 +33,16 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,31 +62,28 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pages_.add(
-                  input.readMessage(
-                      com.google.cloud.vision.v1p4beta1.Page.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pages_.add(
+                input.readMessage(com.google.cloud.vision.v1p4beta1.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            text_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,7 +91,8 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -120,30 +101,24 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
-        .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.class,
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder
-      extends
+  public interface DetectedLanguageOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -151,13 +126,10 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -165,58 +137,53 @@ public interface DetectedLanguageOrBuilder
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); } /** - * - * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -235,25 +202,24 @@ private DetectedLanguage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -261,33 +227,29 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -295,7 +257,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +265,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -320,15 +280,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -339,14 +300,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -355,7 +313,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -387,7 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,17 +356,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,102 +382,95 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -527,49 +480,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using - // com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,16 +529,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @java.lang.Override @@ -604,8 +550,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage result = - new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -616,53 +561,46 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom( - (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other) { - if (other - == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other) { + if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -689,9 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,8 +639,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,13 +646,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -727,8 +661,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -736,14 +668,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -751,8 +684,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -760,22 +691,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -783,18 +712,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -802,31 +728,28 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -834,41 +757,34 @@ public float getConfidence() { return confidence_; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -881,32 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,89 +832,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DetectedBreakOrBuilder - extends + public interface DetectedBreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ boolean getIsPrefix(); } /** - * - * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DetectedBreak extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1019,25 +921,24 @@ private DetectedBreak( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - isPrefix_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 16: { + + isPrefix_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,41 +946,36 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); } /** - * - * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown break label type.
        * 
@@ -1088,8 +984,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
        * Regular space.
        * 
@@ -1098,8 +992,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SPACE(1), /** - * - * *
        * Sure space (very wide).
        * 
@@ -1108,8 +1000,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ SURE_SPACE(2), /** - * - * *
        * Line-wrapping break.
        * 
@@ -1118,8 +1008,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ EOL_SURE_SPACE(3), /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1129,8 +1017,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       HYPHEN(4),
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1142,8 +1028,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown break label type.
        * 
@@ -1152,8 +1036,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
        * Regular space.
        * 
@@ -1162,8 +1044,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPACE_VALUE = 1; /** - * - * *
        * Sure space (very wide).
        * 
@@ -1172,8 +1052,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SURE_SPACE_VALUE = 2; /** - * - * *
        * Line-wrapping break.
        * 
@@ -1182,8 +1060,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EOL_SURE_SPACE_VALUE = 3; /** - * - * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1193,8 +1069,6 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int HYPHEN_VALUE = 4;
       /**
-       *
-       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1203,6 +1077,7 @@ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_BREAK_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1227,57 +1102,52 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return SPACE; - case 2: - return SURE_SPACE; - case 3: - return EOL_SURE_SPACE; - case 4: - return HYPHEN; - case 5: - return LINE_BREAK; - default: - return null; + case 0: return UNKNOWN; + case 1: return SPACE; + case 2: return SURE_SPACE; + case 3: return EOL_SURE_SPACE; + case 4: return HYPHEN; + case 5: return LINE_BREAK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BreakType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1297,52 +1167,38 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** - * - * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1351,7 +1207,6 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1363,10 +1218,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1381,13 +1235,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1397,16 +1251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() != other.getIsPrefix()) return false; + if (getIsPrefix() + != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1421,101 +1275,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1525,32 +1373,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1558,15 +1401,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1578,14 +1422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1600,8 +1443,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak result = - new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1612,52 +1454,46 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other) { - if (other - == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other) { + if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1683,9 +1519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1697,113 +1531,85 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED - : result; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_; + private boolean isPrefix_ ; /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return The isPrefix. */ @java.lang.Override @@ -1811,41 +1617,34 @@ public boolean getIsPrefix() { return isPrefix_; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** - * - * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; - * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1858,32 +1657,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1895,153 +1692,119 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TextPropertyOrBuilder - extends + public interface TextPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List + java.util.List getDetectedLanguagesList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ int getDetectedLanguagesCount(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + java.util.List getDetectedLanguagesOrBuilderList(); /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** - * - * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TextProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2061,45 +1824,35 @@ private TextProperty( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage>(); - mutable_bitField0_ |= 0x00000001; - } - detectedLanguages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder subBuilder = - null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); - } - detectedBreak_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); - } - - break; + detectedLanguages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2107,7 +1860,8 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -2116,117 +1870,87 @@ private TextProperty( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List - detectedLanguages_; + private java.util.List detectedLanguages_; /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + public java.util.List getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { return detectedLanguages_.get(index); } /** - * - * *
      * A list of detected languages together with confidence.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detectedBreak_; /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -2234,25 +1958,18 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** - * - * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } /** - * - * *
      * Detected start or end of a text segment.
      * 
@@ -2260,13 +1977,11 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2278,7 +1993,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2295,11 +2011,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2309,18 +2026,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList() + .equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak() + .equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2347,94 +2065,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2444,32 +2155,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder() @@ -2477,17 +2183,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2507,14 +2213,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2529,8 +2234,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty result = - new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2554,52 +2258,46 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other) { - if (other - == com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other) { + if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2618,10 +2316,9 @@ public Builder mergeFrom( detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetectedLanguagesFieldBuilder() - : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetectedLanguagesFieldBuilder() : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2649,9 +2346,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2660,41 +2355,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - detectedLanguages_ = java.util.Collections.emptyList(); - + private java.util.List detectedLanguages_ = + java.util.Collections.emptyList(); private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage>( - detectedLanguages_); + detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> - detectedLanguagesBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List - getDetectedLanguagesList() { + public java.util.List getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2702,15 +2384,11 @@ private void ensureDetectedLanguagesIsMutable() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2720,18 +2398,13 @@ public int getDetectedLanguagesCount() { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( - int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2739,15 +2412,11 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDete } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { @@ -2764,20 +2433,14 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder setDetectedLanguages( - int index, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2788,18 +2451,13 @@ public Builder setDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public Builder addDetectedLanguages( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2813,15 +2471,11 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { @@ -2838,19 +2492,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2861,20 +2510,14 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addDetectedLanguages( - int index, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2885,23 +2528,18 @@ public Builder addDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder addAllDetectedLanguages( - java.lang.Iterable< - ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage> - values) { + java.lang.Iterable values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2909,15 +2547,11 @@ public Builder addAllDetectedLanguages( return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2930,15 +2564,11 @@ public Builder clearDetectedLanguages() { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2951,53 +2581,39 @@ public Builder removeDetectedLanguages(int index) { return this; } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - getDetectedLanguagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( + int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder - getDetectedLanguagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( + int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); - } else { + return detectedLanguages_.get(index); } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> - getDetectedLanguagesOrBuilderList() { + public java.util.List + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -3005,70 +2621,45 @@ public Builder removeDetectedLanguages(int index) { } } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder - addDetectedLanguagesBuilder(int index) { - return getDetectedLanguagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage - .getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( + int index) { + return getDetectedLanguagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** - * - * *
        * A list of detected languages together with confidence.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; - * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; */ - public java.util.List< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder> - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3080,58 +2671,41 @@ public Builder removeDetectedLanguages(int index) { private com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> - detectedBreakBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; * @return The detectedBreak. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3145,14 +2719,11 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder setDetectedBreak( com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -3166,24 +2737,17 @@ public Builder setDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder( - detectedBreak_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); } else { detectedBreak_ = value; } @@ -3195,14 +2759,11 @@ public Builder mergeDetectedBreak( return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -3216,68 +2777,52 @@ public Builder clearDetectedBreak() { return this; } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder - getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder - getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() - : detectedBreak_; + return detectedBreak_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; } } /** - * - * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; - * + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), getParentForChildren(), isClean()); + detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), + getParentForChildren(), + isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3290,32 +2835,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty - DEFAULT_INSTANCE; - + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty - getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3327,17 +2870,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty - getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3349,8 +2890,6 @@ public java.util.List getPagesList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3358,13 +2897,11 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3376,8 +2913,6 @@ public int getPagesCount() { return pages_.size(); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3389,8 +2924,6 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { return pages_.get(index); } /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -3398,21 +2931,19 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( + int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3421,29 +2952,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -3452,7 +2983,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3464,7 +2994,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3481,7 +3012,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3494,16 +3026,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation other = - (com.google.cloud.vision.v1p4beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation other = (com.google.cloud.vision.v1p4beta1.TextAnnotation) obj; - if (!getPagesList().equals(other.getPagesList())) return false; - if (!getText().equals(other.getText())) return false; + if (!getPagesList() + .equals(other.getPagesList())) return false; + if (!getText() + .equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3526,104 +3059,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3637,23 +3163,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation)
       com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.TextAnnotation.class,
-              com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p4beta1.TextAnnotation.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder()
@@ -3661,17 +3185,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3687,9 +3211,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3708,8 +3232,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p4beta1.TextAnnotation result =
-          new com.google.cloud.vision.v1p4beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p4beta1.TextAnnotation result = new com.google.cloud.vision.v1p4beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3729,39 +3252,38 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3769,8 +3291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance()) return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3789,10 +3310,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPagesFieldBuilder()
-                    : null;
+            pagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPagesFieldBuilder() : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3830,28 +3350,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Page,
-            com.google.cloud.vision.v1p4beta1.Page.Builder,
-            com.google.cloud.vision.v1p4beta1.PageOrBuilder>
-        pagesBuilder_;
+        com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder> pagesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3866,8 +3379,6 @@ public java.util.List getPagesList() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3882,8 +3393,6 @@ public int getPagesCount() { } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3898,15 +3407,14 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder setPages(int index, com.google.cloud.vision.v1p4beta1.Page value) { + public Builder setPages( + int index, com.google.cloud.vision.v1p4beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,8 +3428,6 @@ public Builder setPages(int index, com.google.cloud.vision.v1p4beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3940,8 +3446,6 @@ public Builder setPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -3962,15 +3466,14 @@ public Builder addPages(com.google.cloud.vision.v1p4beta1.Page value) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder addPages(int index, com.google.cloud.vision.v1p4beta1.Page value) { + public Builder addPages( + int index, com.google.cloud.vision.v1p4beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3984,15 +3487,14 @@ public Builder addPages(int index, com.google.cloud.vision.v1p4beta1.Page value) return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder addPages(com.google.cloud.vision.v1p4beta1.Page.Builder builderForValue) { + public Builder addPages( + com.google.cloud.vision.v1p4beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -4003,8 +3505,6 @@ public Builder addPages(com.google.cloud.vision.v1p4beta1.Page.Builder builderFo return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4023,8 +3523,6 @@ public Builder addPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4035,7 +3533,8 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -4043,8 +3542,6 @@ public Builder addAllPages( return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4062,8 +3559,6 @@ public Builder clearPages() { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4081,44 +3576,39 @@ public Builder removePages(int index) { return this; } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.Page.Builder getPagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.Page.Builder getPagesBuilder( + int index) { return getPagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( + int index) { if (pagesBuilder_ == null) { - return pages_.get(index); - } else { + return pages_.get(index); } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -4126,8 +3616,6 @@ public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int ind } } /** - * - * *
      * List of pages detected by OCR.
      * 
@@ -4135,47 +3623,42 @@ public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int ind * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder(int index) { - return getPagesFieldBuilder() - .addBuilder(index, com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder( + int index) { + return getPagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); } /** - * - * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public java.util.List getPagesBuilderList() { + public java.util.List + getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Page, - com.google.cloud.vision.v1p4beta1.Page.Builder, - com.google.cloud.vision.v1p4beta1.PageOrBuilder> + com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Page, - com.google.cloud.vision.v1p4beta1.Page.Builder, - com.google.cloud.vision.v1p4beta1.PageOrBuilder>( - pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder>( + pages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); pages_ = null; } return pagesBuilder_; @@ -4183,20 +3666,18 @@ public java.util.List getPagesBu private java.lang.Object text_ = ""; /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -4205,21 +3686,20 @@ public java.lang.String getText() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -4227,68 +3707,61 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4298,12 +3771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation) private static final com.google.cloud.vision.v1p4beta1.TextAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation(); } @@ -4312,16 +3785,16 @@ public static com.google.cloud.vision.v1p4beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4336,4 +3809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java similarity index 63% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java index 029f1e130..5883d723e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface TextAnnotationOrBuilder - extends +public interface TextAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - java.util.List getPagesList(); + java.util.List + getPagesList(); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -44,8 +25,6 @@ public interface TextAnnotationOrBuilder */ com.google.cloud.vision.v1p4beta1.Page getPages(int index); /** - * - * *
    * List of pages detected by OCR.
    * 
@@ -54,48 +33,41 @@ public interface TextAnnotationOrBuilder */ int getPagesCount(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - java.util.List getPagesOrBuilderList(); + java.util.List + getPagesOrBuilderList(); /** - * - * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( + int index); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java new file mode 100644 index 000000000..b90c1c69e --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/text_annotation.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p4beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p4b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p4beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p4beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p4beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p4beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p4beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p4beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p4beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p4beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p4beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p4b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p4beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p4beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p4beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p4beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p4beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p4beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p4beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\211\001" + + "\n!com.google.cloud.vision.v1p4beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p4beta1" + + ";vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor, + new java.lang.String[] { "Pages", "Text", }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { "Type", "IsPrefix", }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor, + new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor, + new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java similarity index 51% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java index 3ce07f30d..c77dee331 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -28,29 +11,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextDetectionParams extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TextDetectionParams() {}
+  private TextDetectionParams() {
+    advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,6 +44,7 @@ private TextDetectionParams(
     if (extensionRegistry == null) {
       throw new java.lang.NullPointerException();
     }
+    int mutable_bitField0_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -69,18 +55,27 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72:
-            {
-              enableTextDetectionConfidenceScore_ = input.readBool();
-              break;
+          case 72: {
+
+            enableTextDetectionConfidenceScore_ = input.readBool();
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            advancedOcrOptions_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,33 +83,32 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
+      if (((mutable_bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+      }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-        .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.TextDetectionParams.class,
-            com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p4beta1.TextDetectionParams.class, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
-   *
-   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -122,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -130,8 +123,58 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } - private byte memoizedIsInitialized = -1; + public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList advancedOcrOptions_; + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_; + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,10 +186,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -157,9 +204,16 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 9, enableTextDetectionConfidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enableTextDetectionConfidenceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < advancedOcrOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdvancedOcrOptionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -169,16 +223,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextDetectionParams other = - (com.google.cloud.vision.v1p4beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p4beta1.TextDetectionParams other = (com.google.cloud.vision.v1p4beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) - return false; + if (getEnableTextDetectionConfidenceScore() + != other.getEnableTextDetectionConfidenceScore()) return false; + if (!getAdvancedOcrOptionsList() + .equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -191,113 +246,108 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTextDetectionConfidenceScore()); + if (getAdvancedOcrOptionsCount() > 0) { + hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.TextDetectionParams prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -305,23 +355,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.TextDetectionParams}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextDetectionParams)
       com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.TextDetectionParams.class,
-              com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p4beta1.TextDetectionParams.class, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder()
@@ -329,27 +377,30 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
       enableTextDetectionConfidenceScore_ = false;
 
+      advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
-          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -368,9 +419,14 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p4beta1.TextDetectionParams result =
-          new com.google.cloud.vision.v1p4beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p4beta1.TextDetectionParams result = new com.google.cloud.vision.v1p4beta1.TextDetectionParams(this);
+      int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.advancedOcrOptions_ = advancedOcrOptions_;
       onBuilt();
       return result;
     }
@@ -379,39 +435,38 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextDetectionParams) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextDetectionParams)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -419,11 +474,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance()) return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
+      if (!other.advancedOcrOptions_.isEmpty()) {
+        if (advancedOcrOptions_.isEmpty()) {
+          advancedOcrOptions_ = other.advancedOcrOptions_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureAdvancedOcrOptionsIsMutable();
+          advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+        }
+        onChanged();
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -443,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.vision.v1p4beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.vision.v1p4beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -453,11 +516,10 @@ public Builder mergeFrom(
       }
       return this;
     }
+    private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_;
+    private boolean enableTextDetectionConfidenceScore_ ;
     /**
-     *
-     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -465,7 +527,6 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -473,8 +534,6 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -482,19 +541,16 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** - * - * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -502,18 +558,163 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; - * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } + private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + public com.google.protobuf.ProtocolStringList + getAdvancedOcrOptionsList() { + return advancedOcrOptions_.getUnmodifiableView(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + public int getAdvancedOcrOptionsCount() { + return advancedOcrOptions_.size(); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + public java.lang.String getAdvancedOcrOptions(int index) { + return advancedOcrOptions_.get(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + public com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index) { + return advancedOcrOptions_.getByteString(index); + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index to set the value at. + * @param value The advancedOcrOptions to set. + * @return This builder for chaining. + */ + public Builder setAdvancedOcrOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param values The advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAllAdvancedOcrOptions( + java.lang.Iterable values) { + ensureAdvancedOcrOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, advancedOcrOptions_); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @return This builder for chaining. + */ + public Builder clearAdvancedOcrOptions() { + advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A list of advanced OCR options to fine-tune OCR behavior.
+     * 
+ * + * repeated string advanced_ocr_options = 11; + * @param value The bytes of the advancedOcrOptions to add. + * @return This builder for chaining. + */ + public Builder addAdvancedOcrOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdvancedOcrOptionsIsMutable(); + advancedOcrOptions_.add(value); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p4beta1.TextDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextDetectionParams(); } @@ -537,16 +738,16 @@ public static com.google.cloud.vision.v1p4beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -561,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java new file mode 100644 index 000000000..6740edf2c --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface TextDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * By default, Cloud Vision API only includes confidence score for
+   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
+   * score for TEXT_DETECTION as well.
+   * 
+ * + * bool enable_text_detection_confidence_score = 9; + * @return The enableTextDetectionConfidenceScore. + */ + boolean getEnableTextDetectionConfidenceScore(); + + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return A list containing the advancedOcrOptions. + */ + java.util.List + getAdvancedOcrOptionsList(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @return The count of advancedOcrOptions. + */ + int getAdvancedOcrOptionsCount(); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the element to return. + * @return The advancedOcrOptions at the given index. + */ + java.lang.String getAdvancedOcrOptions(int index); + /** + *
+   * A list of advanced OCR options to fine-tune OCR behavior.
+   * 
+ * + * repeated string advanced_ocr_options = 11; + * @param index The index of the value to return. + * @return The bytes of the advancedOcrOptions at the given index. + */ + com.google.protobuf.ByteString + getAdvancedOcrOptionsBytes(int index); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java similarity index 68% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java index 9766020d5..261460028 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductRequest} */ -public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.UpdateProductRequest) UpdateProductRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductRequest() {} + private UpdateProductRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +92,35 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Product product_; /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ @java.lang.Override @@ -156,36 +128,25 @@ public boolean hasProduct() { return product_ != null; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { @@ -195,8 +156,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -206,7 +165,6 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -214,8 +172,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -225,7 +181,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -233,8 +188,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -251,7 +204,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -263,7 +215,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -280,10 +233,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -293,21 +248,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.UpdateProductRequest other =
-        (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1p4beta1.UpdateProductRequest other = (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct().equals(other.getProduct())) return false;
+      if (!getProduct()
+          .equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -334,127 +290,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.UpdateProductRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.UpdateProductRequest) com.google.cloud.vision.v1p4beta1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.UpdateProductRequest.newBuilder() @@ -462,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -511,8 +458,7 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.UpdateProductRequest result = - new com.google.cloud.vision.v1p4beta1.UpdateProductRequest(this); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest result = new com.google.cloud.vision.v1p4beta1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -531,39 +477,38 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductRequest)other); } else { super.mergeFrom(other); return this; @@ -571,8 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()) return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -598,8 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,61 +554,42 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> - productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } else { return productBuilder_.getMessage(); } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -681,18 +605,15 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct( + com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -703,24 +624,18 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder buil return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); } else { product_ = value; } @@ -732,16 +647,12 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -755,67 +666,51 @@ public Builder clearProduct() { return this; } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null - ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() - : product_; + return product_ == null ? + com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; } } /** - * - * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, - com.google.cloud.vision.v1p4beta1.Product.Builder, - com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), getParentForChildren(), isClean()); + productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), + getParentForChildren(), + isClean()); product_ = null; } return productBuilder_; @@ -823,13 +718,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -839,15 +729,12 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -857,21 +744,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -896,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -908,7 +788,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -919,8 +800,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -935,7 +814,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -947,8 +826,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -971,8 +848,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -984,13 +859,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -1005,14 +878,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -1024,24 +894,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1051,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1p4beta1.UpdateProductRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.UpdateProductRequest();
   }
@@ -1065,16 +932,16 @@ public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1089,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
similarity index 67%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
index 4cefc7013..238641947 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
@@ -1,75 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface UpdateProductRequestOrBuilder
-    extends
+public interface UpdateProductRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the product field is set. */ boolean hasProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** - * - * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -79,13 +47,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -95,13 +60,10 @@ public interface UpdateProductRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
similarity index 68%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
index fb38ee202..eef96da65 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProductSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateProductSetRequest() {} + private UpdateProductSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasProductSet() { return productSet_ != null; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -192,8 +153,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -202,7 +161,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -210,8 +168,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -220,7 +176,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -228,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -245,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -257,7 +209,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -274,10 +227,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,21 +242,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other =
-        (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other = (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet().equals(other.getProductSet())) return false;
+      if (!getProductSet()
+          .equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -328,127 +284,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.UpdateProductSetRequest) com.google.cloud.vision.v1p4beta1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.newBuilder() @@ -456,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto - .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -505,8 +452,7 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest result = - new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest result = new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -525,39 +471,38 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest)other); } else { super.mergeFrom(other); return this; @@ -565,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()) return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -592,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,58 +548,39 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> - productSetBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetBuilder_; /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } else { return productSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -672,15 +596,11 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -694,23 +614,17 @@ public Builder setProductSet( return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); } else { productSet_ = value; } @@ -722,15 +636,11 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -744,64 +654,48 @@ public Builder clearProductSet() { return this; } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null - ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() - : productSet_; + return productSet_ == null ? + com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; } } /** - * - * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, - com.google.cloud.vision.v1p4beta1.ProductSet.Builder, - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - getProductSet(), getParentForChildren(), isClean()); + productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + getProductSet(), + getParentForChildren(), + isClean()); productSet_ = null; } return productSetBuilder_; @@ -809,13 +703,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -824,15 +713,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -841,21 +727,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -879,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -890,7 +769,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -901,8 +781,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -916,7 +794,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -928,8 +806,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -951,8 +827,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -963,13 +837,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -983,14 +855,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -1001,24 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1028,12 +894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest();
   }
@@ -1042,16 +908,16 @@ public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProductSetRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateProductSetRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProductSetRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateProductSetRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
index 6404dbf21..bf61f1ef0 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface UpdateProductSetRequestOrBuilder
-    extends
+public interface UpdateProductSetRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the productSet field is set. */ boolean hasProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The productSet. */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** - * - * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -75,13 +43,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -90,13 +55,10 @@ public interface UpdateProductSetRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
similarity index 69%
rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
index 2a17e853e..45a6c19c1 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
+++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/geometry.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
- *
- *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto
-        .internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Vertex.class,
-            com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Vertex.class, com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,15 +172,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p4beta1.Vertex other = (com.google.cloud.vision.v1p4beta1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,104 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -328,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Vertex)
       com.google.cloud.vision.v1p4beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Vertex.class,
-              com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Vertex.class, com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Vertex.newBuilder()
@@ -352,15 +323,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto
-          .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -393,8 +365,7 @@ public com.google.cloud.vision.v1p4beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Vertex result =
-          new com.google.cloud.vision.v1p4beta1.Vertex(this);
+      com.google.cloud.vision.v1p4beta1.Vertex result = new com.google.cloud.vision.v1p4beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -405,39 +376,38 @@ public com.google.cloud.vision.v1p4beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Vertex) other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -498,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -550,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Vertex) private static final com.google.cloud.vision.v1p4beta1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Vertex(); } @@ -610,16 +562,16 @@ public static com.google.cloud.vision.v1p4beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java new file mode 100644 index 000000000..7dc7ef73c --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java similarity index 71% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java index 4ec5bb6b3..3c798741e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/web_detection.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection} */ -public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection) WebDetectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -48,15 +30,16 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,97 +59,67 @@ private WebDetection( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity>(); - mutable_bitField0_ |= 0x00000001; - } - webEntities_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + webEntities_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000004; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage>(); - mutable_bitField0_ |= 0x00000008; - } - pagesWithMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.parser(), - extensionRegistry)); - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000010; - } - visuallySimilarImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + pagesWithMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel>(); - mutable_bitField0_ |= 0x00000020; - } - bestGuessLabels_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.parser(), - extensionRegistry)); - break; + visuallySimilarImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bestGuessLabels_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -174,7 +127,8 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -198,110 +152,90 @@ private WebDetection( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.class, - com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.class, com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder - extends + public interface WebEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebEntity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebEntity() { entityId_ = ""; description_ = ""; @@ -309,15 +243,16 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -336,32 +271,30 @@ private WebEntity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: { - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,39 +302,34 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The entityId. */ @java.lang.Override @@ -410,29 +338,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -443,15 +371,12 @@ public com.google.protobuf.ByteString getEntityIdBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -462,14 +387,11 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -478,29 +400,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -509,7 +431,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -544,7 +466,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -557,18 +480,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) obj; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getDescription().equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,7 +508,8 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -592,94 +518,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -689,32 +608,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebEntity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.newBuilder() @@ -722,15 +636,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -744,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -765,8 +680,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -778,41 +692,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity)other); } else { super.mergeFrom(other); return this; @@ -820,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -852,8 +762,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -865,20 +774,18 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -887,21 +794,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -909,77 +815,67 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { + public Builder setEntityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** - * - * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -987,38 +883,32 @@ public float getScore() { return score_; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1026,20 +916,18 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1048,21 +936,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1070,66 +957,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1142,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(); } @@ -1156,16 +1035,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,85 +1059,75 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebImageOrBuilder - extends + public interface WebImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); } /** - * - * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebImage} */ - public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebImage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,25 +1146,24 @@ private WebImage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + url_ = s; + break; + } + case 21: { + + score_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1303,39 +1171,34 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -1344,29 +1207,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result image URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1377,14 +1240,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1393,7 +1253,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,7 +1264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1425,7 +1285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1435,17 +1296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1460,101 +1322,95 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1564,32 +1420,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebImage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebImage) com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.newBuilder() @@ -1597,15 +1448,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1638,8 +1490,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1650,41 +1501,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebImage)other); } else { super.mergeFrom(other); return this; @@ -1692,8 +1540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1720,8 +1567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1733,20 +1579,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1755,21 +1599,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -1777,76 +1620,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result image URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -1854,41 +1687,34 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1901,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebImage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(); } @@ -1915,16 +1741,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,143 +1765,113 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebPageOrBuilder - extends + public interface WebPageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ float getScore(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ java.lang.String getPageTitle(); /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString getPageTitleBytes(); + com.google.protobuf.ByteString + getPageTitleBytes(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ int getFullMatchingImagesCount(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2083,15 +1879,11 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2099,14 +1891,10 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2114,14 +1902,10 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ int getPartialMatchingImagesCount(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2129,15 +1913,11 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2145,32 +1925,27 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); } /** - * - * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebPage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebPage() { url_ = ""; pageTitle_ = ""; @@ -2180,15 +1955,16 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2208,60 +1984,48 @@ private WebPage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: { - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000001; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + score_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000002; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; + fullMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + partialMatchingImages_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2269,7 +2033,8 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2281,33 +2046,27 @@ private WebPage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The url. */ @java.lang.Override @@ -2316,29 +2075,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
      * The result web page URL.
      * 
* * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -2349,14 +2108,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** - * - * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -2367,14 +2123,11 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The pageTitle. */ @java.lang.Override @@ -2383,29 +2136,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** - * - * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2414,95 +2167,73 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2510,18 +2241,13 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2529,19 +2255,14 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2549,17 +2270,13 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } - /** - * - * + /** *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2567,18 +2284,13 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2586,18 +2298,15 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2609,7 +2318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2638,19 +2348,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2660,21 +2370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (!getPageTitle() + .equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2689,7 +2402,8 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2706,94 +2420,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2803,32 +2510,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.newBuilder() @@ -2836,18 +2538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2873,9 +2575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2894,8 +2596,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2926,41 +2627,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)other); } else { super.mergeFrom(other); return this; @@ -2968,8 +2666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2999,10 +2696,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -3026,10 +2722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -3054,8 +2749,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3064,25 +2758,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object url_ = ""; /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -3091,21 +2782,20 @@ public java.lang.String getUrl() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -3113,76 +2803,66 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
        * The result web page URL.
        * 
* * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_; + private float score_ ; /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return The score. */ @java.lang.Override @@ -3190,36 +2870,30 @@ public float getScore() { return score_; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** - * - * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -3227,20 +2901,18 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -3249,21 +2921,20 @@ public java.lang.String getPageTitle() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString getPageTitleBytes() { + public com.google.protobuf.ByteString + getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -3271,98 +2942,80 @@ public com.google.protobuf.ByteString getPageTitleBytes() { } } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle(java.lang.String value) { + public Builder setPageTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** - * - * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; - * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3370,16 +3023,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3389,19 +3038,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3409,16 +3053,12 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3435,20 +3075,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3459,19 +3094,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3485,16 +3115,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3511,16 +3137,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3534,20 +3156,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3558,23 +3175,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3582,16 +3195,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3604,16 +3213,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3626,56 +3231,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3683,70 +3274,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3756,27 +3325,19 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3784,12 +3345,9 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3797,8 +3355,6 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3806,9 +3362,7 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3818,8 +3372,6 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3827,12 +3379,9 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3840,8 +3389,6 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3849,9 +3396,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3868,8 +3413,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3877,13 +3420,10 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3894,8 +3434,6 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3903,12 +3441,9 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3922,8 +3457,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3931,9 +3464,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3950,8 +3481,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3959,9 +3488,7 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3975,8 +3502,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3984,13 +3509,10 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -4001,8 +3523,6 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4010,16 +3530,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -4027,8 +3545,6 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4036,9 +3552,7 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -4051,8 +3565,6 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4060,9 +3572,7 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -4075,8 +3585,6 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4084,17 +3592,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4102,21 +3606,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4124,13 +3623,10 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -4138,8 +3634,6 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4147,19 +3641,13 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4167,20 +3655,14 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -4188,26 +3670,18 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4216,7 +3690,6 @@ public Builder removePartialMatchingImages(int index) { } return partialMatchingImagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4229,12 +3702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebPage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(); } @@ -4243,16 +3716,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4267,41 +3740,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebLabelOrBuilder - extends + public interface WebLabelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4309,13 +3775,10 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4323,30 +3786,27 @@ public interface WebLabelOrBuilder
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class WebLabel extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { label_ = ""; languageCode_ = ""; @@ -4354,15 +3814,16 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4381,27 +3842,25 @@ private WebLabel( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4409,39 +3868,34 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The label. */ @java.lang.Override @@ -4450,29 +3904,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Label for extra metadata.
      * 
* * string label = 1; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4483,8 +3937,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4492,7 +3944,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string language_code = 2; - * * @return The languageCode. */ @java.lang.Override @@ -4501,15 +3952,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } - /** - * - * + /** *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -4517,15 +3967,16 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4534,7 +3985,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4546,7 +3996,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4576,16 +4027,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4607,94 +4059,87 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4704,32 +4149,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.newBuilder() @@ -4737,15 +4177,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4757,9 +4198,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4778,8 +4219,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4790,41 +4230,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)other); } else { super.mergeFrom(other); return this; @@ -4832,8 +4269,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4861,8 +4297,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4874,20 +4309,18 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4896,21 +4329,20 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4918,61 +4350,54 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
        * Label for extra metadata.
        * 
* * string label = 1; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4980,8 +4405,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4989,13 +4412,13 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string language_code = 2; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -5004,8 +4427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5013,14 +4434,15 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -5028,8 +4450,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5037,22 +4457,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
        * 
* * string language_code = 2; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5060,18 +4478,15 @@ public Builder setLanguageCode(java.lang.String value) {
        * 
* * string language_code = 2; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -5079,21 +4494,20 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5106,12 +4520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(); } @@ -5120,16 +4534,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5144,13 +4558,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5158,13 +4571,10 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5172,13 +4582,11 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5190,8 +4598,6 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5203,8 +4609,6 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -5218,429 +4622,326 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List - fullMatchingImages_; + private java.util.List fullMatchingImages_; /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List - partialMatchingImages_; + private java.util.List partialMatchingImages_; /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - pagesWithMatchingImages_; + private java.util.List pagesWithMatchingImages_; /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List - visuallySimilarImages_; + private java.util.List visuallySimilarImages_; /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { return bestGuessLabels_; } /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5652,7 +4953,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -5681,29 +4983,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, partialMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, pagesWithMatchingImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, visuallySimilarImages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5713,21 +5014,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection other = - (com.google.cloud.vision.v1p4beta1.WebDetection) obj; - - if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) - return false; - if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p4beta1.WebDetection other = (com.google.cloud.vision.v1p4beta1.WebDetection) obj; + + if (!getWebEntitiesList() + .equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList() + .equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList() + .equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList() + .equals(other.getPagesWithMatchingImagesList())) return false; + if (!getVisuallySimilarImagesList() + .equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList() + .equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5768,127 +5073,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection) com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.class, - com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.class, com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder() @@ -5896,13 +5192,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5911,7 +5208,6 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5955,9 +5251,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override @@ -5976,8 +5272,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection result = - new com.google.cloud.vision.v1p4beta1.WebDetection(this); + com.google.cloud.vision.v1p4beta1.WebDetection result = new com.google.cloud.vision.v1p4beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6008,8 +5303,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -6042,39 +5336,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection)other); } else { super.mergeFrom(other); return this; @@ -6101,10 +5394,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebEntitiesFieldBuilder() - : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebEntitiesFieldBuilder() : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -6128,10 +5420,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFullMatchingImagesFieldBuilder() : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -6155,10 +5446,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialMatchingImagesFieldBuilder() : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -6182,10 +5472,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPagesWithMatchingImagesFieldBuilder() - : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPagesWithMatchingImagesFieldBuilder() : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -6209,10 +5498,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVisuallySimilarImagesFieldBuilder() - : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVisuallySimilarImagesFieldBuilder() : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -6236,10 +5524,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBestGuessLabelsFieldBuilder() - : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBestGuessLabelsFieldBuilder() : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -6273,38 +5560,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = - new java.util.ArrayList( - webEntities_); + webEntities_ = new java.util.ArrayList(webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> - webEntitiesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesList() { + public java.util.List getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -6312,8 +5589,6 @@ private void ensureWebEntitiesIsMutable() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6328,8 +5603,6 @@ public int getWebEntitiesCount() { } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6344,8 +5617,6 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(i } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6367,8 +5638,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6376,8 +5645,7 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -6388,8 +5656,6 @@ public Builder setWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6410,8 +5676,6 @@ public Builder addWebEntities(com.google.cloud.vision.v1p4beta1.WebDetection.Web return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6433,8 +5697,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6453,8 +5715,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6462,8 +5722,7 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -6474,8 +5733,6 @@ public Builder addWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6483,11 +5740,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -6495,8 +5752,6 @@ public Builder addAllWebEntities( return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6514,8 +5769,6 @@ public Builder clearWebEntities() { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6533,8 +5786,6 @@ public Builder removeWebEntities(int index) { return this; } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6546,34 +5797,28 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder - getWebEntitiesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( + int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); - } else { + return webEntities_.get(index); } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -6581,23 +5826,17 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder getWebEn } } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder - addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -6606,72 +5845,56 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder getWebEn */ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); } /** - * - * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List fullMatchingImages_ = + java.util.Collections.emptyList(); private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); + fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesList() { + public java.util.List getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -6679,15 +5902,12 @@ private void ensureFullMatchingImagesIsMutable() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -6697,18 +5917,14 @@ public int getFullMatchingImagesCount() { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -6716,15 +5932,12 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6741,19 +5954,15 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -6764,18 +5973,14 @@ public Builder setFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6789,15 +5994,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6814,15 +6016,12 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6836,19 +6035,15 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6859,22 +6054,19 @@ public Builder addFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6882,15 +6074,12 @@ public Builder addAllFullMatchingImages( return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6903,15 +6092,12 @@ public Builder clearFullMatchingImages() { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6924,53 +6110,42 @@ public Builder removeFullMatchingImages(int index) { return this; } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( + int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { + return fullMatchingImages_.get(index); } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6978,65 +6153,48 @@ public Builder removeFullMatchingImages(int index) { } } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( + int index) { + return getFullMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -7046,39 +6204,28 @@ public Builder removeFullMatchingImages(int index) { return fullMatchingImagesBuilder_; } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List partialMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); + partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesList() { + public java.util.List getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -7086,17 +6233,13 @@ private void ensurePartialMatchingImagesIsMutable() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -7106,20 +6249,15 @@ public int getPartialMatchingImagesCount() { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -7127,17 +6265,13 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -7154,21 +6288,16 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder setPartialMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -7179,20 +6308,15 @@ public Builder setPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7206,17 +6330,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -7233,17 +6353,13 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7257,21 +6373,16 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -7282,24 +6393,20 @@ public Builder addPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -7307,17 +6414,13 @@ public Builder addAllPartialMatchingImages( return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -7330,17 +6433,13 @@ public Builder clearPartialMatchingImages() { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -7353,59 +6452,45 @@ public Builder removePartialMatchingImages(int index) { return this; } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( + int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { + return partialMatchingImages_.get(index); } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7413,71 +6498,51 @@ public Builder removePartialMatchingImages(int index) { } } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( + int index) { + return getPartialMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7487,37 +6552,26 @@ public Builder removePartialMatchingImages(int index) { return partialMatchingImagesBuilder_; } - private java.util.List - pagesWithMatchingImages_ = java.util.Collections.emptyList(); - + private java.util.List pagesWithMatchingImages_ = + java.util.Collections.emptyList(); private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = - new java.util.ArrayList( - pagesWithMatchingImages_); + pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> - pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesList() { + public java.util.List getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -7525,15 +6579,11 @@ private void ensurePagesWithMatchingImagesIsMutable() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7543,18 +6593,13 @@ public int getPagesWithMatchingImagesCount() { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -7562,15 +6607,11 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchi } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { @@ -7587,15 +6628,11 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7609,18 +6646,13 @@ public Builder setPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public Builder addPagesWithMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7634,15 +6666,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { @@ -7659,15 +6687,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7681,15 +6705,11 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -7703,22 +6723,18 @@ public Builder addPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -7726,15 +6742,11 @@ public Builder addAllPagesWithMatchingImages( return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7747,15 +6759,11 @@ public Builder clearPagesWithMatchingImages() { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -7768,52 +6776,39 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder - getPagesWithMatchingImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( + int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); - } else { + return pagesWithMatchingImages_.get(index); } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7821,65 +6816,45 @@ public Builder removePagesWithMatchingImages(int index) { } } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder - addPagesWithMatchingImagesBuilder(int index) { - return getPagesWithMatchingImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( + int index) { + return getPagesWithMatchingImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); } /** - * - * *
      * Web pages containing the matching images from the Internet.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7889,37 +6864,26 @@ public Builder removePagesWithMatchingImages(int index) { return pagesWithMatchingImagesBuilder_; } - private java.util.List - visuallySimilarImages_ = java.util.Collections.emptyList(); - + private java.util.List visuallySimilarImages_ = + java.util.Collections.emptyList(); private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = - new java.util.ArrayList( - visuallySimilarImages_); + visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesList() { + public java.util.List getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -7927,15 +6891,11 @@ private void ensureVisuallySimilarImagesIsMutable() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -7945,18 +6905,13 @@ public int getVisuallySimilarImagesCount() { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -7964,15 +6919,11 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimila } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -7989,19 +6940,14 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder setVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -8012,18 +6958,13 @@ public Builder setVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public Builder addVisuallySimilarImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8037,15 +6978,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -8062,15 +6999,11 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -8084,19 +7017,14 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addVisuallySimilarImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -8107,22 +7035,18 @@ public Builder addVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -8130,15 +7054,11 @@ public Builder addAllVisuallySimilarImages( return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -8151,15 +7071,11 @@ public Builder clearVisuallySimilarImages() { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -8172,53 +7088,39 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getVisuallySimilarImagesBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( + int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); - } else { + return visuallySimilarImages_.get(index); } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -8226,65 +7128,45 @@ public Builder removeVisuallySimilarImages(int index) { } } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addVisuallySimilarImagesBuilder(int index) { - return getVisuallySimilarImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( + int index) { + return getVisuallySimilarImagesFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** - * - * *
      * The visually similar image results.
      * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8294,37 +7176,27 @@ public Builder removeVisuallySimilarImages(int index) { return visuallySimilarImagesBuilder_; } - private java.util.List - bestGuessLabels_ = java.util.Collections.emptyList(); - + private java.util.List bestGuessLabels_ = + java.util.Collections.emptyList(); private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = - new java.util.ArrayList( - bestGuessLabels_); + bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> - bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsList() { + public java.util.List getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -8332,15 +7204,12 @@ private void ensureBestGuessLabelsIsMutable() { } } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -8350,15 +7219,12 @@ public int getBestGuessLabelsCount() { } } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8368,15 +7234,12 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabel } } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { @@ -8393,19 +7256,15 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder setBestGuessLabels( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -8416,18 +7275,14 @@ public Builder setBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public Builder addBestGuessLabels( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8441,15 +7296,12 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { @@ -8466,15 +7318,12 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -8488,19 +7337,15 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addBestGuessLabels( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -8511,22 +7356,19 @@ public Builder addBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder addAllBestGuessLabels( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -8534,15 +7376,12 @@ public Builder addAllBestGuessLabels( return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -8555,15 +7394,12 @@ public Builder clearBestGuessLabels() { return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -8576,53 +7412,42 @@ public Builder removeBestGuessLabels(int index) { return this; } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder - getBestGuessLabelsBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( + int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder - getBestGuessLabelsOrBuilder(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( + int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); - } else { + return bestGuessLabels_.get(index); } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> - getBestGuessLabelsOrBuilderList() { + public java.util.List + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -8630,65 +7455,48 @@ public Builder removeBestGuessLabels(int index) { } } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder() - .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder().addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder - addBestGuessLabelsBuilder(int index) { - return getBestGuessLabelsFieldBuilder() - .addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( + int index) { + return getBestGuessLabelsFieldBuilder().addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); } /** - * - * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -8697,9 +7505,9 @@ public Builder removeBestGuessLabels(int index) { } return bestGuessLabelsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8709,12 +7517,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection) private static final com.google.cloud.vision.v1p4beta1.WebDetection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection(); } @@ -8723,16 +7531,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8747,4 +7555,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java similarity index 68% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java index 6170b2292..a82240253 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/web_detection.proto package com.google.cloud.vision.v1p4beta1; -public interface WebDetectionOrBuilder - extends +public interface WebDetectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List getWebEntitiesList(); + java.util.List + getWebEntitiesList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -44,8 +25,6 @@ public interface WebDetectionOrBuilder */ com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(int index); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -54,19 +33,15 @@ public interface WebDetectionOrBuilder */ int getWebEntitiesCount(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** - * - * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -77,330 +52,241 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ int getFullMatchingImagesCount(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** - * - * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ int getPartialMatchingImagesCount(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** - * - * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( + int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ int getPagesWithMatchingImagesCount(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** - * - * *
    * Web pages containing the matching images from the Internet.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder - getPagesWithMatchingImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( + int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ int getVisuallySimilarImagesCount(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** - * - * *
    * The visually similar image results.
    * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getVisuallySimilarImagesOrBuilder(int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( + int index); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List getBestGuessLabelsList(); + java.util.List + getBestGuessLabelsList(); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ int getBestGuessLabelsCount(); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** - * - * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; - * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; */ com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java similarity index 69% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java index 67b9d7a37..e49a16c72 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetectionParams} */ -public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebDetectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetectionParams) WebDetectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WebDetectionParams() {} + private WebDetectionParams() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: - { - includeGeoResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + includeGeoResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** - * - * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetectionParams other = - (com.google.cloud.vision.v1p4beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p4beta1.WebDetectionParams other = (com.google.cloud.vision.v1p4beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() + != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,133 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetectionParams) com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder() @@ -319,15 +291,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -358,8 +331,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetectionParams result = - new com.google.cloud.vision.v1p4beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p4beta1.WebDetectionParams result = new com.google.cloud.vision.v1p4beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -369,39 +341,38 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetectionParams) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetectionParams)other); } else { super.mergeFrom(other); return this; @@ -409,8 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance()) return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -433,8 +403,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -444,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_; + private boolean includeGeoResults_ ; /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return The includeGeoResults. */ @java.lang.Override @@ -461,43 +427,37 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** - * - * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; - * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -507,12 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p4beta1.WebDetectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetectionParams(); } @@ -521,16 +481,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -545,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..7e3a25f12 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface WebDetectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java new file mode 100644 index 000000000..aebd237f9 --- /dev/null +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/web_detection.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p4beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p4bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p4beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p4beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p4beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p4" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p4beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p4beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p4beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" + + "loud.vision.v1p4beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" + + "Nb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor, + new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { "EntityId", "Score", "Description", }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { "Url", "Score", }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { "Label", "LanguageCode", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java similarity index 77% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java index 1a1e63322..e27b6e943 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** - * - * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Word} */ -public final class Word extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Word extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Word) WordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,63 +54,53 @@ private Word( case 0: done = true; break; - case 10: - { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = - null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = - input.readMessage( - com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - symbols_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.Symbol.parser(), extensionRegistry)); - break; + boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); } - case 37: - { - confidence_ = input.readFloat(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + symbols_.add( + input.readMessage(com.google.cloud.vision.v1p4beta1.Symbol.parser(), extensionRegistry)); + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,7 +108,8 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -144,33 +118,27 @@ private Word( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Word.class, - com.google.cloud.vision.v1p4beta1.Word.Builder.class); + com.google.cloud.vision.v1p4beta1.Word.class, com.google.cloud.vision.v1p4beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ @java.lang.Override @@ -178,25 +146,18 @@ public boolean hasProperty() { return property_ != null; } /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } /** - * - * *
    * Additional information detected for the word.
    * 
@@ -204,16 +165,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -233,7 +191,6 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -241,8 +198,6 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -262,18 +217,13 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -302,8 +252,6 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -316,8 +264,6 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -326,13 +272,11 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -345,8 +289,6 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -359,8 +301,6 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -369,21 +309,19 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+  public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -392,7 +330,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -427,16 +365,20 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,7 +388,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Word)) { return super.equals(obj); @@ -455,15 +397,19 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty().equals(other.getProperty())) return false; + if (!getProperty() + .equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox().equals(other.getBoundingBox())) return false; + if (!getBoundingBox() + .equals(other.getBoundingBox())) return false; } - if (!getSymbolsList().equals(other.getSymbolsList())) return false; + if (!getSymbolsList() + .equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,133 +434,125 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Word parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Word} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Word) com.google.cloud.vision.v1p4beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Word.class, - com.google.cloud.vision.v1p4beta1.Word.Builder.class); + com.google.cloud.vision.v1p4beta1.Word.class, com.google.cloud.vision.v1p4beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Word.newBuilder() @@ -622,17 +560,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto - .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override @@ -681,8 +619,7 @@ public com.google.cloud.vision.v1p4beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Word buildPartial() { - com.google.cloud.vision.v1p4beta1.Word result = - new com.google.cloud.vision.v1p4beta1.Word(this); + com.google.cloud.vision.v1p4beta1.Word result = new com.google.cloud.vision.v1p4beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -712,39 +649,38 @@ public com.google.cloud.vision.v1p4beta1.Word buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Word) other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Word)other); } else { super.mergeFrom(other); return this; @@ -777,10 +713,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSymbolsFieldBuilder() - : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSymbolsFieldBuilder() : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -817,60 +752,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> - propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } else { return propertyBuilder_.getMessage(); } } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -884,8 +804,6 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -904,22 +822,17 @@ public Builder setProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); } else { property_ = value; } @@ -931,8 +844,6 @@ public Builder mergeProperty( return this; } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -951,42 +862,33 @@ public Builder clearProperty() { return this; } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder - getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder - getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null - ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() - : property_; + return property_ == null ? + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; } } /** - * - * *
      * Additional information detected for the word.
      * 
@@ -994,17 +896,14 @@ public Builder clearProperty() { * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), getParentForChildren(), isClean()); + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), + getParentForChildren(), + isClean()); property_ = null; } return propertyBuilder_; @@ -1012,13 +911,8 @@ public Builder clearProperty() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> - boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1038,15 +932,12 @@ public Builder clearProperty() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1066,21 +957,16 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null - ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() - : boundingBox_; + return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** - * - * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1115,8 +1001,6 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1149,8 +1033,6 @@ public Builder setBoundingBox(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1175,9 +1057,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1189,8 +1069,6 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1223,8 +1101,6 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1246,13 +1122,11 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-
+      
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1277,14 +1151,11 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null
-            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
-            : boundingBox_;
+        return boundingBox_ == null ?
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
       }
     }
     /**
-     *
-     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1306,41 +1177,32 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly,
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.BoundingPoly,
-                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
-                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(), getParentForChildren(), isClean());
+        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(),
+                getParentForChildren(),
+                isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Symbol,
-            com.google.cloud.vision.v1p4beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>
-        symbolsBuilder_;
+        com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder> symbolsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1356,8 +1218,6 @@ public java.util.List getSymbolsList()
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1373,8 +1233,6 @@ public int getSymbolsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1390,8 +1248,6 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1399,7 +1255,8 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
+    public Builder setSymbols(
+        int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1413,8 +1270,6 @@ public Builder setSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1434,8 +1289,6 @@ public Builder setSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1457,8 +1310,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1466,7 +1317,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
+    public Builder addSymbols(
+        int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1480,8 +1332,6 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol va
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1489,7 +1339,8 @@ public Builder addSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol va
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(
+        com.google.cloud.vision.v1p4beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1500,8 +1351,6 @@ public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1521,8 +1370,6 @@ public Builder addSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1534,7 +1381,8 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1542,8 +1390,6 @@ public Builder addAllSymbols(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1562,8 +1408,6 @@ public Builder clearSymbols() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1582,8 +1426,6 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1591,12 +1433,11 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(
+        int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1604,16 +1445,14 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
+    public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
+        int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);
-      } else {
+        return symbols_.get(index);  } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1621,8 +1460,8 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsOrBuilderList() {
+    public java.util.List 
+         getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1630,8 +1469,6 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1640,12 +1477,10 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder()
-          .addBuilder(com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder().addBuilder(
+          com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1653,13 +1488,12 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(int index) {
-      return getSymbolsFieldBuilder()
-          .addBuilder(index, com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(
+        int index) {
+      return getSymbolsFieldBuilder().addBuilder(
+          index, com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1667,38 +1501,32 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(int in
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public java.util.List
-        getSymbolsBuilderList() {
+    public java.util.List 
+         getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Symbol,
-            com.google.cloud.vision.v1p4beta1.Symbol.Builder,
-            com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>
+        com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder> 
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.vision.v1p4beta1.Symbol,
-                com.google.cloud.vision.v1p4beta1.Symbol.Builder,
-                com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>(
-                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>(
+                symbols_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_;
+    private float confidence_ ;
     /**
-     *
-     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1706,43 +1534,37 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1752,12 +1574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Word) private static final com.google.cloud.vision.v1p4beta1.Word DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Word(); } @@ -1766,16 +1588,16 @@ public static com.google.cloud.vision.v1p4beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1790,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java similarity index 85% rename from proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java index cf7787881..47ef3d774 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface WordOrBuilder - extends +public interface WordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Word) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return Whether the property field is set. */ boolean hasProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; - * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** - * - * *
    * Additional information detected for the word.
    * 
@@ -59,8 +35,6 @@ public interface WordOrBuilder com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -80,13 +54,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -106,13 +77,10 @@ public interface WordOrBuilder
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; - * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** - * - * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -136,8 +104,6 @@ public interface WordOrBuilder
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -145,10 +111,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  java.util.List getSymbolsList();
+  java.util.List 
+      getSymbolsList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -158,8 +123,6 @@ public interface WordOrBuilder
    */
   com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index);
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -169,8 +132,6 @@ public interface WordOrBuilder
    */
   int getSymbolsCount();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -178,11 +139,9 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  java.util.List
+  java.util.List 
       getSymbolsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -190,17 +149,15 @@ public interface WordOrBuilder
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
+  com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto similarity index 99% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto index 07217f398..6d7f3dd1f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -628,6 +628,9 @@ message TextDetectionParams { // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence // score for TEXT_DETECTION as well. bool enable_text_detection_confidence_score = 9; + + // A list of advanced OCR options to fine-tune OCR behavior. + repeated string advanced_ocr_options = 11; } // Image context and/or feature-specific parameters. diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto similarity index 100% rename from proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto rename to owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index cb7448656..ce6f0bb1c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [START vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] import com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest; import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse; import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; @@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr } } } -// [END -// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] +// [END vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index 5093f76c8..b38e2f97c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] +// [START vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] import com.google.cloud.vision.v1p4beta1.AnnotateImageRequest; import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse; import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; @@ -43,5 +42,4 @@ public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputcon } } } -// [END -// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] +// [END vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java index e333d9e36..90b61dbea 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync] +// [START vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync] import com.google.cloud.vision.v1p4beta1.AnnotateFileRequest; import com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse; import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; @@ -39,5 +38,4 @@ public static void syncBatchAnnotateFilesListannotatefilerequest() throws Except } } } -// [END -// vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync] +// [END vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index d51b744e5..df9efcea8 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [START vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] import com.google.cloud.vision.v1p4beta1.AnnotateImageRequest; import com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse; import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; @@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce } } } -// [END -// vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] +// [END vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 55a74dd24..7f44c8995 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index 5e5db0cb4..adfd6e537 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] +// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 7061382e5..c24381de8 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetProductsetnameString { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameString() throws Excep } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index 6b65870c7..aaf5dd6c4 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] +// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringProductname { @@ -38,5 +38,4 @@ public static void syncAddProductToProductSetStringProductname() throws Exceptio } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] +// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index e05ad4c60..58213b2d8 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncAddProductToProductSetStringString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index c71a989ae..bf3b5ba22 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync] import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.Product; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index d848f64d0..5d89b0d0b 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSet; @@ -39,5 +38,4 @@ public static void syncCreateProductSetLocationnameProductsetString() throws Exc } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index b06d27799..c134ebbd3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync] import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSet; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 22cb2f404..41d8c405c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index e1fb9ea89..afab3ec05 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ReferenceImage; @@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index d60d22bfb..cb5c9473c 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p4beta1.DeleteProductRequest; import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProduct { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 99017ce7b..52253ab39 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_deleteproduct_productname_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductProductname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 4f8eb4a22..4b419219b 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_deleteproduct_string_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncDeleteProductString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index 9fbc570ca..fac3b9c74 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 8de079d5e..6f4688505 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_deleteproductset_productsetname_sync] import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetProductsetname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 4c59169fc..6005f2d7e 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_deleteproductset_string_sync] import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncDeleteProductSetString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index b7d0a14e9..96a3109a5 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImage { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 91% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index fe58521e7..6a2d1a0b3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -16,10 +16,10 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync] +// [START vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync] import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageReferenceimagename { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index fc0c0f3f7..68221d8fe 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_string_sync] import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ReferenceImageName; +import com.google.protobuf.Empty; public class SyncDeleteReferenceImageString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 140afdb15..8de004322 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [START vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse; import com.google.cloud.vision.v1p4beta1.LocationName; @@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] +// [END vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index 7a453aaf7..39df9f024 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [START vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] import com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig; import com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse; import com.google.cloud.vision.v1p4beta1.LocationName; @@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] +// [END vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 93% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index 1fa2f5ed4..8a3a1ef79 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java @@ -16,8 +16,7 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync] +// [START vision_v1p4beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync] import com.google.cloud.vision.v1p4beta1.Product; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java index c400cdab0..b404c5f8a 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java @@ -20,6 +20,7 @@ import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest; +import com.google.protobuf.Empty; public class SyncPurgeProducts { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index 53e829480..8fe93c5a7 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_purgeproducts_locationname_sync] import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncPurgeProductsLocationname { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index ad560a744..4f0c6ab9d 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java @@ -19,6 +19,7 @@ // [START vision_v1p4beta1_generated_productsearchclient_purgeproducts_string_sync] import com.google.cloud.vision.v1p4beta1.LocationName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.protobuf.Empty; public class SyncPurgeProductsString { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 2265378c6..994dec221 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -21,6 +21,7 @@ import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSet { diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 85% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index cf8b97a43..83ab46025 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameProductname { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] +// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 3a8bf678b..970b71c10 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetProductsetnameString { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 759e42c30..0bbd161d3 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] +// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringProductname { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringProductname() throws Exc } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] +// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 86% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 80d75a821..29cd6ee1e 100644 --- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -16,11 +16,11 @@ package com.google.cloud.vision.v1p4beta1.samples; -// [START -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] +// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] import com.google.cloud.vision.v1p4beta1.ProductName; import com.google.cloud.vision.v1p4beta1.ProductSearchClient; import com.google.cloud.vision.v1p4beta1.ProductSetName; +import com.google.protobuf.Empty; public class SyncRemoveProductFromProductSetStringString { @@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringString() throws Exceptio } } } -// [END -// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] +// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java deleted file mode 100644 index 994a635fb..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface AddProductToProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AddProductToProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index d25b6bdcd..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteProductRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index 8c7f0c6fa..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index 3f055ae20..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java deleted file mode 100644 index 0c3c935a8..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public final class GeometryProto { - private GeometryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Vertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/vision/v1/geometry.proto\022" - + "\026google.cloud.vision.v1\"\036\n\006Vertex\022\t\n\001x\030\001" - + " \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x" - + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\207\001\n\014BoundingPoly\0220\n\010ve" - + "rtices\030\001 \003(\0132\036.google.cloud.vision.v1.Ve" - + "rtex\022E\n\023normalized_vertices\030\002 \003(\0132(.goog" - + "le.cloud.vision.v1.NormalizedVertex\"+\n\010P" - + "osition\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002" - + "Bu\n\032com.google.cloud.vision.v1B\rGeometry" - + "ProtoP\001Z - * Required. Resource name of the Product to get. - * Format is: - * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index 2516ac5ba..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface GetProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index 30652ba01..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface GetReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java deleted file mode 100644 index d5f7e4f6e..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java +++ /dev/null @@ -1,849 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/image_annotator.proto - -package com.google.cloud.vision.v1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LocationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LatLongRect_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ColorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1/image_annotator" - + ".proto\022\026google.cloud.vision.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032%" - + "google/cloud/vision/v1/geometry.proto\032+g" - + "oogle/cloud/vision/v1/product_search.pro" - + "to\032,google/cloud/vision/v1/text_annotati" - + "on.proto\032*google/cloud/vision/v1/web_det" - + "ection.proto\032#google/longrunning/operati" - + "ons.proto\032\037google/protobuf/timestamp.pro" - + "to\032\027google/rpc/status.proto\032\027google/type" - + "/color.proto\032\030google/type/latlng.proto\"\207" - + "\003\n\007Feature\0222\n\004type\030\001 \001(\0162$.google.cloud." - + "vision.v1.Feature.Type\022\023\n\013max_results\030\002 " - + "\001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMAR" - + "K_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LAB" - + "EL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DO" - + "CUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_D" - + "ETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP" - + "_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PRODUCT_S" - + "EARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013Imag" - + "eSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_" - + "uri\030\002 \001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006s" - + "ource\030\002 \001(\0132#.google.cloud.vision.v1.Ima" - + "geSource\"\366\r\n\016FaceAnnotation\022;\n\rbounding_" - + "poly\030\001 \001(\0132$.google.cloud.vision.v1.Boun" - + "dingPoly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.goo" - + "gle.cloud.vision.v1.BoundingPoly\022B\n\tland" - + "marks\030\003 \003(\0132/.google.cloud.vision.v1.Fac" - + "eAnnotation.Landmark\022\022\n\nroll_angle\030\004 \001(\002" - + "\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022" - + "\034\n\024detection_confidence\030\007 \001(\002\022\036\n\026landmar" - + "king_confidence\030\010 \001(\002\022:\n\016joy_likelihood\030" - + "\t \001(\0162\".google.cloud.vision.v1.Likelihoo" - + "d\022=\n\021sorrow_likelihood\030\n \001(\0162\".google.cl" - + "oud.vision.v1.Likelihood\022<\n\020anger_likeli" - + "hood\030\013 \001(\0162\".google.cloud.vision.v1.Like" - + "lihood\022?\n\023surprise_likelihood\030\014 \001(\0162\".go" - + "ogle.cloud.vision.v1.Likelihood\022D\n\030under" - + "_exposed_likelihood\030\r \001(\0162\".google.cloud" - + ".vision.v1.Likelihood\022>\n\022blurred_likelih" - + "ood\030\016 \001(\0162\".google.cloud.vision.v1.Likel" - + "ihood\022?\n\023headwear_likelihood\030\017 \001(\0162\".goo" - + "gle.cloud.vision.v1.Likelihood\032\350\007\n\010Landm" - + "ark\022B\n\004type\030\003 \001(\01624.google.cloud.vision." - + "v1.FaceAnnotation.Landmark.Type\0222\n\010posit" - + "ion\030\004 \001(\0132 .google.cloud.vision.v1.Posit" - + "ion\"\343\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LE" - + "FT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_" - + "EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025" - + "LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGH" - + "T_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022\014" - + "\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LIP" - + "\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014M" - + "OUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020" - + "NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER" - + "\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EY" - + "E_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOUN" - + "DARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIGH" - + "T_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIGHT_" - + "CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY\020\027\022" - + "\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBR" - + "OW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPP" - + "ER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021R" - + "IGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023" - + "\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA" - + "\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONIO" - + "N\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\022\025\n\021LEFT_CHEEK" - + "_CENTER\020#\022\026\n\022RIGHT_CHEEK_CENTER\020$\"4\n\014Loc" - + "ationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type" - + ".LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\253\002\n\020Entit" - + "yAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t" - + "\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\n" - + "confidence\030\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002" - + "\022;\n\rbounding_poly\030\007 \001(\0132$.google.cloud.v" - + "ision.v1.BoundingPoly\0227\n\tlocations\030\010 \003(\013" - + "2$.google.cloud.vision.v1.LocationInfo\0224" - + "\n\nproperties\030\t \003(\0132 .google.cloud.vision" - + ".v1.Property\"\231\001\n\031LocalizedObjectAnnotati" - + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" - + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022;\n\rbounding_" - + "poly\030\005 \001(\0132$.google.cloud.vision.v1.Boun" - + "dingPoly\"\231\002\n\024SafeSearchAnnotation\0221\n\005adu" - + "lt\030\001 \001(\0162\".google.cloud.vision.v1.Likeli" - + "hood\0221\n\005spoof\030\002 \001(\0162\".google.cloud.visio" - + "n.v1.Likelihood\0223\n\007medical\030\003 \001(\0162\".googl" - + "e.cloud.vision.v1.Likelihood\0224\n\010violence" - + "\030\004 \001(\0162\".google.cloud.vision.v1.Likeliho" - + "od\0220\n\004racy\030\t \001(\0162\".google.cloud.vision.v" - + "1.Likelihood\"a\n\013LatLongRect\022(\n\013min_lat_l" - + "ng\030\001 \001(\0132\023.google.type.LatLng\022(\n\013max_lat" - + "_lng\030\002 \001(\0132\023.google.type.LatLng\"U\n\tColor" - + "Info\022!\n\005color\030\001 \001(\0132\022.google.type.Color\022" - + "\r\n\005score\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"M" - + "\n\030DominantColorsAnnotation\0221\n\006colors\030\001 \003" - + "(\0132!.google.cloud.vision.v1.ColorInfo\"\\\n" - + "\017ImageProperties\022I\n\017dominant_colors\030\001 \001(" - + "\01320.google.cloud.vision.v1.DominantColor" - + "sAnnotation\"x\n\010CropHint\022;\n\rbounding_poly" - + "\030\001 \001(\0132$.google.cloud.vision.v1.Bounding" - + "Poly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importance_f" - + "raction\030\003 \001(\002\"K\n\023CropHintsAnnotation\0224\n\n" - + "crop_hints\030\001 \003(\0132 .google.cloud.vision.v" - + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" - + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" - + "clude_geo_results\030\002 \001(\010\"E\n\023TextDetection" - + "Params\022.\n&enable_text_detection_confiden" - + "ce_score\030\t \001(\010\"\210\003\n\014ImageContext\022:\n\rlat_l" - + "ong_rect\030\001 \001(\0132#.google.cloud.vision.v1." - + "LatLongRect\022\026\n\016language_hints\030\002 \003(\t\022B\n\021c" - + "rop_hints_params\030\004 \001(\0132\'.google.cloud.vi" - + "sion.v1.CropHintsParams\022J\n\025product_searc" - + "h_params\030\005 \001(\0132+.google.cloud.vision.v1." - + "ProductSearchParams\022H\n\024web_detection_par" - + "ams\030\006 \001(\0132*.google.cloud.vision.v1.WebDe" - + "tectionParams\022J\n\025text_detection_params\030\014" - + " \001(\0132+.google.cloud.vision.v1.TextDetect" - + "ionParams\"\264\001\n\024AnnotateImageRequest\022,\n\005im" - + "age\030\001 \001(\0132\035.google.cloud.vision.v1.Image" - + "\0221\n\010features\030\002 \003(\0132\037.google.cloud.vision" - + ".v1.Feature\022;\n\rimage_context\030\003 \001(\0132$.goo" - + "gle.cloud.vision.v1.ImageContext\":\n\026Imag" - + "eAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_" - + "number\030\002 \001(\005\"\344\007\n\025AnnotateImageResponse\022@" - + "\n\020face_annotations\030\001 \003(\0132&.google.cloud." - + "vision.v1.FaceAnnotation\022F\n\024landmark_ann" - + "otations\030\002 \003(\0132(.google.cloud.vision.v1." - + "EntityAnnotation\022B\n\020logo_annotations\030\003 \003" - + "(\0132(.google.cloud.vision.v1.EntityAnnota" - + "tion\022C\n\021label_annotations\030\004 \003(\0132(.google" - + ".cloud.vision.v1.EntityAnnotation\022W\n\034loc" - + "alized_object_annotations\030\026 \003(\01321.google" - + ".cloud.vision.v1.LocalizedObjectAnnotati" - + "on\022B\n\020text_annotations\030\005 \003(\0132(.google.cl" - + "oud.vision.v1.EntityAnnotation\022D\n\024full_t" - + "ext_annotation\030\014 \001(\0132&.google.cloud.visi" - + "on.v1.TextAnnotation\022L\n\026safe_search_anno" - + "tation\030\006 \001(\0132,.google.cloud.vision.v1.Sa" - + "feSearchAnnotation\022L\n\033image_properties_a" - + "nnotation\030\010 \001(\0132\'.google.cloud.vision.v1" - + ".ImageProperties\022J\n\025crop_hints_annotatio" - + "n\030\013 \001(\0132+.google.cloud.vision.v1.CropHin" - + "tsAnnotation\022;\n\rweb_detection\030\r \001(\0132$.go" - + "ogle.cloud.vision.v1.WebDetection\022L\n\026pro" - + "duct_search_results\030\016 \001(\0132,.google.cloud" - + ".vision.v1.ProductSearchResults\022!\n\005error" - + "\030\t \001(\0132\022.google.rpc.Status\022?\n\007context\030\025 " - + "\001(\0132..google.cloud.vision.v1.ImageAnnota" - + "tionContext\"q\n\032BatchAnnotateImagesReques" - + "t\022C\n\010requests\030\001 \003(\0132,.google.cloud.visio" - + "n.v1.AnnotateImageRequestB\003\340A\002\022\016\n\006parent" - + "\030\004 \001(\t\"_\n\033BatchAnnotateImagesResponse\022@\n" - + "\tresponses\030\001 \003(\0132-.google.cloud.vision.v" - + "1.AnnotateImageResponse\"\317\001\n\023AnnotateFile" - + "Request\0229\n\014input_config\030\001 \001(\0132#.google.c" - + "loud.vision.v1.InputConfig\0221\n\010features\030\002" - + " \003(\0132\037.google.cloud.vision.v1.Feature\022;\n" - + "\rimage_context\030\003 \001(\0132$.google.cloud.visi" - + "on.v1.ImageContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024An" - + "notateFileResponse\0229\n\014input_config\030\001 \001(\013" - + "2#.google.cloud.vision.v1.InputConfig\022@\n" - + "\tresponses\030\002 \003(\0132-.google.cloud.vision.v" - + "1.AnnotateImageResponse\022\023\n\013total_pages\030\003" - + " \001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"" - + "o\n\031BatchAnnotateFilesRequest\022B\n\010requests" - + "\030\001 \003(\0132+.google.cloud.vision.v1.Annotate" - + "FileRequestB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032Batc" - + "hAnnotateFilesResponse\022?\n\tresponses\030\001 \003(" - + "\0132,.google.cloud.vision.v1.AnnotateFileR" - + "esponse\"\202\002\n\030AsyncAnnotateFileRequest\0229\n\014" - + "input_config\030\001 \001(\0132#.google.cloud.vision" - + ".v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.goog" - + "le.cloud.vision.v1.Feature\022;\n\rimage_cont" - + "ext\030\003 \001(\0132$.google.cloud.vision.v1.Image" - + "Context\022;\n\routput_config\030\004 \001(\0132$.google." - + "cloud.vision.v1.OutputConfig\"X\n\031AsyncAnn" - + "otateFileResponse\022;\n\routput_config\030\001 \001(\013" - + "2$.google.cloud.vision.v1.OutputConfig\"\270" - + "\001\n\037AsyncBatchAnnotateImagesRequest\022C\n\010re" - + "quests\030\001 \003(\0132,.google.cloud.vision.v1.An" - + "notateImageRequestB\003\340A\002\022@\n\routput_config" - + "\030\002 \001(\0132$.google.cloud.vision.v1.OutputCo" - + "nfigB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchA" - + "nnotateImagesResponse\022;\n\routput_config\030\001" - + " \001(\0132$.google.cloud.vision.v1.OutputConf" - + "ig\"y\n\036AsyncBatchAnnotateFilesRequest\022G\n\010" - + "requests\030\001 \003(\01320.google.cloud.vision.v1." - + "AsyncAnnotateFileRequestB\003\340A\002\022\016\n\006parent\030" - + "\004 \001(\t\"g\n\037AsyncBatchAnnotateFilesResponse" - + "\022D\n\tresponses\030\001 \003(\01321.google.cloud.visio" - + "n.v1.AsyncAnnotateFileResponse\"h\n\013InputC" - + "onfig\0225\n\ngcs_source\030\001 \001(\0132!.google.cloud" - + ".vision.v1.GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n" - + "\tmime_type\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_" - + "destination\030\001 \001(\0132&.google.cloud.vision." - + "v1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n" - + "\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinatio" - + "n\022\013\n\003uri\030\001 \001(\t\"\210\002\n\021OperationMetadata\022>\n\005" - + "state\030\001 \001(\0162/.google.cloud.vision.v1.Ope" - + "rationMetadata.State\022/\n\013create_time\030\005 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"Q" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATE" - + "D\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020" - + "\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNL" - + "IKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006L" - + "IKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnota" - + "tor\022\223\002\n\023BatchAnnotateImages\0222.google.clo" - + "ud.vision.v1.BatchAnnotateImagesRequest\032" - + "3.google.cloud.vision.v1.BatchAnnotateIm" - + "agesResponse\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annot" - + "ate:\001*Z8\"3/v1/{parent=projects/*/locatio" - + "ns/*}/images:annotate:\001*Z,\"\'/v1/{parent=" - + "projects/*}/images:annotate:\001*\332A\010request" - + "s\022\214\002\n\022BatchAnnotateFiles\0221.google.cloud." - + "vision.v1.BatchAnnotateFilesRequest\0322.go" - + "ogle.cloud.vision.v1.BatchAnnotateFilesR" - + "esponse\"\216\001\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z" - + "7\"2/v1/{parent=projects/*/locations/*}/f" - + "iles:annotate:\001*Z+\"&/v1/{parent=projects" - + "/*}/files:annotate:\001*\332A\010requests\022\353\002\n\030Asy" - + "ncBatchAnnotateImages\0227.google.cloud.vis" - + "ion.v1.AsyncBatchAnnotateImagesRequest\032\035" - + ".google.longrunning.Operation\"\366\001\202\323\344\223\002\236\001\"" - + "\035/v1/images:asyncBatchAnnotate:\001*ZB\"=/v1" - + "/{parent=projects/*/locations/*}/images:" - + "asyncBatchAnnotate:\001*Z6\"1/v1/{parent=pro" - + "jects/*}/images:asyncBatchAnnotate:\001*\332A\026" - + "requests,output_config\312A5\n AsyncBatchAnn" - + "otateImagesResponse\022\021OperationMetadata\022\327" - + "\002\n\027AsyncBatchAnnotateFiles\0226.google.clou" - + "d.vision.v1.AsyncBatchAnnotateFilesReque" - + "st\032\035.google.longrunning.Operation\"\344\001\202\323\344\223" - + "\002\233\001\"\034/v1/files:asyncBatchAnnotate:\001*ZA\"<" - + "/v1/{parent=projects/*/locations/*}/file" - + "s:asyncBatchAnnotate:\001*Z5\"0/v1/{parent=p" - + "rojects/*}/files:asyncBatchAnnotate:\001*\332A" - + "\010requests\312A4\n\037AsyncBatchAnnotateFilesRes" - + "ponse\022\021OperationMetadata\032v\312A\025vision.goog" - + "leapis.com\322A[https://www.googleapis.com/" - + "auth/cloud-platform,https://www.googleap" - + "is.com/auth/cloud-visionB{\n\032com.google.c" - + "loud.vision.v1B\023ImageAnnotatorProtoP\001Z - * Required. The project in which the ProductSets should be imported. - * Format is `projects/PROJECT_ID/locations/LOC_ID`. - *
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The inputConfig. - */ - com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 46239e1db..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public interface NormalizedVertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java deleted file mode 100644 index 8b22966fb..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public interface PositionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Position) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); - - /** - * - * - *
-   * Z coordinate (or depth).
-   * 
- * - * float z = 3; - * - * @return The z. - */ - float getZ(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java deleted file mode 100644 index bdae2eea0..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search.proto - -package com.google.cloud.vision.v1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/vision/v1/product_search." - + "proto\022\026google.cloud.vision.v1\032\031google/ap" - + "i/resource.proto\032%google/cloud/vision/v1" - + "/geometry.proto\0323google/cloud/vision/v1/" - + "product_search_service.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\272\001\n\023ProductSearchP" - + "arams\022;\n\rbounding_poly\030\t \001(\0132$.google.cl" - + "oud.vision.v1.BoundingPoly\022:\n\013product_se" - + "t\030\006 \001(\tB%\372A\"\n vision.googleapis.com/Prod" - + "uctSet\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006fi" - + "lter\030\010 \001(\t\"\210\005\n\024ProductSearchResults\022.\n\ni" - + "ndex_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\022D\n\007results\030\005 \003(\01323.google.cloud.visi" - + "on.v1.ProductSearchResults.Result\022[\n\027pro" - + "duct_grouped_results\030\006 \003(\0132:.google.clou" - + "d.vision.v1.ProductSearchResults.Grouped" - + "Result\032X\n\006Result\0220\n\007product\030\001 \001(\0132\037.goog" - + "le.cloud.vision.v1.Product\022\r\n\005score\030\002 \001(" - + "\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotation\022\013\n\003" - + "mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name" - + "\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\355\001\n\rGroupedResult\022" - + ";\n\rbounding_poly\030\001 \001(\0132$.google.cloud.vi" - + "sion.v1.BoundingPoly\022D\n\007results\030\002 \003(\01323." - + "google.cloud.vision.v1.ProductSearchResu" - + "lts.Result\022Y\n\022object_annotations\030\003 \003(\0132=" - + ".google.cloud.vision.v1.ProductSearchRes" - + "ults.ObjectAnnotationBz\n\032com.google.clou" - + "d.vision.v1B\022ProductSearchProtoP\001Z\"//v1/{parent=proj" - + "ects/*/locations/*}/productSets:\013product" - + "_set\332A!parent,product_set,product_set_id" - + "\022\264\001\n\017ListProductSets\022..google.cloud.visi" - + "on.v1.ListProductSetsRequest\032/.google.cl" - + "oud.vision.v1.ListProductSetsResponse\"@\202" - + "\323\344\223\0021\022//v1/{parent=projects/*/locations/" - + "*}/productSets\332A\006parent\022\241\001\n\rGetProductSe" - + "t\022,.google.cloud.vision.v1.GetProductSet" - + "Request\032\".google.cloud.vision.v1.Product" - + "Set\">\202\323\344\223\0021\022//v1/{name=projects/*/locati" - + "ons/*/productSets/*}\332A\004name\022\323\001\n\020UpdatePr" - + "oductSet\022/.google.cloud.vision.v1.Update" - + "ProductSetRequest\032\".google.cloud.vision." - + "v1.ProductSet\"j\202\323\344\223\002J2;/v1/{product_set." - + "name=projects/*/locations/*/productSets/" - + "*}:\013product_set\332A\027product_set,update_mas" - + "k\022\233\001\n\020DeleteProductSet\022/.google.cloud.vi" - + "sion.v1.DeleteProductSetRequest\032\026.google" - + ".protobuf.Empty\">\202\323\344\223\0021*//v1/{name=proje" - + "cts/*/locations/*/productSets/*}\332A\004name\022" - + "\271\001\n\rCreateProduct\022,.google.cloud.vision." - + "v1.CreateProductRequest\032\037.google.cloud.v" - + "ision.v1.Product\"Y\202\323\344\223\0027\",/v1/{parent=pr" - + "ojects/*/locations/*}/products:\007product\332" - + "A\031parent,product,product_id\022\250\001\n\014ListProd" - + "ucts\022+.google.cloud.vision.v1.ListProduc" - + "tsRequest\032,.google.cloud.vision.v1.ListP" - + "roductsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pro" - + "jects/*/locations/*}/products\332A\006parent\022\225" - + "\001\n\nGetProduct\022).google.cloud.vision.v1.G" - + "etProductRequest\032\037.google.cloud.vision.v" - + "1.Product\";\202\323\344\223\002.\022,/v1/{name=projects/*/" - + "locations/*/products/*}\332A\004name\022\273\001\n\rUpdat" - + "eProduct\022,.google.cloud.vision.v1.Update" - + "ProductRequest\032\037.google.cloud.vision.v1." - + "Product\"[\202\323\344\223\002?24/v1/{product.name=proje" - + "cts/*/locations/*/products/*}:\007product\332A" - + "\023product,update_mask\022\222\001\n\rDeleteProduct\022," - + ".google.cloud.vision.v1.DeleteProductReq" - + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" - + "1/{name=projects/*/locations/*/products/" - + "*}\332A\004name\022\371\001\n\024CreateReferenceImage\0223.goo" - + "gle.cloud.vision.v1.CreateReferenceImage" - + "Request\032&.google.cloud.vision.v1.Referen" - + "ceImage\"\203\001\202\323\344\223\002Q\">/v1/{parent=projects/*" - + "/locations/*/products/*}/referenceImages" - + ":\017reference_image\332A)parent,reference_ima" - + "ge,reference_image_id\022\262\001\n\024DeleteReferenc" - + "eImage\0223.google.cloud.vision.v1.DeleteRe" - + "ferenceImageRequest\032\026.google.protobuf.Em" - + "pty\"M\202\323\344\223\002@*>/v1/{name=projects/*/locati" - + "ons/*/products/*/referenceImages/*}\332A\004na" - + "me\022\317\001\n\023ListReferenceImages\0222.google.clou" - + "d.vision.v1.ListReferenceImagesRequest\0323" - + ".google.cloud.vision.v1.ListReferenceIma" - + "gesResponse\"O\202\323\344\223\002@\022>/v1/{parent=project" - + "s/*/locations/*/products/*}/referenceIma" - + "ges\332A\006parent\022\274\001\n\021GetReferenceImage\0220.goo" - + "gle.cloud.vision.v1.GetReferenceImageReq" - + "uest\032&.google.cloud.vision.v1.ReferenceI" - + "mage\"M\202\323\344\223\002@\022>/v1/{name=projects/*/locat" - + "ions/*/products/*/referenceImages/*}\332A\004n" - + "ame\022\275\001\n\026AddProductToProductSet\0225.google." - + "cloud.vision.v1.AddProductToProductSetRe" - + "quest\032\026.google.protobuf.Empty\"T\202\323\344\223\002?\":/" - + "v1/{name=projects/*/locations/*/productS" - + "ets/*}:addProduct:\001*\332A\014name,product\022\312\001\n\033" - + "RemoveProductFromProductSet\022:.google.clo" - + "ud.vision.v1.RemoveProductFromProductSet" - + "Request\032\026.google.protobuf.Empty\"W\202\323\344\223\002B\"" - + "=/v1/{name=projects/*/locations/*/produc" - + "tSets/*}:removeProduct:\001*\332A\014name,product" - + "\022\326\001\n\030ListProductsInProductSet\0227.google.c" - + "loud.vision.v1.ListProductsInProductSetR" - + "equest\0328.google.cloud.vision.v1.ListProd" - + "uctsInProductSetResponse\"G\202\323\344\223\002:\0228/v1/{n" - + "ame=projects/*/locations/*/productSets/*" - + "}/products\332A\004name\022\364\001\n\021ImportProductSets\022" - + "0.google.cloud.vision.v1.ImportProductSe" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"\215\001\202\323\344\223\002;\"6/v1/{parent=projects/*/locati" - + "ons/*}/productSets:import:\001*\332A\023parent,in" - + "put_config\312A3\n\031ImportProductSetsResponse" - + "\022\026BatchOperationMetadata\022\326\001\n\rPurgeProduc" - + "ts\022,.google.cloud.vision.v1.PurgeProduct" - + "sRequest\032\035.google.longrunning.Operation\"" - + "x\202\323\344\223\0027\"2/v1/{parent=projects/*/location" - + "s/*}/products:purge:\001*\332A\006parent\312A/\n\025goog" - + "le.protobuf.Empty\022\026BatchOperationMetadat" - + "a\032v\312A\025vision.googleapis.com\322A[https://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloud-visio" - + "nB\201\001\n\032com.google.cloud.vision.v1B\031Produc" - + "tSearchServiceProtoP\001Z - * Required. The resource name for the ProductSet to modify. - * Format is: - * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java deleted file mode 100644 index bd89507fa..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/text_annotation.proto - -package com.google.cloud.vision.v1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Page_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Block_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Paragraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Word_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Symbol_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1/text_annotation" - + ".proto\022\026google.cloud.vision.v1\032%google/c" - + "loud/vision/v1/geometry.proto\"\226\004\n\016TextAn" - + "notation\022+\n\005pages\030\001 \003(\0132\034.google.cloud.v" - + "ision.v1.Page\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedL" - + "anguage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfid" - + "ence\030\002 \001(\002\032\325\001\n\rDetectedBreak\022L\n\004type\030\001 \001" - + "(\0162>.google.cloud.vision.v1.TextAnnotati" - + "on.DetectedBreak.BreakType\022\021\n\tis_prefix\030" - + "\002 \001(\010\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE" - + "\020\001\022\016\n\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n" - + "\n\006HYPHEN\020\004\022\016\n\nLINE_BREAK\020\005\032\261\001\n\014TextPrope" - + "rty\022S\n\022detected_languages\030\001 \003(\01327.google" - + ".cloud.vision.v1.TextAnnotation.Detected" - + "Language\022L\n\016detected_break\030\002 \001(\01324.googl" - + "e.cloud.vision.v1.TextAnnotation.Detecte" - + "dBreak\"\257\001\n\004Page\022E\n\010property\030\001 \001(\01323.goog" - + "le.cloud.vision.v1.TextAnnotation.TextPr" - + "operty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022-\n" - + "\006blocks\030\004 \003(\0132\035.google.cloud.vision.v1.B" - + "lock\022\022\n\nconfidence\030\005 \001(\002\"\346\002\n\005Block\022E\n\010pr" - + "operty\030\001 \001(\01323.google.cloud.vision.v1.Te" - + "xtAnnotation.TextProperty\022:\n\014bounding_bo" - + "x\030\002 \001(\0132$.google.cloud.vision.v1.Boundin" - + "gPoly\0225\n\nparagraphs\030\003 \003(\0132!.google.cloud" - + ".vision.v1.Paragraph\022;\n\nblock_type\030\004 \001(\016" - + "2\'.google.cloud.vision.v1.Block.BlockTyp" - + "e\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007UN" - + "KNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE\020" - + "\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\317\001\n\tParagraph\022" - + "E\n\010property\030\001 \001(\01323.google.cloud.vision." - + "v1.TextAnnotation.TextProperty\022:\n\014boundi" - + "ng_box\030\002 \001(\0132$.google.cloud.vision.v1.Bo" - + "undingPoly\022+\n\005words\030\003 \003(\0132\034.google.cloud" - + ".vision.v1.Word\022\022\n\nconfidence\030\004 \001(\002\"\316\001\n\004" - + "Word\022E\n\010property\030\001 \001(\01323.google.cloud.vi" - + "sion.v1.TextAnnotation.TextProperty\022:\n\014b" - + "ounding_box\030\002 \001(\0132$.google.cloud.vision." - + "v1.BoundingPoly\022/\n\007symbols\030\003 \003(\0132\036.googl" - + "e.cloud.vision.v1.Symbol\022\022\n\nconfidence\030\004" - + " \001(\002\"\255\001\n\006Symbol\022E\n\010property\030\001 \001(\01323.goog" - + "le.cloud.vision.v1.TextAnnotation.TextPr" - + "operty\022:\n\014bounding_box\030\002 \001(\0132$.google.cl" - + "oud.vision.v1.BoundingPoly\022\014\n\004text\030\003 \001(\t" - + "\022\022\n\nconfidence\030\004 \001(\002B{\n\032com.google.cloud" - + ".vision.v1B\023TextAnnotationProtoP\001Z - * By default, Cloud Vision API only includes confidence score for - * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence - * score for TEXT_DETECTION as well. - *
- * - * bool enable_text_detection_confidence_score = 9; - * - * @return The enableTextDetectionConfidenceScore. - */ - boolean getEnableTextDetectionConfidenceScore(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java deleted file mode 100644 index 967813bbf..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index fb8e2dac4..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/image_annotator.proto - -package com.google.cloud.vision.v1; - -public interface WebDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java deleted file mode 100644 index 1a53f72c4..000000000 --- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/web_detection.proto - -package com.google.cloud.vision.v1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vision/v1/web_detection.p" - + "roto\022\026google.cloud.vision.v1\"\324\006\n\014WebDete" - + "ction\022D\n\014web_entities\030\001 \003(\0132..google.clo" - + "ud.vision.v1.WebDetection.WebEntity\022K\n\024f" - + "ull_matching_images\030\002 \003(\0132-.google.cloud" - + ".vision.v1.WebDetection.WebImage\022N\n\027part" - + "ial_matching_images\030\003 \003(\0132-.google.cloud" - + ".vision.v1.WebDetection.WebImage\022P\n\032page" - + "s_with_matching_images\030\004 \003(\0132,.google.cl" - + "oud.vision.v1.WebDetection.WebPage\022N\n\027vi" - + "sually_similar_images\030\006 \003(\0132-.google.clo" - + "ud.vision.v1.WebDetection.WebImage\022H\n\021be" - + "st_guess_labels\030\010 \003(\0132-.google.cloud.vis" - + "ion.v1.WebDetection.WebLabel\032B\n\tWebEntit" - + "y\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\023\n\013d" - + "escription\030\003 \001(\t\032&\n\010WebImage\022\013\n\003url\030\001 \001(" - + "\t\022\r\n\005score\030\002 \001(\002\032\326\001\n\007WebPage\022\013\n\003url\030\001 \001(" - + "\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001(\t\022K\n\024" - + "full_matching_images\030\004 \003(\0132-.google.clou" - + "d.vision.v1.WebDetection.WebImage\022N\n\027par" - + "tial_matching_images\030\005 \003(\0132-.google.clou" - + "d.vision.v1.WebDetection.WebImage\0320\n\010Web" - + "Label\022\r\n\005label\030\001 \001(\t\022\025\n\rlanguage_code\030\002 " - + "\001(\tBy\n\032com.google.cloud.vision.v1B\021WebDe" - + "tectionProtoP\001Z - * Required. Individual image annotation requests for this batch. - *
- * - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java deleted file mode 100644 index 26e223e04..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/geometry.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class GeometryProto { - private GeometryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p1beta1/geometry" - + ".proto\022\035google.cloud.vision.v1p1beta1\"\036\n" - + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"G\n\014Boundin" - + "gPoly\0227\n\010vertices\030\001 \003(\0132%.google.cloud.v" - + "ision.v1p1beta1.Vertex\"+\n\010Position\022\t\n\001x\030" - + "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.googl" - + "e.cloud.vision.v1p1beta1B\rGeometryProtoP" - + "\001ZCgoogle.golang.org/genproto/googleapis" - + "/cloud/vision/v1p1beta1;vision\370\001\001b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor, - new java.lang.String[] { - "Vertices", - }); - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor, - new java.lang.String[] { - "X", "Y", "Z", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java deleted file mode 100644 index a2d1fae31..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/image_annotator.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p1beta1/image_an" - + "notator.proto\022\035google.cloud.vision.v1p1b" - + "eta1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032,google/cloud/vision/v1p1be" - + "ta1/geometry.proto\0323google/cloud/vision/" - + "v1p1beta1/text_annotation.proto\0321google/" - + "cloud/vision/v1p1beta1/web_detection.pro" - + "to\032\027google/rpc/status.proto\032\027google/type" - + "/color.proto\032\030google/type/latlng.proto\"\341" - + "\002\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud." - + "vision.v1p1beta1.Feature.Type\022\023\n\013max_res" - + "ults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TY" - + "PE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022" - + "LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003" - + "\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020" - + "\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_S" - + "EARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022" - + "\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013Im" - + "ageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timag" - + "e_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n" - + "\006source\030\002 \001(\0132*.google.cloud.vision.v1p1" - + "beta1.ImageSource\"\233\016\n\016FaceAnnotation\022B\n\r" - + "bounding_poly\030\001 \001(\0132+.google.cloud.visio" - + "n.v1p1beta1.BoundingPoly\022E\n\020fd_bounding_" - + "poly\030\002 \001(\0132+.google.cloud.vision.v1p1bet" - + "a1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326.goo" - + "gle.cloud.vision.v1p1beta1.FaceAnnotatio" - + "n.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_an" - + "gle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detecti" - + "on_confidence\030\007 \001(\002\022\036\n\026landmarking_confi" - + "dence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162).go" - + "ogle.cloud.vision.v1p1beta1.Likelihood\022D" - + "\n\021sorrow_likelihood\030\n \001(\0162).google.cloud" - + ".vision.v1p1beta1.Likelihood\022C\n\020anger_li" - + "kelihood\030\013 \001(\0162).google.cloud.vision.v1p" - + "1beta1.Likelihood\022F\n\023surprise_likelihood" - + "\030\014 \001(\0162).google.cloud.vision.v1p1beta1.L" - + "ikelihood\022K\n\030under_exposed_likelihood\030\r " - + "\001(\0162).google.cloud.vision.v1p1beta1.Like" - + "lihood\022E\n\022blurred_likelihood\030\016 \001(\0162).goo" - + "gle.cloud.vision.v1p1beta1.Likelihood\022F\n" - + "\023headwear_likelihood\030\017 \001(\0162).google.clou" - + "d.vision.v1p1beta1.Likelihood\032\307\007\n\010Landma" - + "rk\022I\n\004type\030\003 \001(\0162;.google.cloud.vision.v" - + "1p1beta1.FaceAnnotation.Landmark.Type\0229\n" - + "\010position\030\004 \001(\0132\'.google.cloud.vision.v1" - + "p1beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOWN_LAN" - + "DMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024" - + "LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_" - + "EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026" - + "RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BET" - + "WEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t" - + "\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH" - + "_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTO" - + "M_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_" - + "BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY" - + "\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EY" - + "E_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_COR" - + "NER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIG" - + "HT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTO" - + "M_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022" - + "\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGH" - + "T_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_T" - + "RAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_" - + "EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FORE" - + "HEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CH" - + "IN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"" - + "4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.googl" - + "e.type.LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n" - + "\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale" - + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001" - + "(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001" - + "(\002\022B\n\rbounding_poly\030\007 \001(\0132+.google.cloud" - + ".vision.v1p1beta1.BoundingPoly\022>\n\tlocati" - + "ons\030\010 \003(\0132+.google.cloud.vision.v1p1beta" - + "1.LocationInfo\022;\n\nproperties\030\t \003(\0132\'.goo" - + "gle.cloud.vision.v1p1beta1.Property\"\274\002\n\024" - + "SafeSearchAnnotation\0228\n\005adult\030\001 \001(\0162).go" - + "ogle.cloud.vision.v1p1beta1.Likelihood\0228" - + "\n\005spoof\030\002 \001(\0162).google.cloud.vision.v1p1" - + "beta1.Likelihood\022:\n\007medical\030\003 \001(\0162).goog" - + "le.cloud.vision.v1p1beta1.Likelihood\022;\n\010" - + "violence\030\004 \001(\0162).google.cloud.vision.v1p" - + "1beta1.Likelihood\0227\n\004racy\030\t \001(\0162).google" - + ".cloud.vision.v1p1beta1.Likelihood\"a\n\013La" - + "tLongRect\022(\n\013min_lat_lng\030\001 \001(\0132\023.google." - + "type.LatLng\022(\n\013max_lat_lng\030\002 \001(\0132\023.googl" - + "e.type.LatLng\"U\n\tColorInfo\022!\n\005color\030\001 \001(" - + "\0132\022.google.type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016" - + "pixel_fraction\030\003 \001(\002\"T\n\030DominantColorsAn" - + "notation\0228\n\006colors\030\001 \003(\0132(.google.cloud." - + "vision.v1p1beta1.ColorInfo\"c\n\017ImagePrope" - + "rties\022P\n\017dominant_colors\030\001 \001(\01327.google." - + "cloud.vision.v1p1beta1.DominantColorsAnn" - + "otation\"\177\n\010CropHint\022B\n\rbounding_poly\030\001 \001" - + "(\0132+.google.cloud.vision.v1p1beta1.Bound" - + "ingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importanc" - + "e_fraction\030\003 \001(\002\"R\n\023CropHintsAnnotation\022" - + ";\n\ncrop_hints\030\001 \003(\0132\'.google.cloud.visio" - + "n.v1p1beta1.CropHint\"(\n\017CropHintsParams\022" - + "\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebDetectionPa" - + "rams\022\033\n\023include_geo_results\030\002 \001(\010\"E\n\023Tex" - + "tDetectionParams\022.\n&enable_text_detectio" - + "n_confidence_score\030\t \001(\010\"\330\002\n\014ImageContex" - + "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud." - + "vision.v1p1beta1.LatLongRect\022\026\n\016language" - + "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132" - + "..google.cloud.vision.v1p1beta1.CropHint" - + "sParams\022O\n\024web_detection_params\030\006 \001(\01321." - + "google.cloud.vision.v1p1beta1.WebDetecti" - + "onParams\022Q\n\025text_detection_params\030\014 \001(\0132" - + "2.google.cloud.vision.v1p1beta1.TextDete" - + "ctionParams\"\311\001\n\024AnnotateImageRequest\0223\n\005" - + "image\030\001 \001(\0132$.google.cloud.vision.v1p1be" - + "ta1.Image\0228\n\010features\030\002 \003(\0132&.google.clo" - + "ud.vision.v1p1beta1.Feature\022B\n\rimage_con" - + "text\030\003 \001(\0132+.google.cloud.vision.v1p1bet" - + "a1.ImageContext\"\302\006\n\025AnnotateImageRespons" - + "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo" - + "ud.vision.v1p1beta1.FaceAnnotation\022M\n\024la" - + "ndmark_annotations\030\002 \003(\0132/.google.cloud." - + "vision.v1p1beta1.EntityAnnotation\022I\n\020log" - + "o_annotations\030\003 \003(\0132/.google.cloud.visio" - + "n.v1p1beta1.EntityAnnotation\022J\n\021label_an" - + "notations\030\004 \003(\0132/.google.cloud.vision.v1" - + "p1beta1.EntityAnnotation\022I\n\020text_annotat" - + "ions\030\005 \003(\0132/.google.cloud.vision.v1p1bet" - + "a1.EntityAnnotation\022K\n\024full_text_annotat" - + "ion\030\014 \001(\0132-.google.cloud.vision.v1p1beta" - + "1.TextAnnotation\022S\n\026safe_search_annotati" - + "on\030\006 \001(\01323.google.cloud.vision.v1p1beta1" - + ".SafeSearchAnnotation\022S\n\033image_propertie" - + "s_annotation\030\010 \001(\0132..google.cloud.vision" - + ".v1p1beta1.ImageProperties\022Q\n\025crop_hints" - + "_annotation\030\013 \001(\01322.google.cloud.vision." - + "v1p1beta1.CropHintsAnnotation\022B\n\rweb_det" - + "ection\030\r \001(\0132+.google.cloud.vision.v1p1b" - + "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl" - + "e.rpc.Status\"h\n\032BatchAnnotateImagesReque" - + "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi" - + "on.v1p1beta1.AnnotateImageRequestB\003\340A\002\"f" - + "\n\033BatchAnnotateImagesResponse\022G\n\trespons" - + "es\030\001 \003(\01324.google.cloud.vision.v1p1beta1" - + ".AnnotateImageResponse*e\n\nLikelihood\022\013\n\007" - + "UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY" - + "\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIK" - + "ELY\020\0052\311\002\n\016ImageAnnotator\022\276\001\n\023BatchAnnota" - + "teImages\0229.google.cloud.vision.v1p1beta1" - + ".BatchAnnotateImagesRequest\032:.google.clo" - + "ud.vision.v1p1beta1.BatchAnnotateImagesR" - + "esponse\"0\202\323\344\223\002\037\"\032/v1p1beta1/images:annot" - + "ate:\001*\332A\010requests\032v\312A\025vision.googleapis." - + "com\322A[https://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/cloud-visionB\202\001\n!com.google.cloud.v" - + "ision.v1p1beta1B\023ImageAnnotatorProtoP\001ZC" - + "google.golang.org/genproto/googleapis/cl" - + "oud/vision/v1p1beta1;vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor, - new java.lang.String[] { - "Type", "MaxResults", "Model", - }); - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor, - new java.lang.String[] { - "GcsImageUri", "ImageUri", - }); - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor, - new java.lang.String[] { - "Content", "Source", - }); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor, - new java.lang.String[] { - "BoundingPoly", - "FdBoundingPoly", - "Landmarks", - "RollAngle", - "PanAngle", - "TiltAngle", - "DetectionConfidence", - "LandmarkingConfidence", - "JoyLikelihood", - "SorrowLikelihood", - "AngerLikelihood", - "SurpriseLikelihood", - "UnderExposedLikelihood", - "BlurredLikelihood", - "HeadwearLikelihood", - }); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { - "Type", "Position", - }); - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor, - new java.lang.String[] { - "LatLng", - }); - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor, - new java.lang.String[] { - "Name", "Value", "Uint64Value", - }); - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor, - new java.lang.String[] { - "Mid", - "Locale", - "Description", - "Score", - "Confidence", - "Topicality", - "BoundingPoly", - "Locations", - "Properties", - }); - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { - "Adult", "Spoof", "Medical", "Violence", "Racy", - }); - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor, - new java.lang.String[] { - "MinLatLng", "MaxLatLng", - }); - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor, - new java.lang.String[] { - "Color", "Score", "PixelFraction", - }); - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { - "Colors", - }); - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor, - new java.lang.String[] { - "DominantColors", - }); - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor, - new java.lang.String[] { - "BoundingPoly", "Confidence", "ImportanceFraction", - }); - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { - "CropHints", - }); - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor, - new java.lang.String[] { - "AspectRatios", - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor, - new java.lang.String[] { - "IncludeGeoResults", - }); - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor, - new java.lang.String[] { - "EnableTextDetectionConfidenceScore", - }); - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor, - new java.lang.String[] { - "LatLongRect", - "LanguageHints", - "CropHintsParams", - "WebDetectionParams", - "TextDetectionParams", - }); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { - "Image", "Features", "ImageContext", - }); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { - "FaceAnnotations", - "LandmarkAnnotations", - "LogoAnnotations", - "LabelAnnotations", - "TextAnnotations", - "FullTextAnnotation", - "SafeSearchAnnotation", - "ImagePropertiesAnnotation", - "CropHintsAnnotation", - "WebDetection", - "Error", - }); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java deleted file mode 100644 index 7e36fe84e..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/text_annotation.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p1beta1/text_ann" - + "otation.proto\022\035google.cloud.vision.v1p1b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p1beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p1beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p1beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p1beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p1beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p1beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p1beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p1beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p1beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p1b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p1beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p1beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p1beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p1beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p1beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p1beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p1beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p1beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p1beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p1beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p1beta1" - + ";vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor, - new java.lang.String[] { - "Pages", "Text", - }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { - "Type", "IsPrefix", - }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { - "DetectedLanguages", "DetectedBreak", - }); - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor, - new java.lang.String[] { - "Property", "Width", "Height", "Blocks", "Confidence", - }); - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", - }); - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Words", "Confidence", - }); - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Symbols", "Confidence", - }); - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Text", "Confidence", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java deleted file mode 100644 index 61f5c77a7..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/image_annotator.proto - -package com.google.cloud.vision.v1p1beta1; - -public interface TextDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * By default, Cloud Vision API only includes confidence score for
-   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
-   * score for TEXT_DETECTION as well.
-   * 
- * - * bool enable_text_detection_confidence_score = 9; - * - * @return The enableTextDetectionConfidenceScore. - */ - boolean getEnableTextDetectionConfidenceScore(); -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java deleted file mode 100644 index ed852eb54..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/geometry.proto - -package com.google.cloud.vision.v1p1beta1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 9019fea28..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/image_annotator.proto - -package com.google.cloud.vision.v1p1beta1; - -public interface WebDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java deleted file mode 100644 index 359b058c0..000000000 --- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/web_detection.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p1beta1/web_dete" - + "ction.proto\022\035google.cloud.vision.v1p1bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p1beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p1beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p1beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p1" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p1beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p1beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p1beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p1beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p1beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p1beta1;vision\370\001\001b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor, - new java.lang.String[] { - "WebEntities", - "FullMatchingImages", - "PartialMatchingImages", - "PagesWithMatchingImages", - "VisuallySimilarImages", - "BestGuessLabels", - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { - "EntityId", "Score", "Description", - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { - "Url", "Score", - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { - "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { - "Label", "LanguageCode", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index 2780c9b6b..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index 2db304740..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface BatchAnnotateImagesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java deleted file mode 100644 index be6983983..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class GeometryProto { - private GeometryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p2beta1/geometry" - + ".proto\022\035google.cloud.vision.v1p2beta1\"\036\n" - + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" - + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" - + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" - + "d.vision.v1p2beta1.Vertex\022L\n\023normalized_" - + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" - + "2beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" - + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.goog" - + "le.cloud.vision.v1p2beta1B\rGeometryProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor, - new java.lang.String[] { - "Vertices", "NormalizedVertices", - }); - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor, - new java.lang.String[] { - "X", "Y", "Z", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java deleted file mode 100644 index 413a66f58..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,731 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p2beta1/image_an" - + "notator.proto\022\035google.cloud.vision.v1p2b" - + "eta1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032,google/cloud/vision/v1p2be" - + "ta1/geometry.proto\0323google/cloud/vision/" - + "v1p2beta1/text_annotation.proto\0321google/" - + "cloud/vision/v1p2beta1/web_detection.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\037google/protobuf/timestamp.proto\032\027google" - + "/rpc/status.proto\032\027google/type/color.pro" - + "to\032\030google/type/latlng.proto\"\341\002\n\007Feature" - + "\0229\n\004type\030\001 \001(\0162+.google.cloud.vision.v1p" - + "2beta1.Feature.Type\022\023\n\013max_results\030\002 \001(\005" - + "\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TYPE_UNSPECI" - + "FIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMARK_D" - + "ETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_" - + "DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUM" - + "ENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_DETE" - + "CTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP_HI" - + "NTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013ImageSource\022" - + "\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 \001(" - + "\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n\006source\030\002 " - + "\001(\0132*.google.cloud.vision.v1p2beta1.Imag" - + "eSource\"\233\016\n\016FaceAnnotation\022B\n\rbounding_p" - + "oly\030\001 \001(\0132+.google.cloud.vision.v1p2beta" - + "1.BoundingPoly\022E\n\020fd_bounding_poly\030\002 \001(\013" - + "2+.google.cloud.vision.v1p2beta1.Boundin" - + "gPoly\022I\n\tlandmarks\030\003 \003(\01326.google.cloud." - + "vision.v1p2beta1.FaceAnnotation.Landmark" - + "\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_angle\030\005 \001(\002\022" - + "\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detection_confide" - + "nce\030\007 \001(\002\022\036\n\026landmarking_confidence\030\010 \001(" - + "\002\022A\n\016joy_likelihood\030\t \001(\0162).google.cloud" - + ".vision.v1p2beta1.Likelihood\022D\n\021sorrow_l" - + "ikelihood\030\n \001(\0162).google.cloud.vision.v1" - + "p2beta1.Likelihood\022C\n\020anger_likelihood\030\013" - + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" - + "elihood\022F\n\023surprise_likelihood\030\014 \001(\0162).g" - + "oogle.cloud.vision.v1p2beta1.Likelihood\022" - + "K\n\030under_exposed_likelihood\030\r \001(\0162).goog" - + "le.cloud.vision.v1p2beta1.Likelihood\022E\n\022" - + "blurred_likelihood\030\016 \001(\0162).google.cloud." - + "vision.v1p2beta1.Likelihood\022F\n\023headwear_" - + "likelihood\030\017 \001(\0162).google.cloud.vision.v" - + "1p2beta1.Likelihood\032\307\007\n\010Landmark\022I\n\004type" - + "\030\003 \001(\0162;.google.cloud.vision.v1p2beta1.F" - + "aceAnnotation.Landmark.Type\0229\n\010position\030" - + "\004 \001(\0132\'.google.cloud.vision.v1p2beta1.Po" - + "sition\"\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n" - + "\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LE" - + "FT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022" - + "\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_R" - + "IGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020" - + "\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_" - + "LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020" - + "\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022" - + "\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CEN" - + "TER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT" - + "_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_B" - + "OUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026R" - + "IGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIG" - + "HT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY" - + "\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EY" - + "EBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_" - + "UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025" - + "\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020" - + "\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABE" - + "LLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GO" - + "NION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014Locatio" - + "nInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type.Lat" - + "Lng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n\020EntityAnn" - + "otation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013" - + "description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\022\n\nconf" - + "idence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001(\002\022B\n\rboun" - + "ding_poly\030\007 \001(\0132+.google.cloud.vision.v1" - + "p2beta1.BoundingPoly\022>\n\tlocations\030\010 \003(\0132" - + "+.google.cloud.vision.v1p2beta1.Location" - + "Info\022;\n\nproperties\030\t \003(\0132\'.google.cloud." - + "vision.v1p2beta1.Property\"\274\002\n\024SafeSearch" - + "Annotation\0228\n\005adult\030\001 \001(\0162).google.cloud" - + ".vision.v1p2beta1.Likelihood\0228\n\005spoof\030\002 " - + "\001(\0162).google.cloud.vision.v1p2beta1.Like" - + "lihood\022:\n\007medical\030\003 \001(\0162).google.cloud.v" - + "ision.v1p2beta1.Likelihood\022;\n\010violence\030\004" - + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" - + "elihood\0227\n\004racy\030\t \001(\0162).google.cloud.vis" - + "ion.v1p2beta1.Likelihood\"a\n\013LatLongRect\022" - + "(\n\013min_lat_lng\030\001 \001(\0132\023.google.type.LatLn" - + "g\022(\n\013max_lat_lng\030\002 \001(\0132\023.google.type.Lat" - + "Lng\"U\n\tColorInfo\022!\n\005color\030\001 \001(\0132\022.google" - + ".type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016pixel_frac" - + "tion\030\003 \001(\002\"T\n\030DominantColorsAnnotation\0228" - + "\n\006colors\030\001 \003(\0132(.google.cloud.vision.v1p" - + "2beta1.ColorInfo\"c\n\017ImageProperties\022P\n\017d" - + "ominant_colors\030\001 \001(\01327.google.cloud.visi" - + "on.v1p2beta1.DominantColorsAnnotation\"\177\n" - + "\010CropHint\022B\n\rbounding_poly\030\001 \001(\0132+.googl" - + "e.cloud.vision.v1p2beta1.BoundingPoly\022\022\n" - + "\nconfidence\030\002 \001(\002\022\033\n\023importance_fraction" - + "\030\003 \001(\002\"R\n\023CropHintsAnnotation\022;\n\ncrop_hi" - + "nts\030\001 \003(\0132\'.google.cloud.vision.v1p2beta" - + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" - + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" - + "clude_geo_results\030\002 \001(\010\"E\n\023TextDetection" - + "Params\022.\n&enable_text_detection_confiden" - + "ce_score\030\t \001(\010\"\330\002\n\014ImageContext\022A\n\rlat_l" - + "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p" - + "2beta1.LatLongRect\022\026\n\016language_hints\030\002 \003" - + "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c" - + "loud.vision.v1p2beta1.CropHintsParams\022O\n" - + "\024web_detection_params\030\006 \001(\01321.google.clo" - + "ud.vision.v1p2beta1.WebDetectionParams\022Q" - + "\n\025text_detection_params\030\014 \001(\01322.google.c" - + "loud.vision.v1p2beta1.TextDetectionParam" - + "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001(" - + "\0132$.google.cloud.vision.v1p2beta1.Image\022" - + "8\n\010features\030\002 \003(\0132&.google.cloud.vision." - + "v1p2beta1.Feature\022B\n\rimage_context\030\003 \001(\013" - + "2+.google.cloud.vision.v1p2beta1.ImageCo" - + "ntext\":\n\026ImageAnnotationContext\022\013\n\003uri\030\001" - + " \001(\t\022\023\n\013page_number\030\002 \001(\005\"\212\007\n\025AnnotateIm" - + "ageResponse\022G\n\020face_annotations\030\001 \003(\0132-." - + "google.cloud.vision.v1p2beta1.FaceAnnota" - + "tion\022M\n\024landmark_annotations\030\002 \003(\0132/.goo" - + "gle.cloud.vision.v1p2beta1.EntityAnnotat" - + "ion\022I\n\020logo_annotations\030\003 \003(\0132/.google.c" - + "loud.vision.v1p2beta1.EntityAnnotation\022J" - + "\n\021label_annotations\030\004 \003(\0132/.google.cloud" - + ".vision.v1p2beta1.EntityAnnotation\022I\n\020te" - + "xt_annotations\030\005 \003(\0132/.google.cloud.visi" - + "on.v1p2beta1.EntityAnnotation\022K\n\024full_te" - + "xt_annotation\030\014 \001(\0132-.google.cloud.visio" - + "n.v1p2beta1.TextAnnotation\022S\n\026safe_searc" - + "h_annotation\030\006 \001(\01323.google.cloud.vision" - + ".v1p2beta1.SafeSearchAnnotation\022S\n\033image" - + "_properties_annotation\030\010 \001(\0132..google.cl" - + "oud.vision.v1p2beta1.ImageProperties\022Q\n\025" - + "crop_hints_annotation\030\013 \001(\01322.google.clo" - + "ud.vision.v1p2beta1.CropHintsAnnotation\022" - + "B\n\rweb_detection\030\r \001(\0132+.google.cloud.vi" - + "sion.v1p2beta1.WebDetection\022!\n\005error\030\t \001" - + "(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001(\0132" - + "5.google.cloud.vision.v1p2beta1.ImageAnn" - + "otationContext\"\241\001\n\024AnnotateFileResponse\022" - + "@\n\014input_config\030\001 \001(\0132*.google.cloud.vis" - + "ion.v1p2beta1.InputConfig\022G\n\tresponses\030\002" - + " \003(\01324.google.cloud.vision.v1p2beta1.Ann" - + "otateImageResponse\"h\n\032BatchAnnotateImage" - + "sRequest\022J\n\010requests\030\001 \003(\01323.google.clou" - + "d.vision.v1p2beta1.AnnotateImageRequestB" - + "\003\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tr" - + "esponses\030\001 \003(\01324.google.cloud.vision.v1p" - + "2beta1.AnnotateImageResponse\"\236\002\n\030AsyncAn" - + "notateFileRequest\022@\n\014input_config\030\001 \001(\0132" - + "*.google.cloud.vision.v1p2beta1.InputCon" - + "fig\0228\n\010features\030\002 \003(\0132&.google.cloud.vis" - + "ion.v1p2beta1.Feature\022B\n\rimage_context\030\003" - + " \001(\0132+.google.cloud.vision.v1p2beta1.Ima" - + "geContext\022B\n\routput_config\030\004 \001(\0132+.googl" - + "e.cloud.vision.v1p2beta1.OutputConfig\"_\n" - + "\031AsyncAnnotateFileResponse\022B\n\routput_con" - + "fig\030\001 \001(\0132+.google.cloud.vision.v1p2beta" - + "1.OutputConfig\"p\n\036AsyncBatchAnnotateFile" - + "sRequest\022N\n\010requests\030\001 \003(\01327.google.clou" - + "d.vision.v1p2beta1.AsyncAnnotateFileRequ" - + "estB\003\340A\002\"n\n\037AsyncBatchAnnotateFilesRespo" - + "nse\022K\n\tresponses\030\001 \003(\01328.google.cloud.vi" - + "sion.v1p2beta1.AsyncAnnotateFileResponse" - + "\"^\n\013InputConfig\022<\n\ngcs_source\030\001 \001(\0132(.go" - + "ogle.cloud.vision.v1p2beta1.GcsSource\022\021\n" - + "\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_" - + "destination\030\001 \001(\0132-.google.cloud.vision." - + "v1p2beta1.GcsDestination\022\022\n\nbatch_size\030\002" - + " \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDes" - + "tination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetad" - + "ata\022E\n\005state\030\001 \001(\01626.google.cloud.vision" - + ".v1p2beta1.OperationMetadata.State\022/\n\013cr" - + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "amp\022/\n\013update_time\030\006 \001(\0132\032.google.protob" - + "uf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003" - + "\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN" - + "\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010P" - + "OSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265" - + "\004\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateImage" - + "s\0229.google.cloud.vision.v1p2beta1.BatchA" - + "nnotateImagesRequest\032:.google.cloud.visi" - + "on.v1p2beta1.BatchAnnotateImagesResponse" - + "\"0\202\323\344\223\002\037\"\032/v1p2beta1/images:annotate:\001*\332" - + "A\010requests\022\351\001\n\027AsyncBatchAnnotateFiles\022=" - + ".google.cloud.vision.v1p2beta1.AsyncBatc" - + "hAnnotateFilesRequest\032\035.google.longrunni" - + "ng.Operation\"p\202\323\344\223\002(\"#/v1p2beta1/files:a" - + "syncBatchAnnotate:\001*\332A\010requests\312A4\n\037Asyn" - + "cBatchAnnotateFilesResponse\022\021OperationMe" - + "tadata\032v\312A\025vision.googleapis.com\322A[https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/cloud-" - + "visionB\202\001\n!com.google.cloud.vision.v1p2b" - + "eta1B\023ImageAnnotatorProtoP\001ZCgoogle.gola" - + "ng.org/genproto/googleapis/cloud/vision/" - + "v1p2beta1;vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor, - new java.lang.String[] { - "Type", "MaxResults", "Model", - }); - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor, - new java.lang.String[] { - "GcsImageUri", "ImageUri", - }); - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor, - new java.lang.String[] { - "Content", "Source", - }); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor, - new java.lang.String[] { - "BoundingPoly", - "FdBoundingPoly", - "Landmarks", - "RollAngle", - "PanAngle", - "TiltAngle", - "DetectionConfidence", - "LandmarkingConfidence", - "JoyLikelihood", - "SorrowLikelihood", - "AngerLikelihood", - "SurpriseLikelihood", - "UnderExposedLikelihood", - "BlurredLikelihood", - "HeadwearLikelihood", - }); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { - "Type", "Position", - }); - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor, - new java.lang.String[] { - "LatLng", - }); - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor, - new java.lang.String[] { - "Name", "Value", "Uint64Value", - }); - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor, - new java.lang.String[] { - "Mid", - "Locale", - "Description", - "Score", - "Confidence", - "Topicality", - "BoundingPoly", - "Locations", - "Properties", - }); - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { - "Adult", "Spoof", "Medical", "Violence", "Racy", - }); - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor, - new java.lang.String[] { - "MinLatLng", "MaxLatLng", - }); - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor, - new java.lang.String[] { - "Color", "Score", "PixelFraction", - }); - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { - "Colors", - }); - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor, - new java.lang.String[] { - "DominantColors", - }); - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor, - new java.lang.String[] { - "BoundingPoly", "Confidence", "ImportanceFraction", - }); - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { - "CropHints", - }); - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor, - new java.lang.String[] { - "AspectRatios", - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor, - new java.lang.String[] { - "IncludeGeoResults", - }); - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor, - new java.lang.String[] { - "EnableTextDetectionConfidenceScore", - }); - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor, - new java.lang.String[] { - "LatLongRect", - "LanguageHints", - "CropHintsParams", - "WebDetectionParams", - "TextDetectionParams", - }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { - "Image", "Features", "ImageContext", - }); - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { - "Uri", "PageNumber", - }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { - "FaceAnnotations", - "LandmarkAnnotations", - "LogoAnnotations", - "LabelAnnotations", - "TextAnnotations", - "FullTextAnnotation", - "SafeSearchAnnotation", - "ImagePropertiesAnnotation", - "CropHintsAnnotation", - "WebDetection", - "Error", - "Context", - }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { - "InputConfig", "Responses", - }); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { - "InputConfig", "Features", "ImageContext", "OutputConfig", - }); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { - "OutputConfig", - }); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "MimeType", - }); - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BatchSize", - }); - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "State", "CreateTime", "UpdateTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index b092bf133..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface NormalizedVertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java deleted file mode 100644 index 8358e73f7..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/text_annotation.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p2beta1/text_ann" - + "otation.proto\022\035google.cloud.vision.v1p2b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p2beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p2beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p2beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p2beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p2beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p2beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p2beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p2beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p2beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p2b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p2beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p2beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p2beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p2beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p2beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p2beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p2beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p2beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p2beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p2beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p2beta1" - + ";vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor, - new java.lang.String[] { - "Pages", "Text", - }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { - "Type", "IsPrefix", - }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { - "DetectedLanguages", "DetectedBreak", - }); - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor, - new java.lang.String[] { - "Property", "Width", "Height", "Blocks", "Confidence", - }); - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", - }); - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Words", "Confidence", - }); - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Symbols", "Confidence", - }); - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Text", "Confidence", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java deleted file mode 100644 index e7e7f4f54..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface TextDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * By default, Cloud Vision API only includes confidence score for
-   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
-   * score for TEXT_DETECTION as well.
-   * 
- * - * bool enable_text_detection_confidence_score = 9; - * - * @return The enableTextDetectionConfidenceScore. - */ - boolean getEnableTextDetectionConfidenceScore(); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java deleted file mode 100644 index e5e920eaa..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 7af5e2d7b..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface WebDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java deleted file mode 100644 index e45a62d88..000000000 --- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/web_detection.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p2beta1/web_dete" - + "ction.proto\022\035google.cloud.vision.v1p2bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p2beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p2beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p2beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p2" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p2beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p2beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p2beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p2beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p2beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor, - new java.lang.String[] { - "WebEntities", - "FullMatchingImages", - "PartialMatchingImages", - "PagesWithMatchingImages", - "VisuallySimilarImages", - "BestGuessLabels", - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { - "EntityId", "Score", "Description", - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { - "Url", "Score", - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { - "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { - "Label", "LanguageCode", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java deleted file mode 100644 index c201991af..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface AddProductToProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index 858c38964..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index a91be685a..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface BatchAnnotateImagesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index); - /** - * - * - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index 0a995a990..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteProductRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index 7dcbe72cc..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index c5a646c78..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java deleted file mode 100644 index ccd4dcd18..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class GeometryProto { - private GeometryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p3beta1/geometry" - + ".proto\022\035google.cloud.vision.v1p3beta1\"\036\n" - + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" - + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" - + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" - + "d.vision.v1p3beta1.Vertex\022L\n\023normalized_" - + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" - + "3beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" - + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.goo" - + "gle.cloud.vision.v1p3beta1B\rGeometryProt" - + "oP\001ZCgoogle.golang.org/genproto/googleap" - + "is/cloud/vision/v1p3beta1;vision\370\001\001\242\002\004GC" - + "VNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor, - new java.lang.String[] { - "Vertices", "NormalizedVertices", - }); - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor, - new java.lang.String[] { - "X", "Y", "Z", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java deleted file mode 100644 index 87c9a2f93..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetProductRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index df58ab37d..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index 288ae8874..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java deleted file mode 100644 index c3faa0587..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,761 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p3beta1/image_an" - + "notator.proto\022\035google.cloud.vision.v1p3b" - + "eta1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032,google/cloud/vision/v1p3be" - + "ta1/geometry.proto\0322google/cloud/vision/" - + "v1p3beta1/product_search.proto\0323google/c" - + "loud/vision/v1p3beta1/text_annotation.pr" - + "oto\0321google/cloud/vision/v1p3beta1/web_d" - + "etection.proto\032#google/longrunning/opera" - + "tions.proto\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\032\027google/ty" - + "pe/color.proto\032\030google/type/latlng.proto" - + "\"\216\003\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.clou" - + "d.vision.v1p3beta1.Feature.Type\022\023\n\013max_r" - + "esults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020" - + "TYPE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026" - + "\n\022LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION" - + "\020\003\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTIO" - + "N\020\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE" - + "_SEARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020" - + "\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016" - + "PRODUCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020" - + "\023\"7\n\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022" - + "\021\n\timage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001" - + " \001(\014\022:\n\006source\030\002 \001(\0132*.google.cloud.visi" - + "on.v1p3beta1.ImageSource\"\233\016\n\016FaceAnnotat" - + "ion\022B\n\rbounding_poly\030\001 \001(\0132+.google.clou" - + "d.vision.v1p3beta1.BoundingPoly\022E\n\020fd_bo" - + "unding_poly\030\002 \001(\0132+.google.cloud.vision." - + "v1p3beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(" - + "\01326.google.cloud.vision.v1p3beta1.FaceAn" - + "notation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n" - + "\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024" - + "detection_confidence\030\007 \001(\002\022\036\n\026landmarkin" - + "g_confidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001" - + "(\0162).google.cloud.vision.v1p3beta1.Likel" - + "ihood\022D\n\021sorrow_likelihood\030\n \001(\0162).googl" - + "e.cloud.vision.v1p3beta1.Likelihood\022C\n\020a" - + "nger_likelihood\030\013 \001(\0162).google.cloud.vis" - + "ion.v1p3beta1.Likelihood\022F\n\023surprise_lik" - + "elihood\030\014 \001(\0162).google.cloud.vision.v1p3" - + "beta1.Likelihood\022K\n\030under_exposed_likeli" - + "hood\030\r \001(\0162).google.cloud.vision.v1p3bet" - + "a1.Likelihood\022E\n\022blurred_likelihood\030\016 \001(" - + "\0162).google.cloud.vision.v1p3beta1.Likeli" - + "hood\022F\n\023headwear_likelihood\030\017 \001(\0162).goog" - + "le.cloud.vision.v1p3beta1.Likelihood\032\307\007\n" - + "\010Landmark\022I\n\004type\030\003 \001(\0162;.google.cloud.v" - + "ision.v1p3beta1.FaceAnnotation.Landmark." - + "Type\0229\n\010position\030\004 \001(\0132\'.google.cloud.vi" - + "sion.v1p3beta1.Position\"\264\006\n\004Type\022\024\n\020UNKN" - + "OWN_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EY" - + "E\020\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_O" - + "F_LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBRO" - + "W\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPO" - + "INT_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPE" - + "R_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017" - + "\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOS" - + "E_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026" - + "\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_B" - + "OUNDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030" - + "LEFT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_L" - + "EFT_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025" - + "\022\032\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EY" - + "E_BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CO" - + "RNER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022" - + " \n\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEF" - + "T_EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022" - + "\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022" - + "\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020" - + " \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GO" - + "NION\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132" - + "\023.google.type.LatLng\"=\n\010Property\022\014\n\004name" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 " - + "\001(\004\"\274\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n" - + "\006locale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005sc" - + "ore\030\004 \001(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopical" - + "ity\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.googl" - + "e.cloud.vision.v1p3beta1.BoundingPoly\022>\n" - + "\tlocations\030\010 \003(\0132+.google.cloud.vision.v" - + "1p3beta1.LocationInfo\022;\n\nproperties\030\t \003(" - + "\0132\'.google.cloud.vision.v1p3beta1.Proper" - + "ty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mid\030" - + "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003 \001" - + "(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001(\013" - + "2+.google.cloud.vision.v1p3beta1.Boundin" - + "gPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adult\030" - + "\001 \001(\0162).google.cloud.vision.v1p3beta1.Li" - + "kelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud.v" - + "ision.v1p3beta1.Likelihood\022:\n\007medical\030\003 " - + "\001(\0162).google.cloud.vision.v1p3beta1.Like" - + "lihood\022;\n\010violence\030\004 \001(\0162).google.cloud." - + "vision.v1p3beta1.Likelihood\0227\n\004racy\030\t \001(" - + "\0162).google.cloud.vision.v1p3beta1.Likeli" - + "hood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001(\013" - + "2\023.google.type.LatLng\022(\n\013max_lat_lng\030\002 \001" - + "(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!\n\005" - + "color\030\001 \001(\0132\022.google.type.Color\022\r\n\005score" - + "\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domina" - + "ntColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.goo" - + "gle.cloud.vision.v1p3beta1.ColorInfo\"c\n\017" - + "ImageProperties\022P\n\017dominant_colors\030\001 \001(\013" - + "27.google.cloud.vision.v1p3beta1.Dominan" - + "tColorsAnnotation\"\177\n\010CropHint\022B\n\rboundin" - + "g_poly\030\001 \001(\0132+.google.cloud.vision.v1p3b" - + "eta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n" - + "\023importance_fraction\030\003 \001(\002\"R\n\023CropHintsA" - + "nnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google.c" - + "loud.vision.v1p3beta1.CropHint\"(\n\017CropHi" - + "ntsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebD" - + "etectionParams\022\033\n\023include_geo_results\030\002 " - + "\001(\010\"E\n\023TextDetectionParams\022.\n&enable_tex" - + "t_detection_confidence_score\030\t \001(\010\"\253\003\n\014I" - + "mageContext\022A\n\rlat_long_rect\030\001 \001(\0132*.goo" - + "gle.cloud.vision.v1p3beta1.LatLongRect\022\026" - + "\n\016language_hints\030\002 \003(\t\022I\n\021crop_hints_par" - + "ams\030\004 \001(\0132..google.cloud.vision.v1p3beta" - + "1.CropHintsParams\022Q\n\025product_search_para" - + "ms\030\005 \001(\01322.google.cloud.vision.v1p3beta1" - + ".ProductSearchParams\022O\n\024web_detection_pa" - + "rams\030\006 \001(\01321.google.cloud.vision.v1p3bet" - + "a1.WebDetectionParams\022Q\n\025text_detection_" - + "params\030\014 \001(\01322.google.cloud.vision.v1p3b" - + "eta1.TextDetectionParams\"\311\001\n\024AnnotateIma" - + "geRequest\0223\n\005image\030\001 \001(\0132$.google.cloud." - + "vision.v1p3beta1.Image\0228\n\010features\030\002 \003(\013" - + "2&.google.cloud.vision.v1p3beta1.Feature" - + "\022B\n\rimage_context\030\003 \001(\0132+.google.cloud.v" - + "ision.v1p3beta1.ImageContext\":\n\026ImageAnn" - + "otationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numb" - + "er\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fa" - + "ce_annotations\030\001 \003(\0132-.google.cloud.visi" - + "on.v1p3beta1.FaceAnnotation\022M\n\024landmark_" - + "annotations\030\002 \003(\0132/.google.cloud.vision." - + "v1p3beta1.EntityAnnotation\022I\n\020logo_annot" - + "ations\030\003 \003(\0132/.google.cloud.vision.v1p3b" - + "eta1.EntityAnnotation\022J\n\021label_annotatio" - + "ns\030\004 \003(\0132/.google.cloud.vision.v1p3beta1" - + ".EntityAnnotation\022^\n\034localized_object_an" - + "notations\030\026 \003(\01328.google.cloud.vision.v1" - + "p3beta1.LocalizedObjectAnnotation\022I\n\020tex" - + "t_annotations\030\005 \003(\0132/.google.cloud.visio" - + "n.v1p3beta1.EntityAnnotation\022K\n\024full_tex" - + "t_annotation\030\014 \001(\0132-.google.cloud.vision" - + ".v1p3beta1.TextAnnotation\022S\n\026safe_search" - + "_annotation\030\006 \001(\01323.google.cloud.vision." - + "v1p3beta1.SafeSearchAnnotation\022S\n\033image_" - + "properties_annotation\030\010 \001(\0132..google.clo" - + "ud.vision.v1p3beta1.ImageProperties\022Q\n\025c" - + "rop_hints_annotation\030\013 \001(\01322.google.clou" - + "d.vision.v1p3beta1.CropHintsAnnotation\022B" - + "\n\rweb_detection\030\r \001(\0132+.google.cloud.vis" - + "ion.v1p3beta1.WebDetection\022S\n\026product_se" - + "arch_results\030\016 \001(\01323.google.cloud.vision" - + ".v1p3beta1.ProductSearchResults\022!\n\005error" - + "\030\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 " - + "\001(\01325.google.cloud.vision.v1p3beta1.Imag" - + "eAnnotationContext\"\241\001\n\024AnnotateFileRespo" - + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud" - + ".vision.v1p3beta1.InputConfig\022G\n\trespons" - + "es\030\002 \003(\01324.google.cloud.vision.v1p3beta1" - + ".AnnotateImageResponse\"h\n\032BatchAnnotateI" - + "magesRequest\022J\n\010requests\030\001 \003(\01323.google." - + "cloud.vision.v1p3beta1.AnnotateImageRequ" - + "estB\003\340A\002\"f\n\033BatchAnnotateImagesResponse\022" - + "G\n\tresponses\030\001 \003(\01324.google.cloud.vision" - + ".v1p3beta1.AnnotateImageResponse\"\236\002\n\030Asy" - + "ncAnnotateFileRequest\022@\n\014input_config\030\001 " - + "\001(\0132*.google.cloud.vision.v1p3beta1.Inpu" - + "tConfig\0228\n\010features\030\002 \003(\0132&.google.cloud" - + ".vision.v1p3beta1.Feature\022B\n\rimage_conte" - + "xt\030\003 \001(\0132+.google.cloud.vision.v1p3beta1" - + ".ImageContext\022B\n\routput_config\030\004 \001(\0132+.g" - + "oogle.cloud.vision.v1p3beta1.OutputConfi" - + "g\"_\n\031AsyncAnnotateFileResponse\022B\n\routput" - + "_config\030\001 \001(\0132+.google.cloud.vision.v1p3" - + "beta1.OutputConfig\"p\n\036AsyncBatchAnnotate" - + "FilesRequest\022N\n\010requests\030\001 \003(\01327.google." - + "cloud.vision.v1p3beta1.AsyncAnnotateFile" - + "RequestB\003\340A\002\"n\n\037AsyncBatchAnnotateFilesR" - + "esponse\022K\n\tresponses\030\001 \003(\01328.google.clou" - + "d.vision.v1p3beta1.AsyncAnnotateFileResp" - + "onse\"^\n\013InputConfig\022<\n\ngcs_source\030\001 \001(\0132" - + "(.google.cloud.vision.v1p3beta1.GcsSourc" - + "e\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017" - + "gcs_destination\030\001 \001(\0132-.google.cloud.vis" - + "ion.v1p3beta1.GcsDestination\022\022\n\nbatch_si" - + "ze\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016Gc" - + "sDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationM" - + "etadata\022E\n\005state\030\001 \001(\01626.google.cloud.vi" - + "sion.v1p3beta1.OperationMetadata.State\022/" - + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\006 \001(\0132\032.google.pr" - + "otobuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DO" - + "NE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNK" - + "NOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022" - + "\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY" - + "\020\0052\265\004\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateI" - + "mages\0229.google.cloud.vision.v1p3beta1.Ba" - + "tchAnnotateImagesRequest\032:.google.cloud." - + "vision.v1p3beta1.BatchAnnotateImagesResp" - + "onse\"0\202\323\344\223\002\037\"\032/v1p3beta1/images:annotate" - + ":\001*\332A\010requests\022\351\001\n\027AsyncBatchAnnotateFil" - + "es\022=.google.cloud.vision.v1p3beta1.Async" - + "BatchAnnotateFilesRequest\032\035.google.longr" - + "unning.Operation\"p\202\323\344\223\002(\"#/v1p3beta1/fil" - + "es:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037" - + "AsyncBatchAnnotateFilesResponse\022\021Operati" - + "onMetadata\032v\312A\025vision.googleapis.com\322A[h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/cl" - + "oud-visionB\202\001\n!com.google.cloud.vision.v" - + "1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle." - + "golang.org/genproto/googleapis/cloud/vis" - + "ion/v1p3beta1;vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor, - new java.lang.String[] { - "Type", "MaxResults", "Model", - }); - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor, - new java.lang.String[] { - "GcsImageUri", "ImageUri", - }); - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor, - new java.lang.String[] { - "Content", "Source", - }); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor, - new java.lang.String[] { - "BoundingPoly", - "FdBoundingPoly", - "Landmarks", - "RollAngle", - "PanAngle", - "TiltAngle", - "DetectionConfidence", - "LandmarkingConfidence", - "JoyLikelihood", - "SorrowLikelihood", - "AngerLikelihood", - "SurpriseLikelihood", - "UnderExposedLikelihood", - "BlurredLikelihood", - "HeadwearLikelihood", - }); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { - "Type", "Position", - }); - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor, - new java.lang.String[] { - "LatLng", - }); - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor, - new java.lang.String[] { - "Name", "Value", "Uint64Value", - }); - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor, - new java.lang.String[] { - "Mid", - "Locale", - "Description", - "Score", - "Confidence", - "Topicality", - "BoundingPoly", - "Locations", - "Properties", - }); - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor, - new java.lang.String[] { - "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", - }); - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { - "Adult", "Spoof", "Medical", "Violence", "Racy", - }); - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor, - new java.lang.String[] { - "MinLatLng", "MaxLatLng", - }); - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor, - new java.lang.String[] { - "Color", "Score", "PixelFraction", - }); - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { - "Colors", - }); - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor, - new java.lang.String[] { - "DominantColors", - }); - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor, - new java.lang.String[] { - "BoundingPoly", "Confidence", "ImportanceFraction", - }); - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { - "CropHints", - }); - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor, - new java.lang.String[] { - "AspectRatios", - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor, - new java.lang.String[] { - "IncludeGeoResults", - }); - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor, - new java.lang.String[] { - "EnableTextDetectionConfidenceScore", - }); - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor, - new java.lang.String[] { - "LatLongRect", - "LanguageHints", - "CropHintsParams", - "ProductSearchParams", - "WebDetectionParams", - "TextDetectionParams", - }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { - "Image", "Features", "ImageContext", - }); - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { - "Uri", "PageNumber", - }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { - "FaceAnnotations", - "LandmarkAnnotations", - "LogoAnnotations", - "LabelAnnotations", - "LocalizedObjectAnnotations", - "TextAnnotations", - "FullTextAnnotation", - "SafeSearchAnnotation", - "ImagePropertiesAnnotation", - "CropHintsAnnotation", - "WebDetection", - "ProductSearchResults", - "Error", - "Context", - }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { - "InputConfig", "Responses", - }); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { - "InputConfig", "Features", "ImageContext", "OutputConfig", - }); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { - "OutputConfig", - }); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "MimeType", - }); - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BatchSize", - }); - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "State", "CreateTime", "UpdateTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java deleted file mode 100644 index 85a9db2e1..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface ImportProductSetsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The inputConfig. - */ - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index ffd21a731..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface NormalizedVertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java deleted file mode 100644 index 5518a1acc..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/vision/v1p3beta1/product_" - + "search.proto\022\035google.cloud.vision.v1p3be" - + "ta1\032\031google/api/resource.proto\032,google/c" - + "loud/vision/v1p3beta1/geometry.proto\032:go" - + "ogle/cloud/vision/v1p3beta1/product_sear" - + "ch_service.proto\032\037google/protobuf/timest" - + "amp.proto\"\301\001\n\023ProductSearchParams\022B\n\rbou" - + "nding_poly\030\t \001(\0132+.google.cloud.vision.v" - + "1p3beta1.BoundingPoly\022:\n\013product_set\030\006 \001" - + "(\tB%\372A\"\n vision.googleapis.com/ProductSe" - + "t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006filter\030" - + "\010 \001(\t\"\262\005\n\024ProductSearchResults\022.\n\nindex_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022K" - + "\n\007results\030\005 \003(\0132:.google.cloud.vision.v1" - + "p3beta1.ProductSearchResults.Result\022b\n\027p" - + "roduct_grouped_results\030\006 \003(\0132A.google.cl" - + "oud.vision.v1p3beta1.ProductSearchResult" - + "s.GroupedResult\032_\n\006Result\0227\n\007product\030\001 \001" - + "(\0132&.google.cloud.vision.v1p3beta1.Produ" - + "ct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020Obje" - + "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" - + "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002" - + "\n\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+" - + ".google.cloud.vision.v1p3beta1.BoundingP" - + "oly\022K\n\007results\030\002 \003(\0132:.google.cloud.visi" - + "on.v1p3beta1.ProductSearchResults.Result" - + "\022`\n\022object_annotations\030\003 \003(\0132D.google.cl" - + "oud.vision.v1p3beta1.ProductSearchResult" - + "s.ObjectAnnotationB\210\001\n!com.google.cloud." - + "vision.v1p3beta1B\022ProductSearchProtoP\001ZC" - + "google.golang.org/genproto/googleapis/cl" - + "oud/vision/v1p3beta1;vision\370\001\001\242\002\004GCVNb\006p" - + "roto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor, - new java.lang.String[] { - "BoundingPoly", "ProductSet", "ProductCategories", "Filter", - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor, - new java.lang.String[] { - "IndexTime", "Results", "ProductGroupedResults", - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor, - new java.lang.String[] { - "Product", "Score", "Image", - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor, - new java.lang.String[] { - "Mid", "LanguageCode", "Name", "Score", - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor, - new java.lang.String[] { - "BoundingPoly", "Results", "ObjectAnnotations", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java deleted file mode 100644 index 7f363e347..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java +++ /dev/null @@ -1,658 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ProductSearchServiceProto { - private ProductSearchServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/vision/v1p3beta1/product_" - + "search_service.proto\022\035google.cloud.visio" - + "n.v1p3beta1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032,google/cloud/vision/v1p3beta1/ge" - + "ometry.proto\032#google/longrunning/operati" - + "ons.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\032\027google/rpc/st" - + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" - + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" - + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" - + "3beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" - + "gleapis.com/Product\022:projects/{project}/" - + "locations/{location}/products/{product}\"" - + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" - + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" - + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" - + "on.googleapis.com/ProductSet\022Aprojects/{" - + "project}/locations/{location}/productSet" - + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" - + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" - + "olys\030\003 \003(\0132+.google.cloud.vision.v1p3bet" - + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" - + "leapis.com/ReferenceImage\022\\projects/{pro" - + "ject}/locations/{location}/products/{pro" - + "duct}/referenceImages/{reference_image}\"" - + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" - + "on.v1p3beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" - + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" - + "ts\030\001 \003(\0132&.google.cloud.vision.v1p3beta1" - + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" - + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" - + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" - + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" - + "loud.vision.v1p3beta1.ProductB\003\340A\002\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" - + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" - + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" - + "oud.vision.v1p3beta1.ProductSetB\003\340A\002\022\026\n\016" - + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" - + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" - + "le.cloud.vision.v1p3beta1.ProductSet\022\027\n\017" - + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" - + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" - + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" - + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." - + "cloud.vision.v1p3beta1.ProductSetB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" - + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" - + "ProductSet\"\275\001\n\033CreateReferenceImageReque" - + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" - + "eapis.com/Product\022K\n\017reference_image\030\002 \001" - + "(\0132-.google.cloud.vision.v1p3beta1.Refer" - + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" - + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" - + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" - + "\n\020reference_images\030\001 \003(\0132-.google.cloud." - + "vision.v1p3beta1.ReferenceImage\022\021\n\tpage_" - + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" - + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" - + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" - + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" - + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" - + "ReferenceImage\"\217\001\n\035AddProductToProductSe" - + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" - + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" - + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" - + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" - + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" - + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" - + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" - + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" - + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" - + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"u\n ListProductsInProductSetResponse\0228" - + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" - + "1p3beta1.Product\022\027\n\017next_page_token\030\002 \001(" - + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" - + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" - + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" - + ".vision.v1p3beta1.ImportProductSetsGcsSo" - + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022V\n\014input_config" - + "\030\002 \001(\0132;.google.cloud.vision.v1p3beta1.I" - + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" - + "ortProductSetsResponse\022G\n\020reference_imag" - + "es\030\001 \003(\0132-.google.cloud.vision.v1p3beta1" - + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" - + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" - + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" - + "p3beta1.BatchOperationMetadata.State\022/\n\013" - + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" - + "AILED\020\003\022\r\n\tCANCELLED\020\0042\353\036\n\rProductSearch" - + "\022\346\001\n\020CreateProductSet\0226.google.cloud.vis" - + "ion.v1p3beta1.CreateProductSetRequest\032)." - + "google.cloud.vision.v1p3beta1.ProductSet" - + "\"o\202\323\344\223\002E\"6/v1p3beta1/{parent=projects/*/" - + "locations/*}/productSets:\013product_set\332A!" - + "parent,product_set,product_set_id\022\311\001\n\017Li" - + "stProductSets\0225.google.cloud.vision.v1p3" - + "beta1.ListProductSetsRequest\0326.google.cl" - + "oud.vision.v1p3beta1.ListProductSetsResp" - + "onse\"G\202\323\344\223\0028\0226/v1p3beta1/{parent=project" - + "s/*/locations/*}/productSets\332A\006parent\022\266\001" - + "\n\rGetProductSet\0223.google.cloud.vision.v1" - + "p3beta1.GetProductSetRequest\032).google.cl" - + "oud.vision.v1p3beta1.ProductSet\"E\202\323\344\223\0028\022" - + "6/v1p3beta1/{name=projects/*/locations/*" - + "/productSets/*}\332A\004name\022\350\001\n\020UpdateProduct" - + "Set\0226.google.cloud.vision.v1p3beta1.Upda" - + "teProductSetRequest\032).google.cloud.visio" - + "n.v1p3beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p3bet" - + "a1/{product_set.name=projects/*/location" - + "s/*/productSets/*}:\013product_set\332A\027produc" - + "t_set,update_mask\022\251\001\n\020DeleteProductSet\0226" - + ".google.cloud.vision.v1p3beta1.DeletePro" - + "ductSetRequest\032\026.google.protobuf.Empty\"E" - + "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/loca" - + "tions/*/productSets/*}\332A\004name\022\316\001\n\rCreate" - + "Product\0223.google.cloud.vision.v1p3beta1." - + "CreateProductRequest\032&.google.cloud.visi" - + "on.v1p3beta1.Product\"`\202\323\344\223\002>\"3/v1p3beta1" - + "/{parent=projects/*/locations/*}/product" - + "s:\007product\332A\031parent,product,product_id\022\275" - + "\001\n\014ListProducts\0222.google.cloud.vision.v1" - + "p3beta1.ListProductsRequest\0323.google.clo" - + "ud.vision.v1p3beta1.ListProductsResponse" - + "\"D\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/" - + "locations/*}/products\332A\006parent\022\252\001\n\nGetPr" - + "oduct\0220.google.cloud.vision.v1p3beta1.Ge" - + "tProductRequest\032&.google.cloud.vision.v1" - + "p3beta1.Product\"B\202\323\344\223\0025\0223/v1p3beta1/{nam" - + "e=projects/*/locations/*/products/*}\332A\004n" - + "ame\022\320\001\n\rUpdateProduct\0223.google.cloud.vis" - + "ion.v1p3beta1.UpdateProductRequest\032&.goo" - + "gle.cloud.vision.v1p3beta1.Product\"b\202\323\344\223" - + "\002F2;/v1p3beta1/{product.name=projects/*/" - + "locations/*/products/*}:\007product\332A\023produ" - + "ct,update_mask\022\240\001\n\rDeleteProduct\0223.googl" - + "e.cloud.vision.v1p3beta1.DeleteProductRe" - + "quest\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*3/" - + "v1p3beta1/{name=projects/*/locations/*/p" - + "roducts/*}\332A\004name\022\216\002\n\024CreateReferenceIma" - + "ge\022:.google.cloud.vision.v1p3beta1.Creat" - + "eReferenceImageRequest\032-.google.cloud.vi" - + "sion.v1p3beta1.ReferenceImage\"\212\001\202\323\344\223\002X\"E" - + "/v1p3beta1/{parent=projects/*/locations/" - + "*/products/*}/referenceImages:\017reference" - + "_image\332A)parent,reference_image,referenc" - + "e_image_id\022\300\001\n\024DeleteReferenceImage\022:.go" - + "ogle.cloud.vision.v1p3beta1.DeleteRefere" - + "nceImageRequest\032\026.google.protobuf.Empty\"" - + "T\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/loc" - + "ations/*/products/*/referenceImages/*}\332A" - + "\004name\022\344\001\n\023ListReferenceImages\0229.google.c" - + "loud.vision.v1p3beta1.ListReferenceImage" - + "sRequest\032:.google.cloud.vision.v1p3beta1" - + ".ListReferenceImagesResponse\"V\202\323\344\223\002G\022E/v" - + "1p3beta1/{parent=projects/*/locations/*/" - + "products/*}/referenceImages\332A\006parent\022\321\001\n" - + "\021GetReferenceImage\0227.google.cloud.vision" - + ".v1p3beta1.GetReferenceImageRequest\032-.go" - + "ogle.cloud.vision.v1p3beta1.ReferenceIma" - + "ge\"T\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/" - + "locations/*/products/*/referenceImages/*" - + "}\332A\004name\022\313\001\n\026AddProductToProductSet\022<.go" - + "ogle.cloud.vision.v1p3beta1.AddProductTo" - + "ProductSetRequest\032\026.google.protobuf.Empt" - + "y\"[\202\323\344\223\002F\"A/v1p3beta1/{name=projects/*/l" - + "ocations/*/productSets/*}:addProduct:\001*\332" - + "A\014name,product\022\330\001\n\033RemoveProductFromProd" - + "uctSet\022A.google.cloud.vision.v1p3beta1.R" - + "emoveProductFromProductSetRequest\032\026.goog" - + "le.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p3beta1/{n" - + "ame=projects/*/locations/*/productSets/*" - + "}:removeProduct:\001*\332A\014name,product\022\353\001\n\030Li" - + "stProductsInProductSet\022>.google.cloud.vi" - + "sion.v1p3beta1.ListProductsInProductSetR" - + "equest\032?.google.cloud.vision.v1p3beta1.L" - + "istProductsInProductSetResponse\"N\202\323\344\223\002A\022" - + "?/v1p3beta1/{name=projects/*/locations/*" - + "/productSets/*}/products\332A\004name\022\202\002\n\021Impo" - + "rtProductSets\0227.google.cloud.vision.v1p3" - + "beta1.ImportProductSetsRequest\032\035.google." - + "longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p3bet" - + "a1/{parent=projects/*/locations/*}/produ" - + "ctSets:import:\001*\332A\023parent,input_config\312A" - + "3\n\031ImportProductSetsResponse\022\026BatchOpera" - + "tionMetadata\032v\312A\025vision.googleapis.com\322A" - + "[https://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "cloud-visionB\210\001\n!com.google.cloud.vision" - + ".v1p3beta1B\031ProductSearchServiceProtoP\001Z" - + "Cgoogle.golang.org/genproto/googleapis/c" - + "loud/vision/v1p3beta1;vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", - }); - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor = - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "IndexTime", "IndexError", - }); - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor, - new java.lang.String[] { - "Name", "Uri", "BoundingPolys", - }); - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor, - new java.lang.String[] { - "Parent", "Product", "ProductId", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor, - new java.lang.String[] { - "Products", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor, - new java.lang.String[] { - "Product", "UpdateMask", - }); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor, - new java.lang.String[] { - "Parent", "ProductSet", "ProductSetId", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor, - new java.lang.String[] { - "ProductSets", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor, - new java.lang.String[] { - "ProductSet", "UpdateMask", - }); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor, - new java.lang.String[] { - "Parent", "ReferenceImage", "ReferenceImageId", - }); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor, - new java.lang.String[] { - "ReferenceImages", "PageSize", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "Product", - }); - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "Product", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor, - new java.lang.String[] { - "Products", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor, - new java.lang.String[] { - "CsvFileUri", - }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "InputConfig", - }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor, - new java.lang.String[] { - "ReferenceImages", "Statuses", - }); - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor, - new java.lang.String[] { - "State", "SubmitTime", "EndTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java deleted file mode 100644 index 1bde24650..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface RemoveProductFromProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java deleted file mode 100644 index 91d00243a..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/text_annotation.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p3beta1/text_ann" - + "otation.proto\022\035google.cloud.vision.v1p3b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p3beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p3beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p3beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p3beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p3beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p3beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p3beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p3beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p3beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p3b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p3beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p3beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p3beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p3beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p3beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p3beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p3beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p3beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p3beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p3beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p3beta1" - + ";vision\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor, - new java.lang.String[] { - "Pages", "Text", - }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { - "Type", "IsPrefix", - }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { - "DetectedLanguages", "DetectedBreak", - }); - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor, - new java.lang.String[] { - "Property", "Width", "Height", "Blocks", "Confidence", - }); - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", - }); - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Words", "Confidence", - }); - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Symbols", "Confidence", - }); - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Text", "Confidence", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java deleted file mode 100644 index 3c2c1d525..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface TextDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * By default, Cloud Vision API only includes confidence score for
-   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
-   * score for TEXT_DETECTION as well.
-   * 
- * - * bool enable_text_detection_confidence_score = 9; - * - * @return The enableTextDetectionConfidenceScore. - */ - boolean getEnableTextDetectionConfidenceScore(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java deleted file mode 100644 index 313cd0102..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 023d134dc..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface WebDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java deleted file mode 100644 index 9c6f53625..000000000 --- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/web_detection.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p3beta1/web_dete" - + "ction.proto\022\035google.cloud.vision.v1p3bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p3beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p3beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p3beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p3" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p3beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p3beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p3beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p3beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p3beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p3beta1;vision\370\001\001b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor, - new java.lang.String[] { - "WebEntities", - "FullMatchingImages", - "PartialMatchingImages", - "PagesWithMatchingImages", - "VisuallySimilarImages", - "BestGuessLabels", - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { - "EntityId", "Score", "Description", - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { - "Url", "Score", - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { - "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { - "Label", "LanguageCode", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java deleted file mode 100644 index 537e473fc..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AddProductToProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index d44d5b515..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index bbe6c4dfb..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AsyncBatchAnnotateImagesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); - - /** - * - * - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outputConfig. - */ - com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); - /** - * - * - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index c3232c069..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface BatchAnnotateImagesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java deleted file mode 100644 index e391d726a..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/face.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class CelebrityProto { - private CelebrityProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n(google/cloud/vision/v1p4beta1/face.pro" - + "to\022\035google.cloud.vision.v1p4beta1\032\034googl" - + "e/api/annotations.proto\032,google/cloud/vi" - + "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" - + "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" - + "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" - + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" - + "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" - + ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" - + "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" - + "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" - + "lang.org/genproto/googleapis/cloud/visio" - + "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor, - new java.lang.String[] { - "CelebritySet", - }); - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", - }); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor, - new java.lang.String[] { - "Celebrity", "Confidence", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index 25a7c59ac..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteProductRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index cbe91d289..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index 7197840cd..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java deleted file mode 100644 index 59f72a416..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class GeometryProto { - private GeometryProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p4beta1/geometry" - + ".proto\022\035google.cloud.vision.v1p4beta1\032\034g" - + "oogle/api/annotations.proto\"\036\n\006Vertex\022\t\n" - + "\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022" - + "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014BoundingPoly\0227" - + "\n\010vertices\030\001 \003(\0132%.google.cloud.vision.v" - + "1p4beta1.Vertex\022L\n\023normalized_vertices\030\002" - + " \003(\0132/.google.cloud.vision.v1p4beta1.Nor" - + "malizedVertex\"+\n\010Position\022\t\n\001x\030\001 \001(\002\022\t\n\001" - + "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.google.cloud." - + "vision.v1p4beta1B\rGeometryProtoP\001ZCgoogl" - + "e.golang.org/genproto/googleapis/cloud/v" - + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor, - new java.lang.String[] { - "X", "Y", - }); - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor, - new java.lang.String[] { - "Vertices", "NormalizedVertices", - }); - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor, - new java.lang.String[] { - "X", "Y", "Z", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java deleted file mode 100644 index 884d177f0..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetProductRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index fe978d98d..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index bd285b98c..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetReferenceImageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java deleted file mode 100644 index 469eeec6e..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,865 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p4beta1/image_an" - + "notator.proto\022\035google.cloud.vision.v1p4b" - + "eta1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032(google/cloud/vision/v1p4be" - + "ta1/face.proto\032,google/cloud/vision/v1p4" - + "beta1/geometry.proto\0322google/cloud/visio" - + "n/v1p4beta1/product_search.proto\0323google" - + "/cloud/vision/v1p4beta1/text_annotation." - + "proto\0321google/cloud/vision/v1p4beta1/web" - + "_detection.proto\032#google/longrunning/ope" - + "rations.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\032\027google/type/c" - + "olor.proto\032\030google/type/latlng.proto\"\216\003\n" - + "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" - + "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" - + "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" - + "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" - + "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" - + "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" - + "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" - + "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" - + "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" - + "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" - + "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" - + "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" - + "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" - + "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" - + "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" - + "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" - + "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" - + "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." - + "google.cloud.vision.v1p4beta1.FaceAnnota" - + "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" - + "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" - + "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" - + "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" - + ".google.cloud.vision.v1p4beta1.Likelihoo" - + "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" - + "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" - + "_likelihood\030\013 \001(\0162).google.cloud.vision." - + "v1p4beta1.Likelihood\022F\n\023surprise_likelih" - + "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" - + "1.Likelihood\022K\n\030under_exposed_likelihood" - + "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" - + "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." - + "google.cloud.vision.v1p4beta1.Likelihood" - + "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" - + "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" - + "gnition_result\030\020 \003(\01324.google.cloud.visi" - + "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" - + "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" - + "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" - + "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" - + "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" - + "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" - + "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" - + "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" - + "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" - + "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" - + "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" - + "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" - + "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" - + "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" - + "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" - + "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" - + "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" - + "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" - + "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" - + "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" - + "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" - + "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" - + "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" - + "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" - + "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" - + "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." - + "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" - + "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" - + "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" - + "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" - + "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" - + "gle.cloud.vision.v1p4beta1.BoundingPoly\022" - + ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" - + ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " - + "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" - + "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" - + "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" - + " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" - + "(\0132+.google.cloud.vision.v1p4beta1.Bound" - + "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" - + "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." - + "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" - + ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" - + "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" - + "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" - + "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " - + "\001(\0162).google.cloud.vision.v1p4beta1.Like" - + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" - + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" - + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" - + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" - + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" - + "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" - + "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" - + "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" - + "(\01327.google.cloud.vision.v1p4beta1.Domin" - + "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" - + "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" - + "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" - + "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" - + "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" - + ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" - + "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" - + "bDetectionParams\022\033\n\023include_geo_results\030" - + "\002 \001(\010\"E\n\023TextDetectionParams\022.\n&enable_t" - + "ext_detection_confidence_score\030\t \001(\010\"\202\004\n" - + "\014ImageContext\022A\n\rlat_long_rect\030\001 \001(\0132*.g" - + "oogle.cloud.vision.v1p4beta1.LatLongRect" - + "\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop_hints_p" - + "arams\030\004 \001(\0132..google.cloud.vision.v1p4be" - + "ta1.CropHintsParams\022U\n\027face_recognition_" - + "params\030\n \001(\01324.google.cloud.vision.v1p4b" - + "eta1.FaceRecognitionParams\022Q\n\025product_se" - + "arch_params\030\005 \001(\01322.google.cloud.vision." - + "v1p4beta1.ProductSearchParams\022O\n\024web_det" - + "ection_params\030\006 \001(\01321.google.cloud.visio" - + "n.v1p4beta1.WebDetectionParams\022Q\n\025text_d" - + "etection_params\030\014 \001(\01322.google.cloud.vis" - + "ion.v1p4beta1.TextDetectionParams\"\311\001\n\024An" - + "notateImageRequest\0223\n\005image\030\001 \001(\0132$.goog" - + "le.cloud.vision.v1p4beta1.Image\0228\n\010featu" - + "res\030\002 \003(\0132&.google.cloud.vision.v1p4beta" - + "1.Feature\022B\n\rimage_context\030\003 \001(\0132+.googl" - + "e.cloud.vision.v1p4beta1.ImageContext\":\n" - + "\026ImageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013" - + "page_number\030\002 \001(\005\"\277\010\n\025AnnotateImageRespo" - + "nse\022G\n\020face_annotations\030\001 \003(\0132-.google.c" - + "loud.vision.v1p4beta1.FaceAnnotation\022M\n\024" - + "landmark_annotations\030\002 \003(\0132/.google.clou" - + "d.vision.v1p4beta1.EntityAnnotation\022I\n\020l" - + "ogo_annotations\030\003 \003(\0132/.google.cloud.vis" - + "ion.v1p4beta1.EntityAnnotation\022J\n\021label_" - + "annotations\030\004 \003(\0132/.google.cloud.vision." - + "v1p4beta1.EntityAnnotation\022^\n\034localized_" - + "object_annotations\030\026 \003(\01328.google.cloud." - + "vision.v1p4beta1.LocalizedObjectAnnotati" - + "on\022I\n\020text_annotations\030\005 \003(\0132/.google.cl" - + "oud.vision.v1p4beta1.EntityAnnotation\022K\n" - + "\024full_text_annotation\030\014 \001(\0132-.google.clo" - + "ud.vision.v1p4beta1.TextAnnotation\022S\n\026sa" - + "fe_search_annotation\030\006 \001(\01323.google.clou" - + "d.vision.v1p4beta1.SafeSearchAnnotation\022" - + "S\n\033image_properties_annotation\030\010 \001(\0132..g" - + "oogle.cloud.vision.v1p4beta1.ImageProper" - + "ties\022Q\n\025crop_hints_annotation\030\013 \001(\01322.go" - + "ogle.cloud.vision.v1p4beta1.CropHintsAnn" - + "otation\022B\n\rweb_detection\030\r \001(\0132+.google." - + "cloud.vision.v1p4beta1.WebDetection\022S\n\026p" - + "roduct_search_results\030\016 \001(\01323.google.clo" - + "ud.vision.v1p4beta1.ProductSearchResults" - + "\022!\n\005error\030\t \001(\0132\022.google.rpc.Status\022F\n\007c" - + "ontext\030\025 \001(\01325.google.cloud.vision.v1p4b" - + "eta1.ImageAnnotationContext\"h\n\032BatchAnno" - + "tateImagesRequest\022J\n\010requests\030\001 \003(\01323.go" - + "ogle.cloud.vision.v1p4beta1.AnnotateImag" - + "eRequestB\003\340A\002\"f\n\033BatchAnnotateImagesResp" - + "onse\022G\n\tresponses\030\001 \003(\01324.google.cloud.v" - + "ision.v1p4beta1.AnnotateImageResponse\"\344\001" - + "\n\023AnnotateFileRequest\022@\n\014input_config\030\001 " - + "\001(\0132*.google.cloud.vision.v1p4beta1.Inpu" - + "tConfig\0228\n\010features\030\002 \003(\0132&.google.cloud" - + ".vision.v1p4beta1.Feature\022B\n\rimage_conte" - + "xt\030\003 \001(\0132+.google.cloud.vision.v1p4beta1" - + ".ImageContext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024Annotat" - + "eFileResponse\022@\n\014input_config\030\001 \001(\0132*.go" - + "ogle.cloud.vision.v1p4beta1.InputConfig\022" - + "G\n\tresponses\030\002 \003(\01324.google.cloud.vision" - + ".v1p4beta1.AnnotateImageResponse\022\023\n\013tota" - + "l_pages\030\003 \001(\005\022!\n\005error\030\004 \001(\0132\022.google.rp" - + "c.Status\"f\n\031BatchAnnotateFilesRequest\022I\n" - + "\010requests\030\001 \003(\01322.google.cloud.vision.v1" - + "p4beta1.AnnotateFileRequestB\003\340A\002\"d\n\032Batc" - + "hAnnotateFilesResponse\022F\n\tresponses\030\001 \003(" - + "\01323.google.cloud.vision.v1p4beta1.Annota" - + "teFileResponse\"\236\002\n\030AsyncAnnotateFileRequ" - + "est\022@\n\014input_config\030\001 \001(\0132*.google.cloud" - + ".vision.v1p4beta1.InputConfig\0228\n\010feature" - + "s\030\002 \003(\0132&.google.cloud.vision.v1p4beta1." - + "Feature\022B\n\rimage_context\030\003 \001(\0132+.google." - + "cloud.vision.v1p4beta1.ImageContext\022B\n\ro" - + "utput_config\030\004 \001(\0132+.google.cloud.vision" - + ".v1p4beta1.OutputConfig\"_\n\031AsyncAnnotate" - + "FileResponse\022B\n\routput_config\030\001 \001(\0132+.go" - + "ogle.cloud.vision.v1p4beta1.OutputConfig" - + "\"\266\001\n\037AsyncBatchAnnotateImagesRequest\022J\n\010" - + "requests\030\001 \003(\01323.google.cloud.vision.v1p" - + "4beta1.AnnotateImageRequestB\003\340A\002\022G\n\routp" - + "ut_config\030\002 \001(\0132+.google.cloud.vision.v1" - + "p4beta1.OutputConfigB\003\340A\002\"f\n AsyncBatchA" - + "nnotateImagesResponse\022B\n\routput_config\030\001" - + " \001(\0132+.google.cloud.vision.v1p4beta1.Out" - + "putConfig\"p\n\036AsyncBatchAnnotateFilesRequ" - + "est\022N\n\010requests\030\001 \003(\01327.google.cloud.vis" - + "ion.v1p4beta1.AsyncAnnotateFileRequestB\003" - + "\340A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K" - + "\n\tresponses\030\001 \003(\01328.google.cloud.vision." - + "v1p4beta1.AsyncAnnotateFileResponse\"o\n\013I" - + "nputConfig\022<\n\ngcs_source\030\001 \001(\0132(.google." - + "cloud.vision.v1p4beta1.GcsSource\022\017\n\007cont" - + "ent\030\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputCo" - + "nfig\022F\n\017gcs_destination\030\001 \001(\0132-.google.c" - + "loud.vision.v1p4beta1.GcsDestination\022\022\n\n" - + "batch_size\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001" - + "(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021Op" - + "erationMetadata\022E\n\005state\030\001 \001(\01626.google." - + "cloud.vision.v1p4beta1.OperationMetadata" - + ".State\022/\n\013create_time\030\005 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022/\n\013update_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\"Q\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING" - + "\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihoo" - + "d\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNL" - + "IKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VER" - + "Y_LIKELY\020\0052\361\007\n\016ImageAnnotator\022\276\001\n\023BatchA" - + "nnotateImages\0229.google.cloud.vision.v1p4" - + "beta1.BatchAnnotateImagesRequest\032:.googl" - + "e.cloud.vision.v1p4beta1.BatchAnnotateIm" - + "agesResponse\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:" - + "annotate:\001*\332A\010requests\022\272\001\n\022BatchAnnotate" - + "Files\0228.google.cloud.vision.v1p4beta1.Ba" - + "tchAnnotateFilesRequest\0329.google.cloud.v" - + "ision.v1p4beta1.BatchAnnotateFilesRespon" - + "se\"/\202\323\344\223\002\036\"\031/v1p4beta1/files:annotate:\001*" - + "\332A\010requests\022\374\001\n\030AsyncBatchAnnotateImages" - + "\022>.google.cloud.vision.v1p4beta1.AsyncBa" - + "tchAnnotateImagesRequest\032\035.google.longru" - + "nning.Operation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/ima" - + "ges:asyncBatchAnnotate:\001*\332A\026requests,out" - + "put_config\312A5\n AsyncBatchAnnotateImagesR" - + "esponse\022\021OperationMetadata\022\351\001\n\027AsyncBatc" - + "hAnnotateFiles\022=.google.cloud.vision.v1p" - + "4beta1.AsyncBatchAnnotateFilesRequest\032\035." - + "google.longrunning.Operation\"p\202\323\344\223\002(\"#/v" - + "1p4beta1/files:asyncBatchAnnotate:\001*\332A\010r" - + "equests\312A4\n\037AsyncBatchAnnotateFilesRespo" - + "nse\022\021OperationMetadata\032v\312A\025vision.google" - + "apis.com\322A[https://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis" - + ".com/auth/cloud-visionB\211\001\n!com.google.cl" - + "oud.vision.v1p4beta1B\023ImageAnnotatorProt" - + "oP\001ZCgoogle.golang.org/genproto/googleap" - + "is/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GC" - + "VNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor, - new java.lang.String[] { - "Type", "MaxResults", "Model", - }); - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor, - new java.lang.String[] { - "GcsImageUri", "ImageUri", - }); - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor, - new java.lang.String[] { - "Content", "Source", - }); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor, - new java.lang.String[] { - "BoundingPoly", - "FdBoundingPoly", - "Landmarks", - "RollAngle", - "PanAngle", - "TiltAngle", - "DetectionConfidence", - "LandmarkingConfidence", - "JoyLikelihood", - "SorrowLikelihood", - "AngerLikelihood", - "SurpriseLikelihood", - "UnderExposedLikelihood", - "BlurredLikelihood", - "HeadwearLikelihood", - "RecognitionResult", - }); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { - "Type", "Position", - }); - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor, - new java.lang.String[] { - "LatLng", - }); - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor, - new java.lang.String[] { - "Name", "Value", "Uint64Value", - }); - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor, - new java.lang.String[] { - "Mid", - "Locale", - "Description", - "Score", - "Confidence", - "Topicality", - "BoundingPoly", - "Locations", - "Properties", - }); - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor, - new java.lang.String[] { - "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", - }); - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { - "Adult", "Spoof", "Medical", "Violence", "Racy", - }); - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor, - new java.lang.String[] { - "MinLatLng", "MaxLatLng", - }); - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor, - new java.lang.String[] { - "Color", "Score", "PixelFraction", - }); - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { - "Colors", - }); - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor, - new java.lang.String[] { - "DominantColors", - }); - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor, - new java.lang.String[] { - "BoundingPoly", "Confidence", "ImportanceFraction", - }); - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { - "CropHints", - }); - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor, - new java.lang.String[] { - "AspectRatios", - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor, - new java.lang.String[] { - "IncludeGeoResults", - }); - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor, - new java.lang.String[] { - "EnableTextDetectionConfidenceScore", - }); - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor, - new java.lang.String[] { - "LatLongRect", - "LanguageHints", - "CropHintsParams", - "FaceRecognitionParams", - "ProductSearchParams", - "WebDetectionParams", - "TextDetectionParams", - }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { - "Image", "Features", "ImageContext", - }); - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { - "Uri", "PageNumber", - }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { - "FaceAnnotations", - "LandmarkAnnotations", - "LogoAnnotations", - "LabelAnnotations", - "LocalizedObjectAnnotations", - "TextAnnotations", - "FullTextAnnotation", - "SafeSearchAnnotation", - "ImagePropertiesAnnotation", - "CropHintsAnnotation", - "WebDetection", - "ProductSearchResults", - "Error", - "Context", - }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor, - new java.lang.String[] { - "InputConfig", "Features", "ImageContext", "Pages", - }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { - "InputConfig", "Responses", "TotalPages", "Error", - }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { - "InputConfig", "Features", "ImageContext", "OutputConfig", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { - "OutputConfig", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { - "Requests", "OutputConfig", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { - "OutputConfig", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { - "Requests", - }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { - "Responses", - }); - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Content", "MimeType", - }); - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BatchSize", - }); - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "State", "CreateTime", "UpdateTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java deleted file mode 100644 index 1cc43d821..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface ImportProductSetsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The inputConfig. - */ - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig(); - /** - * - * - *
-   * Required. The input content for the list of requests.
-   * 
- * - * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index fcdcfed07..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface NormalizedVertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java deleted file mode 100644 index d3f4b5c7c..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/vision/v1p4beta1/product_" - + "search.proto\022\035google.cloud.vision.v1p4be" - + "ta1\032\034google/api/annotations.proto\032\031googl" - + "e/api/resource.proto\032,google/cloud/visio" - + "n/v1p4beta1/geometry.proto\032:google/cloud" - + "/vision/v1p4beta1/product_search_service" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" - + "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" - + "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" - + "ision.googleapis.com/ProductSet\022\032\n\022produ" - + "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" - + "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022K\n\007results\030" - + "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" - + "oductSearchResults.Result\022b\n\027product_gro" - + "uped_results\030\006 \003(\0132A.google.cloud.vision" - + ".v1p4beta1.ProductSearchResults.GroupedR" - + "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" - + "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" - + "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" - + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" - + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" - + "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" - + "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" - + "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" - + "a1.ProductSearchResults.Result\022`\n\022object" - + "_annotations\030\003 \003(\0132D.google.cloud.vision" - + ".v1p4beta1.ProductSearchResults.ObjectAn" - + "notationB\210\001\n!com.google.cloud.vision.v1p" - + "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" - + "ang.org/genproto/googleapis/cloud/vision" - + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor, - new java.lang.String[] { - "BoundingPoly", "ProductSet", "ProductCategories", "Filter", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor, - new java.lang.String[] { - "IndexTime", "Results", "ProductGroupedResults", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor, - new java.lang.String[] { - "Product", "Score", "Image", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor, - new java.lang.String[] { - "Mid", "LanguageCode", "Name", "Score", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor, - new java.lang.String[] { - "BoundingPoly", "Results", "ObjectAnnotations", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java deleted file mode 100644 index 1e9331c31..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java +++ /dev/null @@ -1,695 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ProductSearchServiceProto { - private ProductSearchServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/vision/v1p4beta1/product_" - + "search_service.proto\022\035google.cloud.visio" - + "n.v1p4beta1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032,google/cloud/vision/v1p4beta1/ge" - + "ometry.proto\032#google/longrunning/operati" - + "ons.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\032\027google/rpc/st" - + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" - + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" - + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" - + "4beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" - + "gleapis.com/Product\022:projects/{project}/" - + "locations/{location}/products/{product}\"" - + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" - + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" - + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" - + "on.googleapis.com/ProductSet\022Aprojects/{" - + "project}/locations/{location}/productSet" - + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" - + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" - + "olys\030\003 \003(\0132+.google.cloud.vision.v1p4bet" - + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" - + "leapis.com/ReferenceImage\022\\projects/{pro" - + "ject}/locations/{location}/products/{pro" - + "duct}/referenceImages/{reference_image}\"" - + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" - + "on.v1p4beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" - + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" - + "ts\030\001 \003(\0132&.google.cloud.vision.v1p4beta1" - + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" - + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" - + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" - + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" - + "loud.vision.v1p4beta1.ProductB\003\340A\002\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" - + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" - + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" - + "oud.vision.v1p4beta1.ProductSetB\003\340A\002\022\026\n\016" - + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" - + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" - + "le.cloud.vision.v1p4beta1.ProductSet\022\027\n\017" - + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" - + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" - + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" - + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." - + "cloud.vision.v1p4beta1.ProductSetB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" - + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" - + "ProductSet\"\275\001\n\033CreateReferenceImageReque" - + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" - + "eapis.com/Product\022K\n\017reference_image\030\002 \001" - + "(\0132-.google.cloud.vision.v1p4beta1.Refer" - + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" - + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" - + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" - + "\n\020reference_images\030\001 \003(\0132-.google.cloud." - + "vision.v1p4beta1.ReferenceImage\022\021\n\tpage_" - + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" - + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" - + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" - + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" - + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" - + "ReferenceImage\"\217\001\n\035AddProductToProductSe" - + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" - + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" - + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" - + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" - + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" - + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" - + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" - + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" - + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" - + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"u\n ListProductsInProductSetResponse\0228" - + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" - + "1p4beta1.Product\022\027\n\017next_page_token\030\002 \001(" - + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" - + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" - + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" - + ".vision.v1p4beta1.ImportProductSetsGcsSo" - + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022V\n\014input_config" - + "\030\002 \001(\0132;.google.cloud.vision.v1p4beta1.I" - + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" - + "ortProductSetsResponse\022G\n\020reference_imag" - + "es\030\001 \003(\0132-.google.cloud.vision.v1p4beta1" - + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" - + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" - + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" - + "p4beta1.BatchOperationMetadata.State\022/\n\013" - + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" - + "AILED\020\003\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurg" - + "eConfig\022\026\n\016product_set_id\030\001 \001(\t\"\346\001\n\024Purg" - + "eProductsRequest\022X\n\030product_set_purge_co" - + "nfig\030\002 \001(\01324.google.cloud.vision.v1p4bet" - + "a1.ProductSetPurgeConfigH\000\022 \n\026delete_orp" - + "han_products\030\003 \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\r\n\005force\030\004 \001(\010B\010\n\006target2\322 \n\rProductSear" - + "ch\022\346\001\n\020CreateProductSet\0226.google.cloud.v" - + "ision.v1p4beta1.CreateProductSetRequest\032" - + ").google.cloud.vision.v1p4beta1.ProductS" - + "et\"o\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" - + "*/locations/*}/productSets:\013product_set\332" - + "A!parent,product_set,product_set_id\022\311\001\n\017" - + "ListProductSets\0225.google.cloud.vision.v1" - + "p4beta1.ListProductSetsRequest\0326.google." - + "cloud.vision.v1p4beta1.ListProductSetsRe" - + "sponse\"G\202\323\344\223\0028\0226/v1p4beta1/{parent=proje" - + "cts/*/locations/*}/productSets\332A\006parent\022" - + "\266\001\n\rGetProductSet\0223.google.cloud.vision." - + "v1p4beta1.GetProductSetRequest\032).google." - + "cloud.vision.v1p4beta1.ProductSet\"E\202\323\344\223\002" - + "8\0226/v1p4beta1/{name=projects/*/locations" - + "/*/productSets/*}\332A\004name\022\350\001\n\020UpdateProdu" - + "ctSet\0226.google.cloud.vision.v1p4beta1.Up" - + "dateProductSetRequest\032).google.cloud.vis" - + "ion.v1p4beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p4b" - + "eta1/{product_set.name=projects/*/locati" - + "ons/*/productSets/*}:\013product_set\332A\027prod" - + "uct_set,update_mask\022\251\001\n\020DeleteProductSet" - + "\0226.google.cloud.vision.v1p4beta1.DeleteP" - + "roductSetRequest\032\026.google.protobuf.Empty" - + "\"E\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/lo" - + "cations/*/productSets/*}\332A\004name\022\316\001\n\rCrea" - + "teProduct\0223.google.cloud.vision.v1p4beta" - + "1.CreateProductRequest\032&.google.cloud.vi" - + "sion.v1p4beta1.Product\"`\202\323\344\223\002>\"3/v1p4bet" - + "a1/{parent=projects/*/locations/*}/produ" - + "cts:\007product\332A\031parent,product,product_id" - + "\022\275\001\n\014ListProducts\0222.google.cloud.vision." - + "v1p4beta1.ListProductsRequest\0323.google.c" - + "loud.vision.v1p4beta1.ListProductsRespon" - + "se\"D\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/" - + "*/locations/*}/products\332A\006parent\022\252\001\n\nGet" - + "Product\0220.google.cloud.vision.v1p4beta1." - + "GetProductRequest\032&.google.cloud.vision." - + "v1p4beta1.Product\"B\202\323\344\223\0025\0223/v1p4beta1/{n" - + "ame=projects/*/locations/*/products/*}\332A" - + "\004name\022\320\001\n\rUpdateProduct\0223.google.cloud.v" - + "ision.v1p4beta1.UpdateProductRequest\032&.g" - + "oogle.cloud.vision.v1p4beta1.Product\"b\202\323" - + "\344\223\002F2;/v1p4beta1/{product.name=projects/" - + "*/locations/*/products/*}:\007product\332A\023pro" - + "duct,update_mask\022\240\001\n\rDeleteProduct\0223.goo" - + "gle.cloud.vision.v1p4beta1.DeleteProduct" - + "Request\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*" - + "3/v1p4beta1/{name=projects/*/locations/*" - + "/products/*}\332A\004name\022\216\002\n\024CreateReferenceI" - + "mage\022:.google.cloud.vision.v1p4beta1.Cre" - + "ateReferenceImageRequest\032-.google.cloud." - + "vision.v1p4beta1.ReferenceImage\"\212\001\202\323\344\223\002X" - + "\"E/v1p4beta1/{parent=projects/*/location" - + "s/*/products/*}/referenceImages:\017referen" - + "ce_image\332A)parent,reference_image,refere" - + "nce_image_id\022\300\001\n\024DeleteReferenceImage\022:." - + "google.cloud.vision.v1p4beta1.DeleteRefe" - + "renceImageRequest\032\026.google.protobuf.Empt" - + "y\"T\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/l" - + "ocations/*/products/*/referenceImages/*}" - + "\332A\004name\022\344\001\n\023ListReferenceImages\0229.google" - + ".cloud.vision.v1p4beta1.ListReferenceIma" - + "gesRequest\032:.google.cloud.vision.v1p4bet" - + "a1.ListReferenceImagesResponse\"V\202\323\344\223\002G\022E" - + "/v1p4beta1/{parent=projects/*/locations/" - + "*/products/*}/referenceImages\332A\006parent\022\321" - + "\001\n\021GetReferenceImage\0227.google.cloud.visi" - + "on.v1p4beta1.GetReferenceImageRequest\032-." - + "google.cloud.vision.v1p4beta1.ReferenceI" - + "mage\"T\202\323\344\223\002G\022E/v1p4beta1/{name=projects/" - + "*/locations/*/products/*/referenceImages" - + "/*}\332A\004name\022\313\001\n\026AddProductToProductSet\022<." - + "google.cloud.vision.v1p4beta1.AddProduct" - + "ToProductSetRequest\032\026.google.protobuf.Em" - + "pty\"[\202\323\344\223\002F\"A/v1p4beta1/{name=projects/*" - + "/locations/*/productSets/*}:addProduct:\001" - + "*\332A\014name,product\022\330\001\n\033RemoveProductFromPr" - + "oductSet\022A.google.cloud.vision.v1p4beta1" - + ".RemoveProductFromProductSetRequest\032\026.go" - + "ogle.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p4beta1/" - + "{name=projects/*/locations/*/productSets" - + "/*}:removeProduct:\001*\332A\014name,product\022\353\001\n\030" - + "ListProductsInProductSet\022>.google.cloud." - + "vision.v1p4beta1.ListProductsInProductSe" - + "tRequest\032?.google.cloud.vision.v1p4beta1" - + ".ListProductsInProductSetResponse\"N\202\323\344\223\002" - + "A\022?/v1p4beta1/{name=projects/*/locations" - + "/*/productSets/*}/products\332A\004name\022\202\002\n\021Im" - + "portProductSets\0227.google.cloud.vision.v1" - + "p4beta1.ImportProductSetsRequest\032\035.googl" - + "e.longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p4b" - + "eta1/{parent=projects/*/locations/*}/pro" - + "ductSets:import:\001*\332A\023parent,input_config" - + "\312A3\n\031ImportProductSetsResponse\022\026BatchOpe" - + "rationMetadata\022\344\001\n\rPurgeProducts\0223.googl" - + "e.cloud.vision.v1p4beta1.PurgeProductsRe" - + "quest\032\035.google.longrunning.Operation\"\177\202\323" - + "\344\223\002>\"9/v1p4beta1/{parent=projects/*/loca" - + "tions/*}/products:purge:\001*\332A\006parent\312A/\n\025" - + "google.protobuf.Empty\022\026BatchOperationMet" - + "adata\032v\312A\025vision.googleapis.com\322A[https:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/cloud-v" - + "isionB\217\001\n!com.google.cloud.vision.v1p4be" - + "ta1B\031ProductSearchServiceProtoP\001ZCgoogle" - + ".golang.org/genproto/googleapis/cloud/vi" - + "sion/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", - }); - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor = - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "IndexTime", "IndexError", - }); - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor, - new java.lang.String[] { - "Name", "Uri", "BoundingPolys", - }); - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor, - new java.lang.String[] { - "Parent", "Product", "ProductId", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor, - new java.lang.String[] { - "Products", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor, - new java.lang.String[] { - "Product", "UpdateMask", - }); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor, - new java.lang.String[] { - "Parent", "ProductSet", "ProductSetId", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor, - new java.lang.String[] { - "ProductSets", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor, - new java.lang.String[] { - "ProductSet", "UpdateMask", - }); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor, - new java.lang.String[] { - "Parent", "ReferenceImage", "ReferenceImageId", - }); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor, - new java.lang.String[] { - "ReferenceImages", "PageSize", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "Product", - }); - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "Product", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor, - new java.lang.String[] { - "Products", "NextPageToken", - }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor, - new java.lang.String[] { - "CsvFileUri", - }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "InputConfig", - }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor, - new java.lang.String[] { - "ReferenceImages", "Statuses", - }); - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor, - new java.lang.String[] { - "State", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor, - new java.lang.String[] { - "ProductSetId", - }); - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor, - new java.lang.String[] { - "ProductSetPurgeConfig", "DeleteOrphanProducts", "Parent", "Force", "Target", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java deleted file mode 100644 index d855b5dbd..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface RemoveProductFromProductSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this
-   * ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The product. - */ - java.lang.String getProduct(); - /** - * - * - *
-   * Required. The resource name for the Product to be removed from this
-   * ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for product. - */ - com.google.protobuf.ByteString getProductBytes(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java deleted file mode 100644 index d163ca670..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/text_annotation.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p4beta1/text_ann" - + "otation.proto\022\035google.cloud.vision.v1p4b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p4beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p4beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p4beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p4beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p4beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p4beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p4beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p4beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p4beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p4b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p4beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p4beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p4beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p4beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p4beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p4beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p4beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p4beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p4beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\211\001" - + "\n!com.google.cloud.vision.v1p4beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p4beta1" - + ";vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor, - new java.lang.String[] { - "Pages", "Text", - }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { - "Type", "IsPrefix", - }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { - "DetectedLanguages", "DetectedBreak", - }); - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor, - new java.lang.String[] { - "Property", "Width", "Height", "Blocks", "Confidence", - }); - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", - }); - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Words", "Confidence", - }); - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Symbols", "Confidence", - }); - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor, - new java.lang.String[] { - "Property", "BoundingBox", "Text", "Confidence", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java deleted file mode 100644 index 827e9d697..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface TextDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * By default, Cloud Vision API only includes confidence score for
-   * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
-   * score for TEXT_DETECTION as well.
-   * 
- * - * bool enable_text_detection_confidence_score = 9; - * - * @return The enableTextDetectionConfidenceScore. - */ - boolean getEnableTextDetectionConfidenceScore(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java deleted file mode 100644 index 6c731aaa9..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 7ed859bba..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface WebDetectionParamsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java deleted file mode 100644 index 04f25e33d..000000000 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/web_detection.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p4beta1/web_dete" - + "ction.proto\022\035google.cloud.vision.v1p4bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p4beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p4beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p4beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p4" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p4beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p4beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p4beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" - + "loud.vision.v1p4beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" - + "Nb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor, - new java.lang.String[] { - "WebEntities", - "FullMatchingImages", - "PartialMatchingImages", - "PagesWithMatchingImages", - "VisuallySimilarImages", - "BestGuessLabels", - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { - "EntityId", "Score", "Description", - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { - "Url", "Score", - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { - "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { - "Label", "LanguageCode", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 839d3b4b48506d005a89ab3f24f221b0bec0cff0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 4 Aug 2022 22:51:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../cloud/vision/v1/ImageAnnotatorClient.java | 6 +- .../vision/v1/ImageAnnotatorSettings.java | 7 +- .../cloud/vision/v1/ProductSearchClient.java | 254 +- .../vision/v1/ProductSearchSettings.java | 16 +- .../cloud/vision/v1/gapic_metadata.json | 0 .../google/cloud/vision/v1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../v1/stub/GrpcImageAnnotatorStub.java | 1 - .../GrpcProductSearchCallableFactory.java | 0 .../vision/v1/stub/GrpcProductSearchStub.java | 1 - ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../v1/stub/HttpJsonImageAnnotatorStub.java | 1 - .../HttpJsonProductSearchCallableFactory.java | 0 .../v1/stub/HttpJsonProductSearchStub.java | 1 - .../vision/v1/stub/ImageAnnotatorStub.java | 0 .../v1/stub/ImageAnnotatorStubSettings.java | 6 +- .../vision/v1/stub/ProductSearchStub.java | 0 .../v1/stub/ProductSearchStubSettings.java | 33 +- .../v1p1beta1/ImageAnnotatorClient.java | 6 +- .../v1p1beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p1beta1/gapic_metadata.json | 0 .../cloud/vision/v1p1beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 0 .../v1p1beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p2beta1/ImageAnnotatorClient.java | 6 +- .../v1p2beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p2beta1/gapic_metadata.json | 0 .../cloud/vision/v1p2beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 - .../v1p2beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p3beta1/ImageAnnotatorClient.java | 6 +- .../v1p3beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p3beta1/ProductSearchClient.java | 290 +- .../v1p3beta1/ProductSearchSettings.java | 16 +- .../vision/v1p3beta1/gapic_metadata.json | 0 .../cloud/vision/v1p3beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 .../GrpcProductSearchCallableFactory.java | 0 .../v1p3beta1/stub/GrpcProductSearchStub.java | 1 - ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 - .../HttpJsonProductSearchCallableFactory.java | 0 .../stub/HttpJsonProductSearchStub.java | 1 - .../v1p3beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p3beta1/stub/ProductSearchStub.java | 0 .../stub/ProductSearchStubSettings.java | 33 +- .../v1p4beta1/ImageAnnotatorClient.java | 6 +- .../v1p4beta1/ImageAnnotatorSettings.java | 7 +- .../vision/v1p4beta1/ProductSearchClient.java | 254 +- .../v1p4beta1/ProductSearchSettings.java | 16 +- .../vision/v1p4beta1/gapic_metadata.json | 0 .../cloud/vision/v1p4beta1/package-info.java | 0 .../GrpcImageAnnotatorCallableFactory.java | 0 .../stub/GrpcImageAnnotatorStub.java | 0 .../GrpcProductSearchCallableFactory.java | 0 .../v1p4beta1/stub/GrpcProductSearchStub.java | 1 - ...HttpJsonImageAnnotatorCallableFactory.java | 0 .../stub/HttpJsonImageAnnotatorStub.java | 1 - .../HttpJsonProductSearchCallableFactory.java | 0 .../stub/HttpJsonProductSearchStub.java | 1 - .../v1p4beta1/stub/ImageAnnotatorStub.java | 0 .../stub/ImageAnnotatorStubSettings.java | 6 +- .../v1p4beta1/stub/ProductSearchStub.java | 0 .../stub/ProductSearchStubSettings.java | 33 +- .../v1/ImageAnnotatorClientHttpJsonTest.java | 0 .../vision/v1/ImageAnnotatorClientTest.java | 0 .../cloud/vision/v1/MockImageAnnotator.java | 0 .../vision/v1/MockImageAnnotatorImpl.java | 0 .../cloud/vision/v1/MockProductSearch.java | 0 .../vision/v1/MockProductSearchImpl.java | 0 .../v1/ProductSearchClientHttpJsonTest.java | 0 .../vision/v1/ProductSearchClientTest.java | 0 .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p1beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p1beta1/MockImageAnnotator.java | 0 .../v1p1beta1/MockImageAnnotatorImpl.java | 0 .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p2beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p2beta1/MockImageAnnotator.java | 0 .../v1p2beta1/MockImageAnnotatorImpl.java | 0 .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p3beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p3beta1/MockImageAnnotator.java | 0 .../v1p3beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p3beta1/MockProductSearch.java | 0 .../v1p3beta1/MockProductSearchImpl.java | 0 .../ProductSearchClientHttpJsonTest.java | 0 .../v1p3beta1/ProductSearchClientTest.java | 0 .../ImageAnnotatorClientHttpJsonTest.java | 0 .../v1p4beta1/ImageAnnotatorClientTest.java | 0 .../vision/v1p4beta1/MockImageAnnotator.java | 0 .../v1p4beta1/MockImageAnnotatorImpl.java | 0 .../vision/v1p4beta1/MockProductSearch.java | 0 .../v1p4beta1/MockProductSearchImpl.java | 0 .../ProductSearchClientHttpJsonTest.java | 0 .../v1p4beta1/ProductSearchClientTest.java | 0 .../cloud/vision/v1/ImageAnnotatorGrpc.java | 539 ++- .../cloud/vision/v1/ProductSearchGrpc.java | 1909 +++++--- .../vision/v1p1beta1/ImageAnnotatorGrpc.java | 235 +- .../vision/v1p2beta1/ImageAnnotatorGrpc.java | 334 +- .../vision/v1p3beta1/ImageAnnotatorGrpc.java | 334 +- .../vision/v1p3beta1/ProductSearchGrpc.java | 1913 +++++--- .../vision/v1p4beta1/ImageAnnotatorGrpc.java | 542 ++- .../vision/v1p4beta1/ProductSearchGrpc.java | 2002 ++++++--- ...ddProductToProductSetRequestOrBuilder.java | 57 - .../v1/DeleteProductRequestOrBuilder.java | 33 - .../v1/DeleteProductSetRequestOrBuilder.java | 33 - .../DeleteReferenceImageRequestOrBuilder.java | 33 - .../google/cloud/vision/v1/GeometryProto.java | 90 - .../vision/v1/GetProductRequestOrBuilder.java | 33 - .../v1/GetProductSetRequestOrBuilder.java | 33 - .../v1/GetReferenceImageRequestOrBuilder.java | 33 - .../cloud/vision/v1/ImageAnnotatorProto.java | 756 ---- .../v1/ImportProductSetsRequestOrBuilder.java | 58 - .../vision/v1/NormalizedVertexOrBuilder.java | 29 - .../cloud/vision/v1/PositionOrBuilder.java | 39 - .../cloud/vision/v1/ProductSearchProto.java | 132 - .../vision/v1/ProductSearchServiceProto.java | 637 --- ...ProductFromProductSetRequestOrBuilder.java | 57 - .../cloud/vision/v1/TextAnnotationProto.java | 183 - .../cloud/vision/v1/VertexOrBuilder.java | 29 - .../v1/WebDetectionParamsOrBuilder.java | 19 - .../cloud/vision/v1/WebDetectionProto.java | 116 - .../BatchAnnotateImagesRequestOrBuilder.java | 53 - .../cloud/vision/v1p1beta1/GeometryProto.java | 77 - .../vision/v1p1beta1/ImageAnnotatorProto.java | 475 -- .../vision/v1p1beta1/TextAnnotationProto.java | 190 - .../vision/v1p1beta1/VertexOrBuilder.java | 29 - .../WebDetectionParamsOrBuilder.java | 19 - .../vision/v1p1beta1/WebDetectionProto.java | 121 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 - .../BatchAnnotateImagesRequestOrBuilder.java | 53 - .../cloud/vision/v1p2beta1/GeometryProto.java | 91 - .../vision/v1p2beta1/ImageAnnotatorProto.java | 645 --- .../v1p2beta1/NormalizedVertexOrBuilder.java | 29 - .../vision/v1p2beta1/TextAnnotationProto.java | 190 - .../vision/v1p2beta1/VertexOrBuilder.java | 29 - .../WebDetectionParamsOrBuilder.java | 19 - .../vision/v1p2beta1/WebDetectionProto.java | 121 - ...ddProductToProductSetRequestOrBuilder.java | 57 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 - .../BatchAnnotateImagesRequestOrBuilder.java | 53 - .../DeleteProductRequestOrBuilder.java | 33 - .../DeleteProductSetRequestOrBuilder.java | 33 - .../DeleteReferenceImageRequestOrBuilder.java | 33 - .../cloud/vision/v1p3beta1/GeometryProto.java | 91 - .../v1p3beta1/GetProductRequestOrBuilder.java | 33 - .../GetProductSetRequestOrBuilder.java | 33 - .../GetReferenceImageRequestOrBuilder.java | 33 - .../vision/v1p3beta1/ImageAnnotatorProto.java | 671 --- .../ImportProductSetsRequestOrBuilder.java | 58 - .../v1p3beta1/NormalizedVertexOrBuilder.java | 29 - .../vision/v1p3beta1/ProductSearchProto.java | 135 - .../v1p3beta1/ProductSearchServiceProto.java | 614 --- ...ProductFromProductSetRequestOrBuilder.java | 57 - .../vision/v1p3beta1/TextAnnotationProto.java | 190 - .../vision/v1p3beta1/VertexOrBuilder.java | 29 - .../WebDetectionParamsOrBuilder.java | 19 - .../vision/v1p3beta1/WebDetectionProto.java | 121 - ...ddProductToProductSetRequestOrBuilder.java | 57 - ...yncBatchAnnotateFilesRequestOrBuilder.java | 53 - ...ncBatchAnnotateImagesRequestOrBuilder.java | 80 - .../BatchAnnotateImagesRequestOrBuilder.java | 53 - .../vision/v1p4beta1/CelebrityProto.java | 84 - .../DeleteProductRequestOrBuilder.java | 33 - .../DeleteProductSetRequestOrBuilder.java | 33 - .../DeleteReferenceImageRequestOrBuilder.java | 33 - .../cloud/vision/v1p4beta1/GeometryProto.java | 93 - .../v1p4beta1/GetProductRequestOrBuilder.java | 33 - .../GetProductSetRequestOrBuilder.java | 33 - .../GetReferenceImageRequestOrBuilder.java | 33 - .../vision/v1p4beta1/ImageAnnotatorProto.java | 767 ---- .../ImportProductSetsRequestOrBuilder.java | 58 - .../v1p4beta1/NormalizedVertexOrBuilder.java | 29 - .../vision/v1p4beta1/ProductSearchProto.java | 137 - .../v1p4beta1/ProductSearchServiceProto.java | 649 --- ...ProductFromProductSetRequestOrBuilder.java | 59 - .../vision/v1p4beta1/TextAnnotationProto.java | 190 - .../vision/v1p4beta1/VertexOrBuilder.java | 29 - .../WebDetectionParamsOrBuilder.java | 19 - .../vision/v1p4beta1/WebDetectionProto.java | 121 - .../v1/AddProductToProductSetRequest.java | 449 +- ...ddProductToProductSetRequestOrBuilder.java | 91 + .../cloud/vision/v1/AnnotateFileRequest.java | 672 ++- .../v1/AnnotateFileRequestOrBuilder.java | 62 +- .../cloud/vision/v1/AnnotateFileResponse.java | 588 ++- .../v1/AnnotateFileResponseOrBuilder.java | 55 +- .../cloud/vision/v1/AnnotateImageRequest.java | 561 ++- .../v1/AnnotateImageRequestOrBuilder.java | 53 +- .../vision/v1/AnnotateImageResponse.java | 1975 ++++++--- .../v1/AnnotateImageResponseOrBuilder.java | 210 +- .../vision/v1/AsyncAnnotateFileRequest.java | 679 ++- .../v1/AsyncAnnotateFileRequestOrBuilder.java | 61 +- .../vision/v1/AsyncAnnotateFileResponse.java | 335 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../v1/AsyncBatchAnnotateFilesRequest.java | 543 ++- ...yncBatchAnnotateFilesRequestOrBuilder.java | 65 +- .../v1/AsyncBatchAnnotateFilesResponse.java | 373 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 36 +- .../v1/AsyncBatchAnnotateImagesRequest.java | 704 +-- ...ncBatchAnnotateImagesRequestOrBuilder.java | 85 +- .../v1/AsyncBatchAnnotateImagesResponse.java | 341 +- ...cBatchAnnotateImagesResponseOrBuilder.java | 26 +- .../vision/v1/BatchAnnotateFilesRequest.java | 553 ++- .../BatchAnnotateFilesRequestOrBuilder.java | 65 +- .../vision/v1/BatchAnnotateFilesResponse.java | 382 +- .../BatchAnnotateFilesResponseOrBuilder.java | 36 +- .../vision/v1/BatchAnnotateImagesRequest.java | 553 ++- .../BatchAnnotateImagesRequestOrBuilder.java | 65 +- .../v1/BatchAnnotateImagesResponse.java | 380 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../vision/v1/BatchOperationMetadata.java | 568 ++- .../v1/BatchOperationMetadataOrBuilder.java | 40 +- .../com/google/cloud/vision/v1/Block.java | 740 ++-- .../cloud/vision/v1/BlockOrBuilder.java | 61 +- .../google/cloud/vision/v1/BoundingPoly.java | 495 ++- .../vision/v1/BoundingPolyOrBuilder.java | 55 +- .../com/google/cloud/vision/v1/ColorInfo.java | 375 +- .../cloud/vision/v1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1/CreateProductRequest.java | 543 ++- .../v1/CreateProductRequestOrBuilder.java | 61 +- .../vision/v1/CreateProductSetRequest.java | 567 ++- .../v1/CreateProductSetRequestOrBuilder.java | 64 +- .../v1/CreateReferenceImageRequest.java | 567 ++- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../com/google/cloud/vision/v1/CropHint.java | 390 +- .../cloud/vision/v1/CropHintOrBuilder.java | 32 +- .../cloud/vision/v1/CropHintsAnnotation.java | 370 +- .../v1/CropHintsAnnotationOrBuilder.java | 36 +- .../cloud/vision/v1/CropHintsParams.java | 323 +- .../vision/v1/CropHintsParamsOrBuilder.java | 27 +- .../cloud/vision/v1/DeleteProductRequest.java | 332 +- .../v1/DeleteProductRequestOrBuilder.java | 58 + .../vision/v1/DeleteProductSetRequest.java | 339 +- .../v1/DeleteProductSetRequestOrBuilder.java | 58 + .../v1/DeleteReferenceImageRequest.java | 342 +- .../DeleteReferenceImageRequestOrBuilder.java | 58 + .../vision/v1/DominantColorsAnnotation.java | 380 +- .../v1/DominantColorsAnnotationOrBuilder.java | 37 +- .../cloud/vision/v1/EntityAnnotation.java | 993 +++-- .../vision/v1/EntityAnnotationOrBuilder.java | 105 +- .../cloud/vision/v1/FaceAnnotation.java | 1834 +++++--- .../vision/v1/FaceAnnotationOrBuilder.java | 109 +- .../com/google/cloud/vision/v1/Feature.java | 518 ++- .../cloud/vision/v1/FeatureOrBuilder.java | 36 +- .../cloud/vision/v1/GcsDestination.java | 301 +- .../vision/v1/GcsDestinationOrBuilder.java | 27 +- .../com/google/cloud/vision/v1/GcsSource.java | 294 +- .../cloud/vision/v1/GcsSourceOrBuilder.java | 27 +- .../google/cloud/vision/v1/GeometryProto.java | 106 + .../cloud/vision/v1/GetProductRequest.java | 329 +- .../vision/v1/GetProductRequestOrBuilder.java | 58 + .../cloud/vision/v1/GetProductSetRequest.java | 332 +- .../v1/GetProductSetRequestOrBuilder.java | 58 + .../vision/v1/GetReferenceImageRequest.java | 339 +- .../v1/GetReferenceImageRequestOrBuilder.java | 58 + .../com/google/cloud/vision/v1/Image.java | 345 +- .../vision/v1/ImageAnnotationContext.java | 345 +- .../v1/ImageAnnotationContextOrBuilder.java | 30 +- .../cloud/vision/v1/ImageAnnotatorProto.java | 850 ++++ .../google/cloud/vision/v1/ImageContext.java | 840 ++-- .../vision/v1/ImageContextOrBuilder.java | 76 +- .../cloud/vision/v1/ImageOrBuilder.java | 29 +- .../cloud/vision/v1/ImageProperties.java | 329 +- .../vision/v1/ImagePropertiesOrBuilder.java | 26 +- .../google/cloud/vision/v1/ImageSource.java | 373 +- .../cloud/vision/v1/ImageSourceOrBuilder.java | 36 +- .../vision/v1/ImportProductSetsGcsSource.java | 314 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../v1/ImportProductSetsInputConfig.java | 386 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../vision/v1/ImportProductSetsRequest.java | 492 ++- .../v1/ImportProductSetsRequestOrBuilder.java | 97 + .../vision/v1/ImportProductSetsResponse.java | 525 ++- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../google/cloud/vision/v1/InputConfig.java | 433 +- .../cloud/vision/v1/InputConfigOrBuilder.java | 38 +- .../google/cloud/vision/v1/LatLongRect.java | 386 +- .../cloud/vision/v1/LatLongRectOrBuilder.java | 34 +- .../google/cloud/vision/v1/Likelihood.java | 103 +- .../vision/v1/ListProductSetsRequest.java | 452 +- .../v1/ListProductSetsRequestOrBuilder.java | 47 +- .../vision/v1/ListProductSetsResponse.java | 460 +- .../v1/ListProductSetsResponseOrBuilder.java | 45 +- .../v1/ListProductsInProductSetRequest.java | 458 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../v1/ListProductsInProductSetResponse.java | 465 +- ...ProductsInProductSetResponseOrBuilder.java | 46 +- .../cloud/vision/v1/ListProductsRequest.java | 442 +- .../v1/ListProductsRequestOrBuilder.java | 47 +- .../cloud/vision/v1/ListProductsResponse.java | 452 +- .../v1/ListProductsResponseOrBuilder.java | 46 +- .../vision/v1/ListReferenceImagesRequest.java | 455 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../v1/ListReferenceImagesResponse.java | 490 ++- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../vision/v1/LocalizedObjectAnnotation.java | 602 ++- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../google/cloud/vision/v1/LocationInfo.java | 307 +- .../vision/v1/LocationInfoOrBuilder.java | 26 +- .../google/cloud/vision/v1/LocationName.java | 0 .../cloud/vision/v1/NormalizedVertex.java | 303 +- .../vision/v1/NormalizedVertexOrBuilder.java | 51 + .../cloud/vision/v1/OperationMetadata.java | 560 ++- .../vision/v1/OperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1/OutputConfig.java | 354 +- .../vision/v1/OutputConfigOrBuilder.java | 29 +- .../java/com/google/cloud/vision/v1/Page.java | 568 ++- .../google/cloud/vision/v1/PageOrBuilder.java | 54 +- .../com/google/cloud/vision/v1/Paragraph.java | 605 ++- .../cloud/vision/v1/ParagraphOrBuilder.java | 56 +- .../com/google/cloud/vision/v1/Position.java | 335 +- .../cloud/vision/v1/PositionOrBuilder.java | 64 + .../com/google/cloud/vision/v1/Product.java | 1053 +++-- .../google/cloud/vision/v1/ProductName.java | 0 .../cloud/vision/v1/ProductOrBuilder.java | 72 +- .../cloud/vision/v1/ProductSearchParams.java | 591 ++- .../v1/ProductSearchParamsOrBuilder.java | 62 +- .../cloud/vision/v1/ProductSearchProto.java | 157 + .../cloud/vision/v1/ProductSearchResults.java | 2579 +++++++---- .../v1/ProductSearchResultsOrBuilder.java | 82 +- .../vision/v1/ProductSearchServiceProto.java | 683 +++ .../google/cloud/vision/v1/ProductSet.java | 582 ++- .../cloud/vision/v1/ProductSetName.java | 0 .../cloud/vision/v1/ProductSetOrBuilder.java | 61 +- .../vision/v1/ProductSetPurgeConfig.java | 308 +- .../v1/ProductSetPurgeConfigOrBuilder.java | 27 +- .../com/google/cloud/vision/v1/Property.java | 410 +- .../cloud/vision/v1/PropertyOrBuilder.java | 39 +- .../cloud/vision/v1/PurgeProductsRequest.java | 583 ++- .../v1/PurgeProductsRequestOrBuilder.java | 52 +- .../cloud/vision/v1/ReferenceImage.java | 616 ++- .../cloud/vision/v1/ReferenceImageName.java | 0 .../vision/v1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 460 +- ...ProductFromProductSetRequestOrBuilder.java | 91 + .../cloud/vision/v1/SafeSearchAnnotation.java | 505 ++- .../v1/SafeSearchAnnotationOrBuilder.java | 48 +- .../com/google/cloud/vision/v1/Symbol.java | 531 ++- .../cloud/vision/v1/SymbolOrBuilder.java | 46 +- .../cloud/vision/v1/TextAnnotation.java | 1888 +++++--- .../vision/v1/TextAnnotationOrBuilder.java | 46 +- .../cloud/vision/v1/TextAnnotationProto.java | 206 + .../cloud/vision/v1/TextDetectionParams.java | 375 +- .../v1/TextDetectionParamsOrBuilder.java | 39 +- .../cloud/vision/v1/UpdateProductRequest.java | 456 +- .../v1/UpdateProductRequestOrBuilder.java | 43 +- .../vision/v1/UpdateProductSetRequest.java | 480 +- .../v1/UpdateProductSetRequestOrBuilder.java | 46 +- .../com/google/cloud/vision/v1/Vertex.java | 286 +- .../cloud/vision/v1/VertexOrBuilder.java | 51 + .../google/cloud/vision/v1/WebDetection.java | 3368 +++++++++----- .../vision/v1/WebDetectionOrBuilder.java | 159 +- .../cloud/vision/v1/WebDetectionParams.java | 262 +- .../v1/WebDetectionParamsOrBuilder.java | 38 + .../cloud/vision/v1/WebDetectionProto.java | 138 + .../java/com/google/cloud/vision/v1/Word.java | 593 ++- .../google/cloud/vision/v1/WordOrBuilder.java | 56 +- .../google/cloud/vision/v1/geometry.proto | 0 .../cloud/vision/v1/image_annotator.proto | 0 .../cloud/vision/v1/product_search.proto | 0 .../vision/v1/product_search_service.proto | 0 .../cloud/vision/v1/text_annotation.proto | 0 .../cloud/vision/v1/web_detection.proto | 0 .../v1p1beta1/AnnotateImageRequest.java | 581 ++- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p1beta1/AnnotateImageResponse.java | 1620 ++++--- .../AnnotateImageResponseOrBuilder.java | 150 +- .../v1p1beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 87 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../google/cloud/vision/v1p1beta1/Block.java | 766 ++-- .../vision/v1p1beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p1beta1/BoundingPoly.java | 371 +- .../v1p1beta1/BoundingPolyOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/ColorInfo.java | 382 +- .../vision/v1p1beta1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1p1beta1/CropHint.java | 397 +- .../vision/v1p1beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p1beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p1beta1/CropHintsParams.java | 333 +- .../v1p1beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p1beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p1beta1/EntityAnnotation.java | 974 ++-- .../v1p1beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p1beta1/FaceAnnotation.java | 1856 +++++--- .../v1p1beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p1beta1/Feature.java | 511 ++- .../vision/v1p1beta1/FeatureOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/GeometryProto.java | 92 + .../google/cloud/vision/v1p1beta1/Image.java | 353 +- .../vision/v1p1beta1/ImageAnnotatorProto.java | 550 +++ .../cloud/vision/v1p1beta1/ImageContext.java | 770 ++-- .../v1p1beta1/ImageContextOrBuilder.java | 68 +- .../vision/v1p1beta1/ImageOrBuilder.java | 29 +- .../vision/v1p1beta1/ImageProperties.java | 351 +- .../v1p1beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p1beta1/ImageSource.java | 380 +- .../v1p1beta1/ImageSourceOrBuilder.java | 36 +- .../cloud/vision/v1p1beta1/LatLongRect.java | 393 +- .../v1p1beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p1beta1/Likelihood.java | 107 +- .../cloud/vision/v1p1beta1/LocationInfo.java | 310 +- .../v1p1beta1/LocationInfoOrBuilder.java | 26 +- .../google/cloud/vision/v1p1beta1/Page.java | 585 ++- .../cloud/vision/v1p1beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p1beta1/Paragraph.java | 620 ++- .../vision/v1p1beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p1beta1/Position.java | 344 +- .../vision/v1p1beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p1beta1/Property.java | 417 +- .../vision/v1p1beta1/PropertyOrBuilder.java | 39 +- .../v1p1beta1/SafeSearchAnnotation.java | 515 ++- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p1beta1/Symbol.java | 548 ++- .../vision/v1p1beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p1beta1/TextAnnotation.java | 2019 +++++---- .../v1p1beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p1beta1/TextAnnotationProto.java | 219 + .../vision/v1p1beta1/TextDetectionParams.java | 388 +- .../TextDetectionParamsOrBuilder.java | 39 +- .../google/cloud/vision/v1p1beta1/Vertex.java | 290 +- .../vision/v1p1beta1/VertexOrBuilder.java | 51 + .../cloud/vision/v1p1beta1/WebDetection.java | 3910 +++++++++++------ .../v1p1beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p1beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 38 + .../vision/v1p1beta1/WebDetectionProto.java | 153 + .../google/cloud/vision/v1p1beta1/Word.java | 614 ++- .../cloud/vision/v1p1beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p1beta1/geometry.proto | 0 .../vision/v1p1beta1/image_annotator.proto | 0 .../vision/v1p1beta1/text_annotation.proto | 0 .../vision/v1p1beta1/web_detection.proto | 0 .../v1p2beta1/AnnotateFileResponse.java | 487 +- .../AnnotateFileResponseOrBuilder.java | 44 +- .../v1p2beta1/AnnotateImageRequest.java | 581 ++- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p2beta1/AnnotateImageResponse.java | 1719 +++++--- .../AnnotateImageResponseOrBuilder.java | 158 +- .../v1p2beta1/AsyncAnnotateFileRequest.java | 680 ++- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p2beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 ++- ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../v1p2beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 87 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../google/cloud/vision/v1p2beta1/Block.java | 766 ++-- .../vision/v1p2beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p2beta1/BoundingPoly.java | 569 ++- .../v1p2beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p2beta1/ColorInfo.java | 382 +- .../vision/v1p2beta1/ColorInfoOrBuilder.java | 32 +- .../cloud/vision/v1p2beta1/CropHint.java | 397 +- .../vision/v1p2beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p2beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p2beta1/CropHintsParams.java | 333 +- .../v1p2beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p2beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p2beta1/EntityAnnotation.java | 974 ++-- .../v1p2beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p2beta1/FaceAnnotation.java | 1856 +++++--- .../v1p2beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p2beta1/Feature.java | 511 ++- .../vision/v1p2beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p2beta1/GcsDestination.java | 308 +- .../v1p2beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/GcsSource.java | 301 +- .../vision/v1p2beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/GeometryProto.java | 107 + .../google/cloud/vision/v1p2beta1/Image.java | 353 +- .../v1p2beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p2beta1/ImageAnnotatorProto.java | 732 +++ .../cloud/vision/v1p2beta1/ImageContext.java | 770 ++-- .../v1p2beta1/ImageContextOrBuilder.java | 68 +- .../vision/v1p2beta1/ImageOrBuilder.java | 29 +- .../vision/v1p2beta1/ImageProperties.java | 351 +- .../v1p2beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p2beta1/ImageSource.java | 380 +- .../v1p2beta1/ImageSourceOrBuilder.java | 36 +- .../cloud/vision/v1p2beta1/InputConfig.java | 401 +- .../v1p2beta1/InputConfigOrBuilder.java | 35 +- .../cloud/vision/v1p2beta1/LatLongRect.java | 393 +- .../v1p2beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p2beta1/Likelihood.java | 107 +- .../cloud/vision/v1p2beta1/LocationInfo.java | 310 +- .../v1p2beta1/LocationInfoOrBuilder.java | 26 +- .../vision/v1p2beta1/NormalizedVertex.java | 313 +- .../v1p2beta1/NormalizedVertexOrBuilder.java | 51 + .../vision/v1p2beta1/OperationMetadata.java | 576 ++- .../v1p2beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p2beta1/OutputConfig.java | 357 +- .../v1p2beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p2beta1/Page.java | 585 ++- .../cloud/vision/v1p2beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p2beta1/Paragraph.java | 620 ++- .../vision/v1p2beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p2beta1/Position.java | 344 +- .../vision/v1p2beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p2beta1/Property.java | 417 +- .../vision/v1p2beta1/PropertyOrBuilder.java | 39 +- .../v1p2beta1/SafeSearchAnnotation.java | 515 ++- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p2beta1/Symbol.java | 548 ++- .../vision/v1p2beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p2beta1/TextAnnotation.java | 2019 +++++---- .../v1p2beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p2beta1/TextAnnotationProto.java | 219 + .../vision/v1p2beta1/TextDetectionParams.java | 388 +- .../TextDetectionParamsOrBuilder.java | 39 +- .../google/cloud/vision/v1p2beta1/Vertex.java | 290 +- .../vision/v1p2beta1/VertexOrBuilder.java | 51 + .../cloud/vision/v1p2beta1/WebDetection.java | 3910 +++++++++++------ .../v1p2beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p2beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 38 + .../vision/v1p2beta1/WebDetectionProto.java | 153 + .../google/cloud/vision/v1p2beta1/Word.java | 614 ++- .../cloud/vision/v1p2beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p2beta1/geometry.proto | 0 .../vision/v1p2beta1/image_annotator.proto | 0 .../vision/v1p2beta1/text_annotation.proto | 0 .../vision/v1p2beta1/web_detection.proto | 0 .../AddProductToProductSetRequest.java | 470 +- ...ddProductToProductSetRequestOrBuilder.java | 91 + .../v1p3beta1/AnnotateFileResponse.java | 487 +- .../AnnotateFileResponseOrBuilder.java | 44 +- .../v1p3beta1/AnnotateImageRequest.java | 581 ++- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p3beta1/AnnotateImageResponse.java | 2119 ++++++--- .../AnnotateImageResponseOrBuilder.java | 210 +- .../v1p3beta1/AsyncAnnotateFileRequest.java | 680 ++- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p3beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 ++- ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../v1p3beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 87 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../v1p3beta1/BatchOperationMetadata.java | 573 ++- .../BatchOperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1p3beta1/Block.java | 766 ++-- .../vision/v1p3beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p3beta1/BoundingPoly.java | 569 ++- .../v1p3beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p3beta1/ColorInfo.java | 382 +- .../vision/v1p3beta1/ColorInfoOrBuilder.java | 32 +- .../v1p3beta1/CreateProductRequest.java | 570 ++- .../CreateProductRequestOrBuilder.java | 64 +- .../v1p3beta1/CreateProductSetRequest.java | 567 ++- .../CreateProductSetRequestOrBuilder.java | 64 +- .../CreateReferenceImageRequest.java | 575 ++- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../cloud/vision/v1p3beta1/CropHint.java | 397 +- .../vision/v1p3beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p3beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p3beta1/CropHintsParams.java | 333 +- .../v1p3beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p3beta1/DeleteProductRequest.java | 342 +- .../DeleteProductRequestOrBuilder.java | 58 + .../v1p3beta1/DeleteProductSetRequest.java | 342 +- .../DeleteProductSetRequestOrBuilder.java | 58 + .../DeleteReferenceImageRequest.java | 350 +- .../DeleteReferenceImageRequestOrBuilder.java | 58 + .../v1p3beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p3beta1/EntityAnnotation.java | 974 ++-- .../v1p3beta1/EntityAnnotationOrBuilder.java | 98 +- .../vision/v1p3beta1/FaceAnnotation.java | 1856 +++++--- .../v1p3beta1/FaceAnnotationOrBuilder.java | 106 +- .../cloud/vision/v1p3beta1/Feature.java | 525 ++- .../vision/v1p3beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p3beta1/GcsDestination.java | 308 +- .../v1p3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/GcsSource.java | 301 +- .../vision/v1p3beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/GeometryProto.java | 107 + .../vision/v1p3beta1/GetProductRequest.java | 339 +- .../v1p3beta1/GetProductRequestOrBuilder.java | 58 + .../v1p3beta1/GetProductSetRequest.java | 342 +- .../GetProductSetRequestOrBuilder.java | 58 + .../v1p3beta1/GetReferenceImageRequest.java | 342 +- .../GetReferenceImageRequestOrBuilder.java | 58 + .../google/cloud/vision/v1p3beta1/Image.java | 353 +- .../v1p3beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p3beta1/ImageAnnotatorProto.java | 762 ++++ .../cloud/vision/v1p3beta1/ImageContext.java | 886 ++-- .../v1p3beta1/ImageContextOrBuilder.java | 76 +- .../vision/v1p3beta1/ImageOrBuilder.java | 29 +- .../vision/v1p3beta1/ImageProperties.java | 351 +- .../v1p3beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p3beta1/ImageSource.java | 380 +- .../v1p3beta1/ImageSourceOrBuilder.java | 36 +- .../v1p3beta1/ImportProductSetsGcsSource.java | 321 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../ImportProductSetsInputConfig.java | 428 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../v1p3beta1/ImportProductSetsRequest.java | 506 ++- .../ImportProductSetsRequestOrBuilder.java | 97 + .../v1p3beta1/ImportProductSetsResponse.java | 518 ++- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../cloud/vision/v1p3beta1/InputConfig.java | 401 +- .../v1p3beta1/InputConfigOrBuilder.java | 35 +- .../cloud/vision/v1p3beta1/LatLongRect.java | 393 +- .../v1p3beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p3beta1/Likelihood.java | 107 +- .../v1p3beta1/ListProductSetsRequest.java | 455 +- .../ListProductSetsRequestOrBuilder.java | 47 +- .../v1p3beta1/ListProductSetsResponse.java | 461 +- .../ListProductSetsResponseOrBuilder.java | 45 +- .../ListProductsInProductSetRequest.java | 487 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../ListProductsInProductSetResponse.java | 499 ++- ...ProductsInProductSetResponseOrBuilder.java | 45 +- .../vision/v1p3beta1/ListProductsRequest.java | 455 +- .../ListProductsRequestOrBuilder.java | 47 +- .../v1p3beta1/ListProductsResponse.java | 463 +- .../ListProductsResponseOrBuilder.java | 45 +- .../v1p3beta1/ListReferenceImagesRequest.java | 462 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../ListReferenceImagesResponse.java | 488 +- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../v1p3beta1/LocalizedObjectAnnotation.java | 605 ++- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../cloud/vision/v1p3beta1/LocationInfo.java | 310 +- .../v1p3beta1/LocationInfoOrBuilder.java | 26 +- .../cloud/vision/v1p3beta1/LocationName.java | 0 .../vision/v1p3beta1/NormalizedVertex.java | 313 +- .../v1p3beta1/NormalizedVertexOrBuilder.java | 51 + .../vision/v1p3beta1/OperationMetadata.java | 576 ++- .../v1p3beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p3beta1/OutputConfig.java | 357 +- .../v1p3beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p3beta1/Page.java | 585 ++- .../cloud/vision/v1p3beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p3beta1/Paragraph.java | 620 ++- .../vision/v1p3beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p3beta1/Position.java | 344 +- .../vision/v1p3beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p3beta1/Product.java | 1063 +++-- .../cloud/vision/v1p3beta1/ProductName.java | 0 .../vision/v1p3beta1/ProductOrBuilder.java | 72 +- .../vision/v1p3beta1/ProductSearchParams.java | 604 ++- .../ProductSearchParamsOrBuilder.java | 62 +- .../vision/v1p3beta1/ProductSearchProto.java | 160 + .../v1p3beta1/ProductSearchResults.java | 2773 ++++++++---- .../ProductSearchResultsOrBuilder.java | 83 +- .../v1p3beta1/ProductSearchServiceProto.java | 658 +++ .../cloud/vision/v1p3beta1/ProductSet.java | 586 ++- .../vision/v1p3beta1/ProductSetName.java | 0 .../vision/v1p3beta1/ProductSetOrBuilder.java | 61 +- .../cloud/vision/v1p3beta1/Property.java | 417 +- .../vision/v1p3beta1/PropertyOrBuilder.java | 39 +- .../vision/v1p3beta1/ReferenceImage.java | 606 ++- .../vision/v1p3beta1/ReferenceImageName.java | 0 .../v1p3beta1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 485 +- ...ProductFromProductSetRequestOrBuilder.java | 91 + .../v1p3beta1/SafeSearchAnnotation.java | 515 ++- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p3beta1/Symbol.java | 548 ++- .../vision/v1p3beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p3beta1/TextAnnotation.java | 2019 +++++---- .../v1p3beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p3beta1/TextAnnotationProto.java | 219 + .../vision/v1p3beta1/TextDetectionParams.java | 388 +- .../TextDetectionParamsOrBuilder.java | 39 +- .../v1p3beta1/UpdateProductRequest.java | 483 +- .../UpdateProductRequestOrBuilder.java | 46 +- .../v1p3beta1/UpdateProductSetRequest.java | 480 +- .../UpdateProductSetRequestOrBuilder.java | 46 +- .../google/cloud/vision/v1p3beta1/Vertex.java | 290 +- .../vision/v1p3beta1/VertexOrBuilder.java | 51 + .../cloud/vision/v1p3beta1/WebDetection.java | 3910 +++++++++++------ .../v1p3beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p3beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 38 + .../vision/v1p3beta1/WebDetectionProto.java | 153 + .../google/cloud/vision/v1p3beta1/Word.java | 614 ++- .../cloud/vision/v1p3beta1/WordOrBuilder.java | 55 +- .../cloud/vision/v1p3beta1/geometry.proto | 0 .../vision/v1p3beta1/image_annotator.proto | 0 .../vision/v1p3beta1/product_search.proto | 0 .../v1p3beta1/product_search_service.proto | 0 .../vision/v1p3beta1/text_annotation.proto | 0 .../vision/v1p3beta1/web_detection.proto | 0 .../AddProductToProductSetRequest.java | 470 +- ...ddProductToProductSetRequestOrBuilder.java | 91 + .../vision/v1p4beta1/AnnotateFileRequest.java | 683 +-- .../AnnotateFileRequestOrBuilder.java | 61 +- .../v1p4beta1/AnnotateFileResponse.java | 602 ++- .../AnnotateFileResponseOrBuilder.java | 55 +- .../v1p4beta1/AnnotateImageRequest.java | 581 ++- .../AnnotateImageRequestOrBuilder.java | 52 +- .../v1p4beta1/AnnotateImageResponse.java | 2119 ++++++--- .../AnnotateImageResponseOrBuilder.java | 210 +- .../v1p4beta1/AsyncAnnotateFileRequest.java | 680 ++- .../AsyncAnnotateFileRequestOrBuilder.java | 60 +- .../v1p4beta1/AsyncAnnotateFileResponse.java | 338 +- .../AsyncAnnotateFileResponseOrBuilder.java | 26 +- .../AsyncBatchAnnotateFilesRequest.java | 506 ++- ...yncBatchAnnotateFilesRequestOrBuilder.java | 88 + .../AsyncBatchAnnotateFilesResponse.java | 429 +- ...ncBatchAnnotateFilesResponseOrBuilder.java | 33 +- .../AsyncBatchAnnotateImagesRequest.java | 649 ++- ...ncBatchAnnotateImagesRequestOrBuilder.java | 128 + .../AsyncBatchAnnotateImagesResponse.java | 374 +- ...cBatchAnnotateImagesResponseOrBuilder.java | 26 +- .../v1p4beta1/BatchAnnotateFilesRequest.java | 466 +- .../BatchAnnotateFilesRequestOrBuilder.java | 56 +- .../v1p4beta1/BatchAnnotateFilesResponse.java | 384 +- .../BatchAnnotateFilesResponseOrBuilder.java | 36 +- .../v1p4beta1/BatchAnnotateImagesRequest.java | 476 +- .../BatchAnnotateImagesRequestOrBuilder.java | 87 + .../BatchAnnotateImagesResponse.java | 395 +- .../BatchAnnotateImagesResponseOrBuilder.java | 36 +- .../v1p4beta1/BatchOperationMetadata.java | 573 ++- .../BatchOperationMetadataOrBuilder.java | 40 +- .../google/cloud/vision/v1p4beta1/Block.java | 766 ++-- .../vision/v1p4beta1/BlockOrBuilder.java | 61 +- .../cloud/vision/v1p4beta1/BoundingPoly.java | 569 ++- .../v1p4beta1/BoundingPolyOrBuilder.java | 51 +- .../cloud/vision/v1p4beta1/Celebrity.java | 459 +- .../vision/v1p4beta1/CelebrityOrBuilder.java | 45 +- .../vision/v1p4beta1/CelebrityProto.java | 101 + .../cloud/vision/v1p4beta1/ColorInfo.java | 382 +- .../vision/v1p4beta1/ColorInfoOrBuilder.java | 32 +- .../v1p4beta1/CreateProductRequest.java | 570 ++- .../CreateProductRequestOrBuilder.java | 64 +- .../v1p4beta1/CreateProductSetRequest.java | 567 ++- .../CreateProductSetRequestOrBuilder.java | 64 +- .../CreateReferenceImageRequest.java | 575 ++- .../CreateReferenceImageRequestOrBuilder.java | 64 +- .../cloud/vision/v1p4beta1/CropHint.java | 397 +- .../vision/v1p4beta1/CropHintOrBuilder.java | 32 +- .../vision/v1p4beta1/CropHintsAnnotation.java | 384 +- .../CropHintsAnnotationOrBuilder.java | 36 +- .../vision/v1p4beta1/CropHintsParams.java | 333 +- .../v1p4beta1/CropHintsParamsOrBuilder.java | 27 +- .../v1p4beta1/DeleteProductRequest.java | 342 +- .../DeleteProductRequestOrBuilder.java | 58 + .../v1p4beta1/DeleteProductSetRequest.java | 342 +- .../DeleteProductSetRequestOrBuilder.java | 58 + .../DeleteReferenceImageRequest.java | 350 +- .../DeleteReferenceImageRequestOrBuilder.java | 58 + .../v1p4beta1/DominantColorsAnnotation.java | 384 +- .../DominantColorsAnnotationOrBuilder.java | 36 +- .../vision/v1p4beta1/EntityAnnotation.java | 1002 +++-- .../v1p4beta1/EntityAnnotationOrBuilder.java | 105 +- .../vision/v1p4beta1/FaceAnnotation.java | 2100 ++++++--- .../v1p4beta1/FaceAnnotationOrBuilder.java | 135 +- .../v1p4beta1/FaceRecognitionParams.java | 346 +- .../FaceRecognitionParamsOrBuilder.java | 36 +- .../v1p4beta1/FaceRecognitionResult.java | 373 +- .../FaceRecognitionResultOrBuilder.java | 29 +- .../cloud/vision/v1p4beta1/Feature.java | 525 ++- .../vision/v1p4beta1/FeatureOrBuilder.java | 36 +- .../vision/v1p4beta1/GcsDestination.java | 308 +- .../v1p4beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/GcsSource.java | 301 +- .../vision/v1p4beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/GeometryProto.java | 111 + .../vision/v1p4beta1/GetProductRequest.java | 339 +- .../v1p4beta1/GetProductRequestOrBuilder.java | 58 + .../v1p4beta1/GetProductSetRequest.java | 342 +- .../GetProductSetRequestOrBuilder.java | 58 + .../v1p4beta1/GetReferenceImageRequest.java | 342 +- .../GetReferenceImageRequestOrBuilder.java | 58 + .../google/cloud/vision/v1p4beta1/Image.java | 353 +- .../v1p4beta1/ImageAnnotationContext.java | 348 +- .../ImageAnnotationContextOrBuilder.java | 30 +- .../vision/v1p4beta1/ImageAnnotatorProto.java | 865 ++++ .../cloud/vision/v1p4beta1/ImageContext.java | 1031 +++-- .../v1p4beta1/ImageContextOrBuilder.java | 87 +- .../vision/v1p4beta1/ImageOrBuilder.java | 29 +- .../vision/v1p4beta1/ImageProperties.java | 351 +- .../v1p4beta1/ImagePropertiesOrBuilder.java | 26 +- .../cloud/vision/v1p4beta1/ImageSource.java | 380 +- .../v1p4beta1/ImageSourceOrBuilder.java | 36 +- .../v1p4beta1/ImportProductSetsGcsSource.java | 321 +- .../ImportProductSetsGcsSourceOrBuilder.java | 27 +- .../ImportProductSetsInputConfig.java | 428 +- ...ImportProductSetsInputConfigOrBuilder.java | 26 +- .../v1p4beta1/ImportProductSetsRequest.java | 506 ++- .../ImportProductSetsRequestOrBuilder.java | 97 + .../v1p4beta1/ImportProductSetsResponse.java | 518 ++- .../ImportProductSetsResponseOrBuilder.java | 55 +- .../cloud/vision/v1p4beta1/InputConfig.java | 437 +- .../v1p4beta1/InputConfigOrBuilder.java | 38 +- .../cloud/vision/v1p4beta1/LatLongRect.java | 393 +- .../v1p4beta1/LatLongRectOrBuilder.java | 34 +- .../cloud/vision/v1p4beta1/Likelihood.java | 107 +- .../v1p4beta1/ListProductSetsRequest.java | 455 +- .../ListProductSetsRequestOrBuilder.java | 47 +- .../v1p4beta1/ListProductSetsResponse.java | 461 +- .../ListProductSetsResponseOrBuilder.java | 45 +- .../ListProductsInProductSetRequest.java | 487 +- ...tProductsInProductSetRequestOrBuilder.java | 47 +- .../ListProductsInProductSetResponse.java | 499 ++- ...ProductsInProductSetResponseOrBuilder.java | 45 +- .../vision/v1p4beta1/ListProductsRequest.java | 455 +- .../ListProductsRequestOrBuilder.java | 47 +- .../v1p4beta1/ListProductsResponse.java | 463 +- .../ListProductsResponseOrBuilder.java | 45 +- .../v1p4beta1/ListReferenceImagesRequest.java | 462 +- .../ListReferenceImagesRequestOrBuilder.java | 47 +- .../ListReferenceImagesResponse.java | 488 +- .../ListReferenceImagesResponseOrBuilder.java | 48 +- .../v1p4beta1/LocalizedObjectAnnotation.java | 605 ++- .../LocalizedObjectAnnotationOrBuilder.java | 56 +- .../cloud/vision/v1p4beta1/LocationInfo.java | 310 +- .../v1p4beta1/LocationInfoOrBuilder.java | 26 +- .../cloud/vision/v1p4beta1/LocationName.java | 0 .../vision/v1p4beta1/NormalizedVertex.java | 313 +- .../v1p4beta1/NormalizedVertexOrBuilder.java | 51 + .../vision/v1p4beta1/OperationMetadata.java | 576 ++- .../v1p4beta1/OperationMetadataOrBuilder.java | 40 +- .../cloud/vision/v1p4beta1/OutputConfig.java | 357 +- .../v1p4beta1/OutputConfigOrBuilder.java | 29 +- .../google/cloud/vision/v1p4beta1/Page.java | 585 ++- .../cloud/vision/v1p4beta1/PageOrBuilder.java | 53 +- .../cloud/vision/v1p4beta1/Paragraph.java | 620 ++- .../vision/v1p4beta1/ParagraphOrBuilder.java | 56 +- .../cloud/vision/v1p4beta1/Position.java | 344 +- .../vision/v1p4beta1/PositionOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/Product.java | 1063 +++-- .../cloud/vision/v1p4beta1/ProductName.java | 0 .../vision/v1p4beta1/ProductOrBuilder.java | 72 +- .../vision/v1p4beta1/ProductSearchParams.java | 604 ++- .../ProductSearchParamsOrBuilder.java | 62 +- .../vision/v1p4beta1/ProductSearchProto.java | 162 + .../v1p4beta1/ProductSearchResults.java | 2773 ++++++++---- .../ProductSearchResultsOrBuilder.java | 83 +- .../v1p4beta1/ProductSearchServiceProto.java | 695 +++ .../cloud/vision/v1p4beta1/ProductSet.java | 586 ++- .../vision/v1p4beta1/ProductSetName.java | 0 .../vision/v1p4beta1/ProductSetOrBuilder.java | 61 +- .../v1p4beta1/ProductSetPurgeConfig.java | 314 +- .../ProductSetPurgeConfigOrBuilder.java | 27 +- .../cloud/vision/v1p4beta1/Property.java | 417 +- .../vision/v1p4beta1/PropertyOrBuilder.java | 39 +- .../v1p4beta1/PurgeProductsRequest.java | 623 ++- .../PurgeProductsRequestOrBuilder.java | 55 +- .../vision/v1p4beta1/ReferenceImage.java | 606 ++- .../vision/v1p4beta1/ReferenceImageName.java | 0 .../v1p4beta1/ReferenceImageOrBuilder.java | 74 +- .../RemoveProductFromProductSetRequest.java | 485 +- ...ProductFromProductSetRequestOrBuilder.java | 93 + .../v1p4beta1/SafeSearchAnnotation.java | 515 ++- .../SafeSearchAnnotationOrBuilder.java | 48 +- .../google/cloud/vision/v1p4beta1/Symbol.java | 548 ++- .../vision/v1p4beta1/SymbolOrBuilder.java | 46 +- .../vision/v1p4beta1/TextAnnotation.java | 2019 +++++---- .../v1p4beta1/TextAnnotationOrBuilder.java | 46 +- .../vision/v1p4beta1/TextAnnotationProto.java | 219 + .../vision/v1p4beta1/TextDetectionParams.java | 388 +- .../TextDetectionParamsOrBuilder.java | 39 +- .../v1p4beta1/UpdateProductRequest.java | 483 +- .../UpdateProductRequestOrBuilder.java | 46 +- .../v1p4beta1/UpdateProductSetRequest.java | 480 +- .../UpdateProductSetRequestOrBuilder.java | 46 +- .../google/cloud/vision/v1p4beta1/Vertex.java | 290 +- .../vision/v1p4beta1/VertexOrBuilder.java | 51 + .../cloud/vision/v1p4beta1/WebDetection.java | 3910 +++++++++++------ .../v1p4beta1/WebDetectionOrBuilder.java | 206 +- .../vision/v1p4beta1/WebDetectionParams.java | 272 +- .../WebDetectionParamsOrBuilder.java | 38 + .../vision/v1p4beta1/WebDetectionProto.java | 153 + .../google/cloud/vision/v1p4beta1/Word.java | 614 ++- .../cloud/vision/v1p4beta1/WordOrBuilder.java | 55 +- .../google/cloud/vision/v1p4beta1/face.proto | 0 .../cloud/vision/v1p4beta1/geometry.proto | 0 .../vision/v1p4beta1/image_annotator.proto | 0 .../vision/v1p4beta1/product_search.proto | 0 .../v1p4beta1/product_search_service.proto | 0 .../vision/v1p4beta1/text_annotation.proto | 0 .../vision/v1p4beta1/web_detection.proto | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 0 .../AsyncAsyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateImagesLRO.java | 0 .../SyncAsyncBatchAnnotateImages.java | 0 ...sListannotateimagerequestOutputconfig.java | 0 .../AsyncBatchAnnotateFiles.java | 0 .../SyncBatchAnnotateFiles.java | 0 ...hAnnotateFilesListannotatefilerequest.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 0 ...ToProductSetProductsetnameProductname.java | 0 ...oductToProductSetProductsetnameString.java | 0 ...dProductToProductSetStringProductname.java | 0 ...yncAddProductToProductSetStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 0 .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 0 ...reateProductSetStringProductsetString.java | 0 .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 0 ...erenceImageStringReferenceimageString.java | 0 .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 0 .../SyncDeleteProductProductname.java | 0 .../SyncDeleteProductString.java | 0 .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 0 .../SyncDeleteProductSetProductsetname.java | 0 .../SyncDeleteProductSetString.java | 0 .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 0 ...eleteReferenceImageReferenceimagename.java | 0 .../SyncDeleteReferenceImageString.java | 0 .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 0 ...etsStringImportproductsetsinputconfig.java | 0 .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 0 .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../purgeproducts/AsyncPurgeProducts.java | 0 .../purgeproducts/AsyncPurgeProductsLRO.java | 0 .../purgeproducts/SyncPurgeProducts.java | 0 .../SyncPurgeProductsLocationname.java | 0 .../SyncPurgeProductsString.java | 0 .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 0 ...omProductSetProductsetnameProductname.java | 0 ...uctFromProductSetProductsetnameString.java | 0 ...roductFromProductSetStringProductname.java | 0 ...moveProductFromProductSetStringString.java | 0 .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 0 ...ToProductSetProductsetnameProductname.java | 0 ...oductToProductSetProductsetnameString.java | 0 ...dProductToProductSetStringProductname.java | 0 ...yncAddProductToProductSetStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 0 .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 0 ...reateProductSetStringProductsetString.java | 0 .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 0 ...erenceImageStringReferenceimageString.java | 0 .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 0 .../SyncDeleteProductProductname.java | 0 .../SyncDeleteProductString.java | 0 .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 0 .../SyncDeleteProductSetProductsetname.java | 0 .../SyncDeleteProductSetString.java | 0 .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 0 ...eleteReferenceImageReferenceimagename.java | 0 .../SyncDeleteReferenceImageString.java | 0 .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 0 ...etsStringImportproductsetsinputconfig.java | 0 .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 0 .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 0 ...omProductSetProductsetnameProductname.java | 0 ...uctFromProductSetProductsetnameString.java | 0 ...roductFromProductSetStringProductname.java | 0 ...moveProductFromProductSetStringString.java | 0 .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 .../AsyncAsyncBatchAnnotateFiles.java | 0 .../AsyncAsyncBatchAnnotateFilesLRO.java | 0 .../SyncAsyncBatchAnnotateFiles.java | 0 ...tateFilesListasyncannotatefilerequest.java | 0 .../AsyncAsyncBatchAnnotateImages.java | 0 .../AsyncAsyncBatchAnnotateImagesLRO.java | 0 .../SyncAsyncBatchAnnotateImages.java | 0 ...sListannotateimagerequestOutputconfig.java | 0 .../AsyncBatchAnnotateFiles.java | 0 .../SyncBatchAnnotateFiles.java | 0 ...hAnnotateFilesListannotatefilerequest.java | 0 .../AsyncBatchAnnotateImages.java | 0 .../SyncBatchAnnotateImages.java | 0 ...nnotateImagesListannotateimagerequest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../SyncBatchAnnotateImages.java | 0 .../AsyncAddProductToProductSet.java | 0 .../SyncAddProductToProductSet.java | 0 ...ToProductSetProductsetnameProductname.java | 0 ...oductToProductSetProductsetnameString.java | 0 ...dProductToProductSetStringProductname.java | 0 ...yncAddProductToProductSetStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createproduct/AsyncCreateProduct.java | 0 .../createproduct/SyncCreateProduct.java | 0 ...reateProductLocationnameProductString.java | 0 .../SyncCreateProductStringProductString.java | 0 .../AsyncCreateProductSet.java | 0 .../SyncCreateProductSet.java | 0 ...roductSetLocationnameProductsetString.java | 0 ...reateProductSetStringProductsetString.java | 0 .../AsyncCreateReferenceImage.java | 0 .../SyncCreateReferenceImage.java | 0 ...eImageProductnameReferenceimageString.java | 0 ...erenceImageStringReferenceimageString.java | 0 .../deleteproduct/AsyncDeleteProduct.java | 0 .../deleteproduct/SyncDeleteProduct.java | 0 .../SyncDeleteProductProductname.java | 0 .../SyncDeleteProductString.java | 0 .../AsyncDeleteProductSet.java | 0 .../SyncDeleteProductSet.java | 0 .../SyncDeleteProductSetProductsetname.java | 0 .../SyncDeleteProductSetString.java | 0 .../AsyncDeleteReferenceImage.java | 0 .../SyncDeleteReferenceImage.java | 0 ...eleteReferenceImageReferenceimagename.java | 0 .../SyncDeleteReferenceImageString.java | 0 .../getproduct/AsyncGetProduct.java | 0 .../getproduct/SyncGetProduct.java | 0 .../getproduct/SyncGetProductProductname.java | 0 .../getproduct/SyncGetProductString.java | 0 .../getproductset/AsyncGetProductSet.java | 0 .../getproductset/SyncGetProductSet.java | 0 .../SyncGetProductSetProductsetname.java | 0 .../SyncGetProductSetString.java | 0 .../AsyncGetReferenceImage.java | 0 .../SyncGetReferenceImage.java | 0 ...ncGetReferenceImageReferenceimagename.java | 0 .../SyncGetReferenceImageString.java | 0 .../AsyncImportProductSets.java | 0 .../AsyncImportProductSetsLRO.java | 0 .../SyncImportProductSets.java | 0 ...ationnameImportproductsetsinputconfig.java | 0 ...etsStringImportproductsetsinputconfig.java | 0 .../listproducts/AsyncListProducts.java | 0 .../listproducts/AsyncListProductsPaged.java | 0 .../listproducts/SyncListProducts.java | 0 .../SyncListProductsLocationname.java | 0 .../listproducts/SyncListProductsString.java | 0 .../listproductsets/AsyncListProductSets.java | 0 .../AsyncListProductSetsPaged.java | 0 .../listproductsets/SyncListProductSets.java | 0 .../SyncListProductSetsLocationname.java | 0 .../SyncListProductSetsString.java | 0 .../AsyncListProductsInProductSet.java | 0 .../AsyncListProductsInProductSetPaged.java | 0 .../SyncListProductsInProductSet.java | 0 ...istProductsInProductSetProductsetname.java | 0 .../SyncListProductsInProductSetString.java | 0 .../AsyncListReferenceImages.java | 0 .../AsyncListReferenceImagesPaged.java | 0 .../SyncListReferenceImages.java | 0 .../SyncListReferenceImagesProductname.java | 0 .../SyncListReferenceImagesString.java | 0 .../purgeproducts/AsyncPurgeProducts.java | 0 .../purgeproducts/AsyncPurgeProductsLRO.java | 0 .../purgeproducts/SyncPurgeProducts.java | 0 .../SyncPurgeProductsLocationname.java | 0 .../SyncPurgeProductsString.java | 0 .../AsyncRemoveProductFromProductSet.java | 0 .../SyncRemoveProductFromProductSet.java | 0 ...omProductSetProductsetnameProductname.java | 0 ...uctFromProductSetProductsetnameString.java | 0 ...roductFromProductSetStringProductname.java | 0 ...moveProductFromProductSetStringString.java | 0 .../updateproduct/AsyncUpdateProduct.java | 0 .../updateproduct/SyncUpdateProduct.java | 0 .../SyncUpdateProductProductFieldmask.java | 0 .../AsyncUpdateProductSet.java | 0 .../SyncUpdateProductSet.java | 0 ...ncUpdateProductSetProductsetFieldmask.java | 0 .../SyncCreateProductSet.java | 0 .../SyncBatchAnnotateImages.java | 0 .../SyncCreateProductSet.java | 0 1236 files changed, 154088 insertions(+), 87853 deletions(-) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java (98%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java (93%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java (99%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java (99%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java (99%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java (97%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java (95%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java (97%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java (98%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java (96%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java (98%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java (96%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java (92%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java (97%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java (99%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java (99%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java (97%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java (98%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java (97%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java (93%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java (97%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java (99%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java (99%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java (99%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java (98%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java (100%) rename {owl-bot-staging/v1p2beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p3beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p4beta1/google-cloud-vision => google-cloud-vision}/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-vision-v1 => grpc-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java (52%) rename {owl-bot-staging/v1/grpc-google-cloud-vision-v1 => grpc-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java (53%) rename {owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1 => grpc-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java (50%) rename {owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1 => grpc-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java (51%) rename {owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1 => grpc-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java (51%) rename {owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1 => grpc-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java (51%) rename {owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1 => grpc-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java (51%) rename {owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1 => grpc-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java (52%) delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Block.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ColorInfo.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHint.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java (89%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Feature.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsDestination.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsSource.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java (52%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Image.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageContext.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java (87%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageProperties.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageSource.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java (89%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java (63%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/InputConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LatLongRect.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Likelihood.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationInfo.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java (68%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OutputConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Page.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Paragraph.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Position.java (68%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Product.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchResults.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java (74%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSet.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Property.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Symbol.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java (60%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextDetectionParams.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Vertex.java (68%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetection.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java (69%) create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java create mode 100644 proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/Word.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/geometry.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/image_annotator.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/product_search.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/product_search_service.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/text_annotation.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-vision-v1 => proto-google-cloud-vision-v1}/src/main/proto/google/cloud/vision/v1/web_detection.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java (88%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java (85%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java (62%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java (61%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java (86%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java (90%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java (64%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java (73%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java (87%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java (63%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java (66%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java (56%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java (50%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java (56%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java (83%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java (69%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java (69%) create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java create mode 100644 proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java (85%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1 => proto-google-cloud-vision-v1p1beta1}/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto (100%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java (75%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java (89%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java (69%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java (85%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java (64%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java (61%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java (75%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java (79%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java (86%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java (90%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java (66%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java (75%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java (70%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java (52%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java (70%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java (87%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java (69%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java (63%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java (79%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java (67%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java (66%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java (56%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java (67%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java (75%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java (76%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java (84%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java (68%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java (50%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java (70%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java (56%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java (76%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java (75%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java (83%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java (70%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java (73%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java (67%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java (69%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java (71%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java (67%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java (69%) create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java create mode 100644 proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java (77%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java (85%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto (100%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto (100%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto (100%) rename {owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1 => proto-google-cloud-vision-v1p2beta1}/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java (86%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java (69%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java (77%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java (85%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java (64%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java (57%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java (57%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java (61%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java (79%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java (86%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java (77%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java (90%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java (53%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java (88%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java (69%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java (63%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java (77%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java (79%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java (82%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java (88%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java (68%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java (63%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java (79%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java (78%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java (69%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java (56%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java (69%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java (69%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java (56%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java (67%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java (76%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java (77%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java (84%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java (68%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java (50%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java (78%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java (84%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java (78%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java (72%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java (78%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java (56%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java (72%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java (63%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java (76%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java (75%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java (83%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java (70%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java (73%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java (68%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java (68%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java (69%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java (71%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java (67%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java (69%) create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java create mode 100644 proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java (77%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java (85%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto (100%) rename {owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1 => proto-google-cloud-vision-v1p3beta1}/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java (84%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java (80%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java (86%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java (80%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java (62%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java (62%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java (62%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java (62%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java (50%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java (64%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java (77%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java (85%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java (60%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java (64%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java (57%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java (57%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java (61%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java (66%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java (63%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java (78%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java (84%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java (77%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java (90%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java (65%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java (78%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java (79%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java (53%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java (67%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java (54%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java (88%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java (63%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java (77%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java (79%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java (83%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java (89%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java (63%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java (79%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java (78%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java (56%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java (56%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java (67%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java (76%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java (77%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java (84%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java (50%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java (80%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java (86%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java (78%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java (85%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java (72%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java (76%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java (79%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java (56%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java (56%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java (72%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java (63%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java (76%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java (81%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java (75%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java (83%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java (70%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java (63%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java (73%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java (67%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java (69%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java (71%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java (68%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java (69%) create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java create mode 100644 proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java (77%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java (85%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/face.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto (100%) rename {owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1 => proto-google-cloud-vision-v1p4beta1}/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p2beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p3beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java (100%) rename {owl-bot-staging/v1p4beta1/samples => samples}/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index 4ca2f6fe2..d3cf2a5f5 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java index 6e5414053..e70991ac9 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings; @@ -42,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java similarity index 93% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index e7cf7e221..2eb7f81a8 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -217,7 +217,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -260,7 +260,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -303,7 +303,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -336,7 +336,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -369,7 +369,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -404,7 +404,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -436,7 +436,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -471,7 +471,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -507,7 +507,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -550,7 +550,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -581,7 +581,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -611,7 +611,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -642,7 +642,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -673,8 +673,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -712,8 +712,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -746,8 +746,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -890,9 +890,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -934,9 +934,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -978,9 +978,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1013,9 +1013,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1047,7 +1047,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1082,7 +1082,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1114,7 +1114,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1149,7 +1149,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1185,7 +1185,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1226,7 +1226,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1257,7 +1257,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1287,7 +1287,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1318,7 +1318,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1352,12 +1352,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1396,12 +1396,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1437,12 +1437,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1595,11 +1595,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1652,11 +1652,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1709,11 +1709,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1754,11 +1754,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1923,8 +1923,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1959,8 +1959,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1993,8 +1993,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2030,8 +2030,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2067,8 +2067,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2111,7 +2111,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2146,7 +2146,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2179,7 +2179,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2212,7 +2212,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2248,7 +2248,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2288,7 +2288,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2328,7 +2328,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2368,7 +2368,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2405,7 +2405,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2440,7 +2440,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2648,7 +2648,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2684,7 +2684,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2718,7 +2718,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2755,7 +2755,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2792,7 +2792,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -3289,7 +3289,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3339,7 +3342,10 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3360,7 +3366,10 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3409,7 +3418,10 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3429,8 +3441,11 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3451,7 +3466,9 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3484,8 +3501,11 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3505,8 +3525,11 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3527,7 +3550,9 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3560,8 +3585,11 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java index 9e4ae7f12..948e34eb5 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1.stub.ProductSearchStubSettings; @@ -49,9 +48,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -167,7 +166,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -381,7 +381,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -407,7 +408,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java index da274e8e8..69708118b 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java @@ -38,7 +38,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java index 03a93cca4..9305da9b5 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java @@ -63,7 +63,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java index 3bff76f96..c07ae59b7 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java index 0d1451ecc..b5b127dfe 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java index 9293b917b..8daa7c798 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java index 6db0f736b..7c1b0a742 100644 --- a/owl-bot-staging/v1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java @@ -96,9 +96,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -159,7 +159,8 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -367,7 +368,8 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -384,11 +386,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -495,7 +499,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -680,7 +685,8 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -690,7 +696,8 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1110,7 +1117,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1136,7 +1144,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java index 2db999853..8d16fb840 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java @@ -51,13 +51,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java similarity index 95% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java index 357c4c012..058193a73 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p1beta1.stub.ImageAnnotatorStubSettings; @@ -40,9 +39,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java index a5c2f5dd0..424d51e69 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java @@ -52,9 +52,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java similarity index 98% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java index 70c2d53ea..10430a6c4 100644 --- a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java similarity index 96% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java index e57060cb0..238b1be07 100644 --- a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p2beta1.stub.ImageAnnotatorStubSettings; @@ -42,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java index c638cbe7f..3d5e84f5b 100644 --- a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 038881c03..485b965c8 100644 --- a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -60,9 +60,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java similarity index 98% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java index e96ffd1d3..44a6355ac 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java similarity index 96% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java index dabd18442..fc248ff6a 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p3beta1.stub.ImageAnnotatorStubSettings; @@ -42,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java similarity index 92% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java index 014f35949..62156f45d 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -218,7 +218,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -261,7 +261,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -304,7 +304,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -337,7 +337,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -370,7 +370,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -405,7 +405,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -437,7 +437,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -472,7 +472,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -508,7 +508,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -551,7 +551,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -582,7 +582,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -612,7 +612,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -643,7 +643,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -674,8 +674,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -713,8 +713,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -747,8 +747,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -784,7 +784,7 @@ public final UnaryCallable updateProductSet *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -818,7 +818,7 @@ public final void deleteProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -851,7 +851,7 @@ public final void deleteProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -885,7 +885,7 @@ public final void deleteProductSet(DeleteProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -915,9 +915,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -959,9 +959,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1003,9 +1003,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1038,9 +1038,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1072,7 +1072,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1107,7 +1107,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1139,7 +1139,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1174,7 +1174,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1210,7 +1210,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1251,7 +1251,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1282,7 +1282,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1312,7 +1312,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1343,7 +1343,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1377,12 +1377,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1421,12 +1421,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1462,12 +1462,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1502,7 +1502,7 @@ public final UnaryCallable updateProductCallable( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1537,7 +1537,7 @@ public final void deleteProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1571,7 +1571,7 @@ public final void deleteProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1606,7 +1606,7 @@ public final void deleteProduct(DeleteProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the product does not exist. + *
  • Returns NOT_FOUND if the product does not exist. *
* *

Sample code: @@ -1644,11 +1644,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1701,11 +1701,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1758,11 +1758,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1803,11 +1803,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1846,7 +1846,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1886,7 +1886,7 @@ public final void deleteReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1925,7 +1925,7 @@ public final void deleteReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1963,7 +1963,7 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the reference image does not exist. + *
  • Returns NOT_FOUND if the reference image does not exist. *
* *

Sample code: @@ -1996,8 +1996,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2032,8 +2032,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2066,8 +2066,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2103,8 +2103,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2140,8 +2140,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2184,7 +2184,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2219,7 +2219,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2252,7 +2252,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2285,7 +2285,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2321,7 +2321,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2361,7 +2361,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2401,7 +2401,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2441,7 +2441,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2478,7 +2478,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2513,7 +2513,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2546,7 +2546,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2583,7 +2583,7 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2620,7 +2620,7 @@ public final void removeProductFromProductSet(ProductSetName name, String produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2657,7 +2657,7 @@ public final void removeProductFromProductSet(String name, ProductName product) *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2691,7 +2691,7 @@ public final void removeProductFromProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2723,7 +2723,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. + *
  • Returns NOT_FOUND If the Product is not found under the ProductSet. *
* *

Sample code: @@ -2757,7 +2757,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2793,7 +2793,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2827,7 +2827,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2864,7 +2864,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2901,7 +2901,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -3162,7 +3162,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3212,7 +3215,10 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3233,7 +3239,10 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3282,7 +3291,10 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3302,8 +3314,11 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3324,7 +3339,9 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3357,8 +3374,11 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3378,8 +3398,11 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3400,7 +3423,9 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3433,8 +3458,11 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java similarity index 97% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java index 08546d8c5..46e8ae4f7 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p3beta1.stub.ProductSearchStubSettings; @@ -49,9 +48,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -168,7 +167,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -371,7 +371,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -397,7 +398,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java index b5933ac50..39a9e1a8c 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/GrpcProductSearchStub.java @@ -63,7 +63,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java index e1bdbc66b..e75814f71 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java index 157452e74..2156152ce 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java index b130522a3..409fa4804 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java @@ -60,9 +60,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java similarity index 97% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java index fe9301393..e5ba04f4b 100644 --- a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java @@ -95,9 +95,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -159,7 +159,8 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -364,7 +365,8 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -381,11 +383,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -492,7 +496,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -664,7 +669,8 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -674,7 +680,8 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1056,7 +1063,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1082,7 +1090,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java similarity index 98% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java index 8cdcc612c..2f1cabcf5 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java @@ -55,13 +55,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java similarity index 97% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java index ce8c3b94b..02757a739 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p4beta1.stub.ImageAnnotatorStubSettings; @@ -42,9 +41,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java similarity index 93% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java index bd0c5b6a8..f4ee7d0ca 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java @@ -78,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -218,7 +218,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -261,7 +261,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -304,7 +304,7 @@ public final ProductSet createProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -337,7 +337,7 @@ public final ProductSet createProductSet(CreateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. *
* *

Sample code: @@ -370,7 +370,7 @@ public final UnaryCallable createProductSet *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -405,7 +405,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -437,7 +437,7 @@ public final ListProductSetsPagedResponse listProductSets(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -472,7 +472,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -508,7 +508,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -551,7 +551,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -582,7 +582,7 @@ public final ProductSet getProductSet(ProductSetName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -612,7 +612,7 @@ public final ProductSet getProductSet(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -643,7 +643,7 @@ public final ProductSet getProductSet(GetProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns NOT_FOUND if the ProductSet does not exist. *
* *

Sample code: @@ -674,8 +674,8 @@ public final UnaryCallable getProductSetCallab *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -713,8 +713,8 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -747,8 +747,8 @@ public final ProductSet updateProductSet(UpdateProductSetRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the ProductSet does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the + *
  • Returns NOT_FOUND if the ProductSet does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the * request or longer than 4096 characters. *
* @@ -891,9 +891,9 @@ public final UnaryCallable deleteProductSetCalla *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -935,9 +935,9 @@ public final Product createProduct(LocationName parent, Product product, String *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -979,9 +979,9 @@ public final Product createProduct(String parent, Product product, String produc *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1014,9 +1014,9 @@ public final Product createProduct(CreateProductRequest request) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. + *
  • Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if description is longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if product_category is missing or invalid. *
* *

Sample code: @@ -1048,7 +1048,7 @@ public final UnaryCallable createProductCallable( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1083,7 +1083,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1115,7 +1115,7 @@ public final ListProductsPagedResponse listProducts(String parent) { *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1150,7 +1150,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1186,7 +1186,7 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest request) *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -1227,7 +1227,7 @@ public final UnaryCallable listProduc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1258,7 +1258,7 @@ public final Product getProduct(ProductName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1288,7 +1288,7 @@ public final Product getProduct(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1319,7 +1319,7 @@ public final Product getProduct(GetProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns NOT_FOUND if the Product does not exist. *
* *

Sample code: @@ -1353,12 +1353,12 @@ public final UnaryCallable getProductCallable() { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1397,12 +1397,12 @@ public final Product updateProduct(Product product, FieldMask updateMask) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1438,12 +1438,12 @@ public final Product updateProduct(UpdateProductRequest request) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product does not exist. - *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from + *
  • Returns NOT_FOUND if the Product does not exist. + *
  • Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from * the request or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than - * 4096 characters. - *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. + *
  • Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 + * characters. + *
  • Returns INVALID_ARGUMENT if product_category is present in update_mask. *
* *

Sample code: @@ -1596,11 +1596,11 @@ public final UnaryCallable deleteProductCallable() *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1653,11 +1653,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1710,11 +1710,11 @@ public final ReferenceImage createReferenceImage( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1755,11 +1755,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - *
  • Returns INVALID_ARGUMENT if the product does not exist. - *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with + *
  • Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. + *
  • Returns INVALID_ARGUMENT if the product does not exist. + *
  • Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with * the parent product's product_category is detected. - *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + *
  • Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. *
* *

Sample code: @@ -1924,8 +1924,8 @@ public final UnaryCallable deleteReferenceIm *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1960,8 +1960,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -1994,8 +1994,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages(String parent) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2031,8 +2031,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2068,8 +2068,8 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the parent product does not exist. - *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + *
  • Returns NOT_FOUND if the parent product does not exist. + *
  • Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. *
* *

Sample code: @@ -2112,7 +2112,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2147,7 +2147,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2180,7 +2180,7 @@ public final ReferenceImage getReferenceImage(String name) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2213,7 +2213,7 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the specified image does not exist. + *
  • Returns NOT_FOUND if the specified image does not exist. *
* *

Sample code: @@ -2249,7 +2249,7 @@ public final UnaryCallable getReferenc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2289,7 +2289,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2329,7 +2329,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2369,7 +2369,7 @@ public final void addProductToProductSet(String name, ProductName product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2406,7 +2406,7 @@ public final void addProductToProductSet(String name, String product) { *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2441,7 +2441,7 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Possible errors: * *

    - *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + *
  • Returns NOT_FOUND if the Product or the ProductSet doesn't exist. *
* *

Sample code: @@ -2649,7 +2649,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2685,7 +2685,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2719,7 +2719,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2756,7 +2756,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -2793,7 +2793,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( *

Possible errors: * *

    - *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + *
  • Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. *
* *

Sample code: @@ -3290,7 +3290,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListProductSetsPagedResponse extends AbstractPagedListResponse< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3340,7 +3343,10 @@ public ApiFuture createPageAsync( public static class ListProductSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage, + ListProductSetsRequest, + ListProductSetsResponse, + ProductSet, + ListProductSetsPage, ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( @@ -3361,7 +3367,10 @@ protected ListProductSetsFixedSizeCollection createCollection( public static class ListProductsPagedResponse extends AbstractPagedListResponse< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3410,7 +3419,10 @@ public ApiFuture createPageAsync( public static class ListProductsFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsRequest, ListProductsResponse, Product, ListProductsPage, + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, ListProductsFixedSizeCollection> { private ListProductsFixedSizeCollection(List pages, int collectionSize) { @@ -3430,8 +3442,11 @@ protected ListProductsFixedSizeCollection createCollection( public static class ListReferenceImagesPagedResponse extends AbstractPagedListResponse< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3452,7 +3467,9 @@ private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { public static class ListReferenceImagesPage extends AbstractPage< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, ListReferenceImagesPage> { private ListReferenceImagesPage( @@ -3485,8 +3502,11 @@ public ApiFuture createPageAsync( public static class ListReferenceImagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReferenceImagesRequest, ListReferenceImagesResponse, ReferenceImage, - ListReferenceImagesPage, ListReferenceImagesFixedSizeCollection> { + ListReferenceImagesRequest, + ListReferenceImagesResponse, + ReferenceImage, + ListReferenceImagesPage, + ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( List pages, int collectionSize) { @@ -3506,8 +3526,11 @@ protected ListReferenceImagesFixedSizeCollection createCollection( public static class ListProductsInProductSetPagedResponse extends AbstractPagedListResponse< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3528,7 +3551,9 @@ private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) public static class ListProductsInProductSetPage extends AbstractPage< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, ListProductsInProductSetPage> { private ListProductsInProductSetPage( @@ -3561,8 +3586,11 @@ public ApiFuture createPageAsync( public static class ListProductsInProductSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, Product, - ListProductsInProductSetPage, ListProductsInProductSetFixedSizeCollection> { + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, + Product, + ListProductsInProductSetPage, + ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java similarity index 97% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java index da6e15354..24833d6b6 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vision.v1p4beta1.stub.ProductSearchStubSettings; @@ -49,9 +48,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -168,7 +167,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return ((ProductSearchStubSettings) getStubSettings()).listProductsInProductSetSettings(); @@ -382,7 +382,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return getStubSettingsBuilder().listReferenceImagesSettings(); @@ -408,7 +409,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return getStubSettingsBuilder().listProductsInProductSetSettings(); diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java index e4e6d523a..9a5a84155 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java @@ -64,7 +64,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorCallableFactory.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java similarity index 99% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java index 5d41fccea..233845066 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchCallableFactory.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java similarity index 99% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java index 2c9b42a32..91d9edfc0 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java similarity index 98% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java index 1542856b8..d604bd13b 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java similarity index 98% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java rename to google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java index a609f6d3e..ecb4054b1 100644 --- a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java @@ -96,9 +96,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (vision.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (vision.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -160,7 +160,8 @@ public class ProductSearchStubSettings extends StubSettings removeProductFromProductSetSettings; private final PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings importProductSetsSettings; @@ -368,7 +369,8 @@ public ApiFuture getFuturePagedResponse( ListReferenceImagesRequest, ListReferenceImagesResponse, ListReferenceImagesPagedResponse> LIST_REFERENCE_IMAGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -385,11 +387,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> LIST_PRODUCTS_IN_PRODUCT_SET_PAGE_STR_FACT = new PagedListResponseFactory< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -496,7 +500,8 @@ public UnaryCallSettings addProductToProdu /** Returns the object with the settings used for calls to listProductsInProductSet. */ public PagedCallSettings< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; @@ -681,7 +686,8 @@ public static class Builder extends StubSettings.Builder deleteReferenceImageSettings; private final PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings; private final UnaryCallSettings.Builder @@ -691,7 +697,8 @@ public static class Builder extends StubSettings.Builder removeProductFromProductSetSettings; private final PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings; private final UnaryCallSettings.Builder @@ -1114,7 +1121,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listReferenceImages. */ public PagedCallSettings.Builder< - ListReferenceImagesRequest, ListReferenceImagesResponse, + ListReferenceImagesRequest, + ListReferenceImagesResponse, ListReferenceImagesPagedResponse> listReferenceImagesSettings() { return listReferenceImagesSettings; @@ -1140,7 +1148,8 @@ public UnaryCallSettings.Builder deleteProductSetti /** Returns the builder for the settings used for calls to listProductsInProductSet. */ public PagedCallSettings.Builder< - ListProductsInProductSetRequest, ListProductsInProductSetResponse, + ListProductsInProductSetRequest, + ListProductsInProductSetResponse, ListProductsInProductSetPagedResponse> listProductsInProductSetSettings() { return listProductsInProductSetSettings; diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ImageAnnotatorClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotator.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearch.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1/ProductSearchClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotator.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClientTest.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotator.java diff --git a/owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java similarity index 100% rename from owl-bot-staging/v1p2beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClientTest.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotator.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearch.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ProductSearchClientTest.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClientTest.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotator.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearch.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java rename to google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/ProductSearchClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java b/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java similarity index 52% rename from owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java rename to grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java index 4ed54f5f8..aaf0a8757 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java +++ b/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.vision.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -20,194 +37,272 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
+            com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
+        getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-              .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
+              getBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.BatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.BatchAnnotateImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
+          com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
+      getBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class,
       responseType = com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
+          com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
+      getBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
+            com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
+        getBatchAnnotateFilesMethod;
     if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod = getBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
-              .build();
+        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod =
+              getBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.BatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.BatchAnnotateFilesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateFilesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateImages",
       requestType = com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
-    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateImagesMethod;
+    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod = getAsyncBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
-              .build();
+        if ((getAsyncBatchAnnotateImagesMethod =
+                ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod =
+              getAsyncBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-              .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
+              getAsyncBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorBlockingStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ImageAnnotatorFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorFutureStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { + public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -217,12 +312,17 @@ public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRe
      * extracted.
      * 
*/ - public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateFilesMethod(), responseObserver); + public void batchAnnotateFiles( + com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateFilesMethod(), responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -233,12 +333,16 @@ public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequ
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateImagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -248,76 +352,87 @@ public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.BatchAnnotateFilesRequest, - com.google.cloud.vision.v1.BatchAnnotateFilesResponse>( - this, METHODID_BATCH_ANNOTATE_FILES))) + getBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.BatchAnnotateFilesRequest, + com.google.cloud.vision.v1.BatchAnnotateFilesResponse>( + this, METHODID_BATCH_ANNOTATE_FILES))) .addMethod( - getAsyncBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) + getAsyncBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateImages( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -327,13 +442,19 @@ public void batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRe
      * extracted.
      * 
*/ - public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateFiles( + com.google.cloud.vision.v1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -344,13 +465,18 @@ public void batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequ
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -360,23 +486,28 @@ public void asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -387,16 +518,21 @@ protected ImageAnnotatorBlockingStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImages( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -406,12 +542,15 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImage
      * extracted.
      * 
*/ - public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { + public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles( + com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -422,12 +561,15 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles(
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateImages( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -437,22 +579,25 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.clou
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -463,17 +608,22 @@ protected ImageAnnotatorFutureStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1.BatchAnnotateImagesResponse> + batchAnnotateImages(com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -483,13 +633,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture batchAnnotateFiles(
-        com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
+        batchAnnotateFiles(com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -500,13 +653,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateImages(
-        com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateImages(
+            com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -516,8 +672,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles(
-        com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
@@ -528,11 +684,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ImageAnnotatorImplBase serviceImpl;
     private final int methodId;
 
@@ -546,19 +702,25 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1.BatchAnnotateImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateImages(
+              (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_BATCH_ANNOTATE_FILES:
-          serviceImpl.batchAnnotateFiles((com.google.cloud.vision.v1.BatchAnnotateFilesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateFiles(
+              (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.asyncBatchAnnotateImages((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) request,
+          serviceImpl.asyncBatchAnnotateImages(
+              (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_FILES:
-          serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) request,
+          serviceImpl.asyncBatchAnnotateFiles(
+              (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -577,8 +739,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ImageAnnotatorBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ImageAnnotatorBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ImageAnnotatorBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -620,13 +783,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ImageAnnotatorGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
-              .addMethod(getBatchAnnotateImagesMethod())
-              .addMethod(getBatchAnnotateFilesMethod())
-              .addMethod(getAsyncBatchAnnotateImagesMethod())
-              .addMethod(getAsyncBatchAnnotateFilesMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
+                      .addMethod(getBatchAnnotateImagesMethod())
+                      .addMethod(getBatchAnnotateFilesMethod())
+                      .addMethod(getAsyncBatchAnnotateImagesMethod())
+                      .addMethod(getAsyncBatchAnnotateFilesMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java b/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java
similarity index 53%
rename from owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java
rename to grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java
index 313f6ffa7..1a984d58d 100644
--- a/owl-bot-staging/v1/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java
+++ b/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -27,640 +44,900 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.CreateProductSetRequest,
+            com.google.cloud.vision.v1.ProductSet>
+        getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-              .build();
+          ProductSearchGrpc.getCreateProductSetMethod =
+              getCreateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.CreateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+                      .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductSetsRequest,
+          com.google.cloud.vision.v1.ListProductSetsResponse>
+      getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
-    io.grpc.MethodDescriptor getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductSetsRequest,
+          com.google.cloud.vision.v1.ListProductSetsResponse>
+      getListProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.ListProductSetsRequest,
+            com.google.cloud.vision.v1.ListProductSetsResponse>
+        getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-              .build();
+          ProductSearchGrpc.getListProductSetsMethod =
+              getListProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductSetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+                      .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
-    io.grpc.MethodDescriptor getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getGetProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.GetProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+        getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-              .build();
+          ProductSearchGrpc.getGetProductSetMethod =
+              getGetProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+                      .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.UpdateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.UpdateProductSetRequest, com.google.cloud.vision.v1.ProductSet>
+      getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.UpdateProductSetRequest,
+            com.google.cloud.vision.v1.ProductSet>
+        getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-              .build();
+          ProductSearchGrpc.getUpdateProductSetMethod =
+              getUpdateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.UpdateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+                      .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.DeleteProductSetRequest, com.google.protobuf.Empty>
+        getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-              .build();
+          ProductSearchGrpc.getDeleteProductSetMethod =
+              getDeleteProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.DeleteProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+                      .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
+      getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductMethod() {
-    io.grpc.MethodDescriptor getCreateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
+      getCreateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.CreateProductRequest, com.google.cloud.vision.v1.Product>
+        getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-              .build();
+          ProductSearchGrpc.getCreateProductMethod =
+              getCreateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+                      .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductsRequest,
+          com.google.cloud.vision.v1.ListProductsResponse>
+      getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsMethod() {
-    io.grpc.MethodDescriptor getListProductsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductsRequest,
+          com.google.cloud.vision.v1.ListProductsResponse>
+      getListProductsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.ListProductsRequest,
+            com.google.cloud.vision.v1.ListProductsResponse>
+        getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
-              .build();
+          ProductSearchGrpc.getListProductsMethod =
+              getListProductsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
+                      .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
+      getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductMethod() {
-    io.grpc.MethodDescriptor getGetProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
+      getGetProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.GetProductRequest, com.google.cloud.vision.v1.Product>
+        getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.GetProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-              .build();
+          ProductSearchGrpc.getGetProductMethod =
+              getGetProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.GetProductRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+                      .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
+      getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
-    io.grpc.MethodDescriptor getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
+      getUpdateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.UpdateProductRequest, com.google.cloud.vision.v1.Product>
+        getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-              .build();
+          ProductSearchGrpc.getUpdateProductMethod =
+              getUpdateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+                      .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
-    io.grpc.MethodDescriptor getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>
+        getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-              .build();
+          ProductSearchGrpc.getDeleteProductMethod =
+              getDeleteProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+                      .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1.ReferenceImage>
+      getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1.ReferenceImage>
+      getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.CreateReferenceImageRequest,
+            com.google.cloud.vision.v1.ReferenceImage>
+        getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-              .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod =
+              getCreateReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.CreateReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+                      .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+        getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-              .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod =
+              getDeleteReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.DeleteReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+                      .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.ListReferenceImagesRequest,
+            com.google.cloud.vision.v1.ListReferenceImagesResponse>
+        getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-              .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
+            == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod =
+              getListReferenceImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListReferenceImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListReferenceImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+                      .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1.ReferenceImage>
+      getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1.ReferenceImage>
+      getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.GetReferenceImageRequest,
+            com.google.cloud.vision.v1.ReferenceImage>
+        getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-              .build();
+          ProductSearchGrpc.getGetReferenceImageMethod =
+              getGetReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.GetReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+                      .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
+      getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
+      getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.AddProductToProductSetRequest, com.google.protobuf.Empty>
+        getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-              .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod =
+              getAddProductToProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.AddProductToProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+                      .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.RemoveProductFromProductSetRequest,
+            com.google.protobuf.Empty>
+        getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod =
+            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-              .build();
+        if ((getRemoveProductFromProductSetMethod =
+                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
+              getRemoveProductFromProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.RemoveProductFromProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+                      .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.ListProductsInProductSetRequest,
+            com.google.cloud.vision.v1.ListProductsInProductSetResponse>
+        getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-              .build();
+        if ((getListProductsInProductSetMethod =
+                ProductSearchGrpc.getListProductsInProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod =
+              getListProductsInProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductsInProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ListProductsInProductSetResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+                      .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
+      getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
+      getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.ImportProductSetsRequest, com.google.longrunning.Operation>
+        getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-              .build();
+          ProductSearchGrpc.getImportProductSetsMethod =
+              getImportProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.ImportProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+                      .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPurgeProductsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
+      getPurgeProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PurgeProducts",
       requestType = com.google.cloud.vision.v1.PurgeProductsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPurgeProductsMethod() {
-    io.grpc.MethodDescriptor getPurgeProductsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
+      getPurgeProductsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1.PurgeProductsRequest, com.google.longrunning.Operation>
+        getPurgeProductsMethod;
     if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
-          ProductSearchGrpc.getPurgeProductsMethod = getPurgeProductsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
-              .build();
+          ProductSearchGrpc.getPurgeProductsMethod =
+              getPurgeProductsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
+                      .build();
         }
       }
     }
     return getPurgeProductsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchStub(channel, callOptions);
+          }
+        };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchBlockingStub(channel, callOptions);
+          }
+        };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ProductSearchFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchFutureStub(channel, callOptions);
+          }
+        };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -674,9 +951,11 @@ public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static abstract class ProductSearchImplBase implements io.grpc.BindableService { + public abstract static class ProductSearchImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -684,12 +963,16 @@ public static abstract class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request, + public void createProductSet( + com.google.cloud.vision.v1.CreateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductSetMethod(), responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -697,24 +980,33 @@ public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); + public void listProductSets( + com.google.cloud.vision.v1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductSetsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request, + public void getProductSet( + com.google.cloud.vision.v1.GetProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProductSetMethod(), responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -724,24 +1016,32 @@ public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest reques
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request, + public void updateProductSet( + com.google.cloud.vision.v1.UpdateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductSetMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductSetMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -751,36 +1051,48 @@ public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductMethod(), responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); + public void listProducts( + com.google.cloud.vision.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -796,12 +1108,16 @@ public void getProduct(com.google.cloud.vision.v1.GetProductRequest request,
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -809,12 +1125,16 @@ public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest reques
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -833,12 +1153,16 @@ public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest reques
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request, + public void createReferenceImage( + com.google.cloud.vision.v1.CreateReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReferenceImageMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -847,12 +1171,16 @@ public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImage
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReferenceImageMethod(), responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -861,24 +1189,33 @@ public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImage
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages( + com.google.cloud.vision.v1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReferenceImagesMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request, + public void getReferenceImage( + com.google.cloud.vision.v1.GetReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReferenceImageMethod(), responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -887,22 +1224,30 @@ public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageReques
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddProductToProductSetMethod(), responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveProductFromProductSetMethod(), responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -911,12 +1256,17 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProduct
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet( + com.google.cloud.vision.v1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsInProductSetMethod(), responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -929,12 +1279,16 @@ public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInPr
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportProductSetsMethod(), responseObserver); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -957,151 +1311,143 @@ public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsReques
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request, + public void purgeProducts( + com.google.cloud.vision.v1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeProductsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeProductsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateProductSetRequest, - com.google.cloud.vision.v1.ProductSet>( - this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateProductSetRequest, + com.google.cloud.vision.v1.ProductSet>(this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductSetsRequest, - com.google.cloud.vision.v1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductSetsRequest, + com.google.cloud.vision.v1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetProductSetRequest, - com.google.cloud.vision.v1.ProductSet>( - this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetProductSetRequest, + com.google.cloud.vision.v1.ProductSet>(this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.UpdateProductSetRequest, - com.google.cloud.vision.v1.ProductSet>( - this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.UpdateProductSetRequest, + com.google.cloud.vision.v1.ProductSet>(this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateProductRequest, - com.google.cloud.vision.v1.Product>( - this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateProductRequest, + com.google.cloud.vision.v1.Product>(this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductsRequest, - com.google.cloud.vision.v1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductsRequest, + com.google.cloud.vision.v1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetProductRequest, - com.google.cloud.vision.v1.Product>( - this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetProductRequest, + com.google.cloud.vision.v1.Product>(this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.UpdateProductRequest, - com.google.cloud.vision.v1.Product>( - this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.UpdateProductRequest, + com.google.cloud.vision.v1.Product>(this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteProductRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteProductRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.CreateReferenceImageRequest, - com.google.cloud.vision.v1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.CreateReferenceImageRequest, + com.google.cloud.vision.v1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListReferenceImagesRequest, - com.google.cloud.vision.v1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListReferenceImagesRequest, + com.google.cloud.vision.v1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.GetReferenceImageRequest, - com.google.cloud.vision.v1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.GetReferenceImageRequest, + com.google.cloud.vision.v1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.AddProductToProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.AddProductToProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.ImportProductSetsRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.ImportProductSetsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) .addMethod( - getPurgeProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1.PurgeProductsRequest, - com.google.longrunning.Operation>( - this, METHODID_PURGE_PRODUCTS))) + getPurgeProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1.PurgeProductsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_PRODUCTS))) .build(); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1115,19 +1461,20 @@ public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest reques
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub + extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1135,13 +1482,18 @@ protected ProductSearchStub build(
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request, + public void createProductSet( + com.google.cloud.vision.v1.CreateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1149,26 +1501,37 @@ public void createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductSets( + com.google.cloud.vision.v1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request, + public void getProductSet( + com.google.cloud.vision.v1.GetProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1178,26 +1541,36 @@ public void getProductSet(com.google.cloud.vision.v1.GetProductSetRequest reques
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request, + public void updateProductSet( + com.google.cloud.vision.v1.UpdateProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1207,39 +1580,53 @@ public void deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProducts( + com.google.cloud.vision.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1255,13 +1642,18 @@ public void getProduct(com.google.cloud.vision.v1.GetProductRequest request,
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1269,13 +1661,18 @@ public void updateProduct(com.google.cloud.vision.v1.UpdateProductRequest reques
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1294,13 +1691,18 @@ public void deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest reques
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request, + public void createReferenceImage( + com.google.cloud.vision.v1.CreateReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1309,13 +1711,18 @@ public void createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImage
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1324,26 +1731,37 @@ public void deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImage
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listReferenceImages( + com.google.cloud.vision.v1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request, + public void getReferenceImage( + com.google.cloud.vision.v1.GetReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1352,24 +1770,34 @@ public void getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageReques
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1378,13 +1806,19 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProduct
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductsInProductSet( + com.google.cloud.vision.v1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1397,13 +1831,18 @@ public void listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInPr
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1426,14 +1865,19 @@ public void importProductSets(com.google.cloud.vision.v1.ImportProductSetsReques
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request, + public void purgeProducts( + com.google.cloud.vision.v1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1447,9 +1891,9 @@ public void purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest reques
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1460,6 +1904,8 @@ protected ProductSearchBlockingStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1467,12 +1913,15 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet createProductSet( + com.google.cloud.vision.v1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1480,24 +1929,30 @@ public com.google.cloud.vision.v1.ProductSet createProductSet(com.google.cloud.v
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets( + com.google.cloud.vision.v1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet getProductSet( + com.google.cloud.vision.v1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1507,24 +1962,30 @@ public com.google.cloud.vision.v1.ProductSet getProductSet(com.google.cloud.visi
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1.ProductSet updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1.ProductSet updateProductSet( + com.google.cloud.vision.v1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet( + com.google.cloud.vision.v1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1534,36 +1995,45 @@ public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1.Del
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1.Product createProduct(com.google.cloud.vision.v1.CreateProductRequest request) { + public com.google.cloud.vision.v1.Product createProduct( + com.google.cloud.vision.v1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductsResponse listProducts(com.google.cloud.vision.v1.ListProductsRequest request) { + public com.google.cloud.vision.v1.ListProductsResponse listProducts( + com.google.cloud.vision.v1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1.Product getProduct(com.google.cloud.vision.v1.GetProductRequest request) { + public com.google.cloud.vision.v1.Product getProduct( + com.google.cloud.vision.v1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1579,12 +2049,15 @@ public com.google.cloud.vision.v1.Product getProduct(com.google.cloud.vision.v1.
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1.Product updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request) { + public com.google.cloud.vision.v1.Product updateProduct( + com.google.cloud.vision.v1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1592,12 +2065,15 @@ public com.google.cloud.vision.v1.Product updateProduct(com.google.cloud.vision.
      * until all related caches are refreshed.
      * 
*/ - public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct( + com.google.cloud.vision.v1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1616,12 +2092,15 @@ public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1.Delete
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1.ReferenceImage createReferenceImage( + com.google.cloud.vision.v1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1630,12 +2109,15 @@ public com.google.cloud.vision.v1.ReferenceImage createReferenceImage(com.google
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage( + com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1644,24 +2126,30 @@ public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImages( + com.google.cloud.vision.v1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1.ReferenceImage getReferenceImage( + com.google.cloud.vision.v1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1670,22 +2158,28 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage(com.google.cl
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet( + com.google.cloud.vision.v1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1694,12 +2188,15 @@ public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vi
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsInProductSet( + com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1712,12 +2209,15 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsI
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets( + com.google.cloud.vision.v1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1740,13 +2240,16 @@ public com.google.longrunning.Operation importProductSets(com.google.cloud.visio
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request) { + public com.google.longrunning.Operation purgeProducts( + com.google.cloud.vision.v1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1760,9 +2263,9 @@ public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1773,6 +2276,8 @@ protected ProductSearchFutureStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1780,13 +2285,15 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createProductSet( - com.google.cloud.vision.v1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createProductSet(com.google.cloud.vision.v1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1794,26 +2301,31 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductSets(
-        com.google.cloud.vision.v1.ListProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1.ListProductSetsResponse>
+        listProductSets(com.google.cloud.vision.v1.ListProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProductSet( - com.google.cloud.vision.v1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getProductSet(com.google.cloud.vision.v1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1823,26 +2335,30 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProductSet(
-        com.google.cloud.vision.v1.UpdateProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateProductSet(com.google.cloud.vision.v1.UpdateProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteProductSet( - com.google.cloud.vision.v1.DeleteProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteProductSet(com.google.cloud.vision.v1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1852,39 +2368,46 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createProduct(
-        com.google.cloud.vision.v1.CreateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createProduct(com.google.cloud.vision.v1.CreateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listProducts( - com.google.cloud.vision.v1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1.ListProductsResponse> + listProducts(com.google.cloud.vision.v1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProduct( - com.google.cloud.vision.v1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getProduct(com.google.cloud.vision.v1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1900,13 +2423,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProduct(
-        com.google.cloud.vision.v1.UpdateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateProduct(com.google.cloud.vision.v1.UpdateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1914,13 +2439,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteProduct(
-        com.google.cloud.vision.v1.DeleteProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteProduct(com.google.cloud.vision.v1.DeleteProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1939,13 +2466,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createReferenceImage(
-        com.google.cloud.vision.v1.CreateReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1.ReferenceImage>
+        createReferenceImage(com.google.cloud.vision.v1.CreateReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1954,13 +2484,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage(
-        com.google.cloud.vision.v1.DeleteReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteReferenceImage(com.google.cloud.vision.v1.DeleteReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists reference images.
      * Possible errors:
@@ -1969,26 +2501,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listReferenceImages(
-        com.google.cloud.vision.v1.ListReferenceImagesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1.ListReferenceImagesResponse>
+        listReferenceImages(com.google.cloud.vision.v1.ListReferenceImagesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getReferenceImage( - com.google.cloud.vision.v1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1.ReferenceImage> + getReferenceImage(com.google.cloud.vision.v1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1997,24 +2535,29 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture addProductToProductSet(
-        com.google.cloud.vision.v1.AddProductToProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        addProductToProductSet(com.google.cloud.vision.v1.AddProductToProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + removeProductFromProductSet( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2023,13 +2566,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet(
-        com.google.cloud.vision.v1.ListProductsInProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1.ListProductsInProductSetResponse>
+        listProductsInProductSet(
+            com.google.cloud.vision.v1.ListProductsInProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2042,13 +2589,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture importProductSets(
-        com.google.cloud.vision.v1.ImportProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        importProductSets(com.google.cloud.vision.v1.ImportProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2071,8 +2620,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture purgeProducts(
-        com.google.cloud.vision.v1.PurgeProductsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        purgeProducts(com.google.cloud.vision.v1.PurgeProductsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request);
     }
@@ -2098,11 +2647,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ProductSearchImplBase serviceImpl;
     private final int methodId;
 
@@ -2116,79 +2665,108 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_PRODUCT_SET:
-          serviceImpl.createProductSet((com.google.cloud.vision.v1.CreateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProductSet(
+              (com.google.cloud.vision.v1.CreateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_PRODUCT_SETS:
-          serviceImpl.listProductSets((com.google.cloud.vision.v1.ListProductSetsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductSets(
+              (com.google.cloud.vision.v1.ListProductSetsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT_SET:
-          serviceImpl.getProductSet((com.google.cloud.vision.v1.GetProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getProductSet(
+              (com.google.cloud.vision.v1.GetProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT_SET:
-          serviceImpl.updateProductSet((com.google.cloud.vision.v1.UpdateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProductSet(
+              (com.google.cloud.vision.v1.UpdateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_PRODUCT_SET:
-          serviceImpl.deleteProductSet((com.google.cloud.vision.v1.DeleteProductSetRequest) request,
+          serviceImpl.deleteProductSet(
+              (com.google.cloud.vision.v1.DeleteProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_PRODUCT:
-          serviceImpl.createProduct((com.google.cloud.vision.v1.CreateProductRequest) request,
+          serviceImpl.createProduct(
+              (com.google.cloud.vision.v1.CreateProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_PRODUCTS:
-          serviceImpl.listProducts((com.google.cloud.vision.v1.ListProductsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProducts(
+              (com.google.cloud.vision.v1.ListProductsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT:
-          serviceImpl.getProduct((com.google.cloud.vision.v1.GetProductRequest) request,
+          serviceImpl.getProduct(
+              (com.google.cloud.vision.v1.GetProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT:
-          serviceImpl.updateProduct((com.google.cloud.vision.v1.UpdateProductRequest) request,
+          serviceImpl.updateProduct(
+              (com.google.cloud.vision.v1.UpdateProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_PRODUCT:
-          serviceImpl.deleteProduct((com.google.cloud.vision.v1.DeleteProductRequest) request,
+          serviceImpl.deleteProduct(
+              (com.google.cloud.vision.v1.DeleteProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_REFERENCE_IMAGE:
-          serviceImpl.createReferenceImage((com.google.cloud.vision.v1.CreateReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReferenceImage(
+              (com.google.cloud.vision.v1.CreateReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_REFERENCE_IMAGE:
-          serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1.DeleteReferenceImageRequest) request,
+          serviceImpl.deleteReferenceImage(
+              (com.google.cloud.vision.v1.DeleteReferenceImageRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_REFERENCE_IMAGES:
-          serviceImpl.listReferenceImages((com.google.cloud.vision.v1.ListReferenceImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listReferenceImages(
+              (com.google.cloud.vision.v1.ListReferenceImagesRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_REFERENCE_IMAGE:
-          serviceImpl.getReferenceImage((com.google.cloud.vision.v1.GetReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getReferenceImage(
+              (com.google.cloud.vision.v1.GetReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_ADD_PRODUCT_TO_PRODUCT_SET:
-          serviceImpl.addProductToProductSet((com.google.cloud.vision.v1.AddProductToProductSetRequest) request,
+          serviceImpl.addProductToProductSet(
+              (com.google.cloud.vision.v1.AddProductToProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET:
-          serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) request,
+          serviceImpl.removeProductFromProductSet(
+              (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET:
-          serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1.ListProductsInProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductsInProductSet(
+              (com.google.cloud.vision.v1.ListProductsInProductSetRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1.ListProductsInProductSetResponse>)
+                  responseObserver);
           break;
         case METHODID_IMPORT_PRODUCT_SETS:
-          serviceImpl.importProductSets((com.google.cloud.vision.v1.ImportProductSetsRequest) request,
+          serviceImpl.importProductSets(
+              (com.google.cloud.vision.v1.ImportProductSetsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_PURGE_PRODUCTS:
-          serviceImpl.purgeProducts((com.google.cloud.vision.v1.PurgeProductsRequest) request,
+          serviceImpl.purgeProducts(
+              (com.google.cloud.vision.v1.PurgeProductsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -2207,8 +2785,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ProductSearchBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ProductSearchBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ProductSearchBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -2250,28 +2829,30 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ProductSearchGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
-              .addMethod(getCreateProductSetMethod())
-              .addMethod(getListProductSetsMethod())
-              .addMethod(getGetProductSetMethod())
-              .addMethod(getUpdateProductSetMethod())
-              .addMethod(getDeleteProductSetMethod())
-              .addMethod(getCreateProductMethod())
-              .addMethod(getListProductsMethod())
-              .addMethod(getGetProductMethod())
-              .addMethod(getUpdateProductMethod())
-              .addMethod(getDeleteProductMethod())
-              .addMethod(getCreateReferenceImageMethod())
-              .addMethod(getDeleteReferenceImageMethod())
-              .addMethod(getListReferenceImagesMethod())
-              .addMethod(getGetReferenceImageMethod())
-              .addMethod(getAddProductToProductSetMethod())
-              .addMethod(getRemoveProductFromProductSetMethod())
-              .addMethod(getListProductsInProductSetMethod())
-              .addMethod(getImportProductSetsMethod())
-              .addMethod(getPurgeProductsMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
+                      .addMethod(getCreateProductSetMethod())
+                      .addMethod(getListProductSetsMethod())
+                      .addMethod(getGetProductSetMethod())
+                      .addMethod(getUpdateProductSetMethod())
+                      .addMethod(getDeleteProductSetMethod())
+                      .addMethod(getCreateProductMethod())
+                      .addMethod(getListProductsMethod())
+                      .addMethod(getGetProductMethod())
+                      .addMethod(getUpdateProductMethod())
+                      .addMethod(getDeleteProductMethod())
+                      .addMethod(getCreateReferenceImageMethod())
+                      .addMethod(getDeleteReferenceImageMethod())
+                      .addMethod(getListReferenceImagesMethod())
+                      .addMethod(getGetReferenceImageMethod())
+                      .addMethod(getAddProductToProductSetMethod())
+                      .addMethod(getRemoveProductFromProductSetMethod())
+                      .addMethod(getListProductsInProductSetMethod())
+                      .addMethod(getImportProductSetsMethod())
+                      .addMethod(getPurgeProductsMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java b/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java
similarity index 50%
rename from owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java
rename to grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java
index 142018868..a752e22d7 100644
--- a/owl-bot-staging/v1p1beta1/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java
+++ b/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1p1beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -20,154 +37,186 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p1beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest,
+            com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>
+        getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-              .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
+              getBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorBlockingStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ImageAnnotatorFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorFutureStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { + public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateImagesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .build(); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateImages( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -178,26 +227,31 @@ protected ImageAnnotatorBlockingStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse batchAnnotateImages( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -208,12 +262,15 @@ protected ImageAnnotatorFutureStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse> + batchAnnotateImages(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } @@ -221,11 +278,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ImageAnnotatorImplBase serviceImpl; private final int methodId; @@ -239,8 +296,11 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_BATCH_ANNOTATE_IMAGES: - serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.batchAnnotateImages( + (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -258,8 +318,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class ImageAnnotatorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class ImageAnnotatorBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { ImageAnnotatorBaseDescriptorSupplier() {} @java.lang.Override @@ -301,10 +362,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ImageAnnotatorGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) - .addMethod(getBatchAnnotateImagesMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier()) + .addMethod(getBatchAnnotateImagesMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java b/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java similarity index 51% rename from owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java rename to grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java index 6f324bd37..4392bcc7f 100644 --- a/owl-bot-staging/v1p2beta1/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java +++ b/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.vision.v1p2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -20,132 +37,174 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p2beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest,
+            com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>
+        getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-              .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
+              getBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-              .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
+              getAsyncBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorBlockingStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ImageAnnotatorFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorFutureStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { + public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -155,62 +214,73 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateI
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateImages( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -220,23 +290,28 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateI
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -247,16 +322,21 @@ protected ImageAnnotatorBlockingStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnotateImages( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -266,22 +346,25 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -292,17 +375,22 @@ protected ImageAnnotatorFutureStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse> + batchAnnotateImages(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** + * + * *
      * Run async image detection and annotation for a list of generic files (e.g.
      * PDF) which may contain multiple pages and multiple images per page.
@@ -312,8 +400,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles(
-        com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateFiles(
+            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
@@ -322,11 +411,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ImageAnnotatorImplBase serviceImpl;
     private final int methodId;
 
@@ -340,11 +429,15 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateImages(
+              (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>)
+                  responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_FILES:
-          serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) request,
+          serviceImpl.asyncBatchAnnotateFiles(
+              (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -363,8 +456,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ImageAnnotatorBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ImageAnnotatorBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ImageAnnotatorBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -406,11 +500,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ImageAnnotatorGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
-              .addMethod(getBatchAnnotateImagesMethod())
-              .addMethod(getAsyncBatchAnnotateFilesMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
+                      .addMethod(getBatchAnnotateImagesMethod())
+                      .addMethod(getAsyncBatchAnnotateFilesMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java b/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java
similarity index 51%
rename from owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java
rename to grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java
index 78d31aefc..c2e01c785 100644
--- a/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java
+++ b/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1p3beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -20,132 +37,174 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p3beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,
+            com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>
+        getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-              .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
+              getBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-              .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
+              getAsyncBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorBlockingStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ImageAnnotatorFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorFutureStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { + public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -155,62 +214,73 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateI
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateImages( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -220,23 +290,28 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateI
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -247,16 +322,21 @@ protected ImageAnnotatorBlockingStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnotateImages( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -266,22 +346,25 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnota
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -292,17 +375,22 @@ protected ImageAnnotatorFutureStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse> + batchAnnotateImages(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -312,8 +400,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles(
-        com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateFiles(
+            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
@@ -322,11 +411,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ImageAnnotatorImplBase serviceImpl;
     private final int methodId;
 
@@ -340,11 +429,15 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateImages(
+              (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>)
+                  responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_FILES:
-          serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) request,
+          serviceImpl.asyncBatchAnnotateFiles(
+              (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -363,8 +456,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ImageAnnotatorBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ImageAnnotatorBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ImageAnnotatorBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -406,11 +500,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ImageAnnotatorGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
-              .addMethod(getBatchAnnotateImagesMethod())
-              .addMethod(getAsyncBatchAnnotateFilesMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
+                      .addMethod(getBatchAnnotateImagesMethod())
+                      .addMethod(getAsyncBatchAnnotateFilesMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java b/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java
similarity index 51%
rename from owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java
rename to grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java
index 1cffb8449..dc9a16d94 100644
--- a/owl-bot-staging/v1p3beta1/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java
+++ b/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1p3beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -27,609 +44,893 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p3beta1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,
+            com.google.cloud.vision.v1p3beta1.ProductSet>
+        getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-              .build();
+          ProductSearchGrpc.getCreateProductSetMethod =
+              getCreateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.CreateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+                      .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
+      getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
-    io.grpc.MethodDescriptor getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
+      getListProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,
+            com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
+        getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-              .build();
+          ProductSearchGrpc.getListProductSetsMethod =
+              getListProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductSetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+                      .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
-    io.grpc.MethodDescriptor getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getGetProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.GetProductSetRequest,
+            com.google.cloud.vision.v1p3beta1.ProductSet>
+        getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-              .build();
+          ProductSearchGrpc.getGetProductSetMethod =
+              getGetProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.GetProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+                      .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ProductSet>
+      getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,
+            com.google.cloud.vision.v1p3beta1.ProductSet>
+        getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-              .build();
+          ProductSearchGrpc.getUpdateProductSetMethod =
+              getUpdateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+                      .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+        getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-              .build();
+          ProductSearchGrpc.getDeleteProductSetMethod =
+              getDeleteProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+                      .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1p3beta1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductMethod() {
-    io.grpc.MethodDescriptor getCreateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getCreateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.CreateProductRequest,
+            com.google.cloud.vision.v1p3beta1.Product>
+        getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-              .build();
+          ProductSearchGrpc.getCreateProductMethod =
+              getCreateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.CreateProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+                      .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductsRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductsResponse>
+      getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsMethod() {
-    io.grpc.MethodDescriptor getListProductsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductsRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductsResponse>
+      getListProductsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.ListProductsRequest,
+            com.google.cloud.vision.v1p3beta1.ListProductsResponse>
+        getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
-              .build();
+          ProductSearchGrpc.getListProductsMethod =
+              getListProductsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
+                      .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1p3beta1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductMethod() {
-    io.grpc.MethodDescriptor getGetProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getGetProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.GetProductRequest,
+            com.google.cloud.vision.v1p3beta1.Product>
+        getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-              .build();
+          ProductSearchGrpc.getGetProductMethod =
+              getGetProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.GetProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+                      .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
-    io.grpc.MethodDescriptor getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
+          com.google.cloud.vision.v1p3beta1.Product>
+      getUpdateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.UpdateProductRequest,
+            com.google.cloud.vision.v1p3beta1.Product>
+        getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-              .build();
+          ProductSearchGrpc.getUpdateProductMethod =
+              getUpdateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.UpdateProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+                      .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
-    io.grpc.MethodDescriptor getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.DeleteProductRequest, com.google.protobuf.Empty>
+        getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-              .build();
+          ProductSearchGrpc.getDeleteProductMethod =
+              getDeleteProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.DeleteProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+                      .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1p3beta1.ReferenceImage>
+      getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1p3beta1.ReferenceImage>
+      getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,
+            com.google.cloud.vision.v1p3beta1.ReferenceImage>
+        getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-              .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod =
+              getCreateReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ReferenceImage
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+                      .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest,
+            com.google.protobuf.Empty>
+        getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-              .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod =
+              getDeleteReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+                      .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,
+            com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
+        getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-              .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
+            == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod =
+              getListReferenceImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+                      .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1p3beta1.ReferenceImage>
+      getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1p3beta1.ReferenceImage>
+      getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,
+            com.google.cloud.vision.v1p3beta1.ReferenceImage>
+        getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-              .build();
+          ProductSearchGrpc.getGetReferenceImageMethod =
+              getGetReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ReferenceImage
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+                      .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
+          com.google.protobuf.Empty>
+      getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
+          com.google.protobuf.Empty>
+      getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,
+            com.google.protobuf.Empty>
+        getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-              .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod =
+              getAddProductToProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+                      .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
+          com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
+          com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,
+            com.google.protobuf.Empty>
+        getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod =
+            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-              .build();
+        if ((getRemoveProductFromProductSetMethod =
+                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
+              getRemoveProductFromProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+                      .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,
+            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
+        getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-              .build();
+        if ((getListProductsInProductSetMethod =
+                ProductSearchGrpc.getListProductsInProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod =
+              getListProductsInProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+                      .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
+          com.google.longrunning.Operation>
+      getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
+          com.google.longrunning.Operation>
+      getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,
+            com.google.longrunning.Operation>
+        getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-              .build();
+          ProductSearchGrpc.getImportProductSetsMethod =
+              getImportProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+                      .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchStub(channel, callOptions);
+          }
+        };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchBlockingStub(channel, callOptions);
+          }
+        };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ProductSearchFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchFutureStub(channel, callOptions);
+          }
+        };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -643,9 +944,11 @@ public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static abstract class ProductSearchImplBase implements io.grpc.BindableService { + public abstract static class ProductSearchImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -653,12 +956,17 @@ public static abstract class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); + public void createProductSet( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductSetMethod(), responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -666,24 +974,34 @@ public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetR
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); + public void listProductSets( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductSetsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); + public void getProductSet( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProductSetMethod(), responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -693,12 +1011,17 @@ public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); + public void updateProductSet( + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductSetMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -707,12 +1030,16 @@ public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetR
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductSetMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -722,36 +1049,48 @@ public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetR
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1p3beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductMethod(), responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); + public void listProducts( + com.google.cloud.vision.v1p3beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1p3beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -766,12 +1105,16 @@ public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest reque
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -781,12 +1124,16 @@ public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -805,12 +1152,17 @@ public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); + public void createReferenceImage( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReferenceImageMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -821,12 +1173,16 @@ public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferen
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReferenceImageMethod(), responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -835,24 +1191,34 @@ public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferen
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReferenceImagesMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); + public void getReferenceImage( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReferenceImageMethod(), responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -861,24 +1227,32 @@ public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImag
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddProductToProductSetMethod(), responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveProductFromProductSetMethod(), responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -887,12 +1261,18 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.Remove
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsInProductSetMethod(), responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -905,144 +1285,140 @@ public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProdu
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportProductSetsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest, - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest, + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest, - com.google.cloud.vision.v1p3beta1.ProductSet>( - this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest, + com.google.cloud.vision.v1p3beta1.ProductSet>( + this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateProductRequest, - com.google.cloud.vision.v1p3beta1.Product>( - this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateProductRequest, + com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductsRequest, - com.google.cloud.vision.v1p3beta1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductsRequest, + com.google.cloud.vision.v1p3beta1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetProductRequest, - com.google.cloud.vision.v1p3beta1.Product>( - this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetProductRequest, + com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.UpdateProductRequest, - com.google.cloud.vision.v1p3beta1.Product>( - this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.UpdateProductRequest, + com.google.cloud.vision.v1p3beta1.Product>(this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteProductRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteProductRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest, - com.google.cloud.vision.v1p3beta1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest, + com.google.cloud.vision.v1p3beta1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest, - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest, - com.google.cloud.vision.v1p3beta1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest, + com.google.cloud.vision.v1p3beta1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) .build(); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1056,19 +1432,20 @@ public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSet
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub + extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1076,13 +1453,19 @@ protected ProductSearchStub build(
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createProductSet( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1090,26 +1473,38 @@ public void createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetR
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductSets( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getProductSet( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1119,13 +1514,19 @@ public void getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateProductSet( + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1134,13 +1535,18 @@ public void updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetR
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1150,39 +1556,53 @@ public void deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetR
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1p3beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProducts( + com.google.cloud.vision.v1p3beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1p3beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -1197,13 +1617,18 @@ public void getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest reque
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1p3beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1213,13 +1638,18 @@ public void updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1238,13 +1668,19 @@ public void deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createReferenceImage( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1255,13 +1691,18 @@ public void createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferen
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1270,26 +1711,38 @@ public void deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferen
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listReferenceImages( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getReferenceImage( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1298,26 +1751,36 @@ public void getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImag
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1326,13 +1789,20 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.Remove
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductsInProductSet( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1345,14 +1815,19 @@ public void listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProdu
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1366,9 +1841,9 @@ public void importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSet
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1379,6 +1854,8 @@ protected ProductSearchBlockingStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1386,12 +1863,15 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1399,24 +1879,30 @@ public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet(com.google.
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1426,12 +1912,15 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(com.google.clo
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet( + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1440,12 +1929,15 @@ public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet(com.google.
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1455,36 +1947,45 @@ public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p3be
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product createProduct( + com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts( + com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product getProduct( + com.google.cloud.vision.v1p3beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -1499,12 +2000,15 @@ public com.google.cloud.vision.v1p3beta1.Product getProduct(com.google.cloud.vis
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.Product updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { + public com.google.cloud.vision.v1p3beta1.Product updateProduct( + com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1514,12 +2018,15 @@ public com.google.cloud.vision.v1p3beta1.Product updateProduct(com.google.cloud.
      * * Returns NOT_FOUND if the product does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1538,12 +2045,15 @@ public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p3beta1
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1554,12 +2064,15 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage(com
      * * Returns NOT_FOUND if the reference image does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1568,24 +2081,30 @@ public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferenceImages( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1594,24 +2113,30 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(com.go
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1620,12 +2145,16 @@ public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vi
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + listProductsInProductSet( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1638,13 +2167,16 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse listPr
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1658,9 +2190,9 @@ public com.google.longrunning.Operation importProductSets(com.google.cloud.visio
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1671,6 +2203,8 @@ protected ProductSearchFutureStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1678,13 +2212,16 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createProductSet( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.ProductSet> + createProductSet(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1692,26 +2229,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductSets(
-        com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>
+        listProductSets(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProductSet( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.ProductSet> + getProductSet(com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1721,13 +2264,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProductSet(
-        com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.ProductSet>
+        updateProductSet(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a ProductSet. All Products and ReferenceImages in the
      * ProductSet will be deleted.
@@ -1736,13 +2282,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteProductSet(
-        com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteProductSet(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1752,39 +2300,48 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createProduct(
-        com.google.cloud.vision.v1p3beta1.CreateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.Product>
+        createProduct(com.google.cloud.vision.v1p3beta1.CreateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listProducts( - com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.ListProductsResponse> + listProducts(com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProduct( - com.google.cloud.vision.v1p3beta1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.Product> + getProduct(com.google.cloud.vision.v1p3beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only display_name, description and labels can be updated right now.
@@ -1799,13 +2356,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProduct(
-        com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.Product>
+        updateProduct(com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1815,13 +2375,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteProduct(
-        com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteProduct(com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1840,13 +2402,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createReferenceImage(
-        com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.ReferenceImage>
+        createReferenceImage(
+            com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1857,13 +2423,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage(
-        com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteReferenceImage(
+            com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists reference images.
      * Possible errors:
@@ -1872,26 +2441,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listReferenceImages(
-        com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>
+        listReferenceImages(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getReferenceImage( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p3beta1.ReferenceImage> + getReferenceImage(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1900,26 +2475,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture addProductToProductSet(
-        com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        addProductToProductSet(
+            com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Removes a Product from the specified ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + removeProductFromProductSet( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1928,13 +2509,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet(
-        com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>
+        listProductsInProductSet(
+            com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1947,8 +2532,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture importProductSets(
-        com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        importProductSets(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request);
     }
@@ -1973,11 +2558,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ProductSearchImplBase serviceImpl;
     private final int methodId;
 
@@ -1991,75 +2576,108 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_PRODUCT_SET:
-          serviceImpl.createProductSet((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProductSet(
+              (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_PRODUCT_SETS:
-          serviceImpl.listProductSets((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductSets(
+              (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p3beta1.ListProductSetsResponse>)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT_SET:
-          serviceImpl.getProductSet((com.google.cloud.vision.v1p3beta1.GetProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getProductSet(
+              (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT_SET:
-          serviceImpl.updateProductSet((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProductSet(
+              (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_PRODUCT_SET:
-          serviceImpl.deleteProductSet((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) request,
+          serviceImpl.deleteProductSet(
+              (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_PRODUCT:
-          serviceImpl.createProduct((com.google.cloud.vision.v1p3beta1.CreateProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProduct(
+              (com.google.cloud.vision.v1p3beta1.CreateProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_PRODUCTS:
-          serviceImpl.listProducts((com.google.cloud.vision.v1p3beta1.ListProductsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProducts(
+              (com.google.cloud.vision.v1p3beta1.ListProductsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT:
-          serviceImpl.getProduct((com.google.cloud.vision.v1p3beta1.GetProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getProduct(
+              (com.google.cloud.vision.v1p3beta1.GetProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT:
-          serviceImpl.updateProduct((com.google.cloud.vision.v1p3beta1.UpdateProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProduct(
+              (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_PRODUCT:
-          serviceImpl.deleteProduct((com.google.cloud.vision.v1p3beta1.DeleteProductRequest) request,
+          serviceImpl.deleteProduct(
+              (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_REFERENCE_IMAGE:
-          serviceImpl.createReferenceImage((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReferenceImage(
+              (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_REFERENCE_IMAGE:
-          serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) request,
+          serviceImpl.deleteReferenceImage(
+              (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_REFERENCE_IMAGES:
-          serviceImpl.listReferenceImages((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listReferenceImages(
+              (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>)
+                  responseObserver);
           break;
         case METHODID_GET_REFERENCE_IMAGE:
-          serviceImpl.getReferenceImage((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getReferenceImage(
+              (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_ADD_PRODUCT_TO_PRODUCT_SET:
-          serviceImpl.addProductToProductSet((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) request,
+          serviceImpl.addProductToProductSet(
+              (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET:
-          serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) request,
+          serviceImpl.removeProductFromProductSet(
+              (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET:
-          serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductsInProductSet(
+              (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>)
+                  responseObserver);
           break;
         case METHODID_IMPORT_PRODUCT_SETS:
-          serviceImpl.importProductSets((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) request,
+          serviceImpl.importProductSets(
+              (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -2078,8 +2696,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ProductSearchBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ProductSearchBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ProductSearchBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -2121,27 +2740,29 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ProductSearchGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
-              .addMethod(getCreateProductSetMethod())
-              .addMethod(getListProductSetsMethod())
-              .addMethod(getGetProductSetMethod())
-              .addMethod(getUpdateProductSetMethod())
-              .addMethod(getDeleteProductSetMethod())
-              .addMethod(getCreateProductMethod())
-              .addMethod(getListProductsMethod())
-              .addMethod(getGetProductMethod())
-              .addMethod(getUpdateProductMethod())
-              .addMethod(getDeleteProductMethod())
-              .addMethod(getCreateReferenceImageMethod())
-              .addMethod(getDeleteReferenceImageMethod())
-              .addMethod(getListReferenceImagesMethod())
-              .addMethod(getGetReferenceImageMethod())
-              .addMethod(getAddProductToProductSetMethod())
-              .addMethod(getRemoveProductFromProductSetMethod())
-              .addMethod(getListProductsInProductSetMethod())
-              .addMethod(getImportProductSetsMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
+                      .addMethod(getCreateProductSetMethod())
+                      .addMethod(getListProductSetsMethod())
+                      .addMethod(getGetProductSetMethod())
+                      .addMethod(getUpdateProductSetMethod())
+                      .addMethod(getDeleteProductSetMethod())
+                      .addMethod(getCreateProductMethod())
+                      .addMethod(getListProductsMethod())
+                      .addMethod(getGetProductMethod())
+                      .addMethod(getUpdateProductMethod())
+                      .addMethod(getDeleteProductMethod())
+                      .addMethod(getCreateReferenceImageMethod())
+                      .addMethod(getDeleteReferenceImageMethod())
+                      .addMethod(getListReferenceImagesMethod())
+                      .addMethod(getGetReferenceImageMethod())
+                      .addMethod(getAddProductToProductSetMethod())
+                      .addMethod(getRemoveProductFromProductSetMethod())
+                      .addMethod(getListProductsInProductSetMethod())
+                      .addMethod(getImportProductSetsMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java
similarity index 51%
rename from owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java
rename to grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java
index af9e90f11..499194d8c 100644
--- a/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java
+++ b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1p4beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Service that performs Google Cloud Vision API detection tasks over client
  * images, such as face, landmark, logo, label, and text detection. The
@@ -20,194 +37,272 @@ private ImageAnnotatorGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p4beta1.ImageAnnotator";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
+      getBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
+            com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>
+        getBatchAnnotateImagesMethod;
     if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod = getBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
-              .build();
+        if ((getBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateImagesMethod =
+              getBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
+      getBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getBatchAnnotateFilesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
+          com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
+      getBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
+            com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
+        getBatchAnnotateFilesMethod;
     if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod = getBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
-              .build();
+        if ((getBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getBatchAnnotateFilesMethod =
+              getBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("BatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getBatchAnnotateFilesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateImages",
       requestType = com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateImagesMethod;
-    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateImagesMethod;
+    if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateImagesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod = getAsyncBatchAnnotateImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
-              .build();
+        if ((getAsyncBatchAnnotateImagesMethod =
+                ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateImagesMethod =
+              getAsyncBatchAnnotateImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateImages"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsyncBatchAnnotateFiles",
       requestType = com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod() {
-    io.grpc.MethodDescriptor getAsyncBatchAnnotateFilesMethod;
-    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
+          com.google.longrunning.Operation>
+      getAsyncBatchAnnotateFilesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
+            com.google.longrunning.Operation>
+        getAsyncBatchAnnotateFilesMethod;
+    if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+        == null) {
       synchronized (ImageAnnotatorGrpc.class) {
-        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod) == null) {
-          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod = getAsyncBatchAnnotateFilesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
-              .build();
+        if ((getAsyncBatchAnnotateFilesMethod = ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod)
+            == null) {
+          ImageAnnotatorGrpc.getAsyncBatchAnnotateFilesMethod =
+              getAsyncBatchAnnotateFilesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AsyncBatchAnnotateFiles"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ImageAnnotatorMethodDescriptorSupplier("AsyncBatchAnnotateFiles"))
+                      .build();
         }
       }
     }
     return getAsyncBatchAnnotateFilesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ImageAnnotatorStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ImageAnnotatorBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ImageAnnotatorBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorBlockingStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ImageAnnotatorFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ImageAnnotatorFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ImageAnnotatorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ImageAnnotatorFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ImageAnnotatorFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ImageAnnotatorFutureStub(channel, callOptions);
+          }
+        };
     return ImageAnnotatorFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static abstract class ImageAnnotatorImplBase implements io.grpc.BindableService { + public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService { /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateImagesMethod(), responseObserver); + public void batchAnnotateImages( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -217,12 +312,17 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateI
      * extracted.
      * 
*/ - public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchAnnotateFilesMethod(), responseObserver); + public void batchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchAnnotateFilesMethod(), responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -233,12 +333,16 @@ public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFi
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateImagesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateImagesMethod(), responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -248,76 +352,87 @@ public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatc
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsyncBatchAnnotateFilesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncBatchAnnotateFilesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest, - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>( - this, METHODID_BATCH_ANNOTATE_IMAGES))) + getBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>( + this, METHODID_BATCH_ANNOTATE_IMAGES))) .addMethod( - getBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest, - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>( - this, METHODID_BATCH_ANNOTATE_FILES))) + getBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>( + this, METHODID_BATCH_ANNOTATE_FILES))) .addMethod( - getAsyncBatchAnnotateImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) + getAsyncBatchAnnotateImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest, + com.google.longrunning.Operation>( + this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES))) .addMethod( - getAsyncBatchAnnotateFilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest, - com.google.longrunning.Operation>( - this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) + getAsyncBatchAnnotateFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest, + com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES))) .build(); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorStub extends io.grpc.stub.AbstractAsyncStub { - private ImageAnnotatorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageAnnotatorStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ImageAnnotatorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ImageAnnotatorStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ImageAnnotatorStub(channel, callOptions); } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateImages( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -327,13 +442,19 @@ public void batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateI
      * extracted.
      * 
*/ - public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -344,13 +465,18 @@ public void batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFi
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, + public void asyncBatchAnnotateImages( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -360,23 +486,28 @@ public void asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatc
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, + public void asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ImageAnnotatorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageAnnotatorBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -387,16 +518,21 @@ protected ImageAnnotatorBlockingStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnotateImages( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -406,12 +542,15 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnota
      * extracted.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -422,12 +561,15 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotat
      * GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateImages( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -437,22 +579,25 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages(com.google.clou
      * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
      * 
*/ - public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { + public com.google.longrunning.Operation asyncBatchAnnotateFiles( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } /** + * + * *
    * Service that performs Google Cloud Vision API detection tasks over client
    * images, such as face, landmark, logo, label, and text detection. The
    * ImageAnnotator service returns detected entities from the images.
    * 
*/ - public static final class ImageAnnotatorFutureStub extends io.grpc.stub.AbstractFutureStub { - private ImageAnnotatorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ImageAnnotatorFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageAnnotatorFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -463,17 +608,22 @@ protected ImageAnnotatorFutureStub build( } /** + * + * *
      * Run image detection and annotation for a batch of images.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchAnnotateImages( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse> + batchAnnotateImages(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchAnnotateImagesMethod(), getCallOptions()), request); } /** + * + * *
      * Service that performs image detection and annotation for a batch of files.
      * Now only "application/pdf", "image/tiff" and "image/gif" are supported.
@@ -483,13 +633,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture batchAnnotateFiles(
-        com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>
+        batchAnnotateFiles(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Run asynchronous image detection and annotation for a list of images.
      * Progress and results can be retrieved through the
@@ -500,13 +653,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateImages(
-        com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateImages(
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateImagesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Run asynchronous image detection and annotation for a list of generic
      * files, such as PDF files, which may contain multiple pages and multiple
@@ -516,8 +672,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture asyncBatchAnnotateFiles(
-        com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        asyncBatchAnnotateFiles(
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAsyncBatchAnnotateFilesMethod(), getCallOptions()), request);
     }
@@ -528,11 +685,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ImageAnnotatorImplBase serviceImpl;
     private final int methodId;
 
@@ -546,19 +703,27 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.batchAnnotateImages((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateImages(
+              (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>)
+                  responseObserver);
           break;
         case METHODID_BATCH_ANNOTATE_FILES:
-          serviceImpl.batchAnnotateFiles((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchAnnotateFiles(
+              (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>)
+                  responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_IMAGES:
-          serviceImpl.asyncBatchAnnotateImages((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) request,
+          serviceImpl.asyncBatchAnnotateImages(
+              (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_ASYNC_BATCH_ANNOTATE_FILES:
-          serviceImpl.asyncBatchAnnotateFiles((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) request,
+          serviceImpl.asyncBatchAnnotateFiles(
+              (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -577,8 +742,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ImageAnnotatorBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ImageAnnotatorBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ImageAnnotatorBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -620,13 +786,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ImageAnnotatorGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
-              .addMethod(getBatchAnnotateImagesMethod())
-              .addMethod(getBatchAnnotateFilesMethod())
-              .addMethod(getAsyncBatchAnnotateImagesMethod())
-              .addMethod(getAsyncBatchAnnotateFilesMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ImageAnnotatorFileDescriptorSupplier())
+                      .addMethod(getBatchAnnotateImagesMethod())
+                      .addMethod(getBatchAnnotateFilesMethod())
+                      .addMethod(getAsyncBatchAnnotateImagesMethod())
+                      .addMethod(getAsyncBatchAnnotateFilesMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java
similarity index 52%
rename from owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java
rename to grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java
index 066efff1e..49992ba8b 100644
--- a/owl-bot-staging/v1p4beta1/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java
+++ b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.vision.v1p4beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
@@ -31,640 +48,937 @@ private ProductSearchGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.vision.v1p4beta1.ProductSearch";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getCreateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductSetMethod() {
-    io.grpc.MethodDescriptor getCreateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getCreateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.CreateProductSetRequest,
+            com.google.cloud.vision.v1p4beta1.ProductSet>
+        getCreateProductSetMethod;
     if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductSetMethod = ProductSearchGrpc.getCreateProductSetMethod) == null) {
-          ProductSearchGrpc.getCreateProductSetMethod = getCreateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
-              .build();
+          ProductSearchGrpc.getCreateProductSetMethod =
+              getCreateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.CreateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProductSet"))
+                      .build();
         }
       }
     }
     return getCreateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
+      getListProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductSets",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductSetsMethod() {
-    io.grpc.MethodDescriptor getListProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
+      getListProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.ListProductSetsRequest,
+            com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
+        getListProductSetsMethod;
     if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductSetsMethod = ProductSearchGrpc.getListProductSetsMethod) == null) {
-          ProductSearchGrpc.getListProductSetsMethod = getListProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductSets"))
-              .build();
+          ProductSearchGrpc.getListProductSetsMethod =
+              getListProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductSetsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductSets"))
+                      .build();
         }
       }
     }
     return getListProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getGetProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductSetMethod() {
-    io.grpc.MethodDescriptor getGetProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getGetProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.GetProductSetRequest,
+            com.google.cloud.vision.v1p4beta1.ProductSet>
+        getGetProductSetMethod;
     if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductSetMethod = ProductSearchGrpc.getGetProductSetMethod) == null) {
-          ProductSearchGrpc.getGetProductSetMethod = getGetProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProductSet"))
-              .build();
+          ProductSearchGrpc.getGetProductSetMethod =
+              getGetProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.GetProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetProductSet"))
+                      .build();
         }
       }
     }
     return getGetProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getUpdateProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ProductSet.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductSetMethod() {
-    io.grpc.MethodDescriptor getUpdateProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ProductSet>
+      getUpdateProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest,
+            com.google.cloud.vision.v1p4beta1.ProductSet>
+        getUpdateProductSetMethod;
     if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductSetMethod = ProductSearchGrpc.getUpdateProductSetMethod) == null) {
-          ProductSearchGrpc.getUpdateProductSetMethod = getUpdateProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
-              .build();
+          ProductSearchGrpc.getUpdateProductSetMethod =
+              getUpdateProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProductSet"))
+                      .build();
         }
       }
     }
     return getUpdateProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductSetMethod() {
-    io.grpc.MethodDescriptor getDeleteProductSetMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+      getDeleteProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, com.google.protobuf.Empty>
+        getDeleteProductSetMethod;
     if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductSetMethod = ProductSearchGrpc.getDeleteProductSetMethod) == null) {
-          ProductSearchGrpc.getDeleteProductSetMethod = getDeleteProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
-              .build();
+          ProductSearchGrpc.getDeleteProductSetMethod =
+              getDeleteProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProductSet"))
+                      .build();
         }
       }
     }
     return getDeleteProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getCreateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateProduct",
       requestType = com.google.cloud.vision.v1p4beta1.CreateProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateProductMethod() {
-    io.grpc.MethodDescriptor getCreateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getCreateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.CreateProductRequest,
+            com.google.cloud.vision.v1p4beta1.Product>
+        getCreateProductMethod;
     if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getCreateProductMethod = ProductSearchGrpc.getCreateProductMethod) == null) {
-          ProductSearchGrpc.getCreateProductMethod = getCreateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateProduct"))
-              .build();
+          ProductSearchGrpc.getCreateProductMethod =
+              getCreateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.CreateProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateProduct"))
+                      .build();
         }
       }
     }
     return getCreateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductsRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductsResponse>
+      getListProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProducts",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductsRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsMethod() {
-    io.grpc.MethodDescriptor getListProductsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductsRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductsResponse>
+      getListProductsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.ListProductsRequest,
+            com.google.cloud.vision.v1p4beta1.ListProductsResponse>
+        getListProductsMethod;
     if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getListProductsMethod = ProductSearchGrpc.getListProductsMethod) == null) {
-          ProductSearchGrpc.getListProductsMethod = getListProductsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProducts"))
-              .build();
+          ProductSearchGrpc.getListProductsMethod =
+              getListProductsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProducts"))
+                      .build();
         }
       }
     }
     return getListProductsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getGetProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetProduct",
       requestType = com.google.cloud.vision.v1p4beta1.GetProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetProductMethod() {
-    io.grpc.MethodDescriptor getGetProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getGetProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.GetProductRequest,
+            com.google.cloud.vision.v1p4beta1.Product>
+        getGetProductMethod;
     if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetProductMethod = ProductSearchGrpc.getGetProductMethod) == null) {
-          ProductSearchGrpc.getGetProductMethod = getGetProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
-              .build();
+          ProductSearchGrpc.getGetProductMethod =
+              getGetProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.GetProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetProduct"))
+                      .build();
         }
       }
     }
     return getGetProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getUpdateProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateProduct",
       requestType = com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.Product.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateProductMethod() {
-    io.grpc.MethodDescriptor getUpdateProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
+          com.google.cloud.vision.v1p4beta1.Product>
+      getUpdateProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.UpdateProductRequest,
+            com.google.cloud.vision.v1p4beta1.Product>
+        getUpdateProductMethod;
     if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getUpdateProductMethod = ProductSearchGrpc.getUpdateProductMethod) == null) {
-          ProductSearchGrpc.getUpdateProductMethod = getUpdateProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
-              .build();
+          ProductSearchGrpc.getUpdateProductMethod =
+              getUpdateProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.UpdateProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("UpdateProduct"))
+                      .build();
         }
       }
     }
     return getUpdateProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteProductMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteProduct",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteProductMethod() {
-    io.grpc.MethodDescriptor getDeleteProductMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
+      getDeleteProductMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.DeleteProductRequest, com.google.protobuf.Empty>
+        getDeleteProductMethod;
     if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getDeleteProductMethod = ProductSearchGrpc.getDeleteProductMethod) == null) {
-          ProductSearchGrpc.getDeleteProductMethod = getDeleteProductMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
-              .build();
+          ProductSearchGrpc.getDeleteProductMethod =
+              getDeleteProductMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProduct"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.DeleteProductRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteProduct"))
+                      .build();
         }
       }
     }
     return getDeleteProductMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1p4beta1.ReferenceImage>
+      getCreateReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReferenceImageMethod() {
-    io.grpc.MethodDescriptor getCreateReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
+          com.google.cloud.vision.v1p4beta1.ReferenceImage>
+      getCreateReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest,
+            com.google.cloud.vision.v1p4beta1.ReferenceImage>
+        getCreateReferenceImageMethod;
     if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod) == null) {
-          ProductSearchGrpc.getCreateReferenceImageMethod = getCreateReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
-              .build();
+        if ((getCreateReferenceImageMethod = ProductSearchGrpc.getCreateReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getCreateReferenceImageMethod =
+              getCreateReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreateReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ReferenceImage
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("CreateReferenceImage"))
+                      .build();
         }
       }
     }
     return getCreateReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteReferenceImageMethod() {
-    io.grpc.MethodDescriptor getDeleteReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, com.google.protobuf.Empty>
+      getDeleteReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest,
+            com.google.protobuf.Empty>
+        getDeleteReferenceImageMethod;
     if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod) == null) {
-          ProductSearchGrpc.getDeleteReferenceImageMethod = getDeleteReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
-              .build();
+        if ((getDeleteReferenceImageMethod = ProductSearchGrpc.getDeleteReferenceImageMethod)
+            == null) {
+          ProductSearchGrpc.getDeleteReferenceImageMethod =
+              getDeleteReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "DeleteReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("DeleteReferenceImage"))
+                      .build();
         }
       }
     }
     return getDeleteReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListReferenceImages",
       requestType = com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListReferenceImagesMethod() {
-    io.grpc.MethodDescriptor getListReferenceImagesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
+          com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
+      getListReferenceImagesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest,
+            com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
+        getListReferenceImagesMethod;
     if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod) == null) {
-          ProductSearchGrpc.getListReferenceImagesMethod = getListReferenceImagesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
-              .build();
+        if ((getListReferenceImagesMethod = ProductSearchGrpc.getListReferenceImagesMethod)
+            == null) {
+          ProductSearchGrpc.getListReferenceImagesMethod =
+              getListReferenceImagesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListReferenceImages"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListReferenceImages"))
+                      .build();
         }
       }
     }
     return getListReferenceImagesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1p4beta1.ReferenceImage>
+      getGetReferenceImageMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetReferenceImage",
       requestType = com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetReferenceImageMethod() {
-    io.grpc.MethodDescriptor getGetReferenceImageMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
+          com.google.cloud.vision.v1p4beta1.ReferenceImage>
+      getGetReferenceImageMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest,
+            com.google.cloud.vision.v1p4beta1.ReferenceImage>
+        getGetReferenceImageMethod;
     if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getGetReferenceImageMethod = ProductSearchGrpc.getGetReferenceImageMethod) == null) {
-          ProductSearchGrpc.getGetReferenceImageMethod = getGetReferenceImageMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
-              .build();
+          ProductSearchGrpc.getGetReferenceImageMethod =
+              getGetReferenceImageMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReferenceImage"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ReferenceImage
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("GetReferenceImage"))
+                      .build();
         }
       }
     }
     return getGetReferenceImageMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAddProductToProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
+          com.google.protobuf.Empty>
+      getAddProductToProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AddProductToProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAddProductToProductSetMethod() {
-    io.grpc.MethodDescriptor getAddProductToProductSetMethod;
-    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
+          com.google.protobuf.Empty>
+      getAddProductToProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest,
+            com.google.protobuf.Empty>
+        getAddProductToProductSetMethod;
+    if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod) == null) {
-          ProductSearchGrpc.getAddProductToProductSetMethod = getAddProductToProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
-              .build();
+        if ((getAddProductToProductSetMethod = ProductSearchGrpc.getAddProductToProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getAddProductToProductSetMethod =
+              getAddProductToProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "AddProductToProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("AddProductToProductSet"))
+                      .build();
         }
       }
     }
     return getAddProductToProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
+          com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RemoveProductFromProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod() {
-    io.grpc.MethodDescriptor getRemoveProductFromProductSetMethod;
-    if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
+          com.google.protobuf.Empty>
+      getRemoveProductFromProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest,
+            com.google.protobuf.Empty>
+        getRemoveProductFromProductSetMethod;
+    if ((getRemoveProductFromProductSetMethod =
+            ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getRemoveProductFromProductSetMethod = ProductSearchGrpc.getRemoveProductFromProductSetMethod) == null) {
-          ProductSearchGrpc.getRemoveProductFromProductSetMethod = getRemoveProductFromProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
-              .build();
+        if ((getRemoveProductFromProductSetMethod =
+                ProductSearchGrpc.getRemoveProductFromProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getRemoveProductFromProductSetMethod =
+              getRemoveProductFromProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RemoveProductFromProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("RemoveProductFromProductSet"))
+                      .build();
         }
       }
     }
     return getRemoveProductFromProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListProductsInProductSetMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListProductsInProductSet",
       requestType = com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class,
       responseType = com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListProductsInProductSetMethod() {
-    io.grpc.MethodDescriptor getListProductsInProductSetMethod;
-    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
+          com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
+      getListProductsInProductSetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest,
+            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
+        getListProductsInProductSetMethod;
+    if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod)
+        == null) {
       synchronized (ProductSearchGrpc.class) {
-        if ((getListProductsInProductSetMethod = ProductSearchGrpc.getListProductsInProductSetMethod) == null) {
-          ProductSearchGrpc.getListProductsInProductSetMethod = getListProductsInProductSetMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
-              .build();
+        if ((getListProductsInProductSetMethod =
+                ProductSearchGrpc.getListProductsInProductSetMethod)
+            == null) {
+          ProductSearchGrpc.getListProductsInProductSetMethod =
+              getListProductsInProductSetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListProductsInProductSet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ListProductsInProductSet"))
+                      .build();
         }
       }
     }
     return getListProductsInProductSetMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getImportProductSetsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
+          com.google.longrunning.Operation>
+      getImportProductSetsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportProductSets",
       requestType = com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getImportProductSetsMethod() {
-    io.grpc.MethodDescriptor getImportProductSetsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
+          com.google.longrunning.Operation>
+      getImportProductSetsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest,
+            com.google.longrunning.Operation>
+        getImportProductSetsMethod;
     if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getImportProductSetsMethod = ProductSearchGrpc.getImportProductSetsMethod) == null) {
-          ProductSearchGrpc.getImportProductSetsMethod = getImportProductSetsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
-              .build();
+          ProductSearchGrpc.getImportProductSetsMethod =
+              getImportProductSetsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportProductSets"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("ImportProductSets"))
+                      .build();
         }
       }
     }
     return getImportProductSetsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPurgeProductsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation>
+      getPurgeProductsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PurgeProducts",
       requestType = com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPurgeProductsMethod() {
-    io.grpc.MethodDescriptor getPurgeProductsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation>
+      getPurgeProductsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vision.v1p4beta1.PurgeProductsRequest,
+            com.google.longrunning.Operation>
+        getPurgeProductsMethod;
     if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
       synchronized (ProductSearchGrpc.class) {
         if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) {
-          ProductSearchGrpc.getPurgeProductsMethod = getPurgeProductsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
-              .build();
+          ProductSearchGrpc.getPurgeProductsMethod =
+              getPurgeProductsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vision.v1p4beta1.PurgeProductsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ProductSearchMethodDescriptorSupplier("PurgeProducts"))
+                      .build();
         }
       }
     }
     return getPurgeProductsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ProductSearchStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchStub(channel, callOptions);
+          }
+        };
     return ProductSearchStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ProductSearchBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ProductSearchBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchBlockingStub(channel, callOptions);
+          }
+        };
     return ProductSearchBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ProductSearchFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ProductSearchFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ProductSearchFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ProductSearchFutureStub(channel, callOptions);
+          }
+        };
     return ProductSearchFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -682,9 +996,11 @@ public ProductSearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static abstract class ProductSearchImplBase implements io.grpc.BindableService { + public abstract static class ProductSearchImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -692,12 +1008,17 @@ public static abstract class ProductSearchImplBase implements io.grpc.BindableSe
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductSetMethod(), responseObserver); + public void createProductSet( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductSetMethod(), responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -705,24 +1026,34 @@ public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetR
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductSetsMethod(), responseObserver); + public void listProductSets( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductSetsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductSetMethod(), responseObserver); + public void getProductSet( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProductSetMethod(), responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -732,24 +1063,33 @@ public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductSetMethod(), responseObserver); + public void updateProductSet( + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductSetMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductSetMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -759,36 +1099,48 @@ public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetR
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1p4beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateProductMethod(), responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsMethod(), responseObserver); + public void listProducts( + com.google.cloud.vision.v1p4beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1p4beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -804,12 +1156,16 @@ public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest reque
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProductMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -817,12 +1173,16 @@ public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProductMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteProductMethod(), responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -841,12 +1201,17 @@ public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReferenceImageMethod(), responseObserver); + public void createReferenceImage( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReferenceImageMethod(), responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -855,12 +1220,16 @@ public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferen
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReferenceImageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReferenceImageMethod(), responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -869,24 +1238,34 @@ public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferen
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReferenceImagesMethod(), responseObserver); + public void listReferenceImages( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReferenceImagesMethod(), responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReferenceImageMethod(), responseObserver); + public void getReferenceImage( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReferenceImageMethod(), responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -895,22 +1274,30 @@ public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImag
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddProductToProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddProductToProductSetMethod(), responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductFromProductSetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveProductFromProductSetMethod(), responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -919,12 +1306,18 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.Remove
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProductsInProductSetMethod(), responseObserver); + public void listProductsInProductSet( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsInProductSetMethod(), responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -937,12 +1330,16 @@ public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProdu
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportProductSetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportProductSetsMethod(), responseObserver); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -965,151 +1362,146 @@ public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSet
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + public void purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeProductsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeProductsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_CREATE_PRODUCT_SET))) + getCreateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_CREATE_PRODUCT_SET))) .addMethod( - getListProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest, - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>( - this, METHODID_LIST_PRODUCT_SETS))) + getListProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest, + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>( + this, METHODID_LIST_PRODUCT_SETS))) .addMethod( - getGetProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_GET_PRODUCT_SET))) + getGetProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_GET_PRODUCT_SET))) .addMethod( - getUpdateProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest, - com.google.cloud.vision.v1p4beta1.ProductSet>( - this, METHODID_UPDATE_PRODUCT_SET))) + getUpdateProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest, + com.google.cloud.vision.v1p4beta1.ProductSet>( + this, METHODID_UPDATE_PRODUCT_SET))) .addMethod( - getDeleteProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT_SET))) + getDeleteProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT_SET))) .addMethod( - getCreateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateProductRequest, - com.google.cloud.vision.v1p4beta1.Product>( - this, METHODID_CREATE_PRODUCT))) + getCreateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateProductRequest, + com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_CREATE_PRODUCT))) .addMethod( - getListProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductsRequest, - com.google.cloud.vision.v1p4beta1.ListProductsResponse>( - this, METHODID_LIST_PRODUCTS))) + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductsRequest, + com.google.cloud.vision.v1p4beta1.ListProductsResponse>( + this, METHODID_LIST_PRODUCTS))) .addMethod( - getGetProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetProductRequest, - com.google.cloud.vision.v1p4beta1.Product>( - this, METHODID_GET_PRODUCT))) + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetProductRequest, + com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_GET_PRODUCT))) .addMethod( - getUpdateProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.UpdateProductRequest, - com.google.cloud.vision.v1p4beta1.Product>( - this, METHODID_UPDATE_PRODUCT))) + getUpdateProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.UpdateProductRequest, + com.google.cloud.vision.v1p4beta1.Product>(this, METHODID_UPDATE_PRODUCT))) .addMethod( - getDeleteProductMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteProductRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PRODUCT))) + getDeleteProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteProductRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PRODUCT))) .addMethod( - getCreateReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest, - com.google.cloud.vision.v1p4beta1.ReferenceImage>( - this, METHODID_CREATE_REFERENCE_IMAGE))) + getCreateReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest, + com.google.cloud.vision.v1p4beta1.ReferenceImage>( + this, METHODID_CREATE_REFERENCE_IMAGE))) .addMethod( - getDeleteReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_REFERENCE_IMAGE))) + getDeleteReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_REFERENCE_IMAGE))) .addMethod( - getListReferenceImagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest, - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>( - this, METHODID_LIST_REFERENCE_IMAGES))) + getListReferenceImagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>( + this, METHODID_LIST_REFERENCE_IMAGES))) .addMethod( - getGetReferenceImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest, - com.google.cloud.vision.v1p4beta1.ReferenceImage>( - this, METHODID_GET_REFERENCE_IMAGE))) + getGetReferenceImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest, + com.google.cloud.vision.v1p4beta1.ReferenceImage>( + this, METHODID_GET_REFERENCE_IMAGE))) .addMethod( - getAddProductToProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) + getAddProductToProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_ADD_PRODUCT_TO_PRODUCT_SET))) .addMethod( - getRemoveProductFromProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest, - com.google.protobuf.Empty>( - this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) + getRemoveProductFromProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest, + com.google.protobuf.Empty>(this, METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET))) .addMethod( - getListProductsInProductSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest, - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>( - this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) + getListProductsInProductSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>( + this, METHODID_LIST_PRODUCTS_IN_PRODUCT_SET))) .addMethod( - getImportProductSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_PRODUCT_SETS))) + getImportProductSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) .addMethod( - getPurgeProductsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, - com.google.longrunning.Operation>( - this, METHODID_PURGE_PRODUCTS))) + getPurgeProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_PRODUCTS))) .build(); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1127,19 +1519,20 @@ public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchStub extends io.grpc.stub.AbstractAsyncStub { - private ProductSearchStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchStub + extends io.grpc.stub.AbstractAsyncStub { + private ProductSearchStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ProductSearchStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ProductSearchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductSearchStub(channel, callOptions); } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1147,13 +1540,19 @@ protected ProductSearchStub build(
      *   4096 characters.
      * 
*/ - public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createProductSet( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1161,26 +1560,38 @@ public void createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetR
      *   than 1.
      * 
*/ - public void listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductSets( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductSetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getProductSet( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1190,26 +1601,37 @@ public void getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public void updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateProductSet( + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, + public void deleteProductSet( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1219,39 +1641,53 @@ public void deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetR
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public void createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request, + public void createProduct( + com.google.cloud.vision.v1p4beta1.CreateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProducts( + com.google.cloud.vision.v1p4beta1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request, + public void getProduct( + com.google.cloud.vision.v1p4beta1.GetProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1267,13 +1703,18 @@ public void getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest reque
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, + public void updateProduct( + com.google.cloud.vision.v1p4beta1.UpdateProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1281,13 +1722,18 @@ public void updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest
      * until all related caches are refreshed.
      * 
*/ - public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, + public void deleteProduct( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteProductMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1306,13 +1752,19 @@ public void deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createReferenceImage( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1321,13 +1773,18 @@ public void createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferen
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, + public void deleteReferenceImage( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1336,26 +1793,38 @@ public void deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferen
      *   than 1.
      * 
*/ - public void listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listReferenceImages( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getReferenceImage( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1364,24 +1833,34 @@ public void getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImag
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public void addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, + public void addProductToProductSet( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, + public void removeProductFromProductSet( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1390,13 +1869,20 @@ public void removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.Remove
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProductsInProductSet( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1409,13 +1895,18 @@ public void listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProdu
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, + public void importProductSets( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1438,14 +1929,19 @@ public void importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSet
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + public void purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1463,9 +1959,9 @@ public void purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ProductSearchBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ProductSearchBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1476,6 +1972,8 @@ protected ProductSearchBlockingStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1483,12 +1981,15 @@ protected ProductSearchBlockingStub build(
      *   4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1496,24 +1997,30 @@ public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet(com.google.
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1523,24 +2030,30 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(com.google.clo
      *   missing from the request or longer than 4096 characters.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet( + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { + public com.google.protobuf.Empty deleteProductSet( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1550,36 +2063,45 @@ public com.google.protobuf.Empty deleteProductSet(com.google.cloud.vision.v1p4be
      * * Returns INVALID_ARGUMENT if product_category is missing or invalid.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product createProduct( + com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts( + com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product getProduct( + com.google.cloud.vision.v1p4beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1595,12 +2117,15 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct(com.google.cloud.vis
      * * Returns INVALID_ARGUMENT if product_category is present in update_mask.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.Product updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { + public com.google.cloud.vision.v1p4beta1.Product updateProduct( + com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1608,12 +2133,15 @@ public com.google.cloud.vision.v1p4beta1.Product updateProduct(com.google.cloud.
      * until all related caches are refreshed.
      * 
*/ - public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { + public com.google.protobuf.Empty deleteProduct( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } /** + * + * *
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1632,12 +2160,15 @@ public com.google.protobuf.Empty deleteProduct(com.google.cloud.vision.v1p4beta1
      * * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { + public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1646,12 +2177,15 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage(com
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { + public com.google.protobuf.Empty deleteReferenceImage( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Lists reference images.
      * Possible errors:
@@ -1660,24 +2194,30 @@ public com.google.protobuf.Empty deleteReferenceImage(com.google.cloud.vision.v1
      *   than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferenceImages( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { + public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -1686,22 +2226,28 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(com.go
      * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
      * 
*/ - public com.google.protobuf.Empty addProductToProductSet(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { + public com.google.protobuf.Empty addProductToProductSet( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { + public com.google.protobuf.Empty removeProductFromProductSet( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -1710,12 +2256,16 @@ public com.google.protobuf.Empty removeProductFromProductSet(com.google.cloud.vi
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse listProductsInProductSet(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + listProductsInProductSet( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } /** + * + * *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -1728,12 +2278,15 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse listPr
      * [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].
      * 
*/ - public com.google.longrunning.Operation importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { + public com.google.longrunning.Operation importProductSets( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } /** + * + * *
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -1756,13 +2309,16 @@ public com.google.longrunning.Operation importProductSets(com.google.cloud.visio
      * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
      * 
*/ - public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { + public com.google.longrunning.Operation purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } /** + * + * *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
@@ -1780,9 +2336,9 @@ public com.google.longrunning.Operation purgeProducts(com.google.cloud.vision.v1
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ - public static final class ProductSearchFutureStub extends io.grpc.stub.AbstractFutureStub { - private ProductSearchFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ProductSearchFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ProductSearchFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1793,6 +2349,8 @@ protected ProductSearchFutureStub build( } /** + * + * *
      * Creates and returns a new ProductSet resource.
      * Possible errors:
@@ -1800,13 +2358,16 @@ protected ProductSearchFutureStub build(
      *   4096 characters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createProductSet( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.ProductSet> + createProductSet(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists ProductSets in an unspecified order.
      * Possible errors:
@@ -1814,26 +2375,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductSets(
-        com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>
+        listProductSets(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductSetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ProductSet.
      * Possible errors:
      * * Returns NOT_FOUND if the ProductSet does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProductSet( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.ProductSet> + getProductSet(com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a ProductSet resource.
      * Only display_name can be updated currently.
@@ -1843,26 +2410,31 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProductSet(
-        com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.ProductSet>
+        updateProductSet(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a ProductSet. Products and ReferenceImages in the
      * ProductSet are not deleted.
      * The actual image files are not deleted from Google Cloud Storage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteProductSet( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteProductSet(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Creates and returns a new product resource.
      * Possible errors:
@@ -1872,39 +2444,48 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createProduct(
-        com.google.cloud.vision.v1p4beta1.CreateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.Product>
+        createProduct(com.google.cloud.vision.v1p4beta1.CreateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists products in an unspecified order.
      * Possible errors:
      * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listProducts( - com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.ListProductsResponse> + listProducts(com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProductsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information associated with a Product.
      * Possible errors:
      * * Returns NOT_FOUND if the Product does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getProduct( - com.google.cloud.vision.v1p4beta1.GetProductRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.Product> + getProduct(com.google.cloud.vision.v1p4beta1.GetProductRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProductMethod(), getCallOptions()), request); } /** + * + * *
      * Makes changes to a Product resource.
      * Only the `display_name`, `description`, and `labels` fields can be updated
@@ -1920,13 +2501,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProduct(
-        com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.Product>
+        updateProduct(com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a product and its reference images.
      * Metadata of the product and all its images will be deleted right away, but
@@ -1934,13 +2518,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteProduct(
-        com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteProduct(com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates and returns a new ReferenceImage resource.
      * The `bounding_poly` field is optional. If `bounding_poly` is not specified,
@@ -1959,13 +2545,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createReferenceImage(
-        com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.ReferenceImage>
+        createReferenceImage(
+            com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Permanently deletes a reference image.
      * The image metadata will be deleted right away, but search queries
@@ -1974,13 +2564,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteReferenceImage(
-        com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteReferenceImage(
+            com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteReferenceImageMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists reference images.
      * Possible errors:
@@ -1989,26 +2582,32 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listReferenceImages(
-        com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>
+        listReferenceImages(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListReferenceImagesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets information associated with a ReferenceImage.
      * Possible errors:
      * * Returns NOT_FOUND if the specified image does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getReferenceImage( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vision.v1p4beta1.ReferenceImage> + getReferenceImage(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReferenceImageMethod(), getCallOptions()), request); } /** + * + * *
      * Adds a Product to the specified ProductSet. If the Product is already
      * present, no change is made.
@@ -2017,24 +2616,30 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture addProductToProductSet(
-        com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        addProductToProductSet(
+            com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAddProductToProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Removes a Product from the specified ProductSet.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { + public com.google.common.util.concurrent.ListenableFuture + removeProductFromProductSet( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductFromProductSetMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the Products in a ProductSet, in an unspecified order. If the
      * ProductSet does not exist, the products field of the response will be
@@ -2043,13 +2648,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProductsInProductSet(
-        com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>
+        listProductsInProductSet(
+            com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProductsInProductSetMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
@@ -2062,13 +2671,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture importProductSets(
-        com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        importProductSets(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getImportProductSetsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Asynchronous API to delete all Products in a ProductSet or all Products
      * that are in no ProductSet.
@@ -2091,8 +2702,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture purgeProducts(
-        com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request);
     }
@@ -2118,11 +2729,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ProductSearchImplBase serviceImpl;
     private final int methodId;
 
@@ -2136,79 +2747,113 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_PRODUCT_SET:
-          serviceImpl.createProductSet((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProductSet(
+              (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_PRODUCT_SETS:
-          serviceImpl.listProductSets((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductSets(
+              (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p4beta1.ListProductSetsResponse>)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT_SET:
-          serviceImpl.getProductSet((com.google.cloud.vision.v1p4beta1.GetProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getProductSet(
+              (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT_SET:
-          serviceImpl.updateProductSet((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProductSet(
+              (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_PRODUCT_SET:
-          serviceImpl.deleteProductSet((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) request,
+          serviceImpl.deleteProductSet(
+              (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_PRODUCT:
-          serviceImpl.createProduct((com.google.cloud.vision.v1p4beta1.CreateProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createProduct(
+              (com.google.cloud.vision.v1p4beta1.CreateProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_PRODUCTS:
-          serviceImpl.listProducts((com.google.cloud.vision.v1p4beta1.ListProductsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProducts(
+              (com.google.cloud.vision.v1p4beta1.ListProductsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_PRODUCT:
-          serviceImpl.getProduct((com.google.cloud.vision.v1p4beta1.GetProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getProduct(
+              (com.google.cloud.vision.v1p4beta1.GetProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_UPDATE_PRODUCT:
-          serviceImpl.updateProduct((com.google.cloud.vision.v1p4beta1.UpdateProductRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.updateProduct(
+              (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_PRODUCT:
-          serviceImpl.deleteProduct((com.google.cloud.vision.v1p4beta1.DeleteProductRequest) request,
+          serviceImpl.deleteProduct(
+              (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_REFERENCE_IMAGE:
-          serviceImpl.createReferenceImage((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReferenceImage(
+              (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_REFERENCE_IMAGE:
-          serviceImpl.deleteReferenceImage((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) request,
+          serviceImpl.deleteReferenceImage(
+              (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_REFERENCE_IMAGES:
-          serviceImpl.listReferenceImages((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listReferenceImages(
+              (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse>)
+                  responseObserver);
           break;
         case METHODID_GET_REFERENCE_IMAGE:
-          serviceImpl.getReferenceImage((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getReferenceImage(
+              (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_ADD_PRODUCT_TO_PRODUCT_SET:
-          serviceImpl.addProductToProductSet((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) request,
+          serviceImpl.addProductToProductSet(
+              (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET:
-          serviceImpl.removeProductFromProductSet((com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) request,
+          serviceImpl.removeProductFromProductSet(
+              (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_PRODUCTS_IN_PRODUCT_SET:
-          serviceImpl.listProductsInProductSet((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listProductsInProductSet(
+              (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse>)
+                  responseObserver);
           break;
         case METHODID_IMPORT_PRODUCT_SETS:
-          serviceImpl.importProductSets((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) request,
+          serviceImpl.importProductSets(
+              (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_PURGE_PRODUCTS:
-          serviceImpl.purgeProducts((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) request,
+          serviceImpl.purgeProducts(
+              (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -2227,8 +2872,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ProductSearchBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ProductSearchBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ProductSearchBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -2270,28 +2916,30 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ProductSearchGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
-              .addMethod(getCreateProductSetMethod())
-              .addMethod(getListProductSetsMethod())
-              .addMethod(getGetProductSetMethod())
-              .addMethod(getUpdateProductSetMethod())
-              .addMethod(getDeleteProductSetMethod())
-              .addMethod(getCreateProductMethod())
-              .addMethod(getListProductsMethod())
-              .addMethod(getGetProductMethod())
-              .addMethod(getUpdateProductMethod())
-              .addMethod(getDeleteProductMethod())
-              .addMethod(getCreateReferenceImageMethod())
-              .addMethod(getDeleteReferenceImageMethod())
-              .addMethod(getListReferenceImagesMethod())
-              .addMethod(getGetReferenceImageMethod())
-              .addMethod(getAddProductToProductSetMethod())
-              .addMethod(getRemoveProductFromProductSetMethod())
-              .addMethod(getListProductsInProductSetMethod())
-              .addMethod(getImportProductSetsMethod())
-              .addMethod(getPurgeProductsMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ProductSearchFileDescriptorSupplier())
+                      .addMethod(getCreateProductSetMethod())
+                      .addMethod(getListProductSetsMethod())
+                      .addMethod(getGetProductSetMethod())
+                      .addMethod(getUpdateProductSetMethod())
+                      .addMethod(getDeleteProductSetMethod())
+                      .addMethod(getCreateProductMethod())
+                      .addMethod(getListProductsMethod())
+                      .addMethod(getGetProductMethod())
+                      .addMethod(getUpdateProductMethod())
+                      .addMethod(getDeleteProductMethod())
+                      .addMethod(getCreateReferenceImageMethod())
+                      .addMethod(getDeleteReferenceImageMethod())
+                      .addMethod(getListReferenceImagesMethod())
+                      .addMethod(getGetReferenceImageMethod())
+                      .addMethod(getAddProductToProductSetMethod())
+                      .addMethod(getRemoveProductFromProductSetMethod())
+                      .addMethod(getListProductsInProductSetMethod())
+                      .addMethod(getImportProductSetsMethod())
+                      .addMethod(getPurgeProductsMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java
deleted file mode 100644
index 3ccc82663..000000000
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/vision/v1/product_search_service.proto
-
-package com.google.cloud.vision.v1;
-
-public interface AddProductToProductSetRequestOrBuilder extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AddProductToProductSetRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   * 
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index 852ae7f4f..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteProductRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index 92d118085..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index 4c96122ea..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface DeleteReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java deleted file mode 100644 index 9e1474097..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public final class GeometryProto { - private GeometryProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/vision/v1/geometry.proto\022" + - "\026google.cloud.vision.v1\"\036\n\006Vertex\022\t\n\001x\030\001" + - " \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x" + - "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\207\001\n\014BoundingPoly\0220\n\010ve" + - "rtices\030\001 \003(\0132\036.google.cloud.vision.v1.Ve" + - "rtex\022E\n\023normalized_vertices\030\002 \003(\0132(.goog" + - "le.cloud.vision.v1.NormalizedVertex\"+\n\010P" + - "osition\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002" + - "Bu\n\032com.google.cloud.vision.v1B\rGeometry" + - "ProtoP\001Z - * Required. Resource name of the Product to get. - * Format is: - * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index ed3fd80de..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface GetProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index 6773f291f..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search_service.proto - -package com.google.cloud.vision.v1; - -public interface GetReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java deleted file mode 100644 index 9656bcb1e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java +++ /dev/null @@ -1,756 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/image_annotator.proto - -package com.google.cloud.vision.v1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LocationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_LatLongRect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ColorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1/image_annotator" + - ".proto\022\026google.cloud.vision.v1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032%" + - "google/cloud/vision/v1/geometry.proto\032+g" + - "oogle/cloud/vision/v1/product_search.pro" + - "to\032,google/cloud/vision/v1/text_annotati" + - "on.proto\032*google/cloud/vision/v1/web_det" + - "ection.proto\032#google/longrunning/operati" + - "ons.proto\032\037google/protobuf/timestamp.pro" + - "to\032\027google/rpc/status.proto\032\027google/type" + - "/color.proto\032\030google/type/latlng.proto\"\207" + - "\003\n\007Feature\0222\n\004type\030\001 \001(\0162$.google.cloud." + - "vision.v1.Feature.Type\022\023\n\013max_results\030\002 " + - "\001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSP" + - "ECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMAR" + - "K_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LAB" + - "EL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DO" + - "CUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_D" + - "ETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP" + - "_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PRODUCT_S" + - "EARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013Imag" + - "eSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_" + - "uri\030\002 \001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006s" + - "ource\030\002 \001(\0132#.google.cloud.vision.v1.Ima" + - "geSource\"\366\r\n\016FaceAnnotation\022;\n\rbounding_" + - "poly\030\001 \001(\0132$.google.cloud.vision.v1.Boun" + - "dingPoly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.goo" + - "gle.cloud.vision.v1.BoundingPoly\022B\n\tland" + - "marks\030\003 \003(\0132/.google.cloud.vision.v1.Fac" + - "eAnnotation.Landmark\022\022\n\nroll_angle\030\004 \001(\002" + - "\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022" + - "\034\n\024detection_confidence\030\007 \001(\002\022\036\n\026landmar" + - "king_confidence\030\010 \001(\002\022:\n\016joy_likelihood\030" + - "\t \001(\0162\".google.cloud.vision.v1.Likelihoo" + - "d\022=\n\021sorrow_likelihood\030\n \001(\0162\".google.cl" + - "oud.vision.v1.Likelihood\022<\n\020anger_likeli" + - "hood\030\013 \001(\0162\".google.cloud.vision.v1.Like" + - "lihood\022?\n\023surprise_likelihood\030\014 \001(\0162\".go" + - "ogle.cloud.vision.v1.Likelihood\022D\n\030under" + - "_exposed_likelihood\030\r \001(\0162\".google.cloud" + - ".vision.v1.Likelihood\022>\n\022blurred_likelih" + - "ood\030\016 \001(\0162\".google.cloud.vision.v1.Likel" + - "ihood\022?\n\023headwear_likelihood\030\017 \001(\0162\".goo" + - "gle.cloud.vision.v1.Likelihood\032\350\007\n\010Landm" + - "ark\022B\n\004type\030\003 \001(\01624.google.cloud.vision." + - "v1.FaceAnnotation.Landmark.Type\0222\n\010posit" + - "ion\030\004 \001(\0132 .google.cloud.vision.v1.Posit" + - "ion\"\343\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LE" + - "FT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_" + - "EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025" + - "LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGH" + - "T_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022\014" + - "\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LIP" + - "\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014M" + - "OUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020" + - "NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER" + - "\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EY" + - "E_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOUN" + - "DARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIGH" + - "T_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIGHT_" + - "CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY\020\027\022" + - "\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBR" + - "OW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPP" + - "ER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021R" + - "IGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023" + - "\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA" + - "\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONIO" + - "N\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\022\025\n\021LEFT_CHEEK" + - "_CENTER\020#\022\026\n\022RIGHT_CHEEK_CENTER\020$\"4\n\014Loc" + - "ationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type" + - ".LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\253\002\n\020Entit" + - "yAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t" + - "\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\n" + - "confidence\030\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002" + - "\022;\n\rbounding_poly\030\007 \001(\0132$.google.cloud.v" + - "ision.v1.BoundingPoly\0227\n\tlocations\030\010 \003(\013" + - "2$.google.cloud.vision.v1.LocationInfo\0224" + - "\n\nproperties\030\t \003(\0132 .google.cloud.vision" + - ".v1.Property\"\231\001\n\031LocalizedObjectAnnotati" + - "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + - "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022;\n\rbounding_" + - "poly\030\005 \001(\0132$.google.cloud.vision.v1.Boun" + - "dingPoly\"\231\002\n\024SafeSearchAnnotation\0221\n\005adu" + - "lt\030\001 \001(\0162\".google.cloud.vision.v1.Likeli" + - "hood\0221\n\005spoof\030\002 \001(\0162\".google.cloud.visio" + - "n.v1.Likelihood\0223\n\007medical\030\003 \001(\0162\".googl" + - "e.cloud.vision.v1.Likelihood\0224\n\010violence" + - "\030\004 \001(\0162\".google.cloud.vision.v1.Likeliho" + - "od\0220\n\004racy\030\t \001(\0162\".google.cloud.vision.v" + - "1.Likelihood\"a\n\013LatLongRect\022(\n\013min_lat_l" + - "ng\030\001 \001(\0132\023.google.type.LatLng\022(\n\013max_lat" + - "_lng\030\002 \001(\0132\023.google.type.LatLng\"U\n\tColor" + - "Info\022!\n\005color\030\001 \001(\0132\022.google.type.Color\022" + - "\r\n\005score\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"M" + - "\n\030DominantColorsAnnotation\0221\n\006colors\030\001 \003" + - "(\0132!.google.cloud.vision.v1.ColorInfo\"\\\n" + - "\017ImageProperties\022I\n\017dominant_colors\030\001 \001(" + - "\01320.google.cloud.vision.v1.DominantColor" + - "sAnnotation\"x\n\010CropHint\022;\n\rbounding_poly" + - "\030\001 \001(\0132$.google.cloud.vision.v1.Bounding" + - "Poly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importance_f" + - "raction\030\003 \001(\002\"K\n\023CropHintsAnnotation\0224\n\n" + - "crop_hints\030\001 \003(\0132 .google.cloud.vision.v" + - "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + - "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + - "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + - "Params\022.\n&enable_text_detection_confiden" + - "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + - " \003(\t\"\210\003\n\014ImageContext\022:\n\rlat_long_rect\030\001" + - " \001(\0132#.google.cloud.vision.v1.LatLongRec" + - "t\022\026\n\016language_hints\030\002 \003(\t\022B\n\021crop_hints_" + - "params\030\004 \001(\0132\'.google.cloud.vision.v1.Cr" + - "opHintsParams\022J\n\025product_search_params\030\005" + - " \001(\0132+.google.cloud.vision.v1.ProductSea" + - "rchParams\022H\n\024web_detection_params\030\006 \001(\0132" + - "*.google.cloud.vision.v1.WebDetectionPar" + - "ams\022J\n\025text_detection_params\030\014 \001(\0132+.goo" + - "gle.cloud.vision.v1.TextDetectionParams\"" + - "\264\001\n\024AnnotateImageRequest\022,\n\005image\030\001 \001(\0132" + - "\035.google.cloud.vision.v1.Image\0221\n\010featur" + - "es\030\002 \003(\0132\037.google.cloud.vision.v1.Featur" + - "e\022;\n\rimage_context\030\003 \001(\0132$.google.cloud." + - "vision.v1.ImageContext\":\n\026ImageAnnotatio" + - "nContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001" + - "(\005\"\344\007\n\025AnnotateImageResponse\022@\n\020face_ann" + - "otations\030\001 \003(\0132&.google.cloud.vision.v1." + - "FaceAnnotation\022F\n\024landmark_annotations\030\002" + - " \003(\0132(.google.cloud.vision.v1.EntityAnno" + - "tation\022B\n\020logo_annotations\030\003 \003(\0132(.googl" + - "e.cloud.vision.v1.EntityAnnotation\022C\n\021la" + - "bel_annotations\030\004 \003(\0132(.google.cloud.vis" + - "ion.v1.EntityAnnotation\022W\n\034localized_obj" + - "ect_annotations\030\026 \003(\01321.google.cloud.vis" + - "ion.v1.LocalizedObjectAnnotation\022B\n\020text" + - "_annotations\030\005 \003(\0132(.google.cloud.vision" + - ".v1.EntityAnnotation\022D\n\024full_text_annota" + - "tion\030\014 \001(\0132&.google.cloud.vision.v1.Text" + - "Annotation\022L\n\026safe_search_annotation\030\006 \001" + - "(\0132,.google.cloud.vision.v1.SafeSearchAn" + - "notation\022L\n\033image_properties_annotation\030" + - "\010 \001(\0132\'.google.cloud.vision.v1.ImageProp" + - "erties\022J\n\025crop_hints_annotation\030\013 \001(\0132+." + - "google.cloud.vision.v1.CropHintsAnnotati" + - "on\022;\n\rweb_detection\030\r \001(\0132$.google.cloud" + - ".vision.v1.WebDetection\022L\n\026product_searc" + - "h_results\030\016 \001(\0132,.google.cloud.vision.v1" + - ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + - "oogle.rpc.Status\022?\n\007context\030\025 \001(\0132..goog" + - "le.cloud.vision.v1.ImageAnnotationContex" + - "t\"q\n\032BatchAnnotateImagesRequest\022C\n\010reque" + - "sts\030\001 \003(\0132,.google.cloud.vision.v1.Annot" + - "ateImageRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n\033" + - "BatchAnnotateImagesResponse\022@\n\tresponses" + - "\030\001 \003(\0132-.google.cloud.vision.v1.Annotate" + - "ImageResponse\"\317\001\n\023AnnotateFileRequest\0229\n" + - "\014input_config\030\001 \001(\0132#.google.cloud.visio" + - "n.v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.goo" + - "gle.cloud.vision.v1.Feature\022;\n\rimage_con" + - "text\030\003 \001(\0132$.google.cloud.vision.v1.Imag" + - "eContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024AnnotateFile" + - "Response\0229\n\014input_config\030\001 \001(\0132#.google." + - "cloud.vision.v1.InputConfig\022@\n\tresponses" + - "\030\002 \003(\0132-.google.cloud.vision.v1.Annotate" + - "ImageResponse\022\023\n\013total_pages\030\003 \001(\005\022!\n\005er" + - "ror\030\004 \001(\0132\022.google.rpc.Status\"o\n\031BatchAn" + - "notateFilesRequest\022B\n\010requests\030\001 \003(\0132+.g" + - "oogle.cloud.vision.v1.AnnotateFileReques" + - "tB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032BatchAnnotateF" + - "ilesResponse\022?\n\tresponses\030\001 \003(\0132,.google" + - ".cloud.vision.v1.AnnotateFileResponse\"\202\002" + - "\n\030AsyncAnnotateFileRequest\0229\n\014input_conf" + - "ig\030\001 \001(\0132#.google.cloud.vision.v1.InputC" + - "onfig\0221\n\010features\030\002 \003(\0132\037.google.cloud.v" + - "ision.v1.Feature\022;\n\rimage_context\030\003 \001(\0132" + - "$.google.cloud.vision.v1.ImageContext\022;\n" + - "\routput_config\030\004 \001(\0132$.google.cloud.visi" + - "on.v1.OutputConfig\"X\n\031AsyncAnnotateFileR" + - "esponse\022;\n\routput_config\030\001 \001(\0132$.google." + - "cloud.vision.v1.OutputConfig\"\270\001\n\037AsyncBa" + - "tchAnnotateImagesRequest\022C\n\010requests\030\001 \003" + - "(\0132,.google.cloud.vision.v1.AnnotateImag" + - "eRequestB\003\340A\002\022@\n\routput_config\030\002 \001(\0132$.g" + - "oogle.cloud.vision.v1.OutputConfigB\003\340A\002\022" + - "\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchAnnotateIma" + - "gesResponse\022;\n\routput_config\030\001 \001(\0132$.goo" + - "gle.cloud.vision.v1.OutputConfig\"y\n\036Asyn" + - "cBatchAnnotateFilesRequest\022G\n\010requests\030\001" + - " \003(\01320.google.cloud.vision.v1.AsyncAnnot" + - "ateFileRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"g\n\037A" + - "syncBatchAnnotateFilesResponse\022D\n\trespon" + - "ses\030\001 \003(\01321.google.cloud.vision.v1.Async" + - "AnnotateFileResponse\"h\n\013InputConfig\0225\n\ng" + - "cs_source\030\001 \001(\0132!.google.cloud.vision.v1" + - ".GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n\tmime_type" + - "\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_destinatio" + - "n\030\001 \001(\0132&.google.cloud.vision.v1.GcsDest" + - "ination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGcsSource" + - "\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001" + - " \001(\t\"\210\002\n\021OperationMetadata\022>\n\005state\030\001 \001(" + - "\0162/.google.cloud.vision.v1.OperationMeta" + - "data.State\022/\n\013create_time\030\005 \001(\0132\032.google" + - ".protobuf.Timestamp\022/\n\013update_time\030\006 \001(\013" + - "2\032.google.protobuf.Timestamp\"Q\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUN" + - "NING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikel" + - "ihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n" + - "\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n" + - "\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnotator\022\223\002\n\023Ba" + - "tchAnnotateImages\0222.google.cloud.vision." + - "v1.BatchAnnotateImagesRequest\0323.google.c" + - "loud.vision.v1.BatchAnnotateImagesRespon" + - "se\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annotate:\001*Z8\"3" + - "/v1/{parent=projects/*/locations/*}/imag" + - "es:annotate:\001*Z,\"\'/v1/{parent=projects/*" + - "}/images:annotate:\001*\332A\010requests\022\214\002\n\022Batc" + - "hAnnotateFiles\0221.google.cloud.vision.v1." + - "BatchAnnotateFilesRequest\0322.google.cloud" + - ".vision.v1.BatchAnnotateFilesResponse\"\216\001" + - "\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z7\"2/v1/{pa" + - "rent=projects/*/locations/*}/files:annot" + - "ate:\001*Z+\"&/v1/{parent=projects/*}/files:" + - "annotate:\001*\332A\010requests\022\353\002\n\030AsyncBatchAnn" + - "otateImages\0227.google.cloud.vision.v1.Asy" + - "ncBatchAnnotateImagesRequest\032\035.google.lo" + - "ngrunning.Operation\"\366\001\202\323\344\223\002\236\001\"\035/v1/image" + - "s:asyncBatchAnnotate:\001*ZB\"=/v1/{parent=p" + - "rojects/*/locations/*}/images:asyncBatch" + - "Annotate:\001*Z6\"1/v1/{parent=projects/*}/i" + - "mages:asyncBatchAnnotate:\001*\332A\026requests,o" + - "utput_config\312A5\n AsyncBatchAnnotateImage" + - "sResponse\022\021OperationMetadata\022\327\002\n\027AsyncBa" + - "tchAnnotateFiles\0226.google.cloud.vision.v" + - "1.AsyncBatchAnnotateFilesRequest\032\035.googl" + - "e.longrunning.Operation\"\344\001\202\323\344\223\002\233\001\"\034/v1/f" + - "iles:asyncBatchAnnotate:\001*ZA\" - * Required. The project in which the ProductSets should be imported. - * Format is `projects/PROJECT_ID/locations/LOC_ID`. - *
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The inputConfig. - */ - com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 048d88048..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public interface NormalizedVertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java deleted file mode 100644 index bac632247..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/geometry.proto - -package com.google.cloud.vision.v1; - -public interface PositionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Position) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); - - /** - *
-   * Z coordinate (or depth).
-   * 
- * - * float z = 3; - * @return The z. - */ - float getZ(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java deleted file mode 100644 index 6fc2214c3..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/product_search.proto - -package com.google.cloud.vision.v1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/vision/v1/product_search." + - "proto\022\026google.cloud.vision.v1\032\031google/ap" + - "i/resource.proto\032%google/cloud/vision/v1" + - "/geometry.proto\0323google/cloud/vision/v1/" + - "product_search_service.proto\032\037google/pro" + - "tobuf/timestamp.proto\"\272\001\n\023ProductSearchP" + - "arams\022;\n\rbounding_poly\030\t \001(\0132$.google.cl" + - "oud.vision.v1.BoundingPoly\022:\n\013product_se" + - "t\030\006 \001(\tB%\372A\"\n vision.googleapis.com/Prod" + - "uctSet\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006fi" + - "lter\030\010 \001(\t\"\210\005\n\024ProductSearchResults\022.\n\ni" + - "ndex_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "amp\022D\n\007results\030\005 \003(\01323.google.cloud.visi" + - "on.v1.ProductSearchResults.Result\022[\n\027pro" + - "duct_grouped_results\030\006 \003(\0132:.google.clou" + - "d.vision.v1.ProductSearchResults.Grouped" + - "Result\032X\n\006Result\0220\n\007product\030\001 \001(\0132\037.goog" + - "le.cloud.vision.v1.Product\022\r\n\005score\030\002 \001(" + - "\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotation\022\013\n\003" + - "mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name" + - "\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\355\001\n\rGroupedResult\022" + - ";\n\rbounding_poly\030\001 \001(\0132$.google.cloud.vi" + - "sion.v1.BoundingPoly\022D\n\007results\030\002 \003(\01323." + - "google.cloud.vision.v1.ProductSearchResu" + - "lts.Result\022Y\n\022object_annotations\030\003 \003(\0132=" + - ".google.cloud.vision.v1.ProductSearchRes" + - "ults.ObjectAnnotationBz\n\032com.google.clou" + - "d.vision.v1B\022ProductSearchProtoP\001Z\"//v1/{parent=proj" + - "ects/*/locations/*}/productSets:\013product" + - "_set\332A!parent,product_set,product_set_id" + - "\022\264\001\n\017ListProductSets\022..google.cloud.visi" + - "on.v1.ListProductSetsRequest\032/.google.cl" + - "oud.vision.v1.ListProductSetsResponse\"@\202" + - "\323\344\223\0021\022//v1/{parent=projects/*/locations/" + - "*}/productSets\332A\006parent\022\241\001\n\rGetProductSe" + - "t\022,.google.cloud.vision.v1.GetProductSet" + - "Request\032\".google.cloud.vision.v1.Product" + - "Set\">\202\323\344\223\0021\022//v1/{name=projects/*/locati" + - "ons/*/productSets/*}\332A\004name\022\323\001\n\020UpdatePr" + - "oductSet\022/.google.cloud.vision.v1.Update" + - "ProductSetRequest\032\".google.cloud.vision." + - "v1.ProductSet\"j\202\323\344\223\002J2;/v1/{product_set." + - "name=projects/*/locations/*/productSets/" + - "*}:\013product_set\332A\027product_set,update_mas" + - "k\022\233\001\n\020DeleteProductSet\022/.google.cloud.vi" + - "sion.v1.DeleteProductSetRequest\032\026.google" + - ".protobuf.Empty\">\202\323\344\223\0021*//v1/{name=proje" + - "cts/*/locations/*/productSets/*}\332A\004name\022" + - "\271\001\n\rCreateProduct\022,.google.cloud.vision." + - "v1.CreateProductRequest\032\037.google.cloud.v" + - "ision.v1.Product\"Y\202\323\344\223\0027\",/v1/{parent=pr" + - "ojects/*/locations/*}/products:\007product\332" + - "A\031parent,product,product_id\022\250\001\n\014ListProd" + - "ucts\022+.google.cloud.vision.v1.ListProduc" + - "tsRequest\032,.google.cloud.vision.v1.ListP" + - "roductsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pro" + - "jects/*/locations/*}/products\332A\006parent\022\225" + - "\001\n\nGetProduct\022).google.cloud.vision.v1.G" + - "etProductRequest\032\037.google.cloud.vision.v" + - "1.Product\";\202\323\344\223\002.\022,/v1/{name=projects/*/" + - "locations/*/products/*}\332A\004name\022\273\001\n\rUpdat" + - "eProduct\022,.google.cloud.vision.v1.Update" + - "ProductRequest\032\037.google.cloud.vision.v1." + - "Product\"[\202\323\344\223\002?24/v1/{product.name=proje" + - "cts/*/locations/*/products/*}:\007product\332A" + - "\023product,update_mask\022\222\001\n\rDeleteProduct\022," + - ".google.cloud.vision.v1.DeleteProductReq" + - "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + - "1/{name=projects/*/locations/*/products/" + - "*}\332A\004name\022\371\001\n\024CreateReferenceImage\0223.goo" + - "gle.cloud.vision.v1.CreateReferenceImage" + - "Request\032&.google.cloud.vision.v1.Referen" + - "ceImage\"\203\001\202\323\344\223\002Q\">/v1/{parent=projects/*" + - "/locations/*/products/*}/referenceImages" + - ":\017reference_image\332A)parent,reference_ima" + - "ge,reference_image_id\022\262\001\n\024DeleteReferenc" + - "eImage\0223.google.cloud.vision.v1.DeleteRe" + - "ferenceImageRequest\032\026.google.protobuf.Em" + - "pty\"M\202\323\344\223\002@*>/v1/{name=projects/*/locati" + - "ons/*/products/*/referenceImages/*}\332A\004na" + - "me\022\317\001\n\023ListReferenceImages\0222.google.clou" + - "d.vision.v1.ListReferenceImagesRequest\0323" + - ".google.cloud.vision.v1.ListReferenceIma" + - "gesResponse\"O\202\323\344\223\002@\022>/v1/{parent=project" + - "s/*/locations/*/products/*}/referenceIma" + - "ges\332A\006parent\022\274\001\n\021GetReferenceImage\0220.goo" + - "gle.cloud.vision.v1.GetReferenceImageReq" + - "uest\032&.google.cloud.vision.v1.ReferenceI" + - "mage\"M\202\323\344\223\002@\022>/v1/{name=projects/*/locat" + - "ions/*/products/*/referenceImages/*}\332A\004n" + - "ame\022\275\001\n\026AddProductToProductSet\0225.google." + - "cloud.vision.v1.AddProductToProductSetRe" + - "quest\032\026.google.protobuf.Empty\"T\202\323\344\223\002?\":/" + - "v1/{name=projects/*/locations/*/productS" + - "ets/*}:addProduct:\001*\332A\014name,product\022\312\001\n\033" + - "RemoveProductFromProductSet\022:.google.clo" + - "ud.vision.v1.RemoveProductFromProductSet" + - "Request\032\026.google.protobuf.Empty\"W\202\323\344\223\002B\"" + - "=/v1/{name=projects/*/locations/*/produc" + - "tSets/*}:removeProduct:\001*\332A\014name,product" + - "\022\326\001\n\030ListProductsInProductSet\0227.google.c" + - "loud.vision.v1.ListProductsInProductSetR" + - "equest\0328.google.cloud.vision.v1.ListProd" + - "uctsInProductSetResponse\"G\202\323\344\223\002:\0228/v1/{n" + - "ame=projects/*/locations/*/productSets/*" + - "}/products\332A\004name\022\364\001\n\021ImportProductSets\022" + - "0.google.cloud.vision.v1.ImportProductSe" + - "tsRequest\032\035.google.longrunning.Operation" + - "\"\215\001\202\323\344\223\002;\"6/v1/{parent=projects/*/locati" + - "ons/*}/productSets:import:\001*\332A\023parent,in" + - "put_config\312A3\n\031ImportProductSetsResponse" + - "\022\026BatchOperationMetadata\022\326\001\n\rPurgeProduc" + - "ts\022,.google.cloud.vision.v1.PurgeProduct" + - "sRequest\032\035.google.longrunning.Operation\"" + - "x\202\323\344\223\0027\"2/v1/{parent=projects/*/location" + - "s/*}/products:purge:\001*\332A\006parent\312A/\n\025goog" + - "le.protobuf.Empty\022\026BatchOperationMetadat" + - "a\032v\312A\025vision.googleapis.com\322A[https://ww" + - "w.googleapis.com/auth/cloud-platform,htt" + - "ps://www.googleapis.com/auth/cloud-visio" + - "nB\201\001\n\032com.google.cloud.vision.v1B\031Produc" + - "tSearchServiceProtoP\001Z - * Required. The resource name for the ProductSet to modify. - * Format is: - * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java deleted file mode 100644 index 5a8c2333e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/text_annotation.proto - -package com.google.cloud.vision.v1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Paragraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Word_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_Symbol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1/text_annotation" + - ".proto\022\026google.cloud.vision.v1\032%google/c" + - "loud/vision/v1/geometry.proto\"\226\004\n\016TextAn" + - "notation\022+\n\005pages\030\001 \003(\0132\034.google.cloud.v" + - "ision.v1.Page\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedL" + - "anguage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfid" + - "ence\030\002 \001(\002\032\325\001\n\rDetectedBreak\022L\n\004type\030\001 \001" + - "(\0162>.google.cloud.vision.v1.TextAnnotati" + - "on.DetectedBreak.BreakType\022\021\n\tis_prefix\030" + - "\002 \001(\010\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE" + - "\020\001\022\016\n\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n" + - "\n\006HYPHEN\020\004\022\016\n\nLINE_BREAK\020\005\032\261\001\n\014TextPrope" + - "rty\022S\n\022detected_languages\030\001 \003(\01327.google" + - ".cloud.vision.v1.TextAnnotation.Detected" + - "Language\022L\n\016detected_break\030\002 \001(\01324.googl" + - "e.cloud.vision.v1.TextAnnotation.Detecte" + - "dBreak\"\257\001\n\004Page\022E\n\010property\030\001 \001(\01323.goog" + - "le.cloud.vision.v1.TextAnnotation.TextPr" + - "operty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022-\n" + - "\006blocks\030\004 \003(\0132\035.google.cloud.vision.v1.B" + - "lock\022\022\n\nconfidence\030\005 \001(\002\"\346\002\n\005Block\022E\n\010pr" + - "operty\030\001 \001(\01323.google.cloud.vision.v1.Te" + - "xtAnnotation.TextProperty\022:\n\014bounding_bo" + - "x\030\002 \001(\0132$.google.cloud.vision.v1.Boundin" + - "gPoly\0225\n\nparagraphs\030\003 \003(\0132!.google.cloud" + - ".vision.v1.Paragraph\022;\n\nblock_type\030\004 \001(\016" + - "2\'.google.cloud.vision.v1.Block.BlockTyp" + - "e\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007UN" + - "KNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE\020" + - "\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\317\001\n\tParagraph\022" + - "E\n\010property\030\001 \001(\01323.google.cloud.vision." + - "v1.TextAnnotation.TextProperty\022:\n\014boundi" + - "ng_box\030\002 \001(\0132$.google.cloud.vision.v1.Bo" + - "undingPoly\022+\n\005words\030\003 \003(\0132\034.google.cloud" + - ".vision.v1.Word\022\022\n\nconfidence\030\004 \001(\002\"\316\001\n\004" + - "Word\022E\n\010property\030\001 \001(\01323.google.cloud.vi" + - "sion.v1.TextAnnotation.TextProperty\022:\n\014b" + - "ounding_box\030\002 \001(\0132$.google.cloud.vision." + - "v1.BoundingPoly\022/\n\007symbols\030\003 \003(\0132\036.googl" + - "e.cloud.vision.v1.Symbol\022\022\n\nconfidence\030\004" + - " \001(\002\"\255\001\n\006Symbol\022E\n\010property\030\001 \001(\01323.goog" + - "le.cloud.vision.v1.TextAnnotation.TextPr" + - "operty\022:\n\014bounding_box\030\002 \001(\0132$.google.cl" + - "oud.vision.v1.BoundingPoly\022\014\n\004text\030\003 \001(\t" + - "\022\022\n\nconfidence\030\004 \001(\002B{\n\032com.google.cloud" + - ".vision.v1B\023TextAnnotationProtoP\001Z - * X coordinate. - *
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index f2f408b1c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/image_annotator.proto - -package com.google.cloud.vision.v1; - -public interface WebDetectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java b/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java deleted file mode 100644 index 088cb3823..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1/web_detection.proto - -package com.google.cloud.vision.v1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vision/v1/web_detection.p" + - "roto\022\026google.cloud.vision.v1\"\324\006\n\014WebDete" + - "ction\022D\n\014web_entities\030\001 \003(\0132..google.clo" + - "ud.vision.v1.WebDetection.WebEntity\022K\n\024f" + - "ull_matching_images\030\002 \003(\0132-.google.cloud" + - ".vision.v1.WebDetection.WebImage\022N\n\027part" + - "ial_matching_images\030\003 \003(\0132-.google.cloud" + - ".vision.v1.WebDetection.WebImage\022P\n\032page" + - "s_with_matching_images\030\004 \003(\0132,.google.cl" + - "oud.vision.v1.WebDetection.WebPage\022N\n\027vi" + - "sually_similar_images\030\006 \003(\0132-.google.clo" + - "ud.vision.v1.WebDetection.WebImage\022H\n\021be" + - "st_guess_labels\030\010 \003(\0132-.google.cloud.vis" + - "ion.v1.WebDetection.WebLabel\032B\n\tWebEntit" + - "y\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\023\n\013d" + - "escription\030\003 \001(\t\032&\n\010WebImage\022\013\n\003url\030\001 \001(" + - "\t\022\r\n\005score\030\002 \001(\002\032\326\001\n\007WebPage\022\013\n\003url\030\001 \001(" + - "\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001(\t\022K\n\024" + - "full_matching_images\030\004 \003(\0132-.google.clou" + - "d.vision.v1.WebDetection.WebImage\022N\n\027par" + - "tial_matching_images\030\005 \003(\0132-.google.clou" + - "d.vision.v1.WebDetection.WebImage\0320\n\010Web" + - "Label\022\r\n\005label\030\001 \001(\t\022\025\n\rlanguage_code\030\002 " + - "\001(\tBy\n\032com.google.cloud.vision.v1B\021WebDe" + - "tectionProtoP\001Z - * Required. Individual image annotation requests for this batch. - *
- * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java deleted file mode 100644 index 938eae0de..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/geometry.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class GeometryProto { - private GeometryProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p1beta1/geometry" + - ".proto\022\035google.cloud.vision.v1p1beta1\"\036\n" + - "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"G\n\014Boundin" + - "gPoly\0227\n\010vertices\030\001 \003(\0132%.google.cloud.v" + - "ision.v1p1beta1.Vertex\"+\n\010Position\022\t\n\001x\030" + - "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.googl" + - "e.cloud.vision.v1p1beta1B\rGeometryProtoP" + - "\001ZCgoogle.golang.org/genproto/googleapis" + - "/cloud/vision/v1p1beta1;vision\370\001\001b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor, - new java.lang.String[] { "Vertices", }); - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Position_descriptor, - new java.lang.String[] { "X", "Y", "Z", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java deleted file mode 100644 index d918478ec..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,475 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/image_annotator.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p1beta1/image_an" + - "notator.proto\022\035google.cloud.vision.v1p1b" + - "eta1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032,google/cloud/vision/v1p1be" + - "ta1/geometry.proto\0323google/cloud/vision/" + - "v1p1beta1/text_annotation.proto\0321google/" + - "cloud/vision/v1p1beta1/web_detection.pro" + - "to\032\027google/rpc/status.proto\032\027google/type" + - "/color.proto\032\030google/type/latlng.proto\"\341" + - "\002\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud." + - "vision.v1p1beta1.Feature.Type\022\023\n\013max_res" + - "ults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TY" + - "PE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022" + - "LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003" + - "\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020" + - "\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_S" + - "EARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022" + - "\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013Im" + - "ageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timag" + - "e_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n" + - "\006source\030\002 \001(\0132*.google.cloud.vision.v1p1" + - "beta1.ImageSource\"\233\016\n\016FaceAnnotation\022B\n\r" + - "bounding_poly\030\001 \001(\0132+.google.cloud.visio" + - "n.v1p1beta1.BoundingPoly\022E\n\020fd_bounding_" + - "poly\030\002 \001(\0132+.google.cloud.vision.v1p1bet" + - "a1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326.goo" + - "gle.cloud.vision.v1p1beta1.FaceAnnotatio" + - "n.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_an" + - "gle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detecti" + - "on_confidence\030\007 \001(\002\022\036\n\026landmarking_confi" + - "dence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162).go" + - "ogle.cloud.vision.v1p1beta1.Likelihood\022D" + - "\n\021sorrow_likelihood\030\n \001(\0162).google.cloud" + - ".vision.v1p1beta1.Likelihood\022C\n\020anger_li" + - "kelihood\030\013 \001(\0162).google.cloud.vision.v1p" + - "1beta1.Likelihood\022F\n\023surprise_likelihood" + - "\030\014 \001(\0162).google.cloud.vision.v1p1beta1.L" + - "ikelihood\022K\n\030under_exposed_likelihood\030\r " + - "\001(\0162).google.cloud.vision.v1p1beta1.Like" + - "lihood\022E\n\022blurred_likelihood\030\016 \001(\0162).goo" + - "gle.cloud.vision.v1p1beta1.Likelihood\022F\n" + - "\023headwear_likelihood\030\017 \001(\0162).google.clou" + - "d.vision.v1p1beta1.Likelihood\032\307\007\n\010Landma" + - "rk\022I\n\004type\030\003 \001(\0162;.google.cloud.vision.v" + - "1p1beta1.FaceAnnotation.Landmark.Type\0229\n" + - "\010position\030\004 \001(\0132\'.google.cloud.vision.v1" + - "p1beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOWN_LAN" + - "DMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024" + - "LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_" + - "EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026" + - "RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BET" + - "WEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t" + - "\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH" + - "_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTO" + - "M_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_" + - "BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY" + - "\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EY" + - "E_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_COR" + - "NER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIG" + - "HT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTO" + - "M_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022" + - "\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGH" + - "T_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_T" + - "RAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_" + - "EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FORE" + - "HEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CH" + - "IN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"" + - "4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.googl" + - "e.type.LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n" + - "\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale" + - "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001" + - "(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001" + - "(\002\022B\n\rbounding_poly\030\007 \001(\0132+.google.cloud" + - ".vision.v1p1beta1.BoundingPoly\022>\n\tlocati" + - "ons\030\010 \003(\0132+.google.cloud.vision.v1p1beta" + - "1.LocationInfo\022;\n\nproperties\030\t \003(\0132\'.goo" + - "gle.cloud.vision.v1p1beta1.Property\"\274\002\n\024" + - "SafeSearchAnnotation\0228\n\005adult\030\001 \001(\0162).go" + - "ogle.cloud.vision.v1p1beta1.Likelihood\0228" + - "\n\005spoof\030\002 \001(\0162).google.cloud.vision.v1p1" + - "beta1.Likelihood\022:\n\007medical\030\003 \001(\0162).goog" + - "le.cloud.vision.v1p1beta1.Likelihood\022;\n\010" + - "violence\030\004 \001(\0162).google.cloud.vision.v1p" + - "1beta1.Likelihood\0227\n\004racy\030\t \001(\0162).google" + - ".cloud.vision.v1p1beta1.Likelihood\"a\n\013La" + - "tLongRect\022(\n\013min_lat_lng\030\001 \001(\0132\023.google." + - "type.LatLng\022(\n\013max_lat_lng\030\002 \001(\0132\023.googl" + - "e.type.LatLng\"U\n\tColorInfo\022!\n\005color\030\001 \001(" + - "\0132\022.google.type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016" + - "pixel_fraction\030\003 \001(\002\"T\n\030DominantColorsAn" + - "notation\0228\n\006colors\030\001 \003(\0132(.google.cloud." + - "vision.v1p1beta1.ColorInfo\"c\n\017ImagePrope" + - "rties\022P\n\017dominant_colors\030\001 \001(\01327.google." + - "cloud.vision.v1p1beta1.DominantColorsAnn" + - "otation\"\177\n\010CropHint\022B\n\rbounding_poly\030\001 \001" + - "(\0132+.google.cloud.vision.v1p1beta1.Bound" + - "ingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importanc" + - "e_fraction\030\003 \001(\002\"R\n\023CropHintsAnnotation\022" + - ";\n\ncrop_hints\030\001 \003(\0132\'.google.cloud.visio" + - "n.v1p1beta1.CropHint\"(\n\017CropHintsParams\022" + - "\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebDetectionPa" + - "rams\022\033\n\023include_geo_results\030\002 \001(\010\"c\n\023Tex" + - "tDetectionParams\022.\n&enable_text_detectio" + - "n_confidence_score\030\t \001(\010\022\034\n\024advanced_ocr" + - "_options\030\013 \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_l" + - "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p" + - "1beta1.LatLongRect\022\026\n\016language_hints\030\002 \003" + - "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c" + - "loud.vision.v1p1beta1.CropHintsParams\022O\n" + - "\024web_detection_params\030\006 \001(\01321.google.clo" + - "ud.vision.v1p1beta1.WebDetectionParams\022Q" + - "\n\025text_detection_params\030\014 \001(\01322.google.c" + - "loud.vision.v1p1beta1.TextDetectionParam" + - "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001(" + - "\0132$.google.cloud.vision.v1p1beta1.Image\022" + - "8\n\010features\030\002 \003(\0132&.google.cloud.vision." + - "v1p1beta1.Feature\022B\n\rimage_context\030\003 \001(\013" + - "2+.google.cloud.vision.v1p1beta1.ImageCo" + - "ntext\"\302\006\n\025AnnotateImageResponse\022G\n\020face_" + - "annotations\030\001 \003(\0132-.google.cloud.vision." + - "v1p1beta1.FaceAnnotation\022M\n\024landmark_ann" + - "otations\030\002 \003(\0132/.google.cloud.vision.v1p" + - "1beta1.EntityAnnotation\022I\n\020logo_annotati" + - "ons\030\003 \003(\0132/.google.cloud.vision.v1p1beta" + - "1.EntityAnnotation\022J\n\021label_annotations\030" + - "\004 \003(\0132/.google.cloud.vision.v1p1beta1.En" + - "tityAnnotation\022I\n\020text_annotations\030\005 \003(\013" + - "2/.google.cloud.vision.v1p1beta1.EntityA" + - "nnotation\022K\n\024full_text_annotation\030\014 \001(\0132" + - "-.google.cloud.vision.v1p1beta1.TextAnno" + - "tation\022S\n\026safe_search_annotation\030\006 \001(\01323" + - ".google.cloud.vision.v1p1beta1.SafeSearc" + - "hAnnotation\022S\n\033image_properties_annotati" + - "on\030\010 \001(\0132..google.cloud.vision.v1p1beta1" + - ".ImageProperties\022Q\n\025crop_hints_annotatio" + - "n\030\013 \001(\01322.google.cloud.vision.v1p1beta1." + - "CropHintsAnnotation\022B\n\rweb_detection\030\r \001" + - "(\0132+.google.cloud.vision.v1p1beta1.WebDe" + - "tection\022!\n\005error\030\t \001(\0132\022.google.rpc.Stat" + - "us\"h\n\032BatchAnnotateImagesRequest\022J\n\010requ" + - "ests\030\001 \003(\01323.google.cloud.vision.v1p1bet" + - "a1.AnnotateImageRequestB\003\340A\002\"f\n\033BatchAnn" + - "otateImagesResponse\022G\n\tresponses\030\001 \003(\01324" + - ".google.cloud.vision.v1p1beta1.AnnotateI" + - "mageResponse*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022" + - "\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSS" + - "IBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\311\002\n\016" + - "ImageAnnotator\022\276\001\n\023BatchAnnotateImages\0229" + - ".google.cloud.vision.v1p1beta1.BatchAnno" + - "tateImagesRequest\032:.google.cloud.vision." + - "v1p1beta1.BatchAnnotateImagesResponse\"0\202" + - "\323\344\223\002\037\"\032/v1p1beta1/images:annotate:\001*\332A\010r" + - "equests\032v\312A\025vision.googleapis.com\322A[http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rm,https://www.googleapis.com/auth/cloud" + - "-visionB\202\001\n!com.google.cloud.vision.v1p1" + - "beta1B\023ImageAnnotatorProtoP\001ZCgoogle.gol" + - "ang.org/genproto/googleapis/cloud/vision" + - "/v1p1beta1;vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor, - new java.lang.String[] { "Type", "MaxResults", "Model", }); - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor, - new java.lang.String[] { "GcsImageUri", "ImageUri", }); - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Image_descriptor, - new java.lang.String[] { "Content", "Source", }); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor, - new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", }); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { "Type", "Position", }); - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor, - new java.lang.String[] { "LatLng", }); - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Property_descriptor, - new java.lang.String[] { "Name", "Value", "Uint64Value", }); - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor, - new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor, - new java.lang.String[] { "MinLatLng", "MaxLatLng", }); - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor, - new java.lang.String[] { "Color", "Score", "PixelFraction", }); - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { "Colors", }); - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor, - new java.lang.String[] { "DominantColors", }); - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor, - new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { "CropHints", }); - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor, - new java.lang.String[] { "AspectRatios", }); - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor, - new java.lang.String[] { "IncludeGeoResults", }); - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor, - new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor, - new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "WebDetectionParams", "TextDetectionParams", }); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { "Image", "Features", "ImageContext", }); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "Error", }); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { "Responses", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java deleted file mode 100644 index 1889c4718..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/text_annotation.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p1beta1/text_ann" + - "otation.proto\022\035google.cloud.vision.v1p1b" + - "eta1\032\034google/api/annotations.proto\032,goog" + - "le/cloud/vision/v1p1beta1/geometry.proto" + - "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + - "gle.cloud.vision.v1p1beta1.Page\022\014\n\004text\030" + - "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + - "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + - "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + - "on.v1p1beta1.TextAnnotation.DetectedBrea" + - "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + - "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + - "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + - "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + - "_languages\030\001 \003(\0132>.google.cloud.vision.v" + - "1p1beta1.TextAnnotation.DetectedLanguage" + - "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + - "vision.v1p1beta1.TextAnnotation.Detected" + - "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + - "e.cloud.vision.v1p1beta1.TextAnnotation." + - "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + - "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + - "n.v1p1beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + - "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + - ".vision.v1p1beta1.TextAnnotation.TextPro" + - "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + - "ud.vision.v1p1beta1.BoundingPoly\022<\n\npara" + - "graphs\030\003 \003(\0132(.google.cloud.vision.v1p1b" + - "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + - "gle.cloud.vision.v1p1beta1.Block.BlockTy" + - "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + - "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + - "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + - "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + - ".v1p1beta1.TextAnnotation.TextProperty\022A" + - "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + - "on.v1p1beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + - "2#.google.cloud.vision.v1p1beta1.Word\022\022\n" + - "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + - " \001(\0132:.google.cloud.vision.v1p1beta1.Tex" + - "tAnnotation.TextProperty\022A\n\014bounding_box" + - "\030\002 \001(\0132+.google.cloud.vision.v1p1beta1.B" + - "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + - "oud.vision.v1p1beta1.Symbol\022\022\n\nconfidenc" + - "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + - "oogle.cloud.vision.v1p1beta1.TextAnnotat" + - "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + - ".google.cloud.vision.v1p1beta1.BoundingP" + - "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + - "\n!com.google.cloud.vision.v1p1beta1B\023Tex" + - "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + - "nproto/googleapis/cloud/vision/v1p1beta1" + - ";vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor, - new java.lang.String[] { "Pages", "Text", }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { "Type", "IsPrefix", }); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Page_descriptor, - new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Block_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Word_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java deleted file mode 100644 index 555ae1538..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/geometry.proto - -package com.google.cloud.vision.v1p1beta1; - -public interface VertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index f0d59fa3e..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/image_annotator.proto - -package com.google.cloud.vision.v1p1beta1; - -public interface WebDetectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java deleted file mode 100644 index e539c00fe..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p1beta1/web_detection.proto - -package com.google.cloud.vision.v1p1beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p1beta1/web_dete" + - "ction.proto\022\035google.cloud.vision.v1p1bet" + - "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + - "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + - ".cloud.vision.v1p1beta1.WebDetection.Web" + - "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + - "oogle.cloud.vision.v1p1beta1.WebDetectio" + - "n.WebImage\022U\n\027partial_matching_images\030\003 " + - "\003(\01324.google.cloud.vision.v1p1beta1.WebD" + - "etection.WebImage\022W\n\032pages_with_matching" + - "_images\030\004 \003(\01323.google.cloud.vision.v1p1" + - "beta1.WebDetection.WebPage\022U\n\027visually_s" + - "imilar_images\030\006 \003(\01324.google.cloud.visio" + - "n.v1p1beta1.WebDetection.WebImage\022O\n\021bes" + - "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + - "on.v1p1beta1.WebDetection.WebLabel\032B\n\tWe" + - "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + - "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + - "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + - "e.cloud.vision.v1p1beta1.WebDetection.We" + - "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + - "4.google.cloud.vision.v1p1beta1.WebDetec" + - "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + - "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + - "loud.vision.v1p1beta1B\021WebDetectionProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/cloud/vision/v1p1beta1;vision\370\001\001b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor, - new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { "EntityId", "Score", "Description", }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { "Url", "Score", }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index f2aa927ea..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index b068595ed..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface BatchAnnotateImagesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java deleted file mode 100644 index 7a71f64d4..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class GeometryProto { - private GeometryProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p2beta1/geometry" + - ".proto\022\035google.cloud.vision.v1p2beta1\"\036\n" + - "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + - "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + - "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + - "d.vision.v1p2beta1.Vertex\022L\n\023normalized_" + - "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + - "2beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + - "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.goog" + - "le.cloud.vision.v1p2beta1B\rGeometryProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor, - new java.lang.String[] { "Vertices", "NormalizedVertices", }); - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Position_descriptor, - new java.lang.String[] { "X", "Y", "Z", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java deleted file mode 100644 index 802ad3341..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p2beta1/image_an" + - "notator.proto\022\035google.cloud.vision.v1p2b" + - "eta1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032,google/cloud/vision/v1p2be" + - "ta1/geometry.proto\0323google/cloud/vision/" + - "v1p2beta1/text_annotation.proto\0321google/" + - "cloud/vision/v1p2beta1/web_detection.pro" + - "to\032#google/longrunning/operations.proto\032" + - "\037google/protobuf/timestamp.proto\032\027google" + - "/rpc/status.proto\032\027google/type/color.pro" + - "to\032\030google/type/latlng.proto\"\341\002\n\007Feature" + - "\0229\n\004type\030\001 \001(\0162+.google.cloud.vision.v1p" + - "2beta1.Feature.Type\022\023\n\013max_results\030\002 \001(\005" + - "\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TYPE_UNSPECI" + - "FIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMARK_D" + - "ETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_" + - "DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUM" + - "ENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_DETE" + - "CTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP_HI" + - "NTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013ImageSource\022" + - "\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 \001(" + - "\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n\006source\030\002 " + - "\001(\0132*.google.cloud.vision.v1p2beta1.Imag" + - "eSource\"\233\016\n\016FaceAnnotation\022B\n\rbounding_p" + - "oly\030\001 \001(\0132+.google.cloud.vision.v1p2beta" + - "1.BoundingPoly\022E\n\020fd_bounding_poly\030\002 \001(\013" + - "2+.google.cloud.vision.v1p2beta1.Boundin" + - "gPoly\022I\n\tlandmarks\030\003 \003(\01326.google.cloud." + - "vision.v1p2beta1.FaceAnnotation.Landmark" + - "\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_angle\030\005 \001(\002\022" + - "\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detection_confide" + - "nce\030\007 \001(\002\022\036\n\026landmarking_confidence\030\010 \001(" + - "\002\022A\n\016joy_likelihood\030\t \001(\0162).google.cloud" + - ".vision.v1p2beta1.Likelihood\022D\n\021sorrow_l" + - "ikelihood\030\n \001(\0162).google.cloud.vision.v1" + - "p2beta1.Likelihood\022C\n\020anger_likelihood\030\013" + - " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + - "elihood\022F\n\023surprise_likelihood\030\014 \001(\0162).g" + - "oogle.cloud.vision.v1p2beta1.Likelihood\022" + - "K\n\030under_exposed_likelihood\030\r \001(\0162).goog" + - "le.cloud.vision.v1p2beta1.Likelihood\022E\n\022" + - "blurred_likelihood\030\016 \001(\0162).google.cloud." + - "vision.v1p2beta1.Likelihood\022F\n\023headwear_" + - "likelihood\030\017 \001(\0162).google.cloud.vision.v" + - "1p2beta1.Likelihood\032\307\007\n\010Landmark\022I\n\004type" + - "\030\003 \001(\0162;.google.cloud.vision.v1p2beta1.F" + - "aceAnnotation.Landmark.Type\0229\n\010position\030" + - "\004 \001(\0132\'.google.cloud.vision.v1p2beta1.Po" + - "sition\"\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n" + - "\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LE" + - "FT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022" + - "\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_R" + - "IGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020" + - "\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_" + - "LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020" + - "\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022" + - "\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CEN" + - "TER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT" + - "_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_B" + - "OUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026R" + - "IGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIG" + - "HT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY" + - "\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EY" + - "EBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_" + - "UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025" + - "\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020" + - "\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABE" + - "LLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GO" + - "NION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014Locatio" + - "nInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type.Lat" + - "Lng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n\020EntityAnn" + - "otation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013" + - "description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\022\n\nconf" + - "idence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001(\002\022B\n\rboun" + - "ding_poly\030\007 \001(\0132+.google.cloud.vision.v1" + - "p2beta1.BoundingPoly\022>\n\tlocations\030\010 \003(\0132" + - "+.google.cloud.vision.v1p2beta1.Location" + - "Info\022;\n\nproperties\030\t \003(\0132\'.google.cloud." + - "vision.v1p2beta1.Property\"\274\002\n\024SafeSearch" + - "Annotation\0228\n\005adult\030\001 \001(\0162).google.cloud" + - ".vision.v1p2beta1.Likelihood\0228\n\005spoof\030\002 " + - "\001(\0162).google.cloud.vision.v1p2beta1.Like" + - "lihood\022:\n\007medical\030\003 \001(\0162).google.cloud.v" + - "ision.v1p2beta1.Likelihood\022;\n\010violence\030\004" + - " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + - "elihood\0227\n\004racy\030\t \001(\0162).google.cloud.vis" + - "ion.v1p2beta1.Likelihood\"a\n\013LatLongRect\022" + - "(\n\013min_lat_lng\030\001 \001(\0132\023.google.type.LatLn" + - "g\022(\n\013max_lat_lng\030\002 \001(\0132\023.google.type.Lat" + - "Lng\"U\n\tColorInfo\022!\n\005color\030\001 \001(\0132\022.google" + - ".type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016pixel_frac" + - "tion\030\003 \001(\002\"T\n\030DominantColorsAnnotation\0228" + - "\n\006colors\030\001 \003(\0132(.google.cloud.vision.v1p" + - "2beta1.ColorInfo\"c\n\017ImageProperties\022P\n\017d" + - "ominant_colors\030\001 \001(\01327.google.cloud.visi" + - "on.v1p2beta1.DominantColorsAnnotation\"\177\n" + - "\010CropHint\022B\n\rbounding_poly\030\001 \001(\0132+.googl" + - "e.cloud.vision.v1p2beta1.BoundingPoly\022\022\n" + - "\nconfidence\030\002 \001(\002\022\033\n\023importance_fraction" + - "\030\003 \001(\002\"R\n\023CropHintsAnnotation\022;\n\ncrop_hi" + - "nts\030\001 \003(\0132\'.google.cloud.vision.v1p2beta" + - "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + - "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + - "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + - "Params\022.\n&enable_text_detection_confiden" + - "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + - " \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_long_rect\030\001" + - " \001(\0132*.google.cloud.vision.v1p2beta1.Lat" + - "LongRect\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop" + - "_hints_params\030\004 \001(\0132..google.cloud.visio" + - "n.v1p2beta1.CropHintsParams\022O\n\024web_detec" + - "tion_params\030\006 \001(\01321.google.cloud.vision." + - "v1p2beta1.WebDetectionParams\022Q\n\025text_det" + - "ection_params\030\014 \001(\01322.google.cloud.visio" + - "n.v1p2beta1.TextDetectionParams\"\311\001\n\024Anno" + - "tateImageRequest\0223\n\005image\030\001 \001(\0132$.google" + - ".cloud.vision.v1p2beta1.Image\0228\n\010feature" + - "s\030\002 \003(\0132&.google.cloud.vision.v1p2beta1." + - "Feature\022B\n\rimage_context\030\003 \001(\0132+.google." + - "cloud.vision.v1p2beta1.ImageContext\":\n\026I" + - "mageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013pa" + - "ge_number\030\002 \001(\005\"\212\007\n\025AnnotateImageRespons" + - "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo" + - "ud.vision.v1p2beta1.FaceAnnotation\022M\n\024la" + - "ndmark_annotations\030\002 \003(\0132/.google.cloud." + - "vision.v1p2beta1.EntityAnnotation\022I\n\020log" + - "o_annotations\030\003 \003(\0132/.google.cloud.visio" + - "n.v1p2beta1.EntityAnnotation\022J\n\021label_an" + - "notations\030\004 \003(\0132/.google.cloud.vision.v1" + - "p2beta1.EntityAnnotation\022I\n\020text_annotat" + - "ions\030\005 \003(\0132/.google.cloud.vision.v1p2bet" + - "a1.EntityAnnotation\022K\n\024full_text_annotat" + - "ion\030\014 \001(\0132-.google.cloud.vision.v1p2beta" + - "1.TextAnnotation\022S\n\026safe_search_annotati" + - "on\030\006 \001(\01323.google.cloud.vision.v1p2beta1" + - ".SafeSearchAnnotation\022S\n\033image_propertie" + - "s_annotation\030\010 \001(\0132..google.cloud.vision" + - ".v1p2beta1.ImageProperties\022Q\n\025crop_hints" + - "_annotation\030\013 \001(\01322.google.cloud.vision." + - "v1p2beta1.CropHintsAnnotation\022B\n\rweb_det" + - "ection\030\r \001(\0132+.google.cloud.vision.v1p2b" + - "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl" + - "e.rpc.Status\022F\n\007context\030\025 \001(\01325.google.c" + - "loud.vision.v1p2beta1.ImageAnnotationCon" + - "text\"\241\001\n\024AnnotateFileResponse\022@\n\014input_c" + - "onfig\030\001 \001(\0132*.google.cloud.vision.v1p2be" + - "ta1.InputConfig\022G\n\tresponses\030\002 \003(\01324.goo" + - "gle.cloud.vision.v1p2beta1.AnnotateImage" + - "Response\"h\n\032BatchAnnotateImagesRequest\022J" + - "\n\010requests\030\001 \003(\01323.google.cloud.vision.v" + - "1p2beta1.AnnotateImageRequestB\003\340A\002\"f\n\033Ba" + - "tchAnnotateImagesResponse\022G\n\tresponses\030\001" + - " \003(\01324.google.cloud.vision.v1p2beta1.Ann" + - "otateImageResponse\"\236\002\n\030AsyncAnnotateFile" + - "Request\022@\n\014input_config\030\001 \001(\0132*.google.c" + - "loud.vision.v1p2beta1.InputConfig\0228\n\010fea" + - "tures\030\002 \003(\0132&.google.cloud.vision.v1p2be" + - "ta1.Feature\022B\n\rimage_context\030\003 \001(\0132+.goo" + - "gle.cloud.vision.v1p2beta1.ImageContext\022" + - "B\n\routput_config\030\004 \001(\0132+.google.cloud.vi" + - "sion.v1p2beta1.OutputConfig\"_\n\031AsyncAnno" + - "tateFileResponse\022B\n\routput_config\030\001 \001(\0132" + - "+.google.cloud.vision.v1p2beta1.OutputCo" + - "nfig\"p\n\036AsyncBatchAnnotateFilesRequest\022N" + - "\n\010requests\030\001 \003(\01327.google.cloud.vision.v" + - "1p2beta1.AsyncAnnotateFileRequestB\003\340A\002\"n" + - "\n\037AsyncBatchAnnotateFilesResponse\022K\n\tres" + - "ponses\030\001 \003(\01328.google.cloud.vision.v1p2b" + - "eta1.AsyncAnnotateFileResponse\"^\n\013InputC" + - "onfig\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud" + - ".vision.v1p2beta1.GcsSource\022\021\n\tmime_type" + - "\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destinatio" + - "n\030\001 \001(\0132-.google.cloud.vision.v1p2beta1." + - "GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGc" + - "sSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013" + - "\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n\005sta" + - "te\030\001 \001(\01626.google.cloud.vision.v1p2beta1" + - ".OperationMetadata.State\022/\n\013create_time\030" + - "\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + - "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + - "mp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CR" + - "EATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCEL" + - "LED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY" + - "_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022" + - "\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016ImageAn" + - "notator\022\276\001\n\023BatchAnnotateImages\0229.google" + - ".cloud.vision.v1p2beta1.BatchAnnotateIma" + - "gesRequest\032:.google.cloud.vision.v1p2bet" + - "a1.BatchAnnotateImagesResponse\"0\202\323\344\223\002\037\"\032" + - "/v1p2beta1/images:annotate:\001*\332A\010requests" + - "\022\351\001\n\027AsyncBatchAnnotateFiles\022=.google.cl" + - "oud.vision.v1p2beta1.AsyncBatchAnnotateF" + - "ilesRequest\032\035.google.longrunning.Operati" + - "on\"p\202\323\344\223\002(\"#/v1p2beta1/files:asyncBatchA" + - "nnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnno" + - "tateFilesResponse\022\021OperationMetadata\032v\312A" + - "\025vision.googleapis.com\322A[https://www.goo" + - "gleapis.com/auth/cloud-platform,https://" + - "www.googleapis.com/auth/cloud-visionB\202\001\n" + - "!com.google.cloud.vision.v1p2beta1B\023Imag" + - "eAnnotatorProtoP\001ZCgoogle.golang.org/gen" + - "proto/googleapis/cloud/vision/v1p2beta1;" + - "vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor, - new java.lang.String[] { "Type", "MaxResults", "Model", }); - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor, - new java.lang.String[] { "GcsImageUri", "ImageUri", }); - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Image_descriptor, - new java.lang.String[] { "Content", "Source", }); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor, - new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", }); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { "Type", "Position", }); - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor, - new java.lang.String[] { "LatLng", }); - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Property_descriptor, - new java.lang.String[] { "Name", "Value", "Uint64Value", }); - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor, - new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor, - new java.lang.String[] { "MinLatLng", "MaxLatLng", }); - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor, - new java.lang.String[] { "Color", "Score", "PixelFraction", }); - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { "Colors", }); - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor, - new java.lang.String[] { "DominantColors", }); - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor, - new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { "CropHints", }); - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor, - new java.lang.String[] { "AspectRatios", }); - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor, - new java.lang.String[] { "IncludeGeoResults", }); - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor, - new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor, - new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "WebDetectionParams", "TextDetectionParams", }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { "Image", "Features", "ImageContext", }); - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { "Uri", "PageNumber", }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "Error", "Context", }); - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { "InputConfig", "Responses", }); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { "OutputConfig", }); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "MimeType", }); - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BatchSize", }); - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor, - new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 24008b11d..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface NormalizedVertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java deleted file mode 100644 index 0dbe58817..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/text_annotation.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p2beta1/text_ann" + - "otation.proto\022\035google.cloud.vision.v1p2b" + - "eta1\032\034google/api/annotations.proto\032,goog" + - "le/cloud/vision/v1p2beta1/geometry.proto" + - "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + - "gle.cloud.vision.v1p2beta1.Page\022\014\n\004text\030" + - "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + - "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + - "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + - "on.v1p2beta1.TextAnnotation.DetectedBrea" + - "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + - "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + - "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + - "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + - "_languages\030\001 \003(\0132>.google.cloud.vision.v" + - "1p2beta1.TextAnnotation.DetectedLanguage" + - "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + - "vision.v1p2beta1.TextAnnotation.Detected" + - "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + - "e.cloud.vision.v1p2beta1.TextAnnotation." + - "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + - "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + - "n.v1p2beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + - "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + - ".vision.v1p2beta1.TextAnnotation.TextPro" + - "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + - "ud.vision.v1p2beta1.BoundingPoly\022<\n\npara" + - "graphs\030\003 \003(\0132(.google.cloud.vision.v1p2b" + - "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + - "gle.cloud.vision.v1p2beta1.Block.BlockTy" + - "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + - "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + - "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + - "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + - ".v1p2beta1.TextAnnotation.TextProperty\022A" + - "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + - "on.v1p2beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + - "2#.google.cloud.vision.v1p2beta1.Word\022\022\n" + - "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + - " \001(\0132:.google.cloud.vision.v1p2beta1.Tex" + - "tAnnotation.TextProperty\022A\n\014bounding_box" + - "\030\002 \001(\0132+.google.cloud.vision.v1p2beta1.B" + - "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + - "oud.vision.v1p2beta1.Symbol\022\022\n\nconfidenc" + - "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + - "oogle.cloud.vision.v1p2beta1.TextAnnotat" + - "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + - ".google.cloud.vision.v1p2beta1.BoundingP" + - "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + - "\n!com.google.cloud.vision.v1p2beta1B\023Tex" + - "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + - "nproto/googleapis/cloud/vision/v1p2beta1" + - ";vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor, - new java.lang.String[] { "Pages", "Text", }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { "Type", "IsPrefix", }); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Page_descriptor, - new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Block_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Word_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java deleted file mode 100644 index e57428d2a..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/geometry.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface VertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index f47b8b19f..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/image_annotator.proto - -package com.google.cloud.vision.v1p2beta1; - -public interface WebDetectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java b/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java deleted file mode 100644 index 05dfa37be..000000000 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p2beta1/web_detection.proto - -package com.google.cloud.vision.v1p2beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p2beta1/web_dete" + - "ction.proto\022\035google.cloud.vision.v1p2bet" + - "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + - "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + - ".cloud.vision.v1p2beta1.WebDetection.Web" + - "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + - "oogle.cloud.vision.v1p2beta1.WebDetectio" + - "n.WebImage\022U\n\027partial_matching_images\030\003 " + - "\003(\01324.google.cloud.vision.v1p2beta1.WebD" + - "etection.WebImage\022W\n\032pages_with_matching" + - "_images\030\004 \003(\01323.google.cloud.vision.v1p2" + - "beta1.WebDetection.WebPage\022U\n\027visually_s" + - "imilar_images\030\006 \003(\01324.google.cloud.visio" + - "n.v1p2beta1.WebDetection.WebImage\022O\n\021bes" + - "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + - "on.v1p2beta1.WebDetection.WebLabel\032B\n\tWe" + - "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + - "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + - "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + - "e.cloud.vision.v1p2beta1.WebDetection.We" + - "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + - "4.google.cloud.vision.v1p2beta1.WebDetec" + - "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + - "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + - "loud.vision.v1p2beta1B\021WebDetectionProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor, - new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { "EntityId", "Score", "Description", }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { "Url", "Score", }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java deleted file mode 100644 index bf1c105b2..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface AddProductToProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index d6d57acfd..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index b669bf8f4..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface BatchAnnotateImagesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index); - /** - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index 7f8ba581a..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteProductRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index 0467f25bc..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index da3ee934e..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface DeleteReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java deleted file mode 100644 index 842a47547..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class GeometryProto { - private GeometryProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p3beta1/geometry" + - ".proto\022\035google.cloud.vision.v1p3beta1\"\036\n" + - "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + - "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + - "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + - "d.vision.v1p3beta1.Vertex\022L\n\023normalized_" + - "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + - "3beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + - "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.goo" + - "gle.cloud.vision.v1p3beta1B\rGeometryProt" + - "oP\001ZCgoogle.golang.org/genproto/googleap" + - "is/cloud/vision/v1p3beta1;vision\370\001\001\242\002\004GC" + - "VNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor, - new java.lang.String[] { "Vertices", "NormalizedVertices", }); - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Position_descriptor, - new java.lang.String[] { "X", "Y", "Z", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java deleted file mode 100644 index 95d3405ba..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetProductRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index eadfb3714..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index de9c89d5c..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface GetReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java deleted file mode 100644 index 5c81e8c62..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,671 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p3beta1/image_an" + - "notator.proto\022\035google.cloud.vision.v1p3b" + - "eta1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032,google/cloud/vision/v1p3be" + - "ta1/geometry.proto\0322google/cloud/vision/" + - "v1p3beta1/product_search.proto\0323google/c" + - "loud/vision/v1p3beta1/text_annotation.pr" + - "oto\0321google/cloud/vision/v1p3beta1/web_d" + - "etection.proto\032#google/longrunning/opera" + - "tions.proto\032\037google/protobuf/timestamp.p" + - "roto\032\027google/rpc/status.proto\032\027google/ty" + - "pe/color.proto\032\030google/type/latlng.proto" + - "\"\216\003\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.clou" + - "d.vision.v1p3beta1.Feature.Type\022\023\n\013max_r" + - "esults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020" + - "TYPE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026" + - "\n\022LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION" + - "\020\003\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTIO" + - "N\020\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE" + - "_SEARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020" + - "\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016" + - "PRODUCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020" + - "\023\"7\n\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022" + - "\021\n\timage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001" + - " \001(\014\022:\n\006source\030\002 \001(\0132*.google.cloud.visi" + - "on.v1p3beta1.ImageSource\"\233\016\n\016FaceAnnotat" + - "ion\022B\n\rbounding_poly\030\001 \001(\0132+.google.clou" + - "d.vision.v1p3beta1.BoundingPoly\022E\n\020fd_bo" + - "unding_poly\030\002 \001(\0132+.google.cloud.vision." + - "v1p3beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(" + - "\01326.google.cloud.vision.v1p3beta1.FaceAn" + - "notation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n" + - "\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024" + - "detection_confidence\030\007 \001(\002\022\036\n\026landmarkin" + - "g_confidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001" + - "(\0162).google.cloud.vision.v1p3beta1.Likel" + - "ihood\022D\n\021sorrow_likelihood\030\n \001(\0162).googl" + - "e.cloud.vision.v1p3beta1.Likelihood\022C\n\020a" + - "nger_likelihood\030\013 \001(\0162).google.cloud.vis" + - "ion.v1p3beta1.Likelihood\022F\n\023surprise_lik" + - "elihood\030\014 \001(\0162).google.cloud.vision.v1p3" + - "beta1.Likelihood\022K\n\030under_exposed_likeli" + - "hood\030\r \001(\0162).google.cloud.vision.v1p3bet" + - "a1.Likelihood\022E\n\022blurred_likelihood\030\016 \001(" + - "\0162).google.cloud.vision.v1p3beta1.Likeli" + - "hood\022F\n\023headwear_likelihood\030\017 \001(\0162).goog" + - "le.cloud.vision.v1p3beta1.Likelihood\032\307\007\n" + - "\010Landmark\022I\n\004type\030\003 \001(\0162;.google.cloud.v" + - "ision.v1p3beta1.FaceAnnotation.Landmark." + - "Type\0229\n\010position\030\004 \001(\0132\'.google.cloud.vi" + - "sion.v1p3beta1.Position\"\264\006\n\004Type\022\024\n\020UNKN" + - "OWN_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EY" + - "E\020\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_O" + - "F_LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBRO" + - "W\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPO" + - "INT_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPE" + - "R_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017" + - "\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOS" + - "E_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026" + - "\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_B" + - "OUNDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030" + - "LEFT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_L" + - "EFT_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025" + - "\022\032\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EY" + - "E_BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CO" + - "RNER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022" + - " \n\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEF" + - "T_EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022" + - "\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022" + - "\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020" + - " \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GO" + - "NION\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132" + - "\023.google.type.LatLng\"=\n\010Property\022\014\n\004name" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 " + - "\001(\004\"\274\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n" + - "\006locale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005sc" + - "ore\030\004 \001(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopical" + - "ity\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.googl" + - "e.cloud.vision.v1p3beta1.BoundingPoly\022>\n" + - "\tlocations\030\010 \003(\0132+.google.cloud.vision.v" + - "1p3beta1.LocationInfo\022;\n\nproperties\030\t \003(" + - "\0132\'.google.cloud.vision.v1p3beta1.Proper" + - "ty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mid\030" + - "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003 \001" + - "(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001(\013" + - "2+.google.cloud.vision.v1p3beta1.Boundin" + - "gPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adult\030" + - "\001 \001(\0162).google.cloud.vision.v1p3beta1.Li" + - "kelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud.v" + - "ision.v1p3beta1.Likelihood\022:\n\007medical\030\003 " + - "\001(\0162).google.cloud.vision.v1p3beta1.Like" + - "lihood\022;\n\010violence\030\004 \001(\0162).google.cloud." + - "vision.v1p3beta1.Likelihood\0227\n\004racy\030\t \001(" + - "\0162).google.cloud.vision.v1p3beta1.Likeli" + - "hood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001(\013" + - "2\023.google.type.LatLng\022(\n\013max_lat_lng\030\002 \001" + - "(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!\n\005" + - "color\030\001 \001(\0132\022.google.type.Color\022\r\n\005score" + - "\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domina" + - "ntColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.goo" + - "gle.cloud.vision.v1p3beta1.ColorInfo\"c\n\017" + - "ImageProperties\022P\n\017dominant_colors\030\001 \001(\013" + - "27.google.cloud.vision.v1p3beta1.Dominan" + - "tColorsAnnotation\"\177\n\010CropHint\022B\n\rboundin" + - "g_poly\030\001 \001(\0132+.google.cloud.vision.v1p3b" + - "eta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n" + - "\023importance_fraction\030\003 \001(\002\"R\n\023CropHintsA" + - "nnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google.c" + - "loud.vision.v1p3beta1.CropHint\"(\n\017CropHi" + - "ntsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebD" + - "etectionParams\022\033\n\023include_geo_results\030\002 " + - "\001(\010\"c\n\023TextDetectionParams\022.\n&enable_tex" + - "t_detection_confidence_score\030\t \001(\010\022\034\n\024ad" + - "vanced_ocr_options\030\013 \003(\t\"\253\003\n\014ImageContex" + - "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud." + - "vision.v1p3beta1.LatLongRect\022\026\n\016language" + - "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132" + - "..google.cloud.vision.v1p3beta1.CropHint" + - "sParams\022Q\n\025product_search_params\030\005 \001(\01322" + - ".google.cloud.vision.v1p3beta1.ProductSe" + - "archParams\022O\n\024web_detection_params\030\006 \001(\013" + - "21.google.cloud.vision.v1p3beta1.WebDete" + - "ctionParams\022Q\n\025text_detection_params\030\014 \001" + - "(\01322.google.cloud.vision.v1p3beta1.TextD" + - "etectionParams\"\311\001\n\024AnnotateImageRequest\022" + - "3\n\005image\030\001 \001(\0132$.google.cloud.vision.v1p" + - "3beta1.Image\0228\n\010features\030\002 \003(\0132&.google." + - "cloud.vision.v1p3beta1.Feature\022B\n\rimage_" + - "context\030\003 \001(\0132+.google.cloud.vision.v1p3" + - "beta1.ImageContext\":\n\026ImageAnnotationCon" + - "text\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001(\005\"\277" + - "\010\n\025AnnotateImageResponse\022G\n\020face_annotat" + - "ions\030\001 \003(\0132-.google.cloud.vision.v1p3bet" + - "a1.FaceAnnotation\022M\n\024landmark_annotation" + - "s\030\002 \003(\0132/.google.cloud.vision.v1p3beta1." + - "EntityAnnotation\022I\n\020logo_annotations\030\003 \003" + - "(\0132/.google.cloud.vision.v1p3beta1.Entit" + - "yAnnotation\022J\n\021label_annotations\030\004 \003(\0132/" + - ".google.cloud.vision.v1p3beta1.EntityAnn" + - "otation\022^\n\034localized_object_annotations\030" + - "\026 \003(\01328.google.cloud.vision.v1p3beta1.Lo" + - "calizedObjectAnnotation\022I\n\020text_annotati" + - "ons\030\005 \003(\0132/.google.cloud.vision.v1p3beta" + - "1.EntityAnnotation\022K\n\024full_text_annotati" + - "on\030\014 \001(\0132-.google.cloud.vision.v1p3beta1" + - ".TextAnnotation\022S\n\026safe_search_annotatio" + - "n\030\006 \001(\01323.google.cloud.vision.v1p3beta1." + - "SafeSearchAnnotation\022S\n\033image_properties" + - "_annotation\030\010 \001(\0132..google.cloud.vision." + - "v1p3beta1.ImageProperties\022Q\n\025crop_hints_" + - "annotation\030\013 \001(\01322.google.cloud.vision.v" + - "1p3beta1.CropHintsAnnotation\022B\n\rweb_dete" + - "ction\030\r \001(\0132+.google.cloud.vision.v1p3be" + - "ta1.WebDetection\022S\n\026product_search_resul" + - "ts\030\016 \001(\01323.google.cloud.vision.v1p3beta1" + - ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + - "oogle.rpc.Status\022F\n\007context\030\025 \001(\01325.goog" + - "le.cloud.vision.v1p3beta1.ImageAnnotatio" + - "nContext\"\241\001\n\024AnnotateFileResponse\022@\n\014inp" + - "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + - "p3beta1.InputConfig\022G\n\tresponses\030\002 \003(\01324" + - ".google.cloud.vision.v1p3beta1.AnnotateI" + - "mageResponse\"h\n\032BatchAnnotateImagesReque" + - "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi" + - "on.v1p3beta1.AnnotateImageRequestB\003\340A\002\"f" + - "\n\033BatchAnnotateImagesResponse\022G\n\trespons" + - "es\030\001 \003(\01324.google.cloud.vision.v1p3beta1" + - ".AnnotateImageResponse\"\236\002\n\030AsyncAnnotate" + - "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + - "le.cloud.vision.v1p3beta1.InputConfig\0228\n" + - "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + - "p3beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + - ".google.cloud.vision.v1p3beta1.ImageCont" + - "ext\022B\n\routput_config\030\004 \001(\0132+.google.clou" + - "d.vision.v1p3beta1.OutputConfig\"_\n\031Async" + - "AnnotateFileResponse\022B\n\routput_config\030\001 " + - "\001(\0132+.google.cloud.vision.v1p3beta1.Outp" + - "utConfig\"p\n\036AsyncBatchAnnotateFilesReque" + - "st\022N\n\010requests\030\001 \003(\01327.google.cloud.visi" + - "on.v1p3beta1.AsyncAnnotateFileRequestB\003\340" + - "A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K\n" + - "\tresponses\030\001 \003(\01328.google.cloud.vision.v" + - "1p3beta1.AsyncAnnotateFileResponse\"^\n\013In" + - "putConfig\022<\n\ngcs_source\030\001 \001(\0132(.google.c" + - "loud.vision.v1p3beta1.GcsSource\022\021\n\tmime_" + - "type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destin" + - "ation\030\001 \001(\0132-.google.cloud.vision.v1p3be" + - "ta1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030" + - "\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinati" + - "on\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n" + - "\005state\030\001 \001(\01626.google.cloud.vision.v1p3b" + - "eta1.OperationMetadata.State\022/\n\013create_t" + - "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n" + - "\013update_time\030\006 \001(\0132\032.google.protobuf.Tim" + - "estamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" + - "\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCA" + - "NCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\r" + - "VERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBL" + - "E\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016Ima" + - "geAnnotator\022\276\001\n\023BatchAnnotateImages\0229.go" + - "ogle.cloud.vision.v1p3beta1.BatchAnnotat" + - "eImagesRequest\032:.google.cloud.vision.v1p" + - "3beta1.BatchAnnotateImagesResponse\"0\202\323\344\223" + - "\002\037\"\032/v1p3beta1/images:annotate:\001*\332A\010requ" + - "ests\022\351\001\n\027AsyncBatchAnnotateFiles\022=.googl" + - "e.cloud.vision.v1p3beta1.AsyncBatchAnnot" + - "ateFilesRequest\032\035.google.longrunning.Ope" + - "ration\"p\202\323\344\223\002(\"#/v1p3beta1/files:asyncBa" + - "tchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatch" + - "AnnotateFilesResponse\022\021OperationMetadata" + - "\032v\312A\025vision.googleapis.com\322A[https://www" + - ".googleapis.com/auth/cloud-platform,http" + - "s://www.googleapis.com/auth/cloud-vision" + - "B\202\001\n!com.google.cloud.vision.v1p3beta1B\023" + - "ImageAnnotatorProtoP\001ZCgoogle.golang.org" + - "/genproto/googleapis/cloud/vision/v1p3be" + - "ta1;vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor, - new java.lang.String[] { "Type", "MaxResults", "Model", }); - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor, - new java.lang.String[] { "GcsImageUri", "ImageUri", }); - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Image_descriptor, - new java.lang.String[] { "Content", "Source", }); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor, - new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", }); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { "Type", "Position", }); - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor, - new java.lang.String[] { "LatLng", }); - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Property_descriptor, - new java.lang.String[] { "Name", "Value", "Uint64Value", }); - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor, - new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor, - new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", }); - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor, - new java.lang.String[] { "MinLatLng", "MaxLatLng", }); - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor, - new java.lang.String[] { "Color", "Score", "PixelFraction", }); - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { "Colors", }); - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor, - new java.lang.String[] { "DominantColors", }); - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor, - new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { "CropHints", }); - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor, - new java.lang.String[] { "AspectRatios", }); - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor, - new java.lang.String[] { "IncludeGeoResults", }); - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor, - new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor, - new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "ProductSearchParams", "WebDetectionParams", "TextDetectionParams", }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { "Image", "Features", "ImageContext", }); - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { "Uri", "PageNumber", }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "LocalizedObjectAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "ProductSearchResults", "Error", "Context", }); - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { "InputConfig", "Responses", }); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { "OutputConfig", }); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "MimeType", }); - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BatchSize", }); - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor, - new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java deleted file mode 100644 index 7478ab727..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface ImportProductSetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The inputConfig. - */ - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 822dd4c71..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface NormalizedVertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java deleted file mode 100644 index 741f1f891..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java +++ /dev/null @@ -1,135 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/vision/v1p3beta1/product_" + - "search.proto\022\035google.cloud.vision.v1p3be" + - "ta1\032\031google/api/resource.proto\032,google/c" + - "loud/vision/v1p3beta1/geometry.proto\032:go" + - "ogle/cloud/vision/v1p3beta1/product_sear" + - "ch_service.proto\032\037google/protobuf/timest" + - "amp.proto\"\301\001\n\023ProductSearchParams\022B\n\rbou" + - "nding_poly\030\t \001(\0132+.google.cloud.vision.v" + - "1p3beta1.BoundingPoly\022:\n\013product_set\030\006 \001" + - "(\tB%\372A\"\n vision.googleapis.com/ProductSe" + - "t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006filter\030" + - "\010 \001(\t\"\262\005\n\024ProductSearchResults\022.\n\nindex_" + - "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022K" + - "\n\007results\030\005 \003(\0132:.google.cloud.vision.v1" + - "p3beta1.ProductSearchResults.Result\022b\n\027p" + - "roduct_grouped_results\030\006 \003(\0132A.google.cl" + - "oud.vision.v1p3beta1.ProductSearchResult" + - "s.GroupedResult\032_\n\006Result\0227\n\007product\030\001 \001" + - "(\0132&.google.cloud.vision.v1p3beta1.Produ" + - "ct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020Obje" + - "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" + - "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002" + - "\n\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+" + - ".google.cloud.vision.v1p3beta1.BoundingP" + - "oly\022K\n\007results\030\002 \003(\0132:.google.cloud.visi" + - "on.v1p3beta1.ProductSearchResults.Result" + - "\022`\n\022object_annotations\030\003 \003(\0132D.google.cl" + - "oud.vision.v1p3beta1.ProductSearchResult" + - "s.ObjectAnnotationB\210\001\n!com.google.cloud." + - "vision.v1p3beta1B\022ProductSearchProtoP\001ZC" + - "google.golang.org/genproto/googleapis/cl" + - "oud/vision/v1p3beta1;vision\370\001\001\242\002\004GCVNb\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor, - new java.lang.String[] { "BoundingPoly", "ProductSet", "ProductCategories", "Filter", }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor, - new java.lang.String[] { "IndexTime", "Results", "ProductGroupedResults", }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor, - new java.lang.String[] { "Product", "Score", "Image", }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor, - new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", }); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor = - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor, - new java.lang.String[] { "BoundingPoly", "Results", "ObjectAnnotations", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java deleted file mode 100644 index 4d599dfee..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java +++ /dev/null @@ -1,614 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class ProductSearchServiceProto { - private ProductSearchServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/vision/v1p3beta1/product_" + - "search_service.proto\022\035google.cloud.visio" + - "n.v1p3beta1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032,google/cloud/vision/v1p3beta1/ge" + - "ometry.proto\032#google/longrunning/operati" + - "ons.proto\032\033google/protobuf/empty.proto\032 " + - "google/protobuf/field_mask.proto\032\037google" + - "/protobuf/timestamp.proto\032\027google/rpc/st" + - "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + - "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + - "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + - "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + - "3beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + - "gleapis.com/Product\022:projects/{project}/" + - "locations/{location}/products/{product}\"" + - "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + - "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + - " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + - "on.googleapis.com/ProductSet\022Aprojects/{" + - "project}/locations/{location}/productSet" + - "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + - "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + - "olys\030\003 \003(\0132+.google.cloud.vision.v1p3bet" + - "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + - "leapis.com/ReferenceImage\022\\projects/{pro" + - "ject}/locations/{location}/products/{pro" + - "duct}/referenceImages/{reference_image}\"" + - "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + - "on.v1p3beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + - "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + - "ts\030\001 \003(\0132&.google.cloud.vision.v1p3beta1" + - ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + - "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + - "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + - "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + - "loud.vision.v1p3beta1.ProductB\003\340A\002\022/\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + - "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + - "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + - "oud.vision.v1p3beta1.ProductSetB\003\340A\002\022\026\n\016" + - "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + - "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + - "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + - "le.cloud.vision.v1p3beta1.ProductSet\022\027\n\017" + - "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + - "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + - "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + - "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + - "cloud.vision.v1p3beta1.ProductSetB\003\340A\002\022/" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + - "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + - "ProductSet\"\275\001\n\033CreateReferenceImageReque" + - "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + - "eapis.com/Product\022K\n\017reference_image\030\002 \001" + - "(\0132-.google.cloud.vision.v1p3beta1.Refer" + - "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + - "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + - "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + - "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + - "\n\020reference_images\030\001 \003(\0132-.google.cloud." + - "vision.v1p3beta1.ReferenceImage\022\021\n\tpage_" + - "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + - "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + - "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + - "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + - "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + - "ReferenceImage\"\217\001\n\035AddProductToProductSe" + - "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + - "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + - "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + - "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + - "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + - ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + - "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + - "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + - "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + - "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"u\n ListProductsInProductSetResponse\0228" + - "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + - "1p3beta1.Product\022\027\n\017next_page_token\030\002 \001(" + - "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + - "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + - "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + - ".vision.v1p3beta1.ImportProductSetsGcsSo" + - "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022V\n\014input_config" + - "\030\002 \001(\0132;.google.cloud.vision.v1p3beta1.I" + - "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + - "ortProductSetsResponse\022G\n\020reference_imag" + - "es\030\001 \003(\0132-.google.cloud.vision.v1p3beta1" + - ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + - "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + - "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + - "p3beta1.BatchOperationMetadata.State\022/\n\013" + - "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + - "AILED\020\003\022\r\n\tCANCELLED\020\0042\353\036\n\rProductSearch" + - "\022\346\001\n\020CreateProductSet\0226.google.cloud.vis" + - "ion.v1p3beta1.CreateProductSetRequest\032)." + - "google.cloud.vision.v1p3beta1.ProductSet" + - "\"o\202\323\344\223\002E\"6/v1p3beta1/{parent=projects/*/" + - "locations/*}/productSets:\013product_set\332A!" + - "parent,product_set,product_set_id\022\311\001\n\017Li" + - "stProductSets\0225.google.cloud.vision.v1p3" + - "beta1.ListProductSetsRequest\0326.google.cl" + - "oud.vision.v1p3beta1.ListProductSetsResp" + - "onse\"G\202\323\344\223\0028\0226/v1p3beta1/{parent=project" + - "s/*/locations/*}/productSets\332A\006parent\022\266\001" + - "\n\rGetProductSet\0223.google.cloud.vision.v1" + - "p3beta1.GetProductSetRequest\032).google.cl" + - "oud.vision.v1p3beta1.ProductSet\"E\202\323\344\223\0028\022" + - "6/v1p3beta1/{name=projects/*/locations/*" + - "/productSets/*}\332A\004name\022\350\001\n\020UpdateProduct" + - "Set\0226.google.cloud.vision.v1p3beta1.Upda" + - "teProductSetRequest\032).google.cloud.visio" + - "n.v1p3beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p3bet" + - "a1/{product_set.name=projects/*/location" + - "s/*/productSets/*}:\013product_set\332A\027produc" + - "t_set,update_mask\022\251\001\n\020DeleteProductSet\0226" + - ".google.cloud.vision.v1p3beta1.DeletePro" + - "ductSetRequest\032\026.google.protobuf.Empty\"E" + - "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/loca" + - "tions/*/productSets/*}\332A\004name\022\316\001\n\rCreate" + - "Product\0223.google.cloud.vision.v1p3beta1." + - "CreateProductRequest\032&.google.cloud.visi" + - "on.v1p3beta1.Product\"`\202\323\344\223\002>\"3/v1p3beta1" + - "/{parent=projects/*/locations/*}/product" + - "s:\007product\332A\031parent,product,product_id\022\275" + - "\001\n\014ListProducts\0222.google.cloud.vision.v1" + - "p3beta1.ListProductsRequest\0323.google.clo" + - "ud.vision.v1p3beta1.ListProductsResponse" + - "\"D\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/" + - "locations/*}/products\332A\006parent\022\252\001\n\nGetPr" + - "oduct\0220.google.cloud.vision.v1p3beta1.Ge" + - "tProductRequest\032&.google.cloud.vision.v1" + - "p3beta1.Product\"B\202\323\344\223\0025\0223/v1p3beta1/{nam" + - "e=projects/*/locations/*/products/*}\332A\004n" + - "ame\022\320\001\n\rUpdateProduct\0223.google.cloud.vis" + - "ion.v1p3beta1.UpdateProductRequest\032&.goo" + - "gle.cloud.vision.v1p3beta1.Product\"b\202\323\344\223" + - "\002F2;/v1p3beta1/{product.name=projects/*/" + - "locations/*/products/*}:\007product\332A\023produ" + - "ct,update_mask\022\240\001\n\rDeleteProduct\0223.googl" + - "e.cloud.vision.v1p3beta1.DeleteProductRe" + - "quest\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*3/" + - "v1p3beta1/{name=projects/*/locations/*/p" + - "roducts/*}\332A\004name\022\216\002\n\024CreateReferenceIma" + - "ge\022:.google.cloud.vision.v1p3beta1.Creat" + - "eReferenceImageRequest\032-.google.cloud.vi" + - "sion.v1p3beta1.ReferenceImage\"\212\001\202\323\344\223\002X\"E" + - "/v1p3beta1/{parent=projects/*/locations/" + - "*/products/*}/referenceImages:\017reference" + - "_image\332A)parent,reference_image,referenc" + - "e_image_id\022\300\001\n\024DeleteReferenceImage\022:.go" + - "ogle.cloud.vision.v1p3beta1.DeleteRefere" + - "nceImageRequest\032\026.google.protobuf.Empty\"" + - "T\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/loc" + - "ations/*/products/*/referenceImages/*}\332A" + - "\004name\022\344\001\n\023ListReferenceImages\0229.google.c" + - "loud.vision.v1p3beta1.ListReferenceImage" + - "sRequest\032:.google.cloud.vision.v1p3beta1" + - ".ListReferenceImagesResponse\"V\202\323\344\223\002G\022E/v" + - "1p3beta1/{parent=projects/*/locations/*/" + - "products/*}/referenceImages\332A\006parent\022\321\001\n" + - "\021GetReferenceImage\0227.google.cloud.vision" + - ".v1p3beta1.GetReferenceImageRequest\032-.go" + - "ogle.cloud.vision.v1p3beta1.ReferenceIma" + - "ge\"T\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/" + - "locations/*/products/*/referenceImages/*" + - "}\332A\004name\022\313\001\n\026AddProductToProductSet\022<.go" + - "ogle.cloud.vision.v1p3beta1.AddProductTo" + - "ProductSetRequest\032\026.google.protobuf.Empt" + - "y\"[\202\323\344\223\002F\"A/v1p3beta1/{name=projects/*/l" + - "ocations/*/productSets/*}:addProduct:\001*\332" + - "A\014name,product\022\330\001\n\033RemoveProductFromProd" + - "uctSet\022A.google.cloud.vision.v1p3beta1.R" + - "emoveProductFromProductSetRequest\032\026.goog" + - "le.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p3beta1/{n" + - "ame=projects/*/locations/*/productSets/*" + - "}:removeProduct:\001*\332A\014name,product\022\353\001\n\030Li" + - "stProductsInProductSet\022>.google.cloud.vi" + - "sion.v1p3beta1.ListProductsInProductSetR" + - "equest\032?.google.cloud.vision.v1p3beta1.L" + - "istProductsInProductSetResponse\"N\202\323\344\223\002A\022" + - "?/v1p3beta1/{name=projects/*/locations/*" + - "/productSets/*}/products\332A\004name\022\202\002\n\021Impo" + - "rtProductSets\0227.google.cloud.vision.v1p3" + - "beta1.ImportProductSetsRequest\032\035.google." + - "longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p3bet" + - "a1/{parent=projects/*/locations/*}/produ" + - "ctSets:import:\001*\332A\023parent,input_config\312A" + - "3\n\031ImportProductSetsResponse\022\026BatchOpera" + - "tionMetadata\032v\312A\025vision.googleapis.com\322A" + - "[https://www.googleapis.com/auth/cloud-p" + - "latform,https://www.googleapis.com/auth/" + - "cloud-visionB\210\001\n!com.google.cloud.vision" + - ".v1p3beta1B\031ProductSearchServiceProtoP\001Z" + - "Cgoogle.golang.org/genproto/googleapis/c" + - "loud/vision/v1p3beta1;vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", }); - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor = - internal_static_google_cloud_vision_v1p3beta1_Product_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor, - new java.lang.String[] { "Name", "DisplayName", "IndexTime", "IndexError", }); - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor, - new java.lang.String[] { "Name", "Uri", "BoundingPolys", }); - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor, - new java.lang.String[] { "Parent", "Product", "ProductId", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor, - new java.lang.String[] { "Products", "NextPageToken", }); - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor, - new java.lang.String[] { "Product", "UpdateMask", }); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor, - new java.lang.String[] { "Parent", "ProductSet", "ProductSetId", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor, - new java.lang.String[] { "ProductSets", "NextPageToken", }); - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor, - new java.lang.String[] { "ProductSet", "UpdateMask", }); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor, - new java.lang.String[] { "Parent", "ReferenceImage", "ReferenceImageId", }); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor, - new java.lang.String[] { "ReferenceImages", "PageSize", "NextPageToken", }); - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor, - new java.lang.String[] { "Name", "Product", }); - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor, - new java.lang.String[] { "Name", "Product", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor, - new java.lang.String[] { "Products", "NextPageToken", }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor, - new java.lang.String[] { "CsvFileUri", }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor, - new java.lang.String[] { "Parent", "InputConfig", }); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor, - new java.lang.String[] { "ReferenceImages", "Statuses", }); - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor, - new java.lang.String[] { "State", "SubmitTime", "EndTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java deleted file mode 100644 index 9679f72dd..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/product_search_service.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface RemoveProductFromProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be removed from this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java deleted file mode 100644 index 279cf7e1a..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/text_annotation.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p3beta1/text_ann" + - "otation.proto\022\035google.cloud.vision.v1p3b" + - "eta1\032\034google/api/annotations.proto\032,goog" + - "le/cloud/vision/v1p3beta1/geometry.proto" + - "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + - "gle.cloud.vision.v1p3beta1.Page\022\014\n\004text\030" + - "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + - "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + - "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + - "on.v1p3beta1.TextAnnotation.DetectedBrea" + - "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + - "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + - "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + - "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + - "_languages\030\001 \003(\0132>.google.cloud.vision.v" + - "1p3beta1.TextAnnotation.DetectedLanguage" + - "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + - "vision.v1p3beta1.TextAnnotation.Detected" + - "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + - "e.cloud.vision.v1p3beta1.TextAnnotation." + - "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + - "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + - "n.v1p3beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + - "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + - ".vision.v1p3beta1.TextAnnotation.TextPro" + - "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + - "ud.vision.v1p3beta1.BoundingPoly\022<\n\npara" + - "graphs\030\003 \003(\0132(.google.cloud.vision.v1p3b" + - "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + - "gle.cloud.vision.v1p3beta1.Block.BlockTy" + - "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + - "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + - "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + - "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + - ".v1p3beta1.TextAnnotation.TextProperty\022A" + - "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + - "on.v1p3beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + - "2#.google.cloud.vision.v1p3beta1.Word\022\022\n" + - "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + - " \001(\0132:.google.cloud.vision.v1p3beta1.Tex" + - "tAnnotation.TextProperty\022A\n\014bounding_box" + - "\030\002 \001(\0132+.google.cloud.vision.v1p3beta1.B" + - "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + - "oud.vision.v1p3beta1.Symbol\022\022\n\nconfidenc" + - "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + - "oogle.cloud.vision.v1p3beta1.TextAnnotat" + - "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + - ".google.cloud.vision.v1p3beta1.BoundingP" + - "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + - "\n!com.google.cloud.vision.v1p3beta1B\023Tex" + - "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + - "nproto/googleapis/cloud/vision/v1p3beta1" + - ";vision\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor, - new java.lang.String[] { "Pages", "Text", }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { "Type", "IsPrefix", }); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Page_descriptor, - new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Block_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Word_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java deleted file mode 100644 index f1a73eebc..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/geometry.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface VertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 75f49a3fb..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/image_annotator.proto - -package com.google.cloud.vision.v1p3beta1; - -public interface WebDetectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java b/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java deleted file mode 100644 index ea74418d4..000000000 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p3beta1/web_detection.proto - -package com.google.cloud.vision.v1p3beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p3beta1/web_dete" + - "ction.proto\022\035google.cloud.vision.v1p3bet" + - "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + - "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + - ".cloud.vision.v1p3beta1.WebDetection.Web" + - "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + - "oogle.cloud.vision.v1p3beta1.WebDetectio" + - "n.WebImage\022U\n\027partial_matching_images\030\003 " + - "\003(\01324.google.cloud.vision.v1p3beta1.WebD" + - "etection.WebImage\022W\n\032pages_with_matching" + - "_images\030\004 \003(\01323.google.cloud.vision.v1p3" + - "beta1.WebDetection.WebPage\022U\n\027visually_s" + - "imilar_images\030\006 \003(\01324.google.cloud.visio" + - "n.v1p3beta1.WebDetection.WebImage\022O\n\021bes" + - "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + - "on.v1p3beta1.WebDetection.WebLabel\032B\n\tWe" + - "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + - "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + - "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + - "e.cloud.vision.v1p3beta1.WebDetection.We" + - "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + - "4.google.cloud.vision.v1p3beta1.WebDetec" + - "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + - "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + - "loud.vision.v1p3beta1B\021WebDetectionProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/cloud/vision/v1p3beta1;vision\370\001\001b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor, - new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { "EntityId", "Score", "Description", }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { "Url", "Score", }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java deleted file mode 100644 index 595a24af9..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AddProductToProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be added to this ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java deleted file mode 100644 index f2d3b993a..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AsyncBatchAnnotateFilesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual async file annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index 45006d846..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface AsyncBatchAnnotateImagesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); - - /** - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the outputConfig field is set. - */ - boolean hasOutputConfig(); - /** - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The outputConfig. - */ - com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); - /** - *
-   * Required. The desired output location and metadata (e.g. format).
-   * 
- * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java deleted file mode 100644 index a5d680e08..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface BatchAnnotateImagesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. Individual image annotation requests for this batch.
-   * 
- * - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java deleted file mode 100644 index fcfce1c34..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/face.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class CelebrityProto { - private CelebrityProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(google/cloud/vision/v1p4beta1/face.pro" + - "to\022\035google.cloud.vision.v1p4beta1\032\034googl" + - "e/api/annotations.proto\032,google/cloud/vi" + - "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" + - "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" + - "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + - "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" + - "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" + - ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" + - "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" + - "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" + - "lang.org/genproto/googleapis/cloud/visio" + - "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor, - new java.lang.String[] { "CelebritySet", }); - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", }); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor, - new java.lang.String[] { "Celebrity", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java deleted file mode 100644 index e279feab2..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteProductRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of product to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java deleted file mode 100644 index 521a1ae8a..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java deleted file mode 100644 index a14db6150..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface DeleteReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the reference image to delete.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java deleted file mode 100644 index 8d0b4e7fb..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class GeometryProto { - private GeometryProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/vision/v1p4beta1/geometry" + - ".proto\022\035google.cloud.vision.v1p4beta1\032\034g" + - "oogle/api/annotations.proto\"\036\n\006Vertex\022\t\n" + - "\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022" + - "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014BoundingPoly\0227" + - "\n\010vertices\030\001 \003(\0132%.google.cloud.vision.v" + - "1p4beta1.Vertex\022L\n\023normalized_vertices\030\002" + - " \003(\0132/.google.cloud.vision.v1p4beta1.Nor" + - "malizedVertex\"+\n\010Position\022\t\n\001x\030\001 \001(\002\022\t\n\001" + - "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.google.cloud." + - "vision.v1p4beta1B\rGeometryProtoP\001ZCgoogl" + - "e.golang.org/genproto/googleapis/cloud/v" + - "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor, - new java.lang.String[] { "Vertices", "NormalizedVertices", }); - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Position_descriptor, - new java.lang.String[] { "X", "Y", "Z", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java deleted file mode 100644 index 5e52735fd..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetProductRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the Product to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java deleted file mode 100644 index 3582244f4..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the ProductSet to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java deleted file mode 100644 index 3b372ed67..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface GetReferenceImageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ReferenceImage to get.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java deleted file mode 100644 index f3ee62adc..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java +++ /dev/null @@ -1,767 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ImageAnnotatorProto { - private ImageAnnotatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p4beta1/image_an" + - "notator.proto\022\035google.cloud.vision.v1p4b" + - "eta1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032(google/cloud/vision/v1p4be" + - "ta1/face.proto\032,google/cloud/vision/v1p4" + - "beta1/geometry.proto\0322google/cloud/visio" + - "n/v1p4beta1/product_search.proto\0323google" + - "/cloud/vision/v1p4beta1/text_annotation." + - "proto\0321google/cloud/vision/v1p4beta1/web" + - "_detection.proto\032#google/longrunning/ope" + - "rations.proto\032 google/protobuf/field_mas" + - "k.proto\032\037google/protobuf/timestamp.proto" + - "\032\027google/rpc/status.proto\032\027google/type/c" + - "olor.proto\032\030google/type/latlng.proto\"\216\003\n" + - "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" + - "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" + - "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" + - "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" + - "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" + - "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" + - "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" + - "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" + - "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" + - "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" + - "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" + - "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" + - "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" + - "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" + - "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" + - "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" + - "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" + - "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." + - "google.cloud.vision.v1p4beta1.FaceAnnota" + - "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" + - "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" + - "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" + - "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" + - ".google.cloud.vision.v1p4beta1.Likelihoo" + - "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" + - "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" + - "_likelihood\030\013 \001(\0162).google.cloud.vision." + - "v1p4beta1.Likelihood\022F\n\023surprise_likelih" + - "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" + - "1.Likelihood\022K\n\030under_exposed_likelihood" + - "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" + - "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." + - "google.cloud.vision.v1p4beta1.Likelihood" + - "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" + - "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" + - "gnition_result\030\020 \003(\01324.google.cloud.visi" + - "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" + - "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" + - "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" + - "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" + - "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" + - "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" + - "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" + - "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" + - "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" + - "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" + - "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" + - "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" + - "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" + - "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" + - "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" + - "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" + - "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" + - "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" + - "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" + - "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" + - "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" + - "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" + - "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" + - "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" + - "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" + - "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." + - "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" + - "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" + - "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" + - "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" + - "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" + - "gle.cloud.vision.v1p4beta1.BoundingPoly\022" + - ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" + - ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " + - "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" + - "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" + - "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" + - " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" + - "(\0132+.google.cloud.vision.v1p4beta1.Bound" + - "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" + - "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." + - "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" + - ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" + - "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" + - "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" + - "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " + - "\001(\0162).google.cloud.vision.v1p4beta1.Like" + - "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" + - "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" + - " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" + - "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" + - "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" + - "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" + - "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" + - "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" + - "(\01327.google.cloud.vision.v1p4beta1.Domin" + - "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" + - "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" + - "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" + - "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" + - "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" + - ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" + - "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" + - "bDetectionParams\022\033\n\023include_geo_results\030" + - "\002 \001(\010\"c\n\023TextDetectionParams\022.\n&enable_t" + - "ext_detection_confidence_score\030\t \001(\010\022\034\n\024" + - "advanced_ocr_options\030\013 \003(\t\"\202\004\n\014ImageCont" + - "ext\022A\n\rlat_long_rect\030\001 \001(\0132*.google.clou" + - "d.vision.v1p4beta1.LatLongRect\022\026\n\016langua" + - "ge_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(" + - "\0132..google.cloud.vision.v1p4beta1.CropHi" + - "ntsParams\022U\n\027face_recognition_params\030\n \001" + - "(\01324.google.cloud.vision.v1p4beta1.FaceR" + - "ecognitionParams\022Q\n\025product_search_param" + - "s\030\005 \001(\01322.google.cloud.vision.v1p4beta1." + - "ProductSearchParams\022O\n\024web_detection_par" + - "ams\030\006 \001(\01321.google.cloud.vision.v1p4beta" + - "1.WebDetectionParams\022Q\n\025text_detection_p" + - "arams\030\014 \001(\01322.google.cloud.vision.v1p4be" + - "ta1.TextDetectionParams\"\311\001\n\024AnnotateImag" + - "eRequest\0223\n\005image\030\001 \001(\0132$.google.cloud.v" + - "ision.v1p4beta1.Image\0228\n\010features\030\002 \003(\0132" + - "&.google.cloud.vision.v1p4beta1.Feature\022" + - "B\n\rimage_context\030\003 \001(\0132+.google.cloud.vi" + - "sion.v1p4beta1.ImageContext\":\n\026ImageAnno" + - "tationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numbe" + - "r\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fac" + - "e_annotations\030\001 \003(\0132-.google.cloud.visio" + - "n.v1p4beta1.FaceAnnotation\022M\n\024landmark_a" + - "nnotations\030\002 \003(\0132/.google.cloud.vision.v" + - "1p4beta1.EntityAnnotation\022I\n\020logo_annota" + - "tions\030\003 \003(\0132/.google.cloud.vision.v1p4be" + - "ta1.EntityAnnotation\022J\n\021label_annotation" + - "s\030\004 \003(\0132/.google.cloud.vision.v1p4beta1." + - "EntityAnnotation\022^\n\034localized_object_ann" + - "otations\030\026 \003(\01328.google.cloud.vision.v1p" + - "4beta1.LocalizedObjectAnnotation\022I\n\020text" + - "_annotations\030\005 \003(\0132/.google.cloud.vision" + - ".v1p4beta1.EntityAnnotation\022K\n\024full_text" + - "_annotation\030\014 \001(\0132-.google.cloud.vision." + - "v1p4beta1.TextAnnotation\022S\n\026safe_search_" + - "annotation\030\006 \001(\01323.google.cloud.vision.v" + - "1p4beta1.SafeSearchAnnotation\022S\n\033image_p" + - "roperties_annotation\030\010 \001(\0132..google.clou" + - "d.vision.v1p4beta1.ImageProperties\022Q\n\025cr" + - "op_hints_annotation\030\013 \001(\01322.google.cloud" + - ".vision.v1p4beta1.CropHintsAnnotation\022B\n" + - "\rweb_detection\030\r \001(\0132+.google.cloud.visi" + - "on.v1p4beta1.WebDetection\022S\n\026product_sea" + - "rch_results\030\016 \001(\01323.google.cloud.vision." + - "v1p4beta1.ProductSearchResults\022!\n\005error\030" + - "\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001" + - "(\01325.google.cloud.vision.v1p4beta1.Image" + - "AnnotationContext\"h\n\032BatchAnnotateImages" + - "Request\022J\n\010requests\030\001 \003(\01323.google.cloud" + - ".vision.v1p4beta1.AnnotateImageRequestB\003" + - "\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tre" + - "sponses\030\001 \003(\01324.google.cloud.vision.v1p4" + - "beta1.AnnotateImageResponse\"\344\001\n\023Annotate" + - "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + - "le.cloud.vision.v1p4beta1.InputConfig\0228\n" + - "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + - "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + - ".google.cloud.vision.v1p4beta1.ImageCont" + - "ext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFileRespo" + - "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud" + - ".vision.v1p4beta1.InputConfig\022G\n\trespons" + - "es\030\002 \003(\01324.google.cloud.vision.v1p4beta1" + - ".AnnotateImageResponse\022\023\n\013total_pages\030\003 " + - "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"f" + - "\n\031BatchAnnotateFilesRequest\022I\n\010requests\030" + - "\001 \003(\01322.google.cloud.vision.v1p4beta1.An" + - "notateFileRequestB\003\340A\002\"d\n\032BatchAnnotateF" + - "ilesResponse\022F\n\tresponses\030\001 \003(\01323.google" + - ".cloud.vision.v1p4beta1.AnnotateFileResp" + - "onse\"\236\002\n\030AsyncAnnotateFileRequest\022@\n\014inp" + - "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + - "p4beta1.InputConfig\0228\n\010features\030\002 \003(\0132&." + - "google.cloud.vision.v1p4beta1.Feature\022B\n" + - "\rimage_context\030\003 \001(\0132+.google.cloud.visi" + - "on.v1p4beta1.ImageContext\022B\n\routput_conf" + - "ig\030\004 \001(\0132+.google.cloud.vision.v1p4beta1" + - ".OutputConfig\"_\n\031AsyncAnnotateFileRespon" + - "se\022B\n\routput_config\030\001 \001(\0132+.google.cloud" + - ".vision.v1p4beta1.OutputConfig\"\266\001\n\037Async" + - "BatchAnnotateImagesRequest\022J\n\010requests\030\001" + - " \003(\01323.google.cloud.vision.v1p4beta1.Ann" + - "otateImageRequestB\003\340A\002\022G\n\routput_config\030" + - "\002 \001(\0132+.google.cloud.vision.v1p4beta1.Ou" + - "tputConfigB\003\340A\002\"f\n AsyncBatchAnnotateIma" + - "gesResponse\022B\n\routput_config\030\001 \001(\0132+.goo" + - "gle.cloud.vision.v1p4beta1.OutputConfig\"" + - "p\n\036AsyncBatchAnnotateFilesRequest\022N\n\010req" + - "uests\030\001 \003(\01327.google.cloud.vision.v1p4be" + - "ta1.AsyncAnnotateFileRequestB\003\340A\002\"n\n\037Asy" + - "ncBatchAnnotateFilesResponse\022K\n\tresponse" + - "s\030\001 \003(\01328.google.cloud.vision.v1p4beta1." + - "AsyncAnnotateFileResponse\"o\n\013InputConfig" + - "\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud.visi" + - "on.v1p4beta1.GcsSource\022\017\n\007content\030\003 \001(\014\022" + - "\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gc" + - "s_destination\030\001 \001(\0132-.google.cloud.visio" + - "n.v1p4beta1.GcsDestination\022\022\n\nbatch_size" + - "\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsD" + - "estination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMet" + - "adata\022E\n\005state\030\001 \001(\01626.google.cloud.visi" + - "on.v1p4beta1.OperationMetadata.State\022/\n\013" + - "create_time\030\005 \001(\0132\032.google.protobuf.Time" + - "stamp\022/\n\013update_time\030\006 \001(\0132\032.google.prot" + - "obuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE" + - "\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNO" + - "WN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n" + - "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005" + - "2\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateIma" + - "ges\0229.google.cloud.vision.v1p4beta1.Batc" + - "hAnnotateImagesRequest\032:.google.cloud.vi" + - "sion.v1p4beta1.BatchAnnotateImagesRespon" + - "se\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:annotate:\001" + - "*\332A\010requests\022\272\001\n\022BatchAnnotateFiles\0228.go" + - "ogle.cloud.vision.v1p4beta1.BatchAnnotat" + - "eFilesRequest\0329.google.cloud.vision.v1p4" + - "beta1.BatchAnnotateFilesResponse\"/\202\323\344\223\002\036" + - "\"\031/v1p4beta1/files:annotate:\001*\332A\010request" + - "s\022\374\001\n\030AsyncBatchAnnotateImages\022>.google." + - "cloud.vision.v1p4beta1.AsyncBatchAnnotat" + - "eImagesRequest\032\035.google.longrunning.Oper" + - "ation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:asyncB" + - "atchAnnotate:\001*\332A\026requests,output_config" + - "\312A5\n AsyncBatchAnnotateImagesResponse\022\021O" + - "perationMetadata\022\351\001\n\027AsyncBatchAnnotateF" + - "iles\022=.google.cloud.vision.v1p4beta1.Asy" + - "ncBatchAnnotateFilesRequest\032\035.google.lon" + - "grunning.Operation\"p\202\323\344\223\002(\"#/v1p4beta1/f" + - "iles:asyncBatchAnnotate:\001*\332A\010requests\312A4" + - "\n\037AsyncBatchAnnotateFilesResponse\022\021Opera" + - "tionMetadata\032v\312A\025vision.googleapis.com\322A" + - "[https://www.googleapis.com/auth/cloud-p" + - "latform,https://www.googleapis.com/auth/" + - "cloud-visionB\211\001\n!com.google.cloud.vision" + - ".v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogl" + - "e.golang.org/genproto/googleapis/cloud/v" + - "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ColorProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor, - new java.lang.String[] { "Type", "MaxResults", "Model", }); - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor, - new java.lang.String[] { "GcsImageUri", "ImageUri", }); - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Image_descriptor, - new java.lang.String[] { "Content", "Source", }); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor, - new java.lang.String[] { "BoundingPoly", "FdBoundingPoly", "Landmarks", "RollAngle", "PanAngle", "TiltAngle", "DetectionConfidence", "LandmarkingConfidence", "JoyLikelihood", "SorrowLikelihood", "AngerLikelihood", "SurpriseLikelihood", "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", "RecognitionResult", }); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor = - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor, - new java.lang.String[] { "Type", "Position", }); - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor, - new java.lang.String[] { "LatLng", }); - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Property_descriptor, - new java.lang.String[] { "Name", "Value", "Uint64Value", }); - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor, - new java.lang.String[] { "Mid", "Locale", "Description", "Score", "Confidence", "Topicality", "BoundingPoly", "Locations", "Properties", }); - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor, - new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", }); - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor, - new java.lang.String[] { "Adult", "Spoof", "Medical", "Violence", "Racy", }); - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor, - new java.lang.String[] { "MinLatLng", "MaxLatLng", }); - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor, - new java.lang.String[] { "Color", "Score", "PixelFraction", }); - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor, - new java.lang.String[] { "Colors", }); - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor, - new java.lang.String[] { "DominantColors", }); - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor, - new java.lang.String[] { "BoundingPoly", "Confidence", "ImportanceFraction", }); - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor, - new java.lang.String[] { "CropHints", }); - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor, - new java.lang.String[] { "AspectRatios", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor, - new java.lang.String[] { "IncludeGeoResults", }); - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor, - new java.lang.String[] { "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", }); - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor, - new java.lang.String[] { "LatLongRect", "LanguageHints", "CropHintsParams", "FaceRecognitionParams", "ProductSearchParams", "WebDetectionParams", "TextDetectionParams", }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor, - new java.lang.String[] { "Image", "Features", "ImageContext", }); - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor, - new java.lang.String[] { "Uri", "PageNumber", }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor, - new java.lang.String[] { "FaceAnnotations", "LandmarkAnnotations", "LogoAnnotations", "LabelAnnotations", "LocalizedObjectAnnotations", "TextAnnotations", "FullTextAnnotation", "SafeSearchAnnotation", "ImagePropertiesAnnotation", "CropHintsAnnotation", "WebDetection", "ProductSearchResults", "Error", "Context", }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor, - new java.lang.String[] { "InputConfig", "Features", "ImageContext", "Pages", }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { "InputConfig", "Responses", "TotalPages", "Error", }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor, - new java.lang.String[] { "InputConfig", "Features", "ImageContext", "OutputConfig", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor, - new java.lang.String[] { "OutputConfig", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor, - new java.lang.String[] { "Requests", "OutputConfig", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor, - new java.lang.String[] { "OutputConfig", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Content", "MimeType", }); - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BatchSize", }); - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor, - new java.lang.String[] { "State", "CreateTime", "UpdateTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ColorProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java deleted file mode 100644 index 719684bff..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface ImportProductSetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project in which the ProductSets should be imported.
-   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the inputConfig field is set. - */ - boolean hasInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The inputConfig. - */ - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig(); - /** - *
-   * Required. The input content for the list of requests.
-   * 
- * - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 80edfacff..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface NormalizedVertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java deleted file mode 100644 index 93bca89bb..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ProductSearchProto { - private ProductSearchProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/vision/v1p4beta1/product_" + - "search.proto\022\035google.cloud.vision.v1p4be" + - "ta1\032\034google/api/annotations.proto\032\031googl" + - "e/api/resource.proto\032,google/cloud/visio" + - "n/v1p4beta1/geometry.proto\032:google/cloud" + - "/vision/v1p4beta1/product_search_service" + - ".proto\032\037google/protobuf/timestamp.proto\"" + - "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" + - "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" + - "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" + - "ision.googleapis.com/ProductSet\022\032\n\022produ" + - "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" + - "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\022K\n\007results\030" + - "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" + - "oductSearchResults.Result\022b\n\027product_gro" + - "uped_results\030\006 \003(\0132A.google.cloud.vision" + - ".v1p4beta1.ProductSearchResults.GroupedR" + - "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" + - "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" + - "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" + - "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + - "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" + - "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" + - "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" + - "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" + - "a1.ProductSearchResults.Result\022`\n\022object" + - "_annotations\030\003 \003(\0132D.google.cloud.vision" + - ".v1p4beta1.ProductSearchResults.ObjectAn" + - "notationB\210\001\n!com.google.cloud.vision.v1p" + - "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" + - "ang.org/genproto/googleapis/cloud/vision" + - "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor, - new java.lang.String[] { "BoundingPoly", "ProductSet", "ProductCategories", "Filter", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor, - new java.lang.String[] { "IndexTime", "Results", "ProductGroupedResults", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor, - new java.lang.String[] { "Product", "Score", "Image", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor, - new java.lang.String[] { "Mid", "LanguageCode", "Name", "Score", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor, - new java.lang.String[] { "BoundingPoly", "Results", "ObjectAnnotations", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java deleted file mode 100644 index 2673ab528..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java +++ /dev/null @@ -1,649 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class ProductSearchServiceProto { - private ProductSearchServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/vision/v1p4beta1/product_" + - "search_service.proto\022\035google.cloud.visio" + - "n.v1p4beta1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032,google/cloud/vision/v1p4beta1/ge" + - "ometry.proto\032#google/longrunning/operati" + - "ons.proto\032\033google/protobuf/empty.proto\032 " + - "google/protobuf/field_mask.proto\032\037google" + - "/protobuf/timestamp.proto\032\027google/rpc/st" + - "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + - "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + - "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + - "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + - "4beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + - "gleapis.com/Product\022:projects/{project}/" + - "locations/{location}/products/{product}\"" + - "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + - "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + - " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + - "on.googleapis.com/ProductSet\022Aprojects/{" + - "project}/locations/{location}/productSet" + - "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + - "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + - "olys\030\003 \003(\0132+.google.cloud.vision.v1p4bet" + - "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + - "leapis.com/ReferenceImage\022\\projects/{pro" + - "ject}/locations/{location}/products/{pro" + - "duct}/referenceImages/{reference_image}\"" + - "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + - "on.v1p4beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + - "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + - "ts\030\001 \003(\0132&.google.cloud.vision.v1p4beta1" + - ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + - "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + - "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + - "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + - "loud.vision.v1p4beta1.ProductB\003\340A\002\022/\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + - "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + - "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + - "oud.vision.v1p4beta1.ProductSetB\003\340A\002\022\026\n\016" + - "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + - "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + - "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + - "le.cloud.vision.v1p4beta1.ProductSet\022\027\n\017" + - "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + - "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + - "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + - "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + - "cloud.vision.v1p4beta1.ProductSetB\003\340A\002\022/" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + - "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + - "ProductSet\"\275\001\n\033CreateReferenceImageReque" + - "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + - "eapis.com/Product\022K\n\017reference_image\030\002 \001" + - "(\0132-.google.cloud.vision.v1p4beta1.Refer" + - "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + - "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + - "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + - "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + - "\n\020reference_images\030\001 \003(\0132-.google.cloud." + - "vision.v1p4beta1.ReferenceImage\022\021\n\tpage_" + - "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + - "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + - "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + - "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + - "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + - "ReferenceImage\"\217\001\n\035AddProductToProductSe" + - "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + - "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + - "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + - "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + - "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + - ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + - "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + - "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + - "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + - "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"u\n ListProductsInProductSetResponse\0228" + - "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + - "1p4beta1.Product\022\027\n\017next_page_token\030\002 \001(" + - "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + - "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + - "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + - ".vision.v1p4beta1.ImportProductSetsGcsSo" + - "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022V\n\014input_config" + - "\030\002 \001(\0132;.google.cloud.vision.v1p4beta1.I" + - "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + - "ortProductSetsResponse\022G\n\020reference_imag" + - "es\030\001 \003(\0132-.google.cloud.vision.v1p4beta1" + - ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + - "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + - "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + - "p4beta1.BatchOperationMetadata.State\022/\n\013" + - "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + - "AILED\020\003\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurg" + - "eConfig\022\026\n\016product_set_id\030\001 \001(\t\"\346\001\n\024Purg" + - "eProductsRequest\022X\n\030product_set_purge_co" + - "nfig\030\002 \001(\01324.google.cloud.vision.v1p4bet" + - "a1.ProductSetPurgeConfigH\000\022 \n\026delete_orp" + - "han_products\030\003 \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "\r\n\005force\030\004 \001(\010B\010\n\006target2\322 \n\rProductSear" + - "ch\022\346\001\n\020CreateProductSet\0226.google.cloud.v" + - "ision.v1p4beta1.CreateProductSetRequest\032" + - ").google.cloud.vision.v1p4beta1.ProductS" + - "et\"o\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" + - "*/locations/*}/productSets:\013product_set\332" + - "A!parent,product_set,product_set_id\022\311\001\n\017" + - "ListProductSets\0225.google.cloud.vision.v1" + - "p4beta1.ListProductSetsRequest\0326.google." + - "cloud.vision.v1p4beta1.ListProductSetsRe" + - "sponse\"G\202\323\344\223\0028\0226/v1p4beta1/{parent=proje" + - "cts/*/locations/*}/productSets\332A\006parent\022" + - "\266\001\n\rGetProductSet\0223.google.cloud.vision." + - "v1p4beta1.GetProductSetRequest\032).google." + - "cloud.vision.v1p4beta1.ProductSet\"E\202\323\344\223\002" + - "8\0226/v1p4beta1/{name=projects/*/locations" + - "/*/productSets/*}\332A\004name\022\350\001\n\020UpdateProdu" + - "ctSet\0226.google.cloud.vision.v1p4beta1.Up" + - "dateProductSetRequest\032).google.cloud.vis" + - "ion.v1p4beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p4b" + - "eta1/{product_set.name=projects/*/locati" + - "ons/*/productSets/*}:\013product_set\332A\027prod" + - "uct_set,update_mask\022\251\001\n\020DeleteProductSet" + - "\0226.google.cloud.vision.v1p4beta1.DeleteP" + - "roductSetRequest\032\026.google.protobuf.Empty" + - "\"E\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/lo" + - "cations/*/productSets/*}\332A\004name\022\316\001\n\rCrea" + - "teProduct\0223.google.cloud.vision.v1p4beta" + - "1.CreateProductRequest\032&.google.cloud.vi" + - "sion.v1p4beta1.Product\"`\202\323\344\223\002>\"3/v1p4bet" + - "a1/{parent=projects/*/locations/*}/produ" + - "cts:\007product\332A\031parent,product,product_id" + - "\022\275\001\n\014ListProducts\0222.google.cloud.vision." + - "v1p4beta1.ListProductsRequest\0323.google.c" + - "loud.vision.v1p4beta1.ListProductsRespon" + - "se\"D\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/" + - "*/locations/*}/products\332A\006parent\022\252\001\n\nGet" + - "Product\0220.google.cloud.vision.v1p4beta1." + - "GetProductRequest\032&.google.cloud.vision." + - "v1p4beta1.Product\"B\202\323\344\223\0025\0223/v1p4beta1/{n" + - "ame=projects/*/locations/*/products/*}\332A" + - "\004name\022\320\001\n\rUpdateProduct\0223.google.cloud.v" + - "ision.v1p4beta1.UpdateProductRequest\032&.g" + - "oogle.cloud.vision.v1p4beta1.Product\"b\202\323" + - "\344\223\002F2;/v1p4beta1/{product.name=projects/" + - "*/locations/*/products/*}:\007product\332A\023pro" + - "duct,update_mask\022\240\001\n\rDeleteProduct\0223.goo" + - "gle.cloud.vision.v1p4beta1.DeleteProduct" + - "Request\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*" + - "3/v1p4beta1/{name=projects/*/locations/*" + - "/products/*}\332A\004name\022\216\002\n\024CreateReferenceI" + - "mage\022:.google.cloud.vision.v1p4beta1.Cre" + - "ateReferenceImageRequest\032-.google.cloud." + - "vision.v1p4beta1.ReferenceImage\"\212\001\202\323\344\223\002X" + - "\"E/v1p4beta1/{parent=projects/*/location" + - "s/*/products/*}/referenceImages:\017referen" + - "ce_image\332A)parent,reference_image,refere" + - "nce_image_id\022\300\001\n\024DeleteReferenceImage\022:." + - "google.cloud.vision.v1p4beta1.DeleteRefe" + - "renceImageRequest\032\026.google.protobuf.Empt" + - "y\"T\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/l" + - "ocations/*/products/*/referenceImages/*}" + - "\332A\004name\022\344\001\n\023ListReferenceImages\0229.google" + - ".cloud.vision.v1p4beta1.ListReferenceIma" + - "gesRequest\032:.google.cloud.vision.v1p4bet" + - "a1.ListReferenceImagesResponse\"V\202\323\344\223\002G\022E" + - "/v1p4beta1/{parent=projects/*/locations/" + - "*/products/*}/referenceImages\332A\006parent\022\321" + - "\001\n\021GetReferenceImage\0227.google.cloud.visi" + - "on.v1p4beta1.GetReferenceImageRequest\032-." + - "google.cloud.vision.v1p4beta1.ReferenceI" + - "mage\"T\202\323\344\223\002G\022E/v1p4beta1/{name=projects/" + - "*/locations/*/products/*/referenceImages" + - "/*}\332A\004name\022\313\001\n\026AddProductToProductSet\022<." + - "google.cloud.vision.v1p4beta1.AddProduct" + - "ToProductSetRequest\032\026.google.protobuf.Em" + - "pty\"[\202\323\344\223\002F\"A/v1p4beta1/{name=projects/*" + - "/locations/*/productSets/*}:addProduct:\001" + - "*\332A\014name,product\022\330\001\n\033RemoveProductFromPr" + - "oductSet\022A.google.cloud.vision.v1p4beta1" + - ".RemoveProductFromProductSetRequest\032\026.go" + - "ogle.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p4beta1/" + - "{name=projects/*/locations/*/productSets" + - "/*}:removeProduct:\001*\332A\014name,product\022\353\001\n\030" + - "ListProductsInProductSet\022>.google.cloud." + - "vision.v1p4beta1.ListProductsInProductSe" + - "tRequest\032?.google.cloud.vision.v1p4beta1" + - ".ListProductsInProductSetResponse\"N\202\323\344\223\002" + - "A\022?/v1p4beta1/{name=projects/*/locations" + - "/*/productSets/*}/products\332A\004name\022\202\002\n\021Im" + - "portProductSets\0227.google.cloud.vision.v1" + - "p4beta1.ImportProductSetsRequest\032\035.googl" + - "e.longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p4b" + - "eta1/{parent=projects/*/locations/*}/pro" + - "ductSets:import:\001*\332A\023parent,input_config" + - "\312A3\n\031ImportProductSetsResponse\022\026BatchOpe" + - "rationMetadata\022\344\001\n\rPurgeProducts\0223.googl" + - "e.cloud.vision.v1p4beta1.PurgeProductsRe" + - "quest\032\035.google.longrunning.Operation\"\177\202\323" + - "\344\223\002>\"9/v1p4beta1/{parent=projects/*/loca" + - "tions/*}/products:purge:\001*\332A\006parent\312A/\n\025" + - "google.protobuf.Empty\022\026BatchOperationMet" + - "adata\032v\312A\025vision.googleapis.com\322A[https:" + - "//www.googleapis.com/auth/cloud-platform" + - ",https://www.googleapis.com/auth/cloud-v" + - "isionB\217\001\n!com.google.cloud.vision.v1p4be" + - "ta1B\031ProductSearchServiceProtoP\001ZCgoogle" + - ".golang.org/genproto/googleapis/cloud/vi" + - "sion/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", }); - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor = - internal_static_google_cloud_vision_v1p4beta1_Product_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor, - new java.lang.String[] { "Name", "DisplayName", "IndexTime", "IndexError", }); - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor, - new java.lang.String[] { "Name", "Uri", "BoundingPolys", }); - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor, - new java.lang.String[] { "Parent", "Product", "ProductId", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor, - new java.lang.String[] { "Products", "NextPageToken", }); - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor, - new java.lang.String[] { "Product", "UpdateMask", }); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor, - new java.lang.String[] { "Parent", "ProductSet", "ProductSetId", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor, - new java.lang.String[] { "ProductSets", "NextPageToken", }); - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor, - new java.lang.String[] { "ProductSet", "UpdateMask", }); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor, - new java.lang.String[] { "Parent", "ReferenceImage", "ReferenceImageId", }); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor, - new java.lang.String[] { "ReferenceImages", "PageSize", "NextPageToken", }); - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor, - new java.lang.String[] { "Name", "Product", }); - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor, - new java.lang.String[] { "Name", "Product", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor, - new java.lang.String[] { "Products", "NextPageToken", }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor, - new java.lang.String[] { "CsvFileUri", }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor, - new java.lang.String[] { "Parent", "InputConfig", }); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor, - new java.lang.String[] { "ReferenceImages", "Statuses", }); - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor, - new java.lang.String[] { "State", "SubmitTime", "EndTime", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor, - new java.lang.String[] { "ProductSetId", }); - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor, - new java.lang.String[] { "ProductSetPurgeConfig", "DeleteOrphanProducts", "Parent", "Force", "Target", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java deleted file mode 100644 index 8e1d54f4c..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/product_search_service.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface RemoveProductFromProductSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for the ProductSet to modify.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The resource name for the Product to be removed from this
-   * ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The product. - */ - java.lang.String getProduct(); - /** - *
-   * Required. The resource name for the Product to be removed from this
-   * ProductSet.
-   * Format is:
-   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
-   * 
- * - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for product. - */ - com.google.protobuf.ByteString - getProductBytes(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java deleted file mode 100644 index b90c1c69e..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/text_annotation.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class TextAnnotationProto { - private TextAnnotationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/vision/v1p4beta1/text_ann" + - "otation.proto\022\035google.cloud.vision.v1p4b" + - "eta1\032\034google/api/annotations.proto\032,goog" + - "le/cloud/vision/v1p4beta1/geometry.proto" + - "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + - "gle.cloud.vision.v1p4beta1.Page\022\014\n\004text\030" + - "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + - "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + - "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + - "on.v1p4beta1.TextAnnotation.DetectedBrea" + - "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + - "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + - "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + - "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + - "_languages\030\001 \003(\0132>.google.cloud.vision.v" + - "1p4beta1.TextAnnotation.DetectedLanguage" + - "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + - "vision.v1p4beta1.TextAnnotation.Detected" + - "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + - "e.cloud.vision.v1p4beta1.TextAnnotation." + - "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + - "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + - "n.v1p4beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + - "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + - ".vision.v1p4beta1.TextAnnotation.TextPro" + - "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + - "ud.vision.v1p4beta1.BoundingPoly\022<\n\npara" + - "graphs\030\003 \003(\0132(.google.cloud.vision.v1p4b" + - "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + - "gle.cloud.vision.v1p4beta1.Block.BlockTy" + - "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + - "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + - "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + - "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + - ".v1p4beta1.TextAnnotation.TextProperty\022A" + - "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + - "on.v1p4beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + - "2#.google.cloud.vision.v1p4beta1.Word\022\022\n" + - "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + - " \001(\0132:.google.cloud.vision.v1p4beta1.Tex" + - "tAnnotation.TextProperty\022A\n\014bounding_box" + - "\030\002 \001(\0132+.google.cloud.vision.v1p4beta1.B" + - "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + - "oud.vision.v1p4beta1.Symbol\022\022\n\nconfidenc" + - "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + - "oogle.cloud.vision.v1p4beta1.TextAnnotat" + - "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + - ".google.cloud.vision.v1p4beta1.BoundingP" + - "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\211\001" + - "\n!com.google.cloud.vision.v1p4beta1B\023Tex" + - "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + - "nproto/googleapis/cloud/vision/v1p4beta1" + - ";vision\370\001\001\242\002\004GCVNb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor, - new java.lang.String[] { "Pages", "Text", }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor, - new java.lang.String[] { "Type", "IsPrefix", }); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor = - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor, - new java.lang.String[] { "DetectedLanguages", "DetectedBreak", }); - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Page_descriptor, - new java.lang.String[] { "Property", "Width", "Height", "Blocks", "Confidence", }); - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Block_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", }); - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Words", "Confidence", }); - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Word_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Symbols", "Confidence", }); - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor, - new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java deleted file mode 100644 index 7dc7ef73c..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/geometry.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface VertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java deleted file mode 100644 index 7e3a25f12..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/image_annotator.proto - -package com.google.cloud.vision.v1p4beta1; - -public interface WebDetectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to include results derived from the geo information in the image.
-   * 
- * - * bool include_geo_results = 2; - * @return The includeGeoResults. - */ - boolean getIncludeGeoResults(); -} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java deleted file mode 100644 index aebd237f9..000000000 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vision/v1p4beta1/web_detection.proto - -package com.google.cloud.vision.v1p4beta1; - -public final class WebDetectionProto { - private WebDetectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vision/v1p4beta1/web_dete" + - "ction.proto\022\035google.cloud.vision.v1p4bet" + - "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + - "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + - ".cloud.vision.v1p4beta1.WebDetection.Web" + - "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + - "oogle.cloud.vision.v1p4beta1.WebDetectio" + - "n.WebImage\022U\n\027partial_matching_images\030\003 " + - "\003(\01324.google.cloud.vision.v1p4beta1.WebD" + - "etection.WebImage\022W\n\032pages_with_matching" + - "_images\030\004 \003(\01323.google.cloud.vision.v1p4" + - "beta1.WebDetection.WebPage\022U\n\027visually_s" + - "imilar_images\030\006 \003(\01324.google.cloud.visio" + - "n.v1p4beta1.WebDetection.WebImage\022O\n\021bes" + - "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + - "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" + - "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + - "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + - "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + - "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + - "e.cloud.vision.v1p4beta1.WebDetection.We" + - "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + - "4.google.cloud.vision.v1p4beta1.WebDetec" + - "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + - "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" + - "loud.vision.v1p4beta1B\021WebDetectionProto" + - "P\001ZCgoogle.golang.org/genproto/googleapi" + - "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" + - "Nb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor, - new java.lang.String[] { "WebEntities", "FullMatchingImages", "PartialMatchingImages", "PagesWithMatchingImages", "VisuallySimilarImages", "BestGuessLabels", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor, - new java.lang.String[] { "EntityId", "Score", "Description", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor, - new java.lang.String[] { "Url", "Score", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, - new java.lang.String[] { "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = - internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, - new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java index a8a51a48f..b51bb1c73 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +44,15 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +144,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,13 +181,18 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -168,31 +201,33 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -201,6 +236,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +278,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1.AddProductToProductSetRequest other = + (com.google.cloud.vision.v1.AddProductToProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,117 +309,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AddProductToProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AddProductToProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AddProductToProductSetRequest) com.google.cloud.vision.v1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AddProductToProductSetRequest.newBuilder() @@ -393,16 +437,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; } @java.lang.Override @@ -435,7 +478,8 @@ public com.google.cloud.vision.v1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1.AddProductToProductSetRequest result = + new com.google.cloud.vision.v1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -446,38 +490,39 @@ public com.google.cloud.vision.v1.AddProductToProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.AddProductToProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.AddProductToProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -485,7 +530,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AddProductToProductSetRequest other) { - if (other == com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AddProductToProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +559,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AddProductToProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AddProductToProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +572,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +598,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,60 +624,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -631,20 +698,24 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -653,22 +724,25 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -676,67 +750,80 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AddProductToProductSetRequest) private static final com.google.cloud.vision.v1.AddProductToProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AddProductToProductSetRequest(); } @@ -760,16 +847,16 @@ public static com.google.cloud.vision.v1.AddProductToProductSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +871,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.vision.v1.AddProductToProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..994a635fb --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface AddProductToProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java index 82f59e618..14091d5bc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateFileRequest} */ -public final class AnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateFileRequest) AnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateFileRequest.newBuilder() to construct. private AnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateFileRequest() { features_ = java.util.Collections.emptyList(); pages_ = emptyIntList(); @@ -26,16 +44,15 @@ private AnnotateFileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private AnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); + break; } - imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; + break; } - pages_.addInt(input.readInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { + case 32: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } pages_.addInt(input.readInt32()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + pages_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,8 +152,7 @@ private AnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -138,27 +164,33 @@ private AnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateFileRequest.class, com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AnnotateFileRequest.class, + com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -166,18 +198,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -192,6 +231,8 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -203,6 +244,8 @@ public java.util.List getFeaturesList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -210,11 +253,13 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -226,6 +271,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -237,6 +284,8 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -244,19 +293,21 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -264,18 +315,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -290,6 +348,8 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder public static final int PAGES_FIELD_NUMBER = 4; private com.google.protobuf.Internal.IntList pages_; /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -304,14 +364,16 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder
    * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ @java.lang.Override - public java.util.List - getPagesList() { + public java.util.List getPagesList() { return pages_; } /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -326,12 +388,15 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder
    * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -346,15 +411,18 @@ public int getPagesCount() {
    * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ public int getPages(int index) { return pages_.getInt(index); } + private int pagesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,8 +434,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); @@ -395,28 +462,23 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } { int dataSize = 0; for (int i = 0; i < pages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(pages_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pages_.getInt(i)); } size += dataSize; if (!getPagesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } pagesMemoizedSerializedSize = dataSize; } @@ -428,27 +490,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AnnotateFileRequest other = (com.google.cloud.vision.v1.AnnotateFileRequest) obj; + com.google.cloud.vision.v1.AnnotateFileRequest other = + (com.google.cloud.vision.v1.AnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } - if (!getPagesList() - .equals(other.getPagesList())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -481,118 +540,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateFileRequest) com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateFileRequest.class, com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AnnotateFileRequest.class, + com.google.cloud.vision.v1.AnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AnnotateFileRequest.newBuilder() @@ -600,17 +668,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -638,9 +706,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; } @java.lang.Override @@ -659,7 +727,8 @@ public com.google.cloud.vision.v1.AnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1.AnnotateFileRequest result = new com.google.cloud.vision.v1.AnnotateFileRequest(this); + com.google.cloud.vision.v1.AnnotateFileRequest result = + new com.google.cloud.vision.v1.AnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -693,38 +762,39 @@ public com.google.cloud.vision.v1.AnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1.AnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1.AnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -754,9 +824,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileRequest other) { featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -803,38 +874,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -855,14 +940,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig( - com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -873,6 +959,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -883,7 +971,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -895,6 +985,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -913,6 +1005,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -920,11 +1014,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -935,11 +1031,14 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -947,32 +1046,41 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -987,6 +1095,8 @@ public java.util.List getFeaturesList() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1001,6 +1111,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1015,14 +1127,15 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1036,6 +1149,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1054,6 +1169,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1074,14 +1191,15 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1095,14 +1213,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1113,6 +1232,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1131,6 +1252,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1141,8 +1264,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1150,6 +1272,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1167,6 +1291,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1184,39 +1310,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1224,6 +1355,8 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1231,42 +1364,47 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1274,34 +1412,47 @@ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1322,6 +1473,8 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1340,6 +1493,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1350,7 +1505,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1362,6 +1519,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1380,6 +1539,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1387,11 +1548,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1402,11 +1565,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1414,27 +1580,33 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } private com.google.protobuf.Internal.IntList pages_ = emptyIntList(); + private void ensurePagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pages_ = mutableCopy(pages_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1449,14 +1621,17 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ - public java.util.List - getPagesList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(pages_) : pages_; + public java.util.List getPagesList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(pages_) + : pages_; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1471,12 +1646,15 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1491,6 +1669,7 @@ public int getPagesCount() {
      * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ @@ -1498,6 +1677,8 @@ public int getPages(int index) { return pages_.getInt(index); } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1512,18 +1693,20 @@ public int getPages(int index) {
      * 
* * repeated int32 pages = 4; + * * @param index The index to set the value at. * @param value The pages to set. * @return This builder for chaining. */ - public Builder setPages( - int index, int value) { + public Builder setPages(int index, int value) { ensurePagesIsMutable(); pages_.setInt(index, value); onChanged(); return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1538,6 +1721,7 @@ public Builder setPages(
      * 
* * repeated int32 pages = 4; + * * @param value The pages to add. * @return This builder for chaining. */ @@ -1548,6 +1732,8 @@ public Builder addPages(int value) { return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1562,18 +1748,19 @@ public Builder addPages(int value) {
      * 
* * repeated int32 pages = 4; + * * @param values The pages to add. * @return This builder for chaining. */ - public Builder addAllPages( - java.lang.Iterable values) { + public Builder addAllPages(java.lang.Iterable values) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1588,6 +1775,7 @@ public Builder addAllPages(
      * 
* * repeated int32 pages = 4; + * * @return This builder for chaining. */ public Builder clearPages() { @@ -1596,9 +1784,9 @@ public Builder clearPages() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1608,12 +1796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileRequest) private static final com.google.cloud.vision.v1.AnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateFileRequest(); } @@ -1622,16 +1810,16 @@ public static com.google.cloud.vision.v1.AnnotateFileRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,6 +1834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java index f327adc50..50f56dd11 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AnnotateFileRequestOrBuilder extends +public interface AnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,53 @@ public interface AnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesOrBuilderList(); + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,6 +145,8 @@ com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -120,10 +161,13 @@ com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ java.util.List getPagesList(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -138,10 +182,13 @@ com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ int getPagesCount(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -156,6 +203,7 @@ com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java index 72ca9f8c8..14ce7e716 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,53 +72,61 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null;
-            if (inputConfig_ != null) {
-              subBuilder = inputConfig_.toBuilder();
-            }
-            inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(inputConfig_);
-              inputConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null;
+              if (inputConfig_ != null) {
+                subBuilder = inputConfig_.toBuilder();
+              }
+              inputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputConfig_);
+                inputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              responses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            responses_.add(
-                input.readMessage(com.google.cloud.vision.v1.AnnotateImageResponse.parser(), extensionRegistry));
-            break;
-          }
-          case 24: {
-
-            totalPages_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                responses_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              responses_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1.AnnotateImageResponse.parser(),
+                      extensionRegistry));
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 24:
+            {
+              totalPages_ = input.readInt32();
+              break;
             }
+          case 34:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,8 +134,7 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -119,27 +143,33 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AnnotateFileResponse.class, com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1.AnnotateFileResponse.class,
+            com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1.InputConfig inputConfig_;
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -147,18 +177,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -173,6 +210,8 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** + * + * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -185,6 +224,8 @@ public java.util.List getRespo
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -193,11 +234,13 @@ public java.util.List getRespo
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -210,6 +253,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -222,6 +267,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -238,11 +285,14 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
   public static final int TOTAL_PAGES_FIELD_NUMBER = 3;
   private int totalPages_;
   /**
+   *
+   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; + * * @return The totalPages. */ @java.lang.Override @@ -253,12 +303,15 @@ public int getTotalPages() { public static final int ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ @java.lang.Override @@ -266,12 +319,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return The error. */ @java.lang.Override @@ -279,6 +335,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
@@ -292,6 +350,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -303,8 +362,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (inputConfig_ != null) {
       output.writeMessage(1, getInputConfig());
     }
@@ -327,20 +385,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getInputConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig());
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i));
     }
     if (totalPages_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(3, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalPages_);
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -350,26 +404,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AnnotateFileResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AnnotateFileResponse other = (com.google.cloud.vision.v1.AnnotateFileResponse) obj;
+    com.google.cloud.vision.v1.AnnotateFileResponse other =
+        (com.google.cloud.vision.v1.AnnotateFileResponse) obj;
 
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig()
-          .equals(other.getInputConfig())) return false;
+      if (!getInputConfig().equals(other.getInputConfig())) return false;
     }
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (getTotalPages() != other.getTotalPages()) return false;
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -401,97 +452,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateFileResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateFileResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -499,21 +557,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.AnnotateFileResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateFileResponse)
       com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AnnotateFileResponse.class, com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1.AnnotateFileResponse.class,
+              com.google.cloud.vision.v1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AnnotateFileResponse.newBuilder()
@@ -521,17 +581,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -559,9 +619,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -580,7 +640,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1.AnnotateFileResponse result = new com.google.cloud.vision.v1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1.AnnotateFileResponse result =
+          new com.google.cloud.vision.v1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -610,38 +671,39 @@ public com.google.cloud.vision.v1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1.AnnotateFileResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1.AnnotateFileResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -649,7 +711,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance())
+        return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -671,9 +734,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateFileResponse other)
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -713,38 +777,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_;
+            com.google.cloud.vision.v1.InputConfig,
+            com.google.cloud.vision.v1.InputConfig.Builder,
+            com.google.cloud.vision.v1.InputConfigOrBuilder>
+        inputConfigBuilder_;
     /**
+     *
+     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -765,14 +843,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig( - com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -783,6 +862,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -793,7 +874,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -805,6 +888,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -823,6 +908,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -830,11 +917,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -845,11 +934,14 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -857,32 +949,42 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1.AnnotateImageResponse, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -898,6 +1000,8 @@ public java.util.List getRespo
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -913,6 +1017,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -928,6 +1034,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -935,8 +1043,7 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index)
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public Builder setResponses(
-        int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
+    public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -950,6 +1057,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -969,6 +1078,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -990,6 +1101,8 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -997,8 +1110,7 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public Builder addResponses(
-        int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
+    public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1012,6 +1124,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1031,6 +1145,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1050,6 +1166,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1061,8 +1179,7 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -1070,6 +1187,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1088,6 +1207,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1106,6 +1227,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1113,11 +1236,12 @@ public Builder removeResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(int index) {
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1128,11 +1252,14 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuil
     public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1140,8 +1267,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1149,6 +1276,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1157,10 +1286,12 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
     public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1168,12 +1299,13 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuil
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(
-        int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(int index) {
+      return getResponsesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1181,32 +1313,38 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuil
      *
      * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> 
+            com.google.cloud.vision.v1.AnnotateImageResponse,
+            com.google.cloud.vision.v1.AnnotateImageResponse.Builder,
+            com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.AnnotateImageResponse,
+                com.google.cloud.vision.v1.AnnotateImageResponse.Builder,
+                com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
 
-    private int totalPages_ ;
+    private int totalPages_;
     /**
+     *
+     *
      * 
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @return The totalPages. */ @java.lang.Override @@ -1214,30 +1352,36 @@ public int getTotalPages() { return totalPages_; } /** + * + * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(int value) { - + totalPages_ = value; onChanged(); return this; } /** + * + * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0; onChanged(); return this; @@ -1245,26 +1389,33 @@ public Builder clearTotalPages() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -1275,6 +1426,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1296,6 +1449,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1303,8 +1458,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 4;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1315,6 +1469,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1325,8 +1481,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1338,6 +1493,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1357,6 +1514,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1365,11 +1524,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 4;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1381,11 +1542,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1394,21 +1556,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1418,12 +1580,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateFileResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileResponse)
   private static final com.google.cloud.vision.v1.AnnotateFileResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateFileResponse();
   }
@@ -1432,16 +1594,16 @@ public static com.google.cloud.vision.v1.AnnotateFileResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateFileResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateFileResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateFileResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateFileResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1456,6 +1618,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.AnnotateFileResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
index 1ddb75d72..a5dd43cea 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateFileResponseOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AnnotateFileResponseOrBuilder extends
+public interface AnnotateFileResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateFileResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -35,6 +59,8 @@ public interface AnnotateFileResponseOrBuilder extends com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -42,9 +68,10 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -54,6 +81,8 @@ public interface AnnotateFileResponseOrBuilder extends
    */
   com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -63,6 +92,8 @@ public interface AnnotateFileResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -70,9 +101,11 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -80,40 +113,50 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 2;
    */
-  com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; + * * @return The totalPages. */ int getTotalPages(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
index ea56a6e59..805ac701f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features, and with context information.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,55 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1.Image.Builder subBuilder = null;
-            if (image_ != null) {
-              subBuilder = image_.toBuilder();
-            }
-            image_ = input.readMessage(com.google.cloud.vision.v1.Image.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(image_);
-              image_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1.Image.Builder subBuilder = null;
+              if (image_ != null) {
+                subBuilder = image_.toBuilder();
+              }
+              image_ =
+                  input.readMessage(com.google.cloud.vision.v1.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(image_);
+                image_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              features_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            features_.add(
-                input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null;
-            if (imageContext_ != null) {
-              subBuilder = imageContext_.toBuilder();
-            }
-            imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(imageContext_);
-              imageContext_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                features_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              features_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1.Feature.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null;
+              if (imageContext_ != null) {
+                subBuilder = imageContext_.toBuilder();
+              }
+              imageContext_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(imageContext_);
+                imageContext_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,8 +128,7 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -114,27 +137,33 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AnnotateImageRequest.class, com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1.AnnotateImageRequest.class,
+            com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1.Image image_;
   /**
+   *
+   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -142,11 +171,14 @@ public boolean hasImage() { return image_ != null; } /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -154,6 +186,8 @@ public com.google.cloud.vision.v1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; } /** + * + * *
    * The image to be processed.
    * 
@@ -168,6 +202,8 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Requested features.
    * 
@@ -179,6 +215,8 @@ public java.util.List getFeaturesList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -186,11 +224,13 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -202,6 +242,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Requested features.
    * 
@@ -213,6 +255,8 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Requested features.
    * 
@@ -220,19 +264,21 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -240,18 +286,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image.
    * 
@@ -264,6 +317,7 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -296,16 +349,13 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,24 +365,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AnnotateImageRequest other = (com.google.cloud.vision.v1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1.AnnotateImageRequest other = + (com.google.cloud.vision.v1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -362,97 +410,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features, and with context information.
@@ -460,21 +515,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.AnnotateImageRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateImageRequest)
       com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AnnotateImageRequest.class, com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1.AnnotateImageRequest.class,
+              com.google.cloud.vision.v1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AnnotateImageRequest.newBuilder()
@@ -482,17 +539,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -518,9 +575,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -539,7 +596,8 @@ public com.google.cloud.vision.v1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1.AnnotateImageRequest result = new com.google.cloud.vision.v1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1.AnnotateImageRequest result =
+          new com.google.cloud.vision.v1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -568,38 +626,39 @@ public com.google.cloud.vision.v1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1.AnnotateImageRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1.AnnotateImageRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance())
+        return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -629,9 +689,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageRequest other)
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFeaturesFieldBuilder() : null;
+            featuresBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFeaturesFieldBuilder()
+                    : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -668,28 +729,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder> imageBuilder_;
+            com.google.cloud.vision.v1.Image,
+            com.google.cloud.vision.v1.Image.Builder,
+            com.google.cloud.vision.v1.ImageOrBuilder>
+        imageBuilder_;
     /**
+     *
+     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return The image. */ public com.google.cloud.vision.v1.Image getImage() { @@ -700,6 +771,8 @@ public com.google.cloud.vision.v1.Image getImage() { } } /** + * + * *
      * The image to be processed.
      * 
@@ -720,14 +793,15 @@ public Builder setImage(com.google.cloud.vision.v1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1.Image image = 1; */ - public Builder setImage( - com.google.cloud.vision.v1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.vision.v1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -738,6 +812,8 @@ public Builder setImage( return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -748,7 +824,7 @@ public Builder mergeImage(com.google.cloud.vision.v1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } @@ -760,6 +836,8 @@ public Builder mergeImage(com.google.cloud.vision.v1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -778,6 +856,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -785,11 +865,13 @@ public Builder clearImage() { * .google.cloud.vision.v1.Image image = 1; */ public com.google.cloud.vision.v1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * The image to be processed.
      * 
@@ -800,11 +882,12 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? - com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; + return image_ == null ? com.google.cloud.vision.v1.Image.getDefaultInstance() : image_; } } /** + * + * *
      * The image to be processed.
      * 
@@ -812,32 +895,41 @@ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder> + com.google.cloud.vision.v1.Image, + com.google.cloud.vision.v1.Image.Builder, + com.google.cloud.vision.v1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Image, com.google.cloud.vision.v1.Image.Builder, com.google.cloud.vision.v1.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Image, + com.google.cloud.vision.v1.Image.Builder, + com.google.cloud.vision.v1.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Requested features.
      * 
@@ -852,6 +944,8 @@ public java.util.List getFeaturesList() { } } /** + * + * *
      * Requested features.
      * 
@@ -866,6 +960,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Requested features.
      * 
@@ -880,14 +976,15 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,6 +998,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -919,6 +1018,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -939,14 +1040,15 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,14 +1062,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -978,6 +1081,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -996,6 +1101,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1006,8 +1113,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1015,6 +1121,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1032,6 +1140,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Requested features.
      * 
@@ -1049,39 +1159,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1089,6 +1204,8 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Requested features.
      * 
@@ -1096,42 +1213,47 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1139,34 +1261,47 @@ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1187,6 +1322,8 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1205,6 +1342,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1215,7 +1354,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1227,6 +1368,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1245,6 +1388,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1252,11 +1397,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1267,11 +1414,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1279,21 +1429,24 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1456,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageRequest) private static final com.google.cloud.vision.v1.AnnotateImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateImageRequest(); } @@ -1317,16 +1470,16 @@ public static com.google.cloud.vision.v1.AnnotateImageRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,6 +1494,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java index 7b911ccf5..f2bd241bb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AnnotateImageRequestOrBuilder extends +public interface AnnotateImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1.Image image = 1; + * * @return The image. */ com.google.cloud.vision.v1.Image getImage(); /** + * + * *
    * The image to be processed.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateImageRequestOrBuilder extends com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateImageRequestOrBuilder extends */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** + * + * *
    * Requested features.
    * 
@@ -60,43 +89,53 @@ public interface AnnotateImageRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesOrBuilderList(); + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java index 4a705032f..174d7690c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,171 +76,213 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + faceAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.FaceAnnotation.parser(), extensionRegistry)); + break; } - faceAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.FaceAnnotation.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; } - labelAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; } - textAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.vision.v1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; } - safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry)); + break; } + case 50: + { + com.google.cloud.vision.v1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); + } + safeSearchAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1.SafeSearchAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.vision.v1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.vision.v1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); + } + imagePropertiesAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1.ImageProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 74: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + break; } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } - break; - } - case 90: { - com.google.cloud.vision.v1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); + break; } + case 90: + { + com.google.cloud.vision.v1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1.CropHintsAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 98: { - com.google.cloud.vision.v1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); + break; } + case 98: + { + com.google.cloud.vision.v1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 106: { - com.google.cloud.vision.v1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = input.readMessage(com.google.cloud.vision.v1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); + break; } + case 106: + { + com.google.cloud.vision.v1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = + input.readMessage( + com.google.cloud.vision.v1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } - break; - } - case 114: { - com.google.cloud.vision.v1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); + break; } + case 114: + { + com.google.cloud.vision.v1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = + input.readMessage( + com.google.cloud.vision.v1.ProductSearchResults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); + } - break; - } - case 170: { - com.google.cloud.vision.v1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(com.google.cloud.vision.v1.ImageAnnotationContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); + break; } + case 170: + { + com.google.cloud.vision.v1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.vision.v1.ImageAnnotationContext.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + break; } - localizedObjectAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1.LocalizedObjectAnnotation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 178: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1.LocalizedObjectAnnotation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -231,8 +290,7 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -250,28 +308,34 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateImageResponse.class, com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1.AnnotateImageResponse.class, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -283,6 +347,8 @@ public java.util.List getFaceAnnotati return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -290,11 +356,13 @@ public java.util.List getFaceAnnotati * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -306,6 +374,8 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -317,6 +387,8 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { return faceAnnotations_.get(index); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -324,14 +396,15 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index) { return faceAnnotations_.get(index); } public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -343,6 +416,8 @@ public java.util.List getLandmarkAn return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -350,11 +425,13 @@ public java.util.List getLandmarkAn * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -366,6 +443,8 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -377,6 +456,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int in return landmarkAnnotations_.get(index); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -392,6 +473,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -403,6 +486,8 @@ public java.util.List getLogoAnnota return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -410,11 +495,13 @@ public java.util.List getLogoAnnota * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -426,6 +513,8 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -437,6 +526,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index) return logoAnnotations_.get(index); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -452,6 +543,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -463,6 +556,8 @@ public java.util.List getLabelAnnot return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -470,11 +565,13 @@ public java.util.List getLabelAnnot * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -486,6 +583,8 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -497,6 +596,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index return labelAnnotations_.get(index); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -510,73 +611,98 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List localizedObjectAnnotations_; + private java.util.List + localizedObjectAnnotations_; /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List + public java.util.List getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index) { return localizedObjectAnnotations_.get(index); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -588,6 +714,8 @@ public java.util.List getTextAnnota return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -595,11 +723,13 @@ public java.util.List getTextAnnota * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -611,6 +741,8 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -622,6 +754,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index) return textAnnotations_.get(index); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -637,6 +771,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1.TextAnnotation fullTextAnnotation_; /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -645,6 +781,7 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -652,6 +789,8 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -660,13 +799,18 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -684,11 +828,14 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -696,18 +843,25 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -715,18 +869,22 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1.ImageProperties imagePropertiesAnnotation_; /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -734,18 +892,25 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -753,18 +918,22 @@ public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1.CropHintsAnnotation cropHintsAnnotation_; /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -772,18 +941,25 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -798,11 +974,14 @@ public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnot public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1.WebDetection webDetection_; /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -810,18 +989,25 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection getWebDetection() { - return webDetection_ == null ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() + : webDetection_; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -836,11 +1022,14 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1.ProductSearchResults productSearchResults_; /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -848,18 +1037,25 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } /** + * + * *
    * If present, product search has completed successfully.
    * 
@@ -867,13 +1063,16 @@ public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -881,6 +1080,7 @@ public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearch
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ @java.lang.Override @@ -888,6 +1088,8 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -895,6 +1097,7 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ @java.lang.Override @@ -902,6 +1105,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -918,12 +1123,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1.ImageAnnotationContext context_;
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ @java.lang.Override @@ -931,19 +1139,26 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1.ImageAnnotationContext getContext() { - return context_ == null ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() + : context_; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -957,6 +1172,7 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -968,8 +1184,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1022,60 +1237,54 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, landmarkAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getSafeSearchAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getImagePropertiesAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCropHintsAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, getProductSearchResults());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1085,64 +1294,53 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AnnotateImageResponse other = (com.google.cloud.vision.v1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList()
-        .equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList()
-        .equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList()
-        .equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList()
-        .equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList()
-        .equals(other.getLocalizedObjectAnnotationsList())) return false;
-    if (!getTextAnnotationsList()
-        .equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1.AnnotateImageResponse other =
+        (com.google.cloud.vision.v1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
+      return false;
+    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation()
-          .equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation()
-          .equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation()
-          .equals(other.getImagePropertiesAnnotation())) return false;
+      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
+        return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation()
-          .equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection()
-          .equals(other.getWebDetection())) return false;
+      if (!getWebDetection().equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults()
-          .equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext()
-          .equals(other.getContext())) return false;
+      if (!getContext().equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1216,118 +1414,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AnnotateImageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AnnotateImageResponse) com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AnnotateImageResponse.class, com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1.AnnotateImageResponse.class, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AnnotateImageResponse.newBuilder() @@ -1335,14 +1542,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1351,6 +1557,7 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1442,9 +1649,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1463,7 +1670,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1.AnnotateImageResponse result = new com.google.cloud.vision.v1.AnnotateImageResponse(this); + com.google.cloud.vision.v1.AnnotateImageResponse result = + new com.google.cloud.vision.v1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1503,7 +1711,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1567,38 +1776,39 @@ public com.google.cloud.vision.v1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1.AnnotateImageResponse)other); + return mergeFrom((com.google.cloud.vision.v1.AnnotateImageResponse) other); } else { super.mergeFrom(other); return this; @@ -1606,7 +1816,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()) + return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1625,9 +1836,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFaceAnnotationsFieldBuilder() : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFaceAnnotationsFieldBuilder() + : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1651,9 +1863,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarkAnnotationsFieldBuilder() : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarkAnnotationsFieldBuilder() + : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1677,9 +1890,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogoAnnotationsFieldBuilder() : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoAnnotationsFieldBuilder() + : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1703,9 +1917,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelAnnotationsFieldBuilder() : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1729,9 +1944,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocalizedObjectAnnotationsFieldBuilder() : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocalizedObjectAnnotationsFieldBuilder() + : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1755,9 +1971,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AnnotateImageResponse other) textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextAnnotationsFieldBuilder() : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1815,21 +2032,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = + new java.util.ArrayList(faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; + com.google.cloud.vision.v1.FaceAnnotation, + com.google.cloud.vision.v1.FaceAnnotation.Builder, + com.google.cloud.vision.v1.FaceAnnotationOrBuilder> + faceAnnotationsBuilder_; /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1844,6 +2069,8 @@ public java.util.List getFaceAnnotati } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1858,6 +2085,8 @@ public int getFaceAnnotationsCount() { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1872,14 +2101,15 @@ public com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index) { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public Builder setFaceAnnotations( - int index, com.google.cloud.vision.v1.FaceAnnotation value) { + public Builder setFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1893,6 +2123,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1911,6 +2143,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1931,14 +2165,15 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1.FaceAnnotation valu return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public Builder addFaceAnnotations( - int index, com.google.cloud.vision.v1.FaceAnnotation value) { + public Builder addFaceAnnotations(int index, com.google.cloud.vision.v1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1952,6 +2187,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1970,6 +2207,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1988,6 +2227,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1998,8 +2239,7 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2007,6 +2247,8 @@ public Builder addAllFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2024,6 +2266,8 @@ public Builder clearFaceAnnotations() { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2041,17 +2285,20 @@ public Builder removeFaceAnnotations(int index) { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuilder(int index) { return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2061,19 +2308,22 @@ public com.google.cloud.vision.v1.FaceAnnotation.Builder getFaceAnnotationsBuild public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); } else { + return faceAnnotations_.get(index); + } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2081,6 +2331,8 @@ public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2088,38 +2340,47 @@ public com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); } /** - *
+     *
+     *
+     * 
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder( - int index) { - return getFaceAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuilder(int index) { + return getFaceAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1.FaceAnnotation, + com.google.cloud.vision.v1.FaceAnnotation.Builder, + com.google.cloud.vision.v1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation, com.google.cloud.vision.v1.FaceAnnotation.Builder, com.google.cloud.vision.v1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.FaceAnnotation, + com.google.cloud.vision.v1.FaceAnnotation.Builder, + com.google.cloud.vision.v1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2130,25 +2391,34 @@ public com.google.cloud.vision.v1.FaceAnnotation.Builder addFaceAnnotationsBuild } private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); + landmarkAnnotations_ = + new java.util.ArrayList( + landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + landmarkAnnotationsBuilder_; /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2156,6 +2426,8 @@ public java.util.List getLandmarkAn } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2170,6 +2442,8 @@ public int getLandmarkAnnotationsCount() { } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2184,6 +2458,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int in } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2205,6 +2481,8 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2223,6 +2501,8 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2243,6 +2523,8 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1.EntityAnnotatio return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2264,6 +2546,8 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2282,6 +2566,8 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2300,6 +2586,8 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2310,8 +2598,7 @@ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2319,6 +2606,8 @@ public Builder addAllLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2336,6 +2625,8 @@ public Builder clearLandmarkAnnotations() { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2353,6 +2644,8 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2364,6 +2657,8 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLandmarkAnnotation return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2373,19 +2668,22 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLandmarkAnnotation public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); } else { + return landmarkAnnotations_.get(index); + } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2393,6 +2691,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2400,10 +2700,12 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotatio * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
@@ -2412,26 +2714,34 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotation */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2442,18 +2752,25 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLandmarkAnnotation } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = + new java.util.ArrayList(logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + logoAnnotationsBuilder_; /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2468,6 +2785,8 @@ public java.util.List getLogoAnnota } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2482,6 +2801,8 @@ public int getLogoAnnotationsCount() { } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2496,6 +2817,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index) } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2517,6 +2840,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2535,6 +2860,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2555,6 +2882,8 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1.EntityAnnotation va return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2576,6 +2905,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2594,6 +2925,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2612,6 +2945,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2622,8 +2957,7 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2631,6 +2965,8 @@ public Builder addAllLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2648,6 +2984,8 @@ public Builder clearLogoAnnotations() { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2665,6 +3003,8 @@ public Builder removeLogoAnnotations(int index) { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2676,6 +3016,8 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLogoAnnotationsBui return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2685,19 +3027,22 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLogoAnnotationsBui public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); } else { + return logoAnnotations_.get(index); + } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2705,6 +3050,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2712,10 +3059,12 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOr * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2724,26 +3073,34 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBui */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2754,18 +3111,25 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLogoAnnotationsBui } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = + new java.util.ArrayList(labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + labelAnnotationsBuilder_; /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2780,6 +3144,8 @@ public java.util.List getLabelAnnot } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2794,6 +3160,8 @@ public int getLabelAnnotationsCount() { } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2808,6 +3176,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2829,6 +3199,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2847,6 +3219,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2867,6 +3241,8 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1.EntityAnnotation v return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2888,6 +3264,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2906,6 +3284,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2924,6 +3304,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2934,8 +3316,7 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -2943,6 +3324,8 @@ public Builder addAllLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2960,6 +3343,8 @@ public Builder clearLabelAnnotations() { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2977,6 +3362,8 @@ public Builder removeLabelAnnotations(int index) { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2988,6 +3375,8 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLabelAnnotationsBu return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2997,19 +3386,22 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getLabelAnnotationsBu public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); } else { + return labelAnnotations_.get(index); + } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3017,6 +3409,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3024,10 +3418,12 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsO * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3036,26 +3432,34 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBu */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3065,27 +3469,38 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addLabelAnnotationsBu return labelAnnotationsBuilder_; } - private java.util.List localizedObjectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + localizedObjectAnnotations_ = java.util.Collections.emptyList(); + private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + new java.util.ArrayList( + localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> + localizedObjectAnnotationsBuilder_; /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3093,12 +3508,16 @@ public java.util.List getL } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3108,14 +3527,19 @@ public int getLocalizedObjectAnnotationsCount() { } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3123,12 +3547,16 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAn } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { @@ -3145,12 +3573,16 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3164,14 +3596,19 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations( + com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3185,12 +3622,16 @@ public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1.Localize return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation value) { @@ -3207,12 +3648,16 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3226,12 +3671,16 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3245,19 +3694,22 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addAllLocalizedObjectAnnotations( java.lang.Iterable values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3265,12 +3717,16 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3283,12 +3739,16 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3301,42 +3761,55 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder + getLocalizedObjectAnnotationsBuilder(int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); } else { + return localizedObjectAnnotations_.get(index); + } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3344,48 +3817,68 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalize } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( - int index) { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder(int index) { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.LocalizedObjectAnnotation, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3396,18 +3889,25 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder addLocalized } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(textAnnotations_); + textAnnotations_ = + new java.util.ArrayList(textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + textAnnotationsBuilder_; /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3422,6 +3922,8 @@ public java.util.List getTextAnnota } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3436,6 +3938,8 @@ public int getTextAnnotationsCount() { } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3450,6 +3954,8 @@ public com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index) } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3471,6 +3977,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3489,6 +3997,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3509,6 +4019,8 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1.EntityAnnotation va return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3530,6 +4042,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3548,6 +4062,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3566,6 +4082,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3576,8 +4094,7 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3585,6 +4102,8 @@ public Builder addAllTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3602,6 +4121,8 @@ public Builder clearTextAnnotations() { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3619,6 +4140,8 @@ public Builder removeTextAnnotations(int index) { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3630,6 +4153,8 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getTextAnnotationsBui return getTextAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3639,19 +4164,22 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder getTextAnnotationsBui public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); } else { + return textAnnotations_.get(index); + } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3659,6 +4187,8 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3666,10 +4196,12 @@ public com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOr * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3678,26 +4210,34 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui */ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.EntityAnnotation, com.google.cloud.vision.v1.EntityAnnotation.Builder, com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.EntityAnnotation, + com.google.cloud.vision.v1.EntityAnnotation.Builder, + com.google.cloud.vision.v1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3709,8 +4249,13 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui private com.google.cloud.vision.v1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; + com.google.cloud.vision.v1.TextAnnotation, + com.google.cloud.vision.v1.TextAnnotation.Builder, + com.google.cloud.vision.v1.TextAnnotationOrBuilder> + fullTextAnnotationBuilder_; /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3719,12 +4264,15 @@ public com.google.cloud.vision.v1.EntityAnnotation.Builder addTextAnnotationsBui
      * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3733,16 +4281,21 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3766,6 +4319,8 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation v
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3787,6 +4342,8 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3800,7 +4357,9 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-            com.google.cloud.vision.v1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.TextAnnotation.newBuilder(fullTextAnnotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3812,6 +4371,8 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1.TextAnnotation
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3833,6 +4394,8 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3843,11 +4406,13 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-      
+
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3861,11 +4426,14 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null ?
-            com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
+        return fullTextAnnotation_ == null
+            ? com.google.cloud.vision.v1.TextAnnotation.getDefaultInstance()
+            : fullTextAnnotation_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3876,14 +4444,17 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
      * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder> 
+            com.google.cloud.vision.v1.TextAnnotation,
+            com.google.cloud.vision.v1.TextAnnotation.Builder,
+            com.google.cloud.vision.v1.TextAnnotationOrBuilder>
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.TextAnnotation, com.google.cloud.vision.v1.TextAnnotation.Builder, com.google.cloud.vision.v1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(),
-                getParentForChildren(),
-                isClean());
+        fullTextAnnotationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.TextAnnotation,
+                com.google.cloud.vision.v1.TextAnnotation.Builder,
+                com.google.cloud.vision.v1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(), getParentForChildren(), isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3891,34 +4462,47 @@ public com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationO
 
     private com.google.cloud.vision.v1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
+            com.google.cloud.vision.v1.SafeSearchAnnotation,
+            com.google.cloud.vision.v1.SafeSearchAnnotation.Builder,
+            com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>
+        safeSearchAnnotationBuilder_;
     /**
+     *
+     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3939,6 +4523,8 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1.SafeSearchAnno return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3957,17 +4543,22 @@ public Builder setSafeSearchAnnotation( return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation( + com.google.cloud.vision.v1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3979,6 +4570,8 @@ public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1.SafeSearchAn return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3997,33 +4590,42 @@ public Builder clearSafeSearchAnnotation() { return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1.SafeSearchAnnotation.Builder + getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null ? - com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4031,14 +4633,17 @@ public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnn * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1.SafeSearchAnnotation, + com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.SafeSearchAnnotation, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), - getParentForChildren(), - isClean()); + safeSearchAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.SafeSearchAnnotation, + com.google.cloud.vision.v1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), getParentForChildren(), isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4046,34 +4651,47 @@ public com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnn private com.google.cloud.vision.v1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1.ImageProperties, + com.google.cloud.vision.v1.ImageProperties.Builder, + com.google.cloud.vision.v1.ImagePropertiesOrBuilder> + imagePropertiesAnnotationBuilder_; /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4094,6 +4712,8 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1.ImageProp return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4112,17 +4732,22 @@ public Builder setImagePropertiesAnnotation( return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation( + com.google.cloud.vision.v1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ImageProperties.newBuilder(imagePropertiesAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4134,6 +4759,8 @@ public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1.ImagePr return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4152,33 +4779,42 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1.ImageProperties.Builder + getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null ? - com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4186,14 +4822,17 @@ public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnn * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1.ImageProperties, + com.google.cloud.vision.v1.ImageProperties.Builder, + com.google.cloud.vision.v1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageProperties, com.google.cloud.vision.v1.ImageProperties.Builder, com.google.cloud.vision.v1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), - getParentForChildren(), - isClean()); + imagePropertiesAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageProperties, + com.google.cloud.vision.v1.ImageProperties.Builder, + com.google.cloud.vision.v1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), getParentForChildren(), isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4201,34 +4840,47 @@ public com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnn private com.google.cloud.vision.v1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1.CropHintsAnnotation, + com.google.cloud.vision.v1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> + cropHintsAnnotationBuilder_; /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4249,6 +4901,8 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnnota return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4267,6 +4921,8 @@ public Builder setCropHintsAnnotation( return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4277,7 +4933,9 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnno if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4289,6 +4947,8 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1.CropHintsAnno return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4307,6 +4967,8 @@ public Builder clearCropHintsAnnotation() { return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4314,26 +4976,32 @@ public Builder clearCropHintsAnnotation() { * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ public com.google.cloud.vision.v1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null ? - com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4341,14 +5009,17 @@ public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnot * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1.CropHintsAnnotation, + com.google.cloud.vision.v1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsAnnotation, com.google.cloud.vision.v1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), - getParentForChildren(), - isClean()); + cropHintsAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.CropHintsAnnotation, + com.google.cloud.vision.v1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), getParentForChildren(), isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -4356,34 +5027,47 @@ public com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnot private com.google.cloud.vision.v1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder> webDetectionBuilder_; + com.google.cloud.vision.v1.WebDetection, + com.google.cloud.vision.v1.WebDetection.Builder, + com.google.cloud.vision.v1.WebDetectionOrBuilder> + webDetectionBuilder_; /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return The webDetection. */ public com.google.cloud.vision.v1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() + : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4404,6 +5088,8 @@ public Builder setWebDetection(com.google.cloud.vision.v1.WebDetection value) { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4422,6 +5108,8 @@ public Builder setWebDetection( return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4432,7 +5120,9 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1.WebDetection value) if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.WebDetection.newBuilder(webDetection_) + .mergeFrom(value) + .buildPartial(); } else { webDetection_ = value; } @@ -4444,6 +5134,8 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1.WebDetection value) return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4462,6 +5154,8 @@ public Builder clearWebDetection() { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4469,11 +5163,13 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4484,11 +5180,14 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null ? - com.google.cloud.vision.v1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1.WebDetection.getDefaultInstance() + : webDetection_; } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4496,14 +5195,17 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder * .google.cloud.vision.v1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder> + com.google.cloud.vision.v1.WebDetection, + com.google.cloud.vision.v1.WebDetection.Builder, + com.google.cloud.vision.v1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection, com.google.cloud.vision.v1.WebDetection.Builder, com.google.cloud.vision.v1.WebDetectionOrBuilder>( - getWebDetection(), - getParentForChildren(), - isClean()); + webDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection, + com.google.cloud.vision.v1.WebDetection.Builder, + com.google.cloud.vision.v1.WebDetectionOrBuilder>( + getWebDetection(), getParentForChildren(), isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -4511,34 +5213,47 @@ public com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder private com.google.cloud.vision.v1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults, + com.google.cloud.vision.v1.ProductSearchResults.Builder, + com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> + productSearchResultsBuilder_; /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ public com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4559,6 +5274,8 @@ public Builder setProductSearchResults(com.google.cloud.vision.v1.ProductSearchR return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4577,17 +5294,22 @@ public Builder setProductSearchResults( return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults(com.google.cloud.vision.v1.ProductSearchResults value) { + public Builder mergeProductSearchResults( + com.google.cloud.vision.v1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ProductSearchResults.newBuilder(productSearchResults_) + .mergeFrom(value) + .buildPartial(); } else { productSearchResults_ = value; } @@ -4599,6 +5321,8 @@ public Builder mergeProductSearchResults(com.google.cloud.vision.v1.ProductSearc return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4617,33 +5341,42 @@ public Builder clearProductSearchResults() { return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1.ProductSearchResults.Builder getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1.ProductSearchResults.Builder + getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null ? - com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4651,14 +5384,17 @@ public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearch * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults, + com.google.cloud.vision.v1.ProductSearchResults.Builder, + com.google.cloud.vision.v1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults, com.google.cloud.vision.v1.ProductSearchResults.Builder, com.google.cloud.vision.v1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), - getParentForChildren(), - isClean()); + productSearchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults, + com.google.cloud.vision.v1.ProductSearchResults.Builder, + com.google.cloud.vision.v1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), getParentForChildren(), isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -4666,8 +5402,11 @@ public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearch private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4675,12 +5414,15 @@ public com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearch
      * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4688,6 +5430,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -4698,6 +5441,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4720,6 +5465,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4728,8 +5475,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4740,6 +5486,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4751,8 +5499,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4764,6 +5511,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4784,6 +5533,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4793,11 +5544,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4810,11 +5563,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4824,14 +5578,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -4839,36 +5593,49 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder> contextBuilder_;
+            com.google.cloud.vision.v1.ImageAnnotationContext,
+            com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return The context. */ public com.google.cloud.vision.v1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() + : context_; } else { return contextBuilder_.getMessage(); } } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4890,6 +5657,8 @@ public Builder setContext(com.google.cloud.vision.v1.ImageAnnotationContext valu
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4909,6 +5678,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4920,7 +5691,9 @@ public Builder mergeContext(com.google.cloud.vision.v1.ImageAnnotationContext va
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-            com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder(context_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           context_ = value;
         }
@@ -4932,6 +5705,8 @@ public Builder mergeContext(com.google.cloud.vision.v1.ImageAnnotationContext va
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4951,6 +5726,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4959,11 +5736,13 @@ public Builder clearContext() {
      * .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1.ImageAnnotationContext.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4975,11 +5754,14 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance() : context_;
+        return context_ == null
+            ? com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()
+            : context_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4988,21 +5770,24 @@ public com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder getContextOrBu
      * .google.cloud.vision.v1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder> 
+            com.google.cloud.vision.v1.ImageAnnotationContext,
+            com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImageAnnotationContext, com.google.cloud.vision.v1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.ImageAnnotationContext,
+                com.google.cloud.vision.v1.ImageAnnotationContext.Builder,
+                com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5012,12 +5797,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1.AnnotateImageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AnnotateImageResponse();
   }
@@ -5026,16 +5811,16 @@ public static com.google.cloud.vision.v1.AnnotateImageResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateImageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateImageResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateImageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateImageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5050,6 +5835,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
index bb7b499d1..5f5279e8c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AnnotateImageResponseOrBuilder extends
+public interface AnnotateImageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - java.util.List - getFaceAnnotationsList(); + java.util.List getFaceAnnotationsList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -25,6 +44,8 @@ public interface AnnotateImageResponseOrBuilder extends */ com.google.cloud.vision.v1.FaceAnnotation getFaceAnnotations(int index); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -33,34 +54,40 @@ public interface AnnotateImageResponseOrBuilder extends */ int getFaceAnnotationsCount(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - java.util.List - getLandmarkAnnotationsList(); + java.util.List getLandmarkAnnotationsList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( */ com.google.cloud.vision.v1.EntityAnnotation getLandmarkAnnotations(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -77,34 +106,40 @@ com.google.cloud.vision.v1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( */ int getLandmarkAnnotationsCount(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - java.util.List - getLogoAnnotationsList(); + java.util.List getLogoAnnotationsList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -113,6 +148,8 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBui */ com.google.cloud.vision.v1.EntityAnnotation getLogoAnnotations(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -121,34 +158,40 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBui */ int getLogoAnnotationsCount(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - java.util.List - getLabelAnnotationsList(); + java.util.List getLabelAnnotationsList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -157,6 +200,8 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder */ com.google.cloud.vision.v1.EntityAnnotation getLabelAnnotations(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -165,83 +210,109 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder */ int getLabelAnnotationsCount(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ com.google.cloud.vision.v1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ int getLocalizedObjectAnnotationsCount(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - java.util.List - getTextAnnotationsList(); + java.util.List getTextAnnotationsList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -250,6 +321,8 @@ com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObject */ com.google.cloud.vision.v1.EntityAnnotation getTextAnnotations(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -258,25 +331,30 @@ com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder getLocalizedObject */ int getTextAnnotationsCount(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5; */ - com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -285,10 +363,13 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -297,10 +378,13 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
    * 
* * .google.cloud.vision.v1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1.TextAnnotation getFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -313,24 +397,32 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
   com.google.cloud.vision.v1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1.SafeSearchAnnotation getSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -340,24 +432,32 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1.ImageProperties getImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -367,24 +467,32 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder com.google.cloud.vision.v1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1.CropHintsAnnotation getCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -394,24 +502,32 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1.WebDetection web_detection = 13; + * * @return The webDetection. */ com.google.cloud.vision.v1.WebDetection getWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -421,24 +537,32 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder com.google.cloud.vision.v1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ com.google.cloud.vision.v1.ProductSearchResults getProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
@@ -448,6 +572,8 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder com.google.cloud.vision.v1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -455,10 +581,13 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -466,10 +595,13 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -481,26 +613,34 @@ com.google.cloud.vision.v1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1.ImageAnnotationContext context = 21; + * * @return The context. */ com.google.cloud.vision.v1.ImageAnnotationContext getContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
index 56dd08ed0..fa901f0e8 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,61 +71,72 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - features_.add( - input.readMessage(com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = input.readMessage(com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,8 +144,7 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -126,27 +153,33 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -154,18 +187,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -180,6 +220,8 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -191,6 +233,8 @@ public java.util.List getFeaturesList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -198,11 +242,13 @@ public java.util.List getFeaturesList() { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -214,6 +260,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -225,6 +273,8 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -232,19 +282,21 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -252,18 +304,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -278,11 +337,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -290,18 +352,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -314,6 +383,7 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -349,20 +418,16 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,29 +437,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1.AsyncAnnotateFileRequest other = + (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -429,117 +491,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncAnnotateFileRequest.newBuilder() @@ -547,17 +618,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -610,7 +681,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1.AsyncAnnotateFileRequest result = + new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -644,38 +716,39 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -683,7 +756,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -705,9 +779,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileRequest oth featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -738,7 +813,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,38 +823,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -799,14 +889,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; */ - public Builder setInputConfig( - com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { + public Builder setInputConfig(com.google.cloud.vision.v1.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); onChanged(); @@ -817,6 +908,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -827,7 +920,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -839,6 +934,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.InputConfig value) { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -857,6 +954,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -864,11 +963,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -879,11 +980,14 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -891,32 +995,41 @@ public com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder() * .google.cloud.vision.v1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder> + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.InputConfig, com.google.cloud.vision.v1.InputConfig.Builder, com.google.cloud.vision.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.InputConfig, + com.google.cloud.vision.v1.InputConfig.Builder, + com.google.cloud.vision.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -931,6 +1044,8 @@ public java.util.List getFeaturesList() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -945,6 +1060,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -959,14 +1076,15 @@ public com.google.cloud.vision.v1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,6 +1098,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -998,6 +1118,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1018,14 +1140,15 @@ public Builder addFeatures(com.google.cloud.vision.v1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1039,14 +1162,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1057,6 +1181,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1075,6 +1201,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1085,8 +1213,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1094,6 +1221,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1111,6 +1240,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1128,39 +1259,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1168,6 +1304,8 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1175,42 +1313,47 @@ public com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1.Feature features = 2; */ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder> + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Feature, com.google.cloud.vision.v1.Feature.Builder, com.google.cloud.vision.v1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Feature, + com.google.cloud.vision.v1.Feature.Builder, + com.google.cloud.vision.v1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1218,34 +1361,47 @@ public com.google.cloud.vision.v1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1266,6 +1422,8 @@ public Builder setImageContext(com.google.cloud.vision.v1.ImageContext value) { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1284,6 +1442,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1294,7 +1454,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1306,6 +1468,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1.ImageContext value) return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1324,6 +1488,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1331,11 +1497,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1346,11 +1514,14 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1358,14 +1529,17 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder * .google.cloud.vision.v1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder> + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageContext, com.google.cloud.vision.v1.ImageContext.Builder, com.google.cloud.vision.v1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImageContext, + com.google.cloud.vision.v1.ImageContext.Builder, + com.google.cloud.vision.v1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1373,34 +1547,47 @@ public com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1421,6 +1608,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1439,6 +1628,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1449,7 +1640,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1461,6 +1654,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1479,6 +1674,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1486,11 +1683,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1501,11 +1700,14 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1513,21 +1715,24 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,12 +1742,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncAnnotateFileRequest(); } @@ -1551,16 +1756,16 @@ public static com.google.cloud.vision.v1.AsyncAnnotateFileRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1575,6 +1780,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java index ef0dcf234..d3bff79b7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncAnnotateFileRequestOrBuilder extends +public interface AsyncAnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AsyncAnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,53 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - java.util.List - getFeaturesOrBuilderList(); + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1.Feature features = 2; */ - com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,24 +145,32 @@ com.google.cloud.vision.v1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 4; + * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java index 012a4e6bf..a1b826d68 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileResponse() { - } + + private AsyncAnnotateFileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1.AsyncAnnotateFileResponse other = + (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncAnnotateFileResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncAnnotateFileResponse.newBuilder() @@ -326,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -370,7 +408,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1.AsyncAnnotateFileResponse result = + new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,38 +423,39 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileResponse)other); + return mergeFrom((com.google.cloud.vision.v1.AsyncAnnotateFileResponse) other); } else { super.mergeFrom(other); return this; @@ -423,7 +463,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance()) + return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +487,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +500,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -506,6 +561,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -524,6 +581,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -534,7 +593,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +607,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -564,6 +627,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -571,11 +636,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -586,11 +653,14 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -598,21 +668,24 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncAnnotateFileResponse(); } @@ -636,16 +709,16 @@ public static com.google.cloud.vision.v1.AsyncAnnotateFileResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java index 4fd2be490..7d2befb51 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncAnnotateFileResponseOrBuilder extends +public interface AsyncAnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java index c4b7a415f..1bf6d656f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
     parent_ = "";
@@ -27,16 +46,15 @@ private AsyncBatchAnnotateFilesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,28 +74,33 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              requests_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requests_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requests_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1.AsyncAnnotateFileRequest.parser(),
+                      extensionRegistry));
+              break;
             }
-            requests_.add(
-                input.readMessage(com.google.cloud.vision.v1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              parent_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -85,8 +108,7 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -95,72 +117,95 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
+            com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
+   *
+   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -171,6 +216,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -183,6 +230,7 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -191,14 +239,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -211,16 +260,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -229,6 +277,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -258,8 +306,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -272,17 +319,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,96 +352,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -403,21 +457,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.class,
+              com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -425,17 +481,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -451,9 +507,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -472,7 +528,8 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest result =
+          new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -492,38 +549,39 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -531,7 +589,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest other) {
-      if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
+        return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -550,9 +609,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesReque
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequestsFieldBuilder() : null;
+            requestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequestsFieldBuilder()
+                    : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -581,7 +641,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -590,26 +651,36 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List requests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ = new java.util.ArrayList(requests_);
+        requests_ =
+            new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
+            com.google.cloud.vision.v1.AsyncAnnotateFileRequest,
+            com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder,
+            com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>
+        requestsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -619,11 +690,15 @@ public java.util.List getRe } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -633,11 +708,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -647,11 +726,15 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -668,11 +751,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -686,11 +773,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -706,11 +797,15 @@ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest v return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -727,11 +822,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -745,11 +844,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -763,18 +866,21 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -782,11 +888,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -799,11 +909,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -816,39 +930,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -856,49 +983,65 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; @@ -906,6 +1049,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -918,13 +1063,13 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu
      * 
* * string parent = 4; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -933,6 +1078,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -945,15 +1092,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -961,6 +1107,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -973,20 +1121,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -999,15 +1149,18 @@ public Builder setParent(
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1020,23 +1173,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1046,12 +1199,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest(); } @@ -1060,16 +1213,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1084,6 +1237,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java index 983e9da91..82784defc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateFilesRequestOrBuilder extends +public interface AsyncBatchAnnotateFilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getRequestsList(); + java.util.List getRequestsList(); /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index); /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); + com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -64,10 +100,13 @@ com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilde
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -80,8 +119,8 @@ com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilde
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java index 4ec8298c6..2b8054678 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponse.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +72,26 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -115,6 +141,8 @@ public java.util.List getR
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -123,11 +151,13 @@ public java.util.List getR
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -140,6 +170,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -152,6 +184,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int ind
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -166,6 +200,7 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +212,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +226,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +236,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,117 +266,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.newBuilder() @@ -351,17 +394,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override @@ -396,7 +439,8 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +459,39 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +499,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +519,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRespo responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +547,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +557,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1.AsyncAnnotateFileResponse, + com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, + com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -539,6 +596,8 @@ public java.util.List getR
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -554,6 +613,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -569,6 +630,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -591,6 +654,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -610,6 +675,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -631,6 +698,8 @@ public Builder addResponses(com.google.cloud.vision.v1.AsyncAnnotateFileResponse
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -653,6 +722,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -672,6 +743,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -691,6 +764,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -702,8 +777,7 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +785,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -729,6 +805,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -747,6 +825,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -759,6 +839,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder getResponses
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -769,11 +851,14 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder getResponses
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -781,8 +866,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
      *
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +875,8 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -798,10 +885,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponse
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -811,10 +900,13 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponses
      */
     public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -822,27 +914,30 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder addResponses
      *
      * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1.AsyncAnnotateFileResponse,
+            com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.AsyncAnnotateFileResponse,
+                com.google.cloud.vision.v1.AsyncAnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +947,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
   private static final com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse();
   }
@@ -866,16 +961,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +985,4 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 29a290145..2c62ae25c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1.AsyncAnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -53,6 +78,5 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
index f72dad167..c018a07dc 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java
@@ -1,24 +1,43 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Request for async image annotation for a list of images.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest} */ -public final class AsyncBatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesRequest.newBuilder() to construct. - private AsyncBatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -26,16 +45,15 @@ private AsyncBatchAnnotateImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +73,48 @@ private AsyncBatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage(com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); + break; } + case 18: + { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +122,7 @@ private AsyncBatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -107,87 +131,114 @@ private AsyncBatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -195,23 +246,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -221,6 +283,8 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -233,6 +297,7 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -241,14 +306,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -261,16 +327,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -279,6 +344,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,8 +356,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -311,12 +376,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -329,22 +392,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +433,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for async image annotation for a list of images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.newBuilder() @@ -490,17 +561,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override @@ -543,7 +614,8 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest result = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -568,38 +640,39 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -607,7 +680,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -626,9 +700,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequ requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -660,7 +735,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -669,26 +745,36 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -698,11 +784,15 @@ public java.util.List getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -712,11 +802,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -726,14 +820,17 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRequests( - int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -747,11 +844,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -765,11 +866,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -785,14 +890,17 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addRequests( - int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -806,11 +914,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -824,11 +936,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -842,18 +958,21 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -861,11 +980,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -878,11 +1001,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -895,39 +1022,51 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -935,49 +1074,63 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; @@ -985,39 +1138,58 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1033,11 +1205,15 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.vision.v1.OutputConfig.Builder builderForValue) { @@ -1051,17 +1227,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1073,11 +1255,15 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1091,48 +1277,64 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1140,6 +1342,8 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1152,13 +1356,13 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder
      * 
* * string parent = 4; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1167,6 +1371,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1179,15 +1385,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1195,6 +1400,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1207,20 +1414,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1233,15 +1442,18 @@ public Builder setParent(
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1254,23 +1466,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,12 +1492,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest(); } @@ -1294,16 +1506,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1318,6 +1530,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java index 0fa4ae93f..e5a854c14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -1,84 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateImagesRequestOrBuilder extends +public interface AsyncBatchAnnotateImagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getRequestsList(); + java.util.List getRequestsList(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -91,10 +141,13 @@ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -107,8 +160,8 @@ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java index 68726c318..42baf70da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponse.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response to an async batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse} */ -public final class AsyncBatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesResponse.newBuilder() to construct. - private AsyncBatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateImagesResponse() { - } + + private AsyncBatchAnnotateImagesResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +69,29 @@ private AsyncBatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private AsyncBatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
@@ -138,6 +170,7 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +196,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +239,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to an async batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.newBuilder() @@ -326,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override @@ -370,7 +410,8 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse result = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +489,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +502,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -506,6 +563,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -524,6 +583,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -534,7 +595,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +609,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -564,6 +629,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -571,11 +638,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -586,11 +655,14 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -598,21 +670,24 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * .google.cloud.vision.v1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder> + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.OutputConfig, com.google.cloud.vision.v1.OutputConfig.Builder, com.google.cloud.vision.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.OutputConfig, + com.google.cloud.vision.v1.OutputConfig.Builder, + com.google.cloud.vision.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) private static final com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse(); } @@ -636,16 +711,16 @@ public static com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +735,4 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java index 7398872f2..84a8df822 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface AsyncBatchAnnotateImagesResponseOrBuilder extends +public interface AsyncBatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java index 6d3f945fc..7b4419806 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * A list of requests to annotate files using the BatchAnnotateFiles API.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesRequest} */ -public final class BatchAnnotateFilesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateFilesRequest) BatchAnnotateFilesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesRequest.newBuilder() to construct. private BatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateFilesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -26,16 +44,15 @@ private BatchAnnotateFilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateFilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateFilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private BatchAnnotateFilesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1.AnnotateFileRequest.parser(), extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1.AnnotateFileRequest.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private BatchAnnotateFilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -94,87 +114,111 @@ private BatchAnnotateFilesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); } public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -187,6 +231,7 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil
    * 
* * string parent = 3; + * * @return The parent. */ @java.lang.Override @@ -195,14 +240,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -215,16 +261,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 3; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -233,6 +278,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,8 +290,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -262,8 +307,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); @@ -276,17 +320,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateFilesRequest other = (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1.BatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,117 +353,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A list of requests to annotate files using the BatchAnnotateFiles API.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateFilesRequest) com.google.cloud.vision.v1.BatchAnnotateFilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.class, + com.google.cloud.vision.v1.BatchAnnotateFilesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateFilesRequest.newBuilder() @@ -428,17 +480,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override @@ -475,7 +527,8 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateFilesRequest buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateFilesRequest result = new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(this); + com.google.cloud.vision.v1.BatchAnnotateFilesRequest result = + new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -495,38 +548,39 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateFilesRequest) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesRequest)other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesRequest other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateFilesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -553,9 +608,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesRequest ot requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -584,7 +640,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -593,27 +650,37 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1.AnnotateFileRequest, + com.google.cloud.vision.v1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -623,12 +690,16 @@ public java.util.List getRequest } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -638,12 +709,16 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -653,15 +728,18 @@ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRequests( - int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { + public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -675,12 +753,16 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -694,12 +776,16 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -715,15 +801,18 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addRequests( - int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { + public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -737,12 +826,16 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -756,12 +849,16 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -775,19 +872,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -795,12 +895,16 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -813,12 +917,16 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -831,42 +939,53 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -874,52 +993,66 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.AnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateFileRequest, + com.google.cloud.vision.v1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileRequest, com.google.cloud.vision.v1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateFileRequest, + com.google.cloud.vision.v1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; @@ -927,6 +1060,8 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -939,13 +1074,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder
      * 
* * string parent = 3; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -954,6 +1089,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -966,15 +1103,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 3; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -982,6 +1118,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -994,20 +1132,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 3; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1020,15 +1160,18 @@ public Builder setParent(
      * 
* * string parent = 3; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1041,23 +1184,23 @@ public Builder clearParent() {
      * 
* * string parent = 3; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +1210,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1.BatchAnnotateFilesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateFilesRequest(); } @@ -1081,16 +1224,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateFilesRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,6 +1248,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.BatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java index 9d124d4cc..59b062994 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java @@ -1,62 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateFilesRequestOrBuilder extends +public interface BatchAnnotateFilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getRequestsList(); + java.util.List getRequestsList(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); + com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -69,10 +105,13 @@ com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 3; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -85,8 +124,8 @@ com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 3; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java index 3a17d52d3..23c6ff1ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * A list of file annotation responses.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesResponse} */ -public final class BatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateFilesResponse) BatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesResponse.newBuilder() to construct. private BatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private BatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1.AnnotateFileResponse.parser(), extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1.AnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private BatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +106,27 @@ private BatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -115,6 +139,8 @@ public java.util.List getRespon
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -123,11 +149,13 @@ public java.util.List getRespon
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -140,6 +168,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -152,6 +182,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -160,12 +192,12 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index) {
     return responses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +209,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +223,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +233,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.BatchAnnotateFilesResponse other = (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1.BatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,117 +263,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1.BatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A list of file annotation responses.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateFilesResponse) com.google.cloud.vision.v1.BatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1.BatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateFilesResponse.newBuilder() @@ -351,17 +391,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override @@ -396,7 +436,8 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateFilesResponse result = new com.google.cloud.vision.v1.BatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1.BatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1.BatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +456,39 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +516,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateFilesResponse o responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +544,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +554,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1.AnnotateFileResponse, + com.google.cloud.vision.v1.AnnotateFileResponse.Builder, + com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -539,6 +592,8 @@ public java.util.List getRespon
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -554,6 +609,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -569,6 +626,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -576,8 +635,7 @@ public com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public Builder setResponses(
-        int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
+    public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -591,6 +649,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -610,6 +670,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -631,6 +693,8 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateFileResponse valu
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -638,8 +702,7 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateFileResponse valu
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public Builder addResponses(
-        int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
+    public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateFileResponse value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -653,6 +716,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -672,6 +737,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -691,6 +758,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -702,8 +771,7 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +779,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -729,6 +799,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -747,6 +819,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -754,11 +828,12 @@ public Builder removeResponses(int index) {
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuilder(int index) {
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -769,11 +844,14 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder getResponsesBuild
     public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -781,8 +859,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +868,8 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -798,10 +878,12 @@ public com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBu
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -809,12 +891,13 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuild
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder(
-        int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuilder(int index) {
+      return getResponsesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -822,27 +905,30 @@ public com.google.cloud.vision.v1.AnnotateFileResponse.Builder addResponsesBuild
      *
      * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1.AnnotateFileResponse,
+            com.google.cloud.vision.v1.AnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.AnnotateFileResponse, com.google.cloud.vision.v1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.AnnotateFileResponse,
+                com.google.cloud.vision.v1.AnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +938,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesResponse)
   private static final com.google.cloud.vision.v1.BatchAnnotateFilesResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateFilesResponse();
   }
@@ -866,16 +952,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateFilesResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new BatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +976,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1.BatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
index e83b9af3a..68d7a4738 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface BatchAnnotateFilesResponseOrBuilder extends
+public interface BatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1.AnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -53,6 +78,5 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.AnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
index 8716b59a3..94160397f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); parent_ = ""; @@ -26,16 +44,15 @@ private BatchAnnotateImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -94,82 +114,106 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); } public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -182,6 +226,7 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -190,14 +235,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -210,16 +256,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 4; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -228,6 +273,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +285,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -257,8 +302,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); @@ -271,17 +315,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1.BatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,117 +348,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateImagesRequest.newBuilder() @@ -423,17 +476,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override @@ -470,7 +523,8 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1.BatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -490,38 +544,39 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -529,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -548,9 +604,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesRequest o requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -579,7 +636,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -588,26 +646,36 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -617,11 +685,15 @@ public java.util.List getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -631,11 +703,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -645,14 +721,17 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRequests( - int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -666,11 +745,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -684,11 +767,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -704,14 +791,17 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addRequests( - int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { + public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -725,11 +815,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -743,11 +837,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -761,18 +859,21 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -780,11 +881,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -797,11 +902,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -814,39 +923,51 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -854,49 +975,63 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageRequest, com.google.cloud.vision.v1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageRequest, + com.google.cloud.vision.v1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; @@ -904,6 +1039,8 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -916,13 +1053,13 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde
      * 
* * string parent = 4; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -931,6 +1068,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -943,15 +1082,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -959,6 +1097,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -971,20 +1111,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 4; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -997,15 +1139,18 @@ public Builder setParent(
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. Target project and location to make a call.
      * Format: `projects/{project-id}/locations/{location-id}`.
@@ -1018,23 +1163,23 @@ public Builder clearParent() {
      * 
* * string parent = 4; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,12 +1189,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesRequest) private static final com.google.cloud.vision.v1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateImagesRequest(); } @@ -1058,16 +1203,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateImagesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,6 +1227,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java index 0ccea9647..30eceb32d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateImagesRequestOrBuilder extends +public interface BatchAnnotateImagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateImagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getRequestsList(); + java.util.List getRequestsList(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( - int index); + com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -64,10 +100,13 @@ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. Target project and location to make a call.
    * Format: `projects/{project-id}/locations/{location-id}`.
@@ -80,8 +119,8 @@ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java index c161fe325..c6c272c8f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1.AnnotateImageResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1.AnnotateImageResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +98,7 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +107,27 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -114,6 +139,8 @@ public java.util.List getRespo return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -121,11 +148,13 @@ public java.util.List getRespo * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -137,6 +166,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index) return responses_.get(index); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1.BatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +260,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.BatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.BatchAnnotateImagesResponse.newBuilder() @@ -346,17 +388,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override @@ -391,7 +433,8 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1.BatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +453,39 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1.BatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +493,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.BatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -468,9 +513,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BatchAnnotateImagesResponse responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -495,7 +541,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +551,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1.AnnotateImageResponse, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -533,6 +588,8 @@ public java.util.List getRespo } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -547,6 +604,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -561,14 +620,15 @@ public com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index) } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public Builder setResponses( - int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { + public Builder setResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +642,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -600,6 +662,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,14 +684,15 @@ public Builder addResponses(com.google.cloud.vision.v1.AnnotateImageResponse val return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public Builder addResponses( - int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { + public Builder addResponses(int index, com.google.cloud.vision.v1.AnnotateImageResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +706,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,6 +726,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -677,6 +746,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -687,8 +758,7 @@ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -696,6 +766,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -713,6 +785,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -730,17 +804,20 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder( - int index) { + public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuilder(int index) { return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -750,19 +827,22 @@ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder getResponsesBuil public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +850,8 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -777,49 +859,55 @@ public com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrB * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder( - int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); + public com.google.cloud.vision.v1.AnnotateImageResponse.Builder addResponsesBuilder(int index) { + return getResponsesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1.AnnotateImageResponse, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.AnnotateImageResponse, com.google.cloud.vision.v1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.AnnotateImageResponse, + com.google.cloud.vision.v1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesResponse) private static final com.google.cloud.vision.v1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchAnnotateImagesResponse(); } @@ -843,16 +931,16 @@ public static com.google.cloud.vision.v1.BatchAnnotateImagesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +955,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java index fc2c037c2..60ac4e878 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface BatchAnnotateImagesResponseOrBuilder extends +public interface BatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -25,6 +44,8 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ com.google.cloud.vision.v1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -33,21 +54,24 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java index 4eda62dc0..b2a27b2a9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,45 +72,50 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
-            }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+              state_ = rawValue;
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +123,41 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.BatchOperationMetadata.class, com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1.BatchOperationMetadata.class,
+            com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.BatchOperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -139,6 +166,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is actively being processed.
      * 
@@ -147,6 +176,8 @@ public enum State */ PROCESSING(1), /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -156,6 +187,8 @@ public enum State
      */
     SUCCESSFUL(2),
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -164,6 +197,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -177,6 +212,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -185,6 +222,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is actively being processed.
      * 
@@ -193,6 +232,8 @@ public enum State */ public static final int PROCESSING_VALUE = 1; /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -202,6 +243,8 @@ public enum State
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -210,6 +253,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -220,7 +265,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -245,51 +289,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return PROCESSING;
-        case 2: return SUCCESSFUL;
-        case 3: return FAILED;
-        case 4: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return PROCESSING;
+        case 2:
+          return SUCCESSFUL;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.vision.v1.BatchOperationMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -309,38 +357,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.BatchOperationMetadata.State result = com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -348,11 +410,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -360,6 +425,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -374,12 +441,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -387,12 +457,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -400,6 +473,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -413,6 +488,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -424,9 +500,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (state_ != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (state_
+        != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -444,17 +520,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_ != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, state_);
+    if (state_
+        != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -464,23 +538,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.BatchOperationMetadata other = (com.google.cloud.vision.v1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1.BatchOperationMetadata other =
+        (com.google.cloud.vision.v1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -509,96 +582,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -607,21 +687,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchOperationMetadata)
       com.google.cloud.vision.v1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.BatchOperationMetadata.class, com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1.BatchOperationMetadata.class,
+              com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.BatchOperationMetadata.newBuilder()
@@ -629,16 +711,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -660,9 +741,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -681,7 +762,8 @@ public com.google.cloud.vision.v1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1.BatchOperationMetadata result = new com.google.cloud.vision.v1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1.BatchOperationMetadata result =
+          new com.google.cloud.vision.v1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -701,38 +783,39 @@ public com.google.cloud.vision.v1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1.BatchOperationMetadata)other);
+        return mergeFrom((com.google.cloud.vision.v1.BatchOperationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -740,7 +823,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -769,7 +853,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -781,51 +866,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.BatchOperationMetadata.State result = com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -833,21 +934,24 @@ public Builder setState(com.google.cloud.vision.v1.BatchOperationMetadata.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -855,34 +959,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -903,14 +1020,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -921,6 +1039,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -931,7 +1051,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -943,6 +1063,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -961,6 +1083,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -968,11 +1092,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -983,11 +1109,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -995,14 +1124,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1010,26 +1142,35 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1040,6 +1181,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1061,6 +1204,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1068,8 +1213,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1080,6 +1224,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1091,7 +1237,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1103,6 +1249,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1122,6 +1270,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1130,11 +1280,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1146,11 +1298,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
@@ -1159,21 +1312,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1183,12 +1339,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1.BatchOperationMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchOperationMetadata();
   }
@@ -1197,16 +1353,16 @@ public static com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchOperationMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BatchOperationMetadata(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchOperationMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new BatchOperationMetadata(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1221,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
index 9b32e315c..bfe82e512 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java
@@ -1,50 +1,80 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface BatchOperationMetadataOrBuilder extends
+public interface BatchOperationMetadataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1.BatchOperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1.BatchOperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -54,26 +84,34 @@ public interface BatchOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
similarity index 77%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
index cf6fccb4a..ddcae533b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Block.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/text_annotation.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Block} */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Block extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Block) BlockOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -26,16 +44,15 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,69 @@ private Block( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paragraphs_.add( + input.readMessage( + com.google.cloud.vision.v1.Paragraph.parser(), extensionRegistry)); + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + blockType_ = rawValue; + break; } - paragraphs_.add( - input.readMessage(com.google.cloud.vision.v1.Paragraph.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - blockType_ = rawValue; - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,8 +142,7 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -125,29 +151,34 @@ private Block( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Block.class, com.google.cloud.vision.v1.Block.Builder.class); } /** + * + * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.Block.BlockType} */ - public enum BlockType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown block type.
      * 
@@ -156,6 +187,8 @@ public enum BlockType */ UNKNOWN(0), /** + * + * *
      * Regular text block.
      * 
@@ -164,6 +197,8 @@ public enum BlockType */ TEXT(1), /** + * + * *
      * Table block.
      * 
@@ -172,6 +207,8 @@ public enum BlockType */ TABLE(2), /** + * + * *
      * Image block.
      * 
@@ -180,6 +217,8 @@ public enum BlockType */ PICTURE(3), /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -188,6 +227,8 @@ public enum BlockType */ RULER(4), /** + * + * *
      * Barcode block.
      * 
@@ -199,6 +240,8 @@ public enum BlockType ; /** + * + * *
      * Unknown block type.
      * 
@@ -207,6 +250,8 @@ public enum BlockType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Regular text block.
      * 
@@ -215,6 +260,8 @@ public enum BlockType */ public static final int TEXT_VALUE = 1; /** + * + * *
      * Table block.
      * 
@@ -223,6 +270,8 @@ public enum BlockType */ public static final int TABLE_VALUE = 2; /** + * + * *
      * Image block.
      * 
@@ -231,6 +280,8 @@ public enum BlockType */ public static final int PICTURE_VALUE = 3; /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -239,6 +290,8 @@ public enum BlockType */ public static final int RULER_VALUE = 4; /** + * + * *
      * Barcode block.
      * 
@@ -247,7 +300,6 @@ public enum BlockType */ public static final int BARCODE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,52 +324,55 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return TEXT; - case 2: return TABLE; - case 3: return PICTURE; - case 4: return RULER; - case 5: return BARCODE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return TEXT; + case 2: + return TABLE; + case 3: + return PICTURE; + case 4: + return RULER; + case 5: + return BARCODE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,11 +392,14 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -349,18 +407,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the block.
    * 
@@ -375,6 +440,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -394,6 +461,7 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -401,6 +469,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -420,13 +490,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -455,6 +530,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -466,6 +543,8 @@ public java.util.List getParagraphsList() return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -473,11 +552,13 @@ public java.util.List getParagraphsList() * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -489,6 +570,8 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -500,6 +583,8 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -507,46 +592,57 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The blockType. */ - @java.lang.Override public com.google.cloud.vision.v1.Block.BlockType getBlockType() { + @java.lang.Override + public com.google.cloud.vision.v1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Block.BlockType result = com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1.Block.BlockType result = + com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -555,6 +651,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,8 +663,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -593,24 +689,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,7 +711,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Block)) { return super.equals(obj); @@ -629,20 +720,16 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getParagraphsList() - .equals(other.getParagraphsList())) return false; + if (!getParagraphsList().equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,125 +756,132 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Block parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Block parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Block parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Block parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Block} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Block) com.google.cloud.vision.v1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Block.class, com.google.cloud.vision.v1.Block.Builder.class); + com.google.cloud.vision.v1.Block.class, + com.google.cloud.vision.v1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1.Block.newBuilder() @@ -795,17 +889,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +929,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Block_descriptor; } @java.lang.Override @@ -887,38 +981,39 @@ public com.google.cloud.vision.v1.Block buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Block) { - return mergeFrom((com.google.cloud.vision.v1.Block)other); + return mergeFrom((com.google.cloud.vision.v1.Block) other); } else { super.mergeFrom(other); return this; @@ -951,9 +1046,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParagraphsFieldBuilder() : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParagraphsFieldBuilder() + : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -993,38 +1089,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1045,6 +1155,8 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1063,6 +1175,8 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1073,7 +1187,9 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -1085,6 +1201,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1103,6 +1221,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1110,11 +1230,13 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1125,11 +1247,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1137,14 +1262,17 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1152,8 +1280,13 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1173,12 +1306,15 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1198,16 +1334,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,6 +1383,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1262,8 +1405,7 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(
-        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1274,6 +1416,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1298,7 +1442,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1310,6 +1456,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1342,6 +1490,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1363,11 +1513,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1392,11 +1544,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1418,32 +1573,41 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         paragraphs_ = new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder> paragraphsBuilder_;
+            com.google.cloud.vision.v1.Paragraph,
+            com.google.cloud.vision.v1.Paragraph.Builder,
+            com.google.cloud.vision.v1.ParagraphOrBuilder>
+        paragraphsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1458,6 +1622,8 @@ public java.util.List getParagraphsList() } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1472,6 +1638,8 @@ public int getParagraphsCount() { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1486,14 +1654,15 @@ public com.google.cloud.vision.v1.Paragraph getParagraphs(int index) { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder setParagraphs( - int index, com.google.cloud.vision.v1.Paragraph value) { + public Builder setParagraphs(int index, com.google.cloud.vision.v1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,6 +1676,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1525,6 +1696,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1545,14 +1718,15 @@ public Builder addParagraphs(com.google.cloud.vision.v1.Paragraph value) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - int index, com.google.cloud.vision.v1.Paragraph value) { + public Builder addParagraphs(int index, com.google.cloud.vision.v1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1566,14 +1740,15 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - com.google.cloud.vision.v1.Paragraph.Builder builderForValue) { + public Builder addParagraphs(com.google.cloud.vision.v1.Paragraph.Builder builderForValue) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); paragraphs_.add(builderForValue.build()); @@ -1584,6 +1759,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1602,6 +1779,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1612,8 +1791,7 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1621,6 +1799,8 @@ public Builder addAllParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,6 +1818,8 @@ public Builder clearParagraphs() { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1655,39 +1837,44 @@ public Builder removeParagraphs(int index) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.Paragraph.Builder getParagraphsBuilder( - int index) { + public com.google.cloud.vision.v1.Paragraph.Builder getParagraphsBuilder(int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); } else { + return paragraphs_.get(index); + } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,6 +1882,8 @@ public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1702,42 +1891,47 @@ public com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder( - int index) { - return getParagraphsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder(int index) { + return getParagraphsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder> + com.google.cloud.vision.v1.Paragraph, + com.google.cloud.vision.v1.Paragraph.Builder, + com.google.cloud.vision.v1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Paragraph, com.google.cloud.vision.v1.Paragraph.Builder, com.google.cloud.vision.v1.ParagraphOrBuilder>( - paragraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + paragraphsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Paragraph, + com.google.cloud.vision.v1.Paragraph.Builder, + com.google.cloud.vision.v1.ParagraphOrBuilder>( + paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1745,51 +1939,65 @@ public com.google.cloud.vision.v1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Block.BlockType result = com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1.Block.BlockType result = + com.google.cloud.vision.v1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1.Block.BlockType.UNRECOGNIZED : result; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @param value The blockType to set. * @return This builder for chaining. */ @@ -1797,33 +2005,39 @@ public Builder setBlockType(com.google.cloud.vision.v1.Block.BlockType value) { if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1831,37 +2045,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1871,12 +2091,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Block) private static final com.google.cloud.vision.v1.Block DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Block(); } @@ -1885,16 +2105,16 @@ public static com.google.cloud.vision.v1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1909,6 +2129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java index 69204f1d9..da8346e93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BlockOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface BlockOrBuilder extends +public interface BlockOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Block) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
@@ -35,6 +59,8 @@ public interface BlockOrBuilder extends com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface BlockOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - java.util.List - getParagraphsList(); + java.util.List getParagraphsList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -121,6 +156,8 @@ public interface BlockOrBuilder extends */ com.google.cloud.vision.v1.Paragraph getParagraphs(int index); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -129,49 +166,61 @@ public interface BlockOrBuilder extends */ int getParagraphsCount(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder( - int index); + com.google.cloud.vision.v1.ParagraphOrBuilder getParagraphsOrBuilder(int index); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1.Block.BlockType block_type = 4; + * * @return The blockType. */ com.google.cloud.vision.v1.Block.BlockType getBlockType(); /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java index bec9a6aca..ebb1b6928 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPoly.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** + * + * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.BoundingPoly} */ -public final class BoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BoundingPoly) BoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,35 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage(com.google.cloud.vision.v1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1.Vertex.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.vision.v1.NormalizedVertex.parser(), extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.vision.v1.NormalizedVertex.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +108,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -100,22 +120,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.GeometryProto + .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1.GeometryProto + .internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BoundingPoly.class, com.google.cloud.vision.v1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1.BoundingPoly.class, + com.google.cloud.vision.v1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -127,6 +152,8 @@ public java.util.List getVerticesList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -134,11 +161,13 @@ public java.util.List getVerticesList() { * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -150,6 +179,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -161,6 +192,8 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -168,14 +201,15 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -187,6 +221,8 @@ public java.util.List getNormalized return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -194,11 +230,13 @@ public java.util.List getNormalized * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -210,6 +248,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -221,6 +261,8 @@ public com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int ind return normalizedVertices_.get(index); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -234,6 +276,7 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -263,12 +305,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,17 +319,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.BoundingPoly)) { return super.equals(obj); } com.google.cloud.vision.v1.BoundingPoly other = (com.google.cloud.vision.v1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,118 +352,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.BoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BoundingPoly) com.google.cloud.vision.v1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.GeometryProto + .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1.GeometryProto + .internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.BoundingPoly.class, com.google.cloud.vision.v1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1.BoundingPoly.class, + com.google.cloud.vision.v1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1.BoundingPoly.newBuilder() @@ -432,18 +480,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.GeometryProto + .internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; } @java.lang.Override @@ -484,7 +532,8 @@ public com.google.cloud.vision.v1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1.BoundingPoly result = new com.google.cloud.vision.v1.BoundingPoly(this); + com.google.cloud.vision.v1.BoundingPoly result = + new com.google.cloud.vision.v1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -512,38 +561,39 @@ public com.google.cloud.vision.v1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1.BoundingPoly)other); + return mergeFrom((com.google.cloud.vision.v1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -570,9 +620,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -596,9 +647,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNormalizedVerticesFieldBuilder() : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNormalizedVerticesFieldBuilder() + : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -632,21 +684,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.vision.v1.Vertex, + com.google.cloud.vision.v1.Vertex.Builder, + com.google.cloud.vision.v1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -661,6 +720,8 @@ public java.util.List getVerticesList() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -675,6 +736,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -689,14 +752,15 @@ public com.google.cloud.vision.v1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.vision.v1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.vision.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,6 +774,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -728,6 +794,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -748,14 +816,15 @@ public Builder addVertices(com.google.cloud.vision.v1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.vision.v1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.vision.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -769,14 +838,15 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public Builder addVertices( - com.google.cloud.vision.v1.Vertex.Builder builderForValue) { + public Builder addVertices(com.google.cloud.vision.v1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -787,6 +857,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -805,6 +877,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -815,8 +889,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -824,6 +897,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -841,6 +916,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -858,39 +935,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.vision.v1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -898,6 +980,8 @@ public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -905,60 +989,73 @@ public com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder> + com.google.cloud.vision.v1.Vertex, + com.google.cloud.vision.v1.Vertex.Builder, + com.google.cloud.vision.v1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Vertex, com.google.cloud.vision.v1.Vertex.Builder, com.google.cloud.vision.v1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Vertex, + com.google.cloud.vision.v1.Vertex.Builder, + com.google.cloud.vision.v1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); + normalizedVertices_ = + new java.util.ArrayList( + normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.vision.v1.NormalizedVertex, + com.google.cloud.vision.v1.NormalizedVertex.Builder, + com.google.cloud.vision.v1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -973,6 +1070,8 @@ public java.util.List getNormalized } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -987,6 +1086,8 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1001,6 +1102,8 @@ public com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int ind } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1022,6 +1125,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1040,6 +1145,8 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1060,6 +1167,8 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1.NormalizedVertex return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1081,6 +1190,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1099,6 +1210,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1117,6 +1230,8 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1127,8 +1242,7 @@ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1136,6 +1250,8 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1153,6 +1269,8 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1170,6 +1288,8 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1181,6 +1301,8 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder getNormalizedVertices return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1190,19 +1312,22 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder getNormalizedVertices public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1210,6 +1335,8 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1217,10 +1344,12 @@ public com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVertice * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
@@ -1229,26 +1358,34 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVertices */ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1.NormalizedVertex, + com.google.cloud.vision.v1.NormalizedVertex.Builder, + com.google.cloud.vision.v1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.NormalizedVertex, com.google.cloud.vision.v1.NormalizedVertex.Builder, com.google.cloud.vision.v1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.NormalizedVertex, + com.google.cloud.vision.v1.NormalizedVertex.Builder, + com.google.cloud.vision.v1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1257,9 +1394,9 @@ public com.google.cloud.vision.v1.NormalizedVertex.Builder addNormalizedVertices } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1406,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BoundingPoly) private static final com.google.cloud.vision.v1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BoundingPoly(); } @@ -1283,16 +1420,16 @@ public static com.google.cloud.vision.v1.BoundingPoly getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,6 +1444,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java index ddae3582c..eec17e137 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.vision.v1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,34 +54,39 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - java.util.List - getVerticesOrBuilderList(); + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1.Vertex vertices = 1; */ - com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List - getNormalizedVerticesList(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -69,6 +95,8 @@ com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( */ com.google.cloud.vision.v1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -77,21 +105,24 @@ com.google.cloud.vision.v1.VertexOrBuilder getVerticesOrBuilder( */ int getNormalizedVerticesCount(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1.NormalizedVertex normalized_vertices = 2; */ - com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index); + com.google.cloud.vision.v1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java index 87f32f0b4..2820bdf75 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ColorInfo}
  */
-public final class ColorInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ColorInfo)
     ColorInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ColorInfo() {
-  }
+
+  private ColorInfo() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,37 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Color.Builder subBuilder = null;
-            if (color_ != null) {
-              subBuilder = color_.toBuilder();
+          case 10:
+            {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
+              }
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(color_);
-              color_ = subBuilder.buildPartial();
+          case 21:
+            {
+              score_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 21: {
-
-            score_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            pixelFraction_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 29:
+            {
+              pixelFraction_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,34 +107,39 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ColorInfo.class, com.google.cloud.vision.v1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1.ColorInfo.class,
+            com.google.cloud.vision.v1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
+   *
+   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ @java.lang.Override @@ -125,11 +147,14 @@ public boolean hasColor() { return color_ != null; } /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** + * + * *
    * RGB components of the color.
    * 
@@ -151,11 +178,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -166,12 +196,15 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -180,6 +213,7 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -212,16 +245,13 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,7 +261,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ColorInfo)) { return super.equals(obj); @@ -240,15 +270,12 @@ public boolean equals(final java.lang.Object obj) { if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor() - .equals(other.getColor())) return false; + if (!getColor().equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits( - other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,107 +292,111 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ColorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ColorInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.ColorInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ColorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -373,21 +404,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ColorInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ColorInfo)
       com.google.cloud.vision.v1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ColorInfo.class, com.google.cloud.vision.v1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1.ColorInfo.class,
+              com.google.cloud.vision.v1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ColorInfo.newBuilder()
@@ -395,16 +428,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +454,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -459,38 +491,39 @@ public com.google.cloud.vision.v1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1.ColorInfo)other);
+        return mergeFrom((com.google.cloud.vision.v1.ColorInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,24 +572,31 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
+            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
+        colorBuilder_;
     /**
+     *
+     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return The color. */ public com.google.type.Color getColor() { @@ -567,6 +607,8 @@ public com.google.type.Color getColor() { } } /** + * + * *
      * RGB components of the color.
      * 
@@ -587,14 +629,15 @@ public Builder setColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor( - com.google.type.Color.Builder builderForValue) { + public Builder setColor(com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -605,6 +648,8 @@ public Builder setColor( return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -614,8 +659,7 @@ public Builder setColor( public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = - com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -627,6 +671,8 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -645,6 +691,8 @@ public Builder clearColor() { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -652,11 +700,13 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** + * + * *
      * RGB components of the color.
      * 
@@ -667,11 +717,12 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? - com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } } /** + * + * *
      * RGB components of the color.
      * 
@@ -679,26 +730,29 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( - getColor(), - getParentForChildren(), - isClean()); + colorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -706,43 +760,52 @@ public float getScore() { return score_; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_ ; + private float pixelFraction_; /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -750,39 +813,45 @@ public float getPixelFraction() { return pixelFraction_; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ColorInfo) private static final com.google.cloud.vision.v1.ColorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ColorInfo(); } @@ -806,16 +875,16 @@ public static com.google.cloud.vision.v1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +899,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java index 307618578..054dac776 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ColorInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ColorInfoOrBuilder extends +public interface ColorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ boolean hasColor(); /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ com.google.type.Color getColor(); /** + * + * *
    * RGB components of the color.
    * 
@@ -35,22 +59,28 @@ public interface ColorInfoOrBuilder extends com.google.type.ColorOrBuilder getColorOrBuilder(); /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java index 200a6be7b..e078fe39b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductRequest} */ -public final class CreateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateProductRequest) CreateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -26,16 +44,15 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private CreateProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +114,43 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductRequest.class, com.google.cloud.vision.v1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductRequest.class, + com.google.cloud.vision.v1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +159,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,11 +196,15 @@ public java.lang.String getParent() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.Product product_; /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -178,11 +212,15 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override @@ -190,11 +228,14 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { @@ -204,6 +245,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -212,6 +255,7 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
    * 
* * string product_id = 3; + * * @return The productId. */ @java.lang.Override @@ -220,14 +264,15 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -236,16 +281,15 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -254,6 +298,7 @@ public java.lang.String getProductId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,8 +333,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -303,22 +346,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateProductRequest other = (com.google.cloud.vision.v1.CreateProductRequest) obj; + com.google.cloud.vision.v1.CreateProductRequest other = + (com.google.cloud.vision.v1.CreateProductRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } - if (!getProductId() - .equals(other.getProductId())) return false; + if (!getProductId().equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,118 +384,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateProductRequest) com.google.cloud.vision.v1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductRequest.class, com.google.cloud.vision.v1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductRequest.class, + com.google.cloud.vision.v1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateProductRequest.newBuilder() @@ -462,16 +512,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; } @java.lang.Override @@ -510,7 +559,8 @@ public com.google.cloud.vision.v1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1.CreateProductRequest result = new com.google.cloud.vision.v1.CreateProductRequest(this); + com.google.cloud.vision.v1.CreateProductRequest result = + new com.google.cloud.vision.v1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -526,38 +576,39 @@ public com.google.cloud.vision.v1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1.CreateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -565,7 +616,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.CreateProductRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -608,20 +660,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,22 +686,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,60 +712,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,39 +786,55 @@ public Builder setParentBytes( private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -762,14 +850,16 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -780,17 +870,22 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -802,11 +897,14 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -820,48 +918,61 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -869,6 +980,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { private java.lang.Object productId_ = ""; /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -877,13 +990,13 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
      * 
* * string product_id = 3; + * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -892,6 +1005,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -900,15 +1015,14 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @return The bytes for productId. */ - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -916,6 +1030,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -924,20 +1040,22 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId( - java.lang.String value) { + public Builder setProductId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -946,15 +1064,18 @@ public Builder setProductId(
      * 
* * string product_id = 3; + * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -963,23 +1084,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; + * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1110,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateProductRequest) private static final com.google.cloud.vision.v1.CreateProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateProductRequest(); } @@ -1003,16 +1124,16 @@ public static com.google.cloud.vision.v1.CreateProductRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1148,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java index 3b68aa72e..ef2a2018e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java @@ -1,64 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateProductRequestOrBuilder extends +public interface CreateProductRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -67,10 +105,13 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The productId. */ java.lang.String getProductId(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -79,8 +120,8 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ - com.google.protobuf.ByteString - getProductIdBytes(); + com.google.protobuf.ByteString getProductIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java index 64fffbb88..a2ca2dc44 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -26,16 +44,15 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductSetRequest.class, com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductSetRequest.class, + com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -210,6 +259,7 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -234,16 +285,15 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getProductSetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateProductSetRequest other = (com.google.cloud.vision.v1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1.CreateProductSetRequest other = + (com.google.cloud.vision.v1.CreateProductSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet() - .equals(other.getProductSet())) return false; + if (!getProductSet().equals(other.getProductSet())) return false; } - if (!getProductSetId() - .equals(other.getProductSetId())) return false; + if (!getProductSetId().equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateProductSetRequest) com.google.cloud.vision.v1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateProductSetRequest.class, com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.CreateProductSetRequest.class, + com.google.cloud.vision.v1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateProductSetRequest.newBuilder() @@ -460,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +542,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -508,7 +563,8 @@ public com.google.cloud.vision.v1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1.CreateProductSetRequest result = new com.google.cloud.vision.v1.CreateProductSetRequest(this); + com.google.cloud.vision.v1.CreateProductSetRequest result = + new com.google.cloud.vision.v1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -524,38 +580,39 @@ public com.google.cloud.vision.v1.CreateProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.CreateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +620,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.CreateProductSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +652,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +665,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +690,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +715,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +786,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -755,14 +853,17 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProductSet( - com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { productSet_ = builderForValue.build(); onChanged(); @@ -773,17 +874,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -795,11 +902,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -813,48 +924,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -862,6 +989,8 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { private java.lang.Object productSetId_ = ""; /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -870,13 +999,13 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
      * 
* * string product_set_id = 3; + * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -885,6 +1014,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -893,15 +1024,14 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -909,6 +1039,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -917,20 +1049,22 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId( - java.lang.String value) { + public Builder setProductSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -939,15 +1073,18 @@ public Builder setProductSetId(
      * 
* * string product_set_id = 3; + * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -956,23 +1093,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateProductSetRequest) private static final com.google.cloud.vision.v1.CreateProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateProductSetRequest(); } @@ -996,16 +1133,16 @@ public static com.google.cloud.vision.v1.CreateProductSetRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1157,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java index ecea0a627..7b110fbee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateProductSetRequestOrBuilder extends +public interface CreateProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -65,10 +106,13 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ java.lang.String getProductSetId(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -77,8 +121,8 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString - getProductSetIdBytes(); + com.google.protobuf.ByteString getProductSetIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java index 4f1050b14..70185e762 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -26,16 +44,15 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); + } + referenceImage_ = + input.readMessage( + com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + referenceImageId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +115,43 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,12 +197,17 @@ public java.lang.String getParent() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ReferenceImage referenceImage_; /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -179,25 +215,36 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { - return referenceImage_ == null ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() + : referenceImage_; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -207,6 +254,8 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -215,6 +264,7 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ @java.lang.Override @@ -223,14 +273,15 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -239,16 +290,15 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -257,6 +307,7 @@ public java.lang.String getReferenceImageId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +319,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +342,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -306,22 +355,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1.CreateReferenceImageRequest other = + (com.google.cloud.vision.v1.CreateReferenceImageRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage() - .equals(other.getReferenceImage())) return false; + if (!getReferenceImage().equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId() - .equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,117 +394,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.CreateReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CreateReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CreateReferenceImageRequest) com.google.cloud.vision.v1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.CreateReferenceImageRequest.newBuilder() @@ -465,16 +522,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; } @java.lang.Override @@ -513,7 +569,8 @@ public com.google.cloud.vision.v1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1.CreateReferenceImageRequest result = + new com.google.cloud.vision.v1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -529,38 +586,39 @@ public com.google.cloud.vision.v1.CreateReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.CreateReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1.CreateReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -568,7 +626,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.CreateReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.CreateReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -599,7 +658,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.CreateReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.CreateReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,20 +671,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -633,22 +697,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -656,60 +723,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,42 +797,61 @@ public Builder setParentBytes( private com.google.cloud.vision.v1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImageBuilder_; + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder> + referenceImageBuilder_; /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() + : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -768,12 +867,16 @@ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage( com.google.cloud.vision.v1.ReferenceImage.Builder builderForValue) { @@ -787,18 +890,24 @@ public Builder setReferenceImage( return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ReferenceImage.newBuilder(referenceImage_) + .mergeFrom(value) + .buildPartial(); } else { referenceImage_ = value; } @@ -810,12 +919,16 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage val return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -829,51 +942,67 @@ public Builder clearReferenceImage() { return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null ? - com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance() + : referenceImage_; } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( - getReferenceImage(), - getParentForChildren(), - isClean()); + referenceImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + getReferenceImage(), getParentForChildren(), isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -881,6 +1010,8 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui private java.lang.Object referenceImageId_ = ""; /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -889,13 +1020,13 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui
      * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -904,6 +1035,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -912,15 +1045,14 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -928,6 +1060,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -936,20 +1070,22 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId( - java.lang.String value) { + public Builder setReferenceImageId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -958,15 +1094,18 @@ public Builder setReferenceImageId(
      * 
* * string reference_image_id = 3; + * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -975,23 +1114,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes( - com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,12 +1140,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CreateReferenceImageRequest) private static final com.google.cloud.vision.v1.CreateReferenceImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CreateReferenceImageRequest(); } @@ -1015,16 +1154,16 @@ public static com.google.cloud.vision.v1.CreateReferenceImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,6 +1178,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java index 89ce28a96..ba511f47d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java @@ -1,67 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface CreateReferenceImageRequestOrBuilder extends +public interface CreateReferenceImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ com.google.cloud.vision.v1.ReferenceImage getReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -70,10 +111,13 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -82,8 +126,8 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString - getReferenceImageIdBytes(); + com.google.protobuf.ByteString getReferenceImageIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java index 1be5f6fa8..9a3c0b616 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHint.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHint} */ -public final class CropHint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHint) CropHintOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHint() { - } + + private CropHint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,39 @@ private CropHint( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - case 29: { - - importanceFraction_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 29: + { + importanceFraction_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,35 +108,40 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHint.class, com.google.cloud.vision.v1.CropHint.Builder.class); + com.google.cloud.vision.v1.CropHint.class, + com.google.cloud.vision.v1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -125,19 +149,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -153,11 +184,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -168,12 +202,15 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -182,6 +219,7 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -214,16 +251,13 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,7 +267,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHint)) { return super.equals(obj); @@ -242,15 +276,12 @@ public boolean equals(final java.lang.Object obj) { if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits( - other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,128 +298,134 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.CropHint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHint parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.CropHint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHint) com.google.cloud.vision.v1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHint.class, com.google.cloud.vision.v1.CropHint.Builder.class); + com.google.cloud.vision.v1.CropHint.class, + com.google.cloud.vision.v1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHint.newBuilder() @@ -396,16 +433,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHint_descriptor; } @java.lang.Override @@ -460,38 +496,39 @@ public com.google.cloud.vision.v1.CropHint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1.CropHint)other); + return mergeFrom((com.google.cloud.vision.v1.CropHint) other); } else { super.mergeFrom(other); return this; @@ -540,36 +577,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -591,6 +641,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -610,6 +662,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -621,7 +675,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -633,6 +689,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -652,6 +710,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -660,11 +720,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -676,11 +738,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -689,26 +754,32 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -716,43 +787,52 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_ ; + private float importanceFraction_; /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -760,39 +840,45 @@ public float getImportanceFraction() { return importanceFraction_; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +888,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHint) private static final com.google.cloud.vision.v1.CropHint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHint(); } @@ -816,16 +902,16 @@ public static com.google.cloud.vision.v1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java index 7498b0f96..ae11f6caa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintOrBuilder extends +public interface CropHintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -38,22 +62,28 @@ public interface CropHintOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java index 8cad055c6..8250f23bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cropHints_.add( + input.readMessage( + com.google.cloud.vision.v1.CropHint.parser(), extensionRegistry)); + break; } - cropHints_.add( - input.readMessage(com.google.cloud.vision.v1.CropHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -87,22 +105,27 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsAnnotation.class, com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1.CropHintsAnnotation.class, + com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** + * + * *
    * Crop hint results.
    * 
@@ -114,6 +137,8 @@ public java.util.List getCropHintsList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -121,11 +146,13 @@ public java.util.List getCropHintsList() { * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -137,6 +164,8 @@ public int getCropHintsCount() { return cropHints_.size(); } /** + * + * *
    * Crop hint results.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** + * + * *
    * Crop hint results.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.CropHintsAnnotation other = (com.google.cloud.vision.v1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1.CropHintsAnnotation other = + (com.google.cloud.vision.v1.CropHintsAnnotation) obj; - if (!getCropHintsList() - .equals(other.getCropHintsList())) return false; + if (!getCropHintsList().equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +256,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHintsAnnotation) com.google.cloud.vision.v1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsAnnotation.class, com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1.CropHintsAnnotation.class, + com.google.cloud.vision.v1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHintsAnnotation.newBuilder() @@ -346,17 +384,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +429,8 @@ public com.google.cloud.vision.v1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1.CropHintsAnnotation result = new com.google.cloud.vision.v1.CropHintsAnnotation(this); + com.google.cloud.vision.v1.CropHintsAnnotation result = + new com.google.cloud.vision.v1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +449,39 @@ public com.google.cloud.vision.v1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.CropHintsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1.CropHintsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -468,9 +508,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.CropHintsAnnotation other) { cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCropHintsFieldBuilder() : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCropHintsFieldBuilder() + : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -504,21 +545,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cropHints_ = new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder> cropHintsBuilder_; + com.google.cloud.vision.v1.CropHint, + com.google.cloud.vision.v1.CropHint.Builder, + com.google.cloud.vision.v1.CropHintOrBuilder> + cropHintsBuilder_; /** + * + * *
      * Crop hint results.
      * 
@@ -533,6 +581,8 @@ public java.util.List getCropHintsList() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -547,6 +597,8 @@ public int getCropHintsCount() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -561,14 +613,15 @@ public com.google.cloud.vision.v1.CropHint getCropHints(int index) { } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder setCropHints( - int index, com.google.cloud.vision.v1.CropHint value) { + public Builder setCropHints(int index, com.google.cloud.vision.v1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +635,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -600,6 +655,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -620,14 +677,15 @@ public Builder addCropHints(com.google.cloud.vision.v1.CropHint value) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder addCropHints( - int index, com.google.cloud.vision.v1.CropHint value) { + public Builder addCropHints(int index, com.google.cloud.vision.v1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +699,15 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public Builder addCropHints( - com.google.cloud.vision.v1.CropHint.Builder builderForValue) { + public Builder addCropHints(com.google.cloud.vision.v1.CropHint.Builder builderForValue) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); cropHints_.add(builderForValue.build()); @@ -659,6 +718,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -677,6 +738,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -687,8 +750,7 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -696,6 +758,8 @@ public Builder addAllCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -713,6 +777,8 @@ public Builder clearCropHints() { return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -730,39 +796,44 @@ public Builder removeCropHints(int index) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHint.Builder getCropHintsBuilder( - int index) { + public com.google.cloud.vision.v1.CropHint.Builder getCropHintsBuilder(int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); } else { + return cropHints_.get(index); + } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +841,8 @@ public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( } } /** + * + * *
      * Crop hint results.
      * 
@@ -777,49 +850,54 @@ public com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder( - int index) { - return getCropHintsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1.CropHint.Builder addCropHintsBuilder(int index) { + return getCropHintsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder> + com.google.cloud.vision.v1.CropHint, + com.google.cloud.vision.v1.CropHint.Builder, + com.google.cloud.vision.v1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.CropHint, com.google.cloud.vision.v1.CropHint.Builder, com.google.cloud.vision.v1.CropHintOrBuilder>( - cropHints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cropHintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.CropHint, + com.google.cloud.vision.v1.CropHint.Builder, + com.google.cloud.vision.v1.CropHintOrBuilder>( + cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cropHints_ = null; } return cropHintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHintsAnnotation) private static final com.google.cloud.vision.v1.CropHintsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHintsAnnotation(); } @@ -843,16 +921,16 @@ public static com.google.cloud.vision.v1.CropHintsAnnotation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java index 68a189369..da17a0a14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintsAnnotationOrBuilder extends +public interface CropHintsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - java.util.List - getCropHintsList(); + java.util.List getCropHintsList(); /** + * + * *
    * Crop hint results.
    * 
@@ -25,6 +44,8 @@ public interface CropHintsAnnotationOrBuilder extends */ com.google.cloud.vision.v1.CropHint getCropHints(int index); /** + * + * *
    * Crop hint results.
    * 
@@ -33,21 +54,24 @@ public interface CropHintsAnnotationOrBuilder extends */ int getCropHintsCount(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder( - int index); + com.google.cloud.vision.v1.CropHintOrBuilder getCropHintsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java index cbfd884f6..04132934b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsParams} */ -public final class CropHintsParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.CropHintsParams) CropHintsParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,34 +71,36 @@ private CropHintsParams( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } aspectRatios_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -99,22 +117,27 @@ private CropHintsParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsParams.class, com.google.cloud.vision.v1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1.CropHintsParams.class, + com.google.cloud.vision.v1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -125,14 +148,16 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List - getAspectRatiosList() { + public java.util.List getAspectRatiosList() { return aspectRatios_; } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -143,12 +168,15 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -159,15 +187,18 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } + private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -204,8 +234,7 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -217,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.CropHintsParams other = (com.google.cloud.vision.v1.CropHintsParams) obj; + com.google.cloud.vision.v1.CropHintsParams other = + (com.google.cloud.vision.v1.CropHintsParams) obj; - if (!getAspectRatiosList() - .equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,118 +275,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.CropHintsParams parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.CropHintsParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.CropHintsParams) com.google.cloud.vision.v1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.CropHintsParams.class, com.google.cloud.vision.v1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1.CropHintsParams.class, + com.google.cloud.vision.v1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1.CropHintsParams.newBuilder() @@ -365,16 +403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; } @java.lang.Override @@ -405,7 +442,8 @@ public com.google.cloud.vision.v1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1.CropHintsParams result = new com.google.cloud.vision.v1.CropHintsParams(this); + com.google.cloud.vision.v1.CropHintsParams result = + new com.google.cloud.vision.v1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -420,38 +458,39 @@ public com.google.cloud.vision.v1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1.CropHintsParams)other); + return mergeFrom((com.google.cloud.vision.v1.CropHintsParams) other); } else { super.mergeFrom(other); return this; @@ -498,16 +537,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); + private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -518,14 +561,17 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ - public java.util.List - getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; + public java.util.List getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(aspectRatios_) + : aspectRatios_; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -536,12 +582,15 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -552,6 +601,7 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -559,6 +609,8 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -569,18 +621,20 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios( - int index, float value) { + public Builder setAspectRatios(int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -591,6 +645,7 @@ public Builder setAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -601,6 +656,8 @@ public Builder addAspectRatios(float value) { return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -611,18 +668,19 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; + * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios( - java.lang.Iterable values) { + public Builder addAllAspectRatios(java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -633,6 +691,7 @@ public Builder addAllAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -641,9 +700,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.CropHintsParams) private static final com.google.cloud.vision.v1.CropHintsParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.CropHintsParams(); } @@ -667,16 +726,16 @@ public static com.google.cloud.vision.v1.CropHintsParams getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +750,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java index 0ca2ba5cd..678a3e597 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CropHintsParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface CropHintsParamsOrBuilder extends +public interface CropHintsParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -18,10 +36,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -32,10 +53,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -46,6 +70,7 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java index 477067b58..d1fa91dfb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductRequest} */ -public final class DeleteProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteProductRequest) DeleteProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductRequest.class, com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductRequest.class, + com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteProductRequest other = (com.google.cloud.vision.v1.DeleteProductRequest) obj; + com.google.cloud.vision.v1.DeleteProductRequest other = + (com.google.cloud.vision.v1.DeleteProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteProductRequest) com.google.cloud.vision.v1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductRequest.class, com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductRequest.class, + com.google.cloud.vision.v1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteProductRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1.DeleteProductRequest result = new com.google.cloud.vision.v1.DeleteProductRequest(this); + com.google.cloud.vision.v1.DeleteProductRequest result = + new com.google.cloud.vision.v1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1.DeleteProductRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.DeleteProductRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -451,20 +489,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +515,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +541,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +624,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteProductRequest) private static final com.google.cloud.vision.v1.DeleteProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteProductRequest(); } @@ -580,16 +638,16 @@ public static com.google.cloud.vision.v1.DeleteProductRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..d25b6bdcd --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java index 6afc08ad8..b31ba64ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductSetRequest.class, com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteProductSetRequest other = (com.google.cloud.vision.v1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1.DeleteProductSetRequest other = + (com.google.cloud.vision.v1.DeleteProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteProductSetRequest) com.google.cloud.vision.v1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteProductSetRequest.class, com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteProductSetRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1.DeleteProductSetRequest result = new com.google.cloud.vision.v1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1.DeleteProductSetRequest result = + new com.google.cloud.vision.v1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1.DeleteProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.DeleteProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.DeleteProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1.DeleteProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteProductSetRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.vision.v1.DeleteProductSetRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..8c7f0c6fa --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java index 81bd8ca3e..f2e748267 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1.DeleteReferenceImageRequest other = + (com.google.cloud.vision.v1.DeleteReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.DeleteReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DeleteReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DeleteReferenceImageRequest) com.google.cloud.vision.v1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.DeleteReferenceImageRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1.DeleteReferenceImageRequest result = + new com.google.cloud.vision.v1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1.DeleteReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.DeleteReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1.DeleteReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DeleteReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.DeleteReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DeleteReferenceImageRequest) private static final com.google.cloud.vision.v1.DeleteReferenceImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DeleteReferenceImageRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1.DeleteReferenceImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..3f055ae20 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface DeleteReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java index 8e7857644..14ec8f64c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + colors_.add( + input.readMessage( + com.google.cloud.vision.v1.ColorInfo.parser(), extensionRegistry)); + break; } - colors_.add( - input.readMessage(com.google.cloud.vision.v1.ColorInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -87,22 +105,27 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DominantColorsAnnotation.class, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -114,6 +137,8 @@ public java.util.List getColorsList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -121,11 +146,13 @@ public java.util.List getColorsList() { * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,6 +164,8 @@ public int getColorsCount() { return colors_.size(); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { return colors_.get(index); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.DominantColorsAnnotation other = (com.google.cloud.vision.v1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1.DominantColorsAnnotation other = + (com.google.cloud.vision.v1.DominantColorsAnnotation) obj; - if (!getColorsList() - .equals(other.getColorsList())) return false; + if (!getColorsList().equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1.DominantColorsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.DominantColorsAnnotation) com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.DominantColorsAnnotation.class, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder() @@ -346,17 +384,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +429,8 @@ public com.google.cloud.vision.v1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1.DominantColorsAnnotation result = new com.google.cloud.vision.v1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1.DominantColorsAnnotation result = + new com.google.cloud.vision.v1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +449,39 @@ public com.google.cloud.vision.v1.DominantColorsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.DominantColorsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1.DominantColorsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +489,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance()) + return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -468,9 +509,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.DominantColorsAnnotation oth colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColorsFieldBuilder() : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColorsFieldBuilder() + : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -495,7 +537,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +547,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder> colorsBuilder_; + com.google.cloud.vision.v1.ColorInfo, + com.google.cloud.vision.v1.ColorInfo.Builder, + com.google.cloud.vision.v1.ColorInfoOrBuilder> + colorsBuilder_; /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -533,6 +583,8 @@ public java.util.List getColorsList() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -547,6 +599,8 @@ public int getColorsCount() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -561,14 +615,15 @@ public com.google.cloud.vision.v1.ColorInfo getColors(int index) { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder setColors( - int index, com.google.cloud.vision.v1.ColorInfo value) { + public Builder setColors(int index, com.google.cloud.vision.v1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +637,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,6 +657,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -620,14 +679,15 @@ public Builder addColors(com.google.cloud.vision.v1.ColorInfo value) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder addColors( - int index, com.google.cloud.vision.v1.ColorInfo value) { + public Builder addColors(int index, com.google.cloud.vision.v1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +701,15 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public Builder addColors( - com.google.cloud.vision.v1.ColorInfo.Builder builderForValue) { + public Builder addColors(com.google.cloud.vision.v1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -659,6 +720,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -677,6 +740,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -687,8 +752,7 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -696,6 +760,8 @@ public Builder addAllColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -713,6 +779,8 @@ public Builder clearColors() { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -730,39 +798,44 @@ public Builder removeColors(int index) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfo.Builder getColorsBuilder( - int index) { + public com.google.cloud.vision.v1.ColorInfo.Builder getColorsBuilder(int index) { return getColorsFieldBuilder().getBuilder(index); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index) { if (colorsBuilder_ == null) { - return colors_.get(index); } else { + return colors_.get(index); + } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +843,8 @@ public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -777,49 +852,54 @@ public com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder( - int index) { - return getColorsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1.ColorInfo.Builder addColorsBuilder(int index) { + return getColorsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder> + com.google.cloud.vision.v1.ColorInfo, + com.google.cloud.vision.v1.ColorInfo.Builder, + com.google.cloud.vision.v1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ColorInfo, com.google.cloud.vision.v1.ColorInfo.Builder, com.google.cloud.vision.v1.ColorInfoOrBuilder>( - colors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + colorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ColorInfo, + com.google.cloud.vision.v1.ColorInfo.Builder, + com.google.cloud.vision.v1.ColorInfoOrBuilder>( + colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1.DominantColorsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.DominantColorsAnnotation(); } @@ -843,16 +923,16 @@ public static com.google.cloud.vision.v1.DominantColorsAnnotation getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java index 751580bfc..ad1278286 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DominantColorsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface DominantColorsAnnotationOrBuilder extends +public interface DominantColorsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - java.util.List - getColorsList(); + java.util.List getColorsList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -25,6 +44,8 @@ public interface DominantColorsAnnotationOrBuilder extends */ com.google.cloud.vision.v1.ColorInfo getColors(int index); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -33,21 +54,23 @@ public interface DominantColorsAnnotationOrBuilder extends */ int getColorsCount(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - java.util.List - getColorsOrBuilderList(); + java.util.List getColorsOrBuilderList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder( - int index); + com.google.cloud.vision.v1.ColorInfoOrBuilder getColorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java index 428b46900..d699fcc13 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1.EntityAnnotation} */ -public final class EntityAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.EntityAnnotation) EntityAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -29,16 +47,15 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,87 @@ private EntityAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - locale_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 37: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 45: { + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 53: { + locale_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - topicality_ = input.readFloat(); - break; - } - case 58: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + description_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + confidence_ = input.readFloat(); + break; } - locations_.add( - input.readMessage(com.google.cloud.vision.v1.LocationInfo.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 53: + { + topicality_ = input.readFloat(); + break; } - properties_.add( - input.readMessage(com.google.cloud.vision.v1.Property.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.vision.v1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + properties_.add( + input.readMessage( + com.google.cloud.vision.v1.Property.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +163,7 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -149,22 +175,27 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.EntityAnnotation.class, com.google.cloud.vision.v1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1.EntityAnnotation.class, + com.google.cloud.vision.v1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -172,6 +203,7 @@ private EntityAnnotation(
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -180,14 +212,15 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -195,16 +228,15 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -215,12 +247,15 @@ public java.lang.String getMid() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ @java.lang.Override @@ -229,30 +264,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -263,11 +298,14 @@ public java.lang.String getLocale() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -276,29 +314,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -309,11 +347,14 @@ public java.lang.String getDescription() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -324,6 +365,8 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -333,18 +376,22 @@ public float getScore() {
    * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1/image_annotator.proto;l=505 + * + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated public float getConfidence() { + @java.lang.Deprecated + public float getConfidence() { return confidence_; } public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -354,6 +401,7 @@ public float getScore() {
    * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -364,12 +412,15 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -377,19 +428,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -405,6 +463,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -420,6 +480,8 @@ public java.util.List getLocationsList(
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -431,11 +493,13 @@ public java.util.List getLocationsList(
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -451,6 +515,8 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -466,6 +532,8 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -477,14 +545,15 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -497,6 +566,8 @@ public java.util.List getPropertiesList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -505,11 +576,13 @@ public java.util.List getPropertiesList() {
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -522,6 +595,8 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -534,6 +609,8 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -542,12 +619,12 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -559,8 +636,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -607,28 +683,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -638,37 +708,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.EntityAnnotation other = (com.google.cloud.vision.v1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1.EntityAnnotation other =
+        (com.google.cloud.vision.v1.EntityAnnotation) obj;
 
-    if (!getMid()
-        .equals(other.getMid())) return false;
-    if (!getLocale()
-        .equals(other.getLocale())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getMid().equals(other.getMid())) return false;
+    if (!getLocale().equals(other.getLocale())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(
-            other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(
-            other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly()
-          .equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList()
-        .equals(other.getLocationsList())) return false;
-    if (!getPropertiesList()
-        .equals(other.getPropertiesList())) return false;
+    if (!getLocationsList().equals(other.getLocationsList())) return false;
+    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -687,14 +749,11 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -712,118 +771,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1.EntityAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.EntityAnnotation) com.google.cloud.vision.v1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.EntityAnnotation.class, com.google.cloud.vision.v1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1.EntityAnnotation.class, + com.google.cloud.vision.v1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.EntityAnnotation.newBuilder() @@ -831,18 +899,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -880,9 +948,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; } @java.lang.Override @@ -901,7 +969,8 @@ public com.google.cloud.vision.v1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1.EntityAnnotation result = new com.google.cloud.vision.v1.EntityAnnotation(this); + com.google.cloud.vision.v1.EntityAnnotation result = + new com.google.cloud.vision.v1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -940,38 +1009,39 @@ public com.google.cloud.vision.v1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.EntityAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1.EntityAnnotation) other); } else { super.mergeFrom(other); return this; @@ -1022,9 +1092,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.EntityAnnotation other) { locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1048,9 +1119,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.EntityAnnotation other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1084,10 +1156,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mid_ = ""; /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1095,13 +1170,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1110,6 +1185,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1117,15 +1194,14 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1133,6 +1209,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1140,20 +1218,22 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1161,15 +1241,18 @@ public Builder setMid(
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1177,16 +1260,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1194,19 +1277,21 @@ public Builder setMidBytes( private java.lang.Object locale_ = ""; /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1215,21 +1300,22 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -1237,57 +1323,64 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale( - java.lang.String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1295,18 +1388,20 @@ public Builder setLocaleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1315,20 +1410,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1336,66 +1432,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1403,37 +1509,45 @@ public float getScore() { return score_; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1443,15 +1557,19 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1/image_annotator.proto;l=505 + * + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated public float getConfidence() { + @java.lang.Deprecated + public float getConfidence() { return confidence_; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1461,18 +1579,22 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1/image_annotator.proto;l=505 + * + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1/image_annotator.proto;l=505 * @param value The confidence to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setConfidence(float value) { - + @java.lang.Deprecated + public Builder setConfidence(float value) { + confidence_ = value; onChanged(); return this; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1482,19 +1604,23 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1/image_annotator.proto;l=505 + * + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1/image_annotator.proto;l=505 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearConfidence() { - + @java.lang.Deprecated + public Builder clearConfidence() { + confidence_ = 0F; onChanged(); return this; } - private float topicality_ ; + private float topicality_; /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1504,6 +1630,7 @@ public Builder clearScore() {
      * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -1511,6 +1638,8 @@ public float getTopicality() { return topicality_; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1520,16 +1649,19 @@ public float getTopicality() {
      * 
* * float topicality = 6; + * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1539,10 +1671,11 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; + * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1550,36 +1683,49 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1601,6 +1747,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1620,6 +1768,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1631,7 +1781,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1643,6 +1795,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1662,6 +1816,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1670,11 +1826,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1686,11 +1844,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1699,32 +1860,41 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         locations_ = new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder> locationsBuilder_;
+            com.google.cloud.vision.v1.LocationInfo,
+            com.google.cloud.vision.v1.LocationInfo.Builder,
+            com.google.cloud.vision.v1.LocationInfoOrBuilder>
+        locationsBuilder_;
 
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1743,6 +1913,8 @@ public java.util.List getLocationsList(
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1761,6 +1933,8 @@ public int getLocationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1779,6 +1953,8 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1789,8 +1965,7 @@ public com.google.cloud.vision.v1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder setLocations(
-        int index, com.google.cloud.vision.v1.LocationInfo value) {
+    public Builder setLocations(int index, com.google.cloud.vision.v1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1804,6 +1979,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1826,6 +2003,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1850,6 +2029,8 @@ public Builder addLocations(com.google.cloud.vision.v1.LocationInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1860,8 +2041,7 @@ public Builder addLocations(com.google.cloud.vision.v1.LocationInfo value) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        int index, com.google.cloud.vision.v1.LocationInfo value) {
+    public Builder addLocations(int index, com.google.cloud.vision.v1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1875,6 +2055,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1885,8 +2067,7 @@ public Builder addLocations(
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        com.google.cloud.vision.v1.LocationInfo.Builder builderForValue) {
+    public Builder addLocations(com.google.cloud.vision.v1.LocationInfo.Builder builderForValue) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
         locations_.add(builderForValue.build());
@@ -1897,6 +2078,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1919,6 +2102,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1933,8 +2118,7 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -1942,6 +2126,8 @@ public Builder addAllLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1963,6 +2149,8 @@ public Builder clearLocations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1984,6 +2172,8 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1994,11 +2184,12 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2009,14 +2200,16 @@ public com.google.cloud.vision.v1.LocationInfo.Builder getLocationsBuilder(
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);  } else {
+        return locations_.get(index);
+      } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2027,8 +2220,8 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsOrBuilderList() {
+    public java.util.List
+        getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2036,6 +2229,8 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2047,10 +2242,12 @@ public com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2061,12 +2258,13 @@ public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder() {
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(
-        int index) {
-      return getLocationsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(int index) {
+      return getLocationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2077,38 +2275,47 @@ public com.google.cloud.vision.v1.LocationInfo.Builder addLocationsBuilder(
      *
      * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsBuilderList() {
+    public java.util.List
+        getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder> 
+            com.google.cloud.vision.v1.LocationInfo,
+            com.google.cloud.vision.v1.LocationInfo.Builder,
+            com.google.cloud.vision.v1.LocationInfoOrBuilder>
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.LocationInfo, com.google.cloud.vision.v1.LocationInfo.Builder, com.google.cloud.vision.v1.LocationInfoOrBuilder>(
-                locations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        locationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.LocationInfo,
+                com.google.cloud.vision.v1.LocationInfo.Builder,
+                com.google.cloud.vision.v1.LocationInfoOrBuilder>(
+                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         properties_ = new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder> propertiesBuilder_;
+            com.google.cloud.vision.v1.Property,
+            com.google.cloud.vision.v1.Property.Builder,
+            com.google.cloud.vision.v1.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2124,6 +2331,8 @@ public java.util.List getPropertiesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2139,6 +2348,8 @@ public int getPropertiesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2154,6 +2365,8 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2161,8 +2374,7 @@ public com.google.cloud.vision.v1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder setProperties(
-        int index, com.google.cloud.vision.v1.Property value) {
+    public Builder setProperties(int index, com.google.cloud.vision.v1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2176,6 +2388,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2195,6 +2409,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2216,6 +2432,8 @@ public Builder addProperties(com.google.cloud.vision.v1.Property value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2223,8 +2441,7 @@ public Builder addProperties(com.google.cloud.vision.v1.Property value) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder addProperties(
-        int index, com.google.cloud.vision.v1.Property value) {
+    public Builder addProperties(int index, com.google.cloud.vision.v1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2238,6 +2455,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2245,8 +2464,7 @@ public Builder addProperties(
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public Builder addProperties(
-        com.google.cloud.vision.v1.Property.Builder builderForValue) {
+    public Builder addProperties(com.google.cloud.vision.v1.Property.Builder builderForValue) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
         properties_.add(builderForValue.build());
@@ -2257,6 +2475,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2276,6 +2496,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2287,8 +2509,7 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2296,6 +2517,8 @@ public Builder addAllProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2314,6 +2537,8 @@ public Builder clearProperties() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2332,6 +2557,8 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2339,11 +2566,12 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2351,14 +2579,16 @@ public com.google.cloud.vision.v1.Property.Builder getPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);  } else {
+        return properties_.get(index);
+      } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2366,8 +2596,8 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesOrBuilderList() {
+    public java.util.List
+        getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2375,6 +2605,8 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2383,10 +2615,12 @@ public com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
     public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2394,12 +2628,13 @@ public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder() {
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(
-        int index) {
-      return getPropertiesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(int index) {
+      return getPropertiesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2407,27 +2642,29 @@ public com.google.cloud.vision.v1.Property.Builder addPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesBuilderList() {
+    public java.util.List getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder> 
+            com.google.cloud.vision.v1.Property,
+            com.google.cloud.vision.v1.Property.Builder,
+            com.google.cloud.vision.v1.PropertyOrBuilder>
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Property, com.google.cloud.vision.v1.Property.Builder, com.google.cloud.vision.v1.PropertyOrBuilder>(
-                properties_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        propertiesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.Property,
+                com.google.cloud.vision.v1.Property.Builder,
+                com.google.cloud.vision.v1.PropertyOrBuilder>(
+                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2437,12 +2674,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.EntityAnnotation)
   private static final com.google.cloud.vision.v1.EntityAnnotation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.EntityAnnotation();
   }
@@ -2451,16 +2688,16 @@ public static com.google.cloud.vision.v1.EntityAnnotation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public EntityAnnotation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new EntityAnnotation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public EntityAnnotation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new EntityAnnotation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2475,6 +2712,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
index 037aeac07..979005b27 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
-public interface EntityAnnotationOrBuilder extends
+public interface EntityAnnotationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -15,10 +33,13 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -26,64 +47,79 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ java.lang.String getLocale(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -93,13 +129,17 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1/image_annotator.proto;l=505 + * + * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1/image_annotator.proto;l=505 * @return The confidence. */ - @java.lang.Deprecated float getConfidence(); + @java.lang.Deprecated + float getConfidence(); /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -109,31 +149,40 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float topicality = 6; + * * @return The topicality. */ float getTopicality(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -144,6 +193,8 @@ public interface EntityAnnotationOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -154,9 +205,10 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  java.util.List 
-      getLocationsList();
+  java.util.List getLocationsList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -169,6 +221,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   com.google.cloud.vision.v1.LocationInfo getLocations(int index);
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -181,6 +235,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   int getLocationsCount();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -191,9 +247,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  java.util.List 
+  java.util.List
       getLocationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -204,10 +262,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -215,9 +274,10 @@ com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  java.util.List 
-      getPropertiesList();
+  java.util.List getPropertiesList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -227,6 +287,8 @@ com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   com.google.cloud.vision.v1.Property getProperties(int index);
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -236,6 +298,8 @@ com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -243,9 +307,11 @@ com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  java.util.List 
+  java.util.List
       getPropertiesOrBuilderList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -253,6 +319,5 @@ com.google.cloud.vision.v1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1.Property properties = 9;
    */
-  com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.PropertyOrBuilder getPropertiesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
similarity index 77%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
index 2781f2b24..d4a112f43 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation} */ -public final class FaceAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.FaceAnnotation) FaceAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -32,16 +50,15 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,115 +78,132 @@ private FaceAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); + } + fdBoundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); + break; } - fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + landmarks_.add( + input.readMessage( + com.google.cloud.vision.v1.FaceAnnotation.Landmark.parser(), + extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + rollAngle_ = input.readFloat(); + break; } - landmarks_.add( - input.readMessage(com.google.cloud.vision.v1.FaceAnnotation.Landmark.parser(), extensionRegistry)); - break; - } - case 37: { - - rollAngle_ = input.readFloat(); - break; - } - case 45: { - - panAngle_ = input.readFloat(); - break; - } - case 53: { - - tiltAngle_ = input.readFloat(); - break; - } - case 61: { - - detectionConfidence_ = input.readFloat(); - break; - } - case 69: { - - landmarkingConfidence_ = input.readFloat(); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 45: + { + panAngle_ = input.readFloat(); + break; + } + case 53: + { + tiltAngle_ = input.readFloat(); + break; + } + case 61: + { + detectionConfidence_ = input.readFloat(); + break; + } + case 69: + { + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: + { + int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + joyLikelihood_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - sorrowLikelihood_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + sorrowLikelihood_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - angerLikelihood_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + angerLikelihood_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - surpriseLikelihood_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); + surpriseLikelihood_ = rawValue; + break; + } + case 104: + { + int rawValue = input.readEnum(); - underExposedLikelihood_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); + underExposedLikelihood_ = rawValue; + break; + } + case 112: + { + int rawValue = input.readEnum(); - blurredLikelihood_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); + blurredLikelihood_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + headwearLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -177,8 +211,7 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -187,61 +220,79 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.class, com.google.cloud.vision.v1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.class, + com.google.cloud.vision.v1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder extends + public interface LandmarkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return The position. */ com.google.cloud.vision.v1.Position getPosition(); /** + * + * *
      * Face landmark position.
      * 
@@ -251,37 +302,39 @@ public interface LandmarkOrBuilder extends com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder(); } /** + * + * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation.Landmark} */ - public static final class Landmark extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -300,32 +353,36 @@ private Landmark( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.vision.v1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); + type_ = rawValue; + break; } - position_ = input.readMessage(com.google.cloud.vision.v1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = + input.readMessage( + com.google.cloud.vision.v1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -333,27 +390,31 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); } /** + * + * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -363,9 +424,10 @@ private Landmark(
      *
      * Protobuf enum {@code google.cloud.vision.v1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -374,6 +436,8 @@ public enum Type */ UNKNOWN_LANDMARK(0), /** + * + * *
        * Left eye.
        * 
@@ -382,6 +446,8 @@ public enum Type */ LEFT_EYE(1), /** + * + * *
        * Right eye.
        * 
@@ -390,6 +456,8 @@ public enum Type */ RIGHT_EYE(2), /** + * + * *
        * Left of left eyebrow.
        * 
@@ -398,6 +466,8 @@ public enum Type */ LEFT_OF_LEFT_EYEBROW(3), /** + * + * *
        * Right of left eyebrow.
        * 
@@ -406,6 +476,8 @@ public enum Type */ RIGHT_OF_LEFT_EYEBROW(4), /** + * + * *
        * Left of right eyebrow.
        * 
@@ -414,6 +486,8 @@ public enum Type */ LEFT_OF_RIGHT_EYEBROW(5), /** + * + * *
        * Right of right eyebrow.
        * 
@@ -422,6 +496,8 @@ public enum Type */ RIGHT_OF_RIGHT_EYEBROW(6), /** + * + * *
        * Midpoint between eyes.
        * 
@@ -430,6 +506,8 @@ public enum Type */ MIDPOINT_BETWEEN_EYES(7), /** + * + * *
        * Nose tip.
        * 
@@ -438,6 +516,8 @@ public enum Type */ NOSE_TIP(8), /** + * + * *
        * Upper lip.
        * 
@@ -446,6 +526,8 @@ public enum Type */ UPPER_LIP(9), /** + * + * *
        * Lower lip.
        * 
@@ -454,6 +536,8 @@ public enum Type */ LOWER_LIP(10), /** + * + * *
        * Mouth left.
        * 
@@ -462,6 +546,8 @@ public enum Type */ MOUTH_LEFT(11), /** + * + * *
        * Mouth right.
        * 
@@ -470,6 +556,8 @@ public enum Type */ MOUTH_RIGHT(12), /** + * + * *
        * Mouth center.
        * 
@@ -478,6 +566,8 @@ public enum Type */ MOUTH_CENTER(13), /** + * + * *
        * Nose, bottom right.
        * 
@@ -486,6 +576,8 @@ public enum Type */ NOSE_BOTTOM_RIGHT(14), /** + * + * *
        * Nose, bottom left.
        * 
@@ -494,6 +586,8 @@ public enum Type */ NOSE_BOTTOM_LEFT(15), /** + * + * *
        * Nose, bottom center.
        * 
@@ -502,6 +596,8 @@ public enum Type */ NOSE_BOTTOM_CENTER(16), /** + * + * *
        * Left eye, top boundary.
        * 
@@ -510,6 +606,8 @@ public enum Type */ LEFT_EYE_TOP_BOUNDARY(17), /** + * + * *
        * Left eye, right corner.
        * 
@@ -518,6 +616,8 @@ public enum Type */ LEFT_EYE_RIGHT_CORNER(18), /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -526,6 +626,8 @@ public enum Type */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** + * + * *
        * Left eye, left corner.
        * 
@@ -534,6 +636,8 @@ public enum Type */ LEFT_EYE_LEFT_CORNER(20), /** + * + * *
        * Right eye, top boundary.
        * 
@@ -542,6 +646,8 @@ public enum Type */ RIGHT_EYE_TOP_BOUNDARY(21), /** + * + * *
        * Right eye, right corner.
        * 
@@ -550,6 +656,8 @@ public enum Type */ RIGHT_EYE_RIGHT_CORNER(22), /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -558,6 +666,8 @@ public enum Type */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** + * + * *
        * Right eye, left corner.
        * 
@@ -566,6 +676,8 @@ public enum Type */ RIGHT_EYE_LEFT_CORNER(24), /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -574,6 +686,8 @@ public enum Type */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -582,6 +696,8 @@ public enum Type */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** + * + * *
        * Left ear tragion.
        * 
@@ -590,6 +706,8 @@ public enum Type */ LEFT_EAR_TRAGION(27), /** + * + * *
        * Right ear tragion.
        * 
@@ -598,6 +716,8 @@ public enum Type */ RIGHT_EAR_TRAGION(28), /** + * + * *
        * Left eye pupil.
        * 
@@ -606,6 +726,8 @@ public enum Type */ LEFT_EYE_PUPIL(29), /** + * + * *
        * Right eye pupil.
        * 
@@ -614,6 +736,8 @@ public enum Type */ RIGHT_EYE_PUPIL(30), /** + * + * *
        * Forehead glabella.
        * 
@@ -622,6 +746,8 @@ public enum Type */ FOREHEAD_GLABELLA(31), /** + * + * *
        * Chin gnathion.
        * 
@@ -630,6 +756,8 @@ public enum Type */ CHIN_GNATHION(32), /** + * + * *
        * Chin left gonion.
        * 
@@ -638,6 +766,8 @@ public enum Type */ CHIN_LEFT_GONION(33), /** + * + * *
        * Chin right gonion.
        * 
@@ -646,6 +776,8 @@ public enum Type */ CHIN_RIGHT_GONION(34), /** + * + * *
        * Left cheek center.
        * 
@@ -654,6 +786,8 @@ public enum Type */ LEFT_CHEEK_CENTER(35), /** + * + * *
        * Right cheek center.
        * 
@@ -665,6 +799,8 @@ public enum Type ; /** + * + * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -673,6 +809,8 @@ public enum Type */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** + * + * *
        * Left eye.
        * 
@@ -681,6 +819,8 @@ public enum Type */ public static final int LEFT_EYE_VALUE = 1; /** + * + * *
        * Right eye.
        * 
@@ -689,6 +829,8 @@ public enum Type */ public static final int RIGHT_EYE_VALUE = 2; /** + * + * *
        * Left of left eyebrow.
        * 
@@ -697,6 +839,8 @@ public enum Type */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** + * + * *
        * Right of left eyebrow.
        * 
@@ -705,6 +849,8 @@ public enum Type */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** + * + * *
        * Left of right eyebrow.
        * 
@@ -713,6 +859,8 @@ public enum Type */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** + * + * *
        * Right of right eyebrow.
        * 
@@ -721,6 +869,8 @@ public enum Type */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** + * + * *
        * Midpoint between eyes.
        * 
@@ -729,6 +879,8 @@ public enum Type */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** + * + * *
        * Nose tip.
        * 
@@ -737,6 +889,8 @@ public enum Type */ public static final int NOSE_TIP_VALUE = 8; /** + * + * *
        * Upper lip.
        * 
@@ -745,6 +899,8 @@ public enum Type */ public static final int UPPER_LIP_VALUE = 9; /** + * + * *
        * Lower lip.
        * 
@@ -753,6 +909,8 @@ public enum Type */ public static final int LOWER_LIP_VALUE = 10; /** + * + * *
        * Mouth left.
        * 
@@ -761,6 +919,8 @@ public enum Type */ public static final int MOUTH_LEFT_VALUE = 11; /** + * + * *
        * Mouth right.
        * 
@@ -769,6 +929,8 @@ public enum Type */ public static final int MOUTH_RIGHT_VALUE = 12; /** + * + * *
        * Mouth center.
        * 
@@ -777,6 +939,8 @@ public enum Type */ public static final int MOUTH_CENTER_VALUE = 13; /** + * + * *
        * Nose, bottom right.
        * 
@@ -785,6 +949,8 @@ public enum Type */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** + * + * *
        * Nose, bottom left.
        * 
@@ -793,6 +959,8 @@ public enum Type */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** + * + * *
        * Nose, bottom center.
        * 
@@ -801,6 +969,8 @@ public enum Type */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** + * + * *
        * Left eye, top boundary.
        * 
@@ -809,6 +979,8 @@ public enum Type */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** + * + * *
        * Left eye, right corner.
        * 
@@ -817,6 +989,8 @@ public enum Type */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -825,6 +999,8 @@ public enum Type */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** + * + * *
        * Left eye, left corner.
        * 
@@ -833,6 +1009,8 @@ public enum Type */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** + * + * *
        * Right eye, top boundary.
        * 
@@ -841,6 +1019,8 @@ public enum Type */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** + * + * *
        * Right eye, right corner.
        * 
@@ -849,6 +1029,8 @@ public enum Type */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -857,6 +1039,8 @@ public enum Type */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** + * + * *
        * Right eye, left corner.
        * 
@@ -865,6 +1049,8 @@ public enum Type */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -873,6 +1059,8 @@ public enum Type */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -881,6 +1069,8 @@ public enum Type */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** + * + * *
        * Left ear tragion.
        * 
@@ -889,6 +1079,8 @@ public enum Type */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** + * + * *
        * Right ear tragion.
        * 
@@ -897,6 +1089,8 @@ public enum Type */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** + * + * *
        * Left eye pupil.
        * 
@@ -905,6 +1099,8 @@ public enum Type */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** + * + * *
        * Right eye pupil.
        * 
@@ -913,6 +1109,8 @@ public enum Type */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** + * + * *
        * Forehead glabella.
        * 
@@ -921,6 +1119,8 @@ public enum Type */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** + * + * *
        * Chin gnathion.
        * 
@@ -929,6 +1129,8 @@ public enum Type */ public static final int CHIN_GNATHION_VALUE = 32; /** + * + * *
        * Chin left gonion.
        * 
@@ -937,6 +1139,8 @@ public enum Type */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** + * + * *
        * Chin right gonion.
        * 
@@ -945,6 +1149,8 @@ public enum Type */ public static final int CHIN_RIGHT_GONION_VALUE = 34; /** + * + * *
        * Left cheek center.
        * 
@@ -953,6 +1159,8 @@ public enum Type */ public static final int LEFT_CHEEK_CENTER_VALUE = 35; /** + * + * *
        * Right cheek center.
        * 
@@ -961,7 +1169,6 @@ public enum Type */ public static final int RIGHT_CHEEK_CENTER_VALUE = 36; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -986,83 +1193,119 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return UNKNOWN_LANDMARK; - case 1: return LEFT_EYE; - case 2: return RIGHT_EYE; - case 3: return LEFT_OF_LEFT_EYEBROW; - case 4: return RIGHT_OF_LEFT_EYEBROW; - case 5: return LEFT_OF_RIGHT_EYEBROW; - case 6: return RIGHT_OF_RIGHT_EYEBROW; - case 7: return MIDPOINT_BETWEEN_EYES; - case 8: return NOSE_TIP; - case 9: return UPPER_LIP; - case 10: return LOWER_LIP; - case 11: return MOUTH_LEFT; - case 12: return MOUTH_RIGHT; - case 13: return MOUTH_CENTER; - case 14: return NOSE_BOTTOM_RIGHT; - case 15: return NOSE_BOTTOM_LEFT; - case 16: return NOSE_BOTTOM_CENTER; - case 17: return LEFT_EYE_TOP_BOUNDARY; - case 18: return LEFT_EYE_RIGHT_CORNER; - case 19: return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: return LEFT_EYE_LEFT_CORNER; - case 21: return RIGHT_EYE_TOP_BOUNDARY; - case 22: return RIGHT_EYE_RIGHT_CORNER; - case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: return RIGHT_EYE_LEFT_CORNER; - case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: return LEFT_EAR_TRAGION; - case 28: return RIGHT_EAR_TRAGION; - case 29: return LEFT_EYE_PUPIL; - case 30: return RIGHT_EYE_PUPIL; - case 31: return FOREHEAD_GLABELLA; - case 32: return CHIN_GNATHION; - case 33: return CHIN_LEFT_GONION; - case 34: return CHIN_RIGHT_GONION; - case 35: return LEFT_CHEEK_CENTER; - case 36: return RIGHT_CHEEK_CENTER; - default: return null; + case 0: + return UNKNOWN_LANDMARK; + case 1: + return LEFT_EYE; + case 2: + return RIGHT_EYE; + case 3: + return LEFT_OF_LEFT_EYEBROW; + case 4: + return RIGHT_OF_LEFT_EYEBROW; + case 5: + return LEFT_OF_RIGHT_EYEBROW; + case 6: + return RIGHT_OF_RIGHT_EYEBROW; + case 7: + return MIDPOINT_BETWEEN_EYES; + case 8: + return NOSE_TIP; + case 9: + return UPPER_LIP; + case 10: + return LOWER_LIP; + case 11: + return MOUTH_LEFT; + case 12: + return MOUTH_RIGHT; + case 13: + return MOUTH_CENTER; + case 14: + return NOSE_BOTTOM_RIGHT; + case 15: + return NOSE_BOTTOM_LEFT; + case 16: + return NOSE_BOTTOM_CENTER; + case 17: + return LEFT_EYE_TOP_BOUNDARY; + case 18: + return LEFT_EYE_RIGHT_CORNER; + case 19: + return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: + return LEFT_EYE_LEFT_CORNER; + case 21: + return RIGHT_EYE_TOP_BOUNDARY; + case 22: + return RIGHT_EYE_RIGHT_CORNER; + case 23: + return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: + return RIGHT_EYE_LEFT_CORNER; + case 25: + return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: + return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: + return LEFT_EAR_TRAGION; + case 28: + return RIGHT_EAR_TRAGION; + case 29: + return LEFT_EYE_PUPIL; + case 30: + return RIGHT_EYE_PUPIL; + case 31: + return FOREHEAD_GLABELLA; + case 32: + return CHIN_GNATHION; + case 33: + return CHIN_LEFT_GONION; + case 34: + return CHIN_RIGHT_GONION; + case 35: + return LEFT_CHEEK_CENTER; + case 36: + return RIGHT_CHEEK_CENTER; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1082,38 +1325,52 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.Position position_; /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return Whether the position field is set. */ @java.lang.Override @@ -1121,18 +1378,25 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1.Position getPosition() { - return position_ == null ? com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1.Position.getDefaultInstance() + : position_; } /** + * + * *
      * Face landmark position.
      * 
@@ -1145,6 +1409,7 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1156,9 +1421,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1173,13 +1438,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1189,18 +1453,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1.FaceAnnotation.Landmark other = + (com.google.cloud.vision.v1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1225,87 +1489,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1315,27 +1585,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation.Landmark} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.FaceAnnotation.Landmark) com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1.FaceAnnotation.Landmark.newBuilder() @@ -1343,16 +1618,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1368,9 +1642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1389,7 +1663,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1.FaceAnnotation.Landmark result = + new com.google.cloud.vision.v1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1404,38 +1679,41 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation.Landmark)other); + return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation.Landmark) other); } else { super.mergeFrom(other); return this; @@ -1443,7 +1721,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1469,7 +1748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1481,51 +1761,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1533,21 +1829,24 @@ public Builder setType(com.google.cloud.vision.v1.FaceAnnotation.Landmark.Type v if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1.FaceAnnotation.Landmark.Type type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1555,34 +1854,47 @@ public Builder clearType() { private com.google.cloud.vision.v1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder> positionBuilder_; + com.google.cloud.vision.v1.Position, + com.google.cloud.vision.v1.Position.Builder, + com.google.cloud.vision.v1.PositionOrBuilder> + positionBuilder_; /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; + * * @return The position. */ public com.google.cloud.vision.v1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1.Position.getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * Face landmark position.
        * 
@@ -1603,14 +1915,15 @@ public Builder setPosition(com.google.cloud.vision.v1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1.Position position = 4; */ - public Builder setPosition( - com.google.cloud.vision.v1.Position.Builder builderForValue) { + public Builder setPosition(com.google.cloud.vision.v1.Position.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); onChanged(); @@ -1621,6 +1934,8 @@ public Builder setPosition( return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1631,7 +1946,9 @@ public Builder mergePosition(com.google.cloud.vision.v1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Position.newBuilder(position_) + .mergeFrom(value) + .buildPartial(); } else { position_ = value; } @@ -1643,6 +1960,8 @@ public Builder mergePosition(com.google.cloud.vision.v1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1661,6 +1980,8 @@ public Builder clearPosition() { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1668,11 +1989,13 @@ public Builder clearPosition() { * .google.cloud.vision.v1.Position position = 4; */ public com.google.cloud.vision.v1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Face landmark position.
        * 
@@ -1683,11 +2006,14 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.vision.v1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1.Position.getDefaultInstance() + : position_; } } /** + * + * *
        * Face landmark position.
        * 
@@ -1695,18 +2021,22 @@ public com.google.cloud.vision.v1.PositionOrBuilder getPositionOrBuilder() { * .google.cloud.vision.v1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder> + com.google.cloud.vision.v1.Position, + com.google.cloud.vision.v1.Position.Builder, + com.google.cloud.vision.v1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Position, com.google.cloud.vision.v1.Position.Builder, com.google.cloud.vision.v1.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Position, + com.google.cloud.vision.v1.Position.Builder, + com.google.cloud.vision.v1.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1719,12 +2049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1.FaceAnnotation.Landmark DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.FaceAnnotation.Landmark(); } @@ -1733,16 +2063,16 @@ public static com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1757,12 +2087,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1774,6 +2105,7 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getDefaultInstanceForT
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -1781,6 +2113,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1792,13 +2126,18 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1819,6 +2158,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1.BoundingPoly fdBoundingPoly_;
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1829,6 +2170,7 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -1836,6 +2178,8 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1846,13 +2190,18 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1872,6 +2221,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
@@ -1883,6 +2234,8 @@ public java.util.List getLan return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1890,11 +2243,13 @@ public java.util.List getLan * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarksOrBuilderList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1906,6 +2261,8 @@ public int getLandmarksCount() { return landmarks_.size(); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1917,6 +2274,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index return landmarks_.get(index); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1932,6 +2291,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -1939,6 +2300,7 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -1949,6 +2311,8 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -1956,6 +2320,7 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -1966,12 +2331,15 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -1982,11 +2350,14 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -1997,11 +2368,14 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -2012,193 +2386,257 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2210,8 +2648,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2267,64 +2704,49 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); } if (underExposedLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, underExposedLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2334,40 +2756,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.FaceAnnotation other = (com.google.cloud.vision.v1.FaceAnnotation) obj; + com.google.cloud.vision.v1.FaceAnnotation other = + (com.google.cloud.vision.v1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly() - .equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList() - .equals(other.getLandmarksList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits( - other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits( - other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits( - other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits( - other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits( - other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2399,20 +2814,15 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2432,118 +2842,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1.FaceAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.FaceAnnotation) com.google.cloud.vision.v1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.FaceAnnotation.class, com.google.cloud.vision.v1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1.FaceAnnotation.class, + com.google.cloud.vision.v1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.FaceAnnotation.newBuilder() @@ -2551,17 +2970,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2611,9 +3030,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override @@ -2632,7 +3051,8 @@ public com.google.cloud.vision.v1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1.FaceAnnotation result = new com.google.cloud.vision.v1.FaceAnnotation(this); + com.google.cloud.vision.v1.FaceAnnotation result = + new com.google.cloud.vision.v1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -2673,38 +3093,39 @@ public com.google.cloud.vision.v1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1.FaceAnnotation) other); } else { super.mergeFrom(other); return this; @@ -2737,9 +3158,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.FaceAnnotation other) { landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarksFieldBuilder() : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -2809,12 +3231,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2826,12 +3254,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2843,16 +3274,21 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2879,6 +3315,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2903,6 +3341,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2919,7 +3359,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -2931,6 +3373,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2955,6 +3399,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2968,11 +3414,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2989,11 +3437,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3007,14 +3458,17 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3022,8 +3476,13 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
     private com.google.cloud.vision.v1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+        fdBoundingPolyBuilder_;
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3034,12 +3493,15 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3050,16 +3512,21 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3085,6 +3552,8 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3108,6 +3577,8 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3123,7 +3594,9 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(fdBoundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3135,6 +3608,8 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3158,6 +3633,8 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3170,11 +3647,13 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-      
+
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3190,11 +3669,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
+        return fdBoundingPoly_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : fdBoundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3207,32 +3689,42 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuild
      * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        fdBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(), getParentForChildren(), isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ = new java.util.ArrayList(landmarks_);
+        landmarks_ =
+            new java.util.ArrayList(landmarks_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
+            com.google.cloud.vision.v1.FaceAnnotation.Landmark,
+            com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder,
+            com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>
+        landmarksBuilder_;
 
     /**
+     *
+     *
      * 
      * Detected face landmarks.
      * 
@@ -3247,6 +3739,8 @@ public java.util.List getLan } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3261,6 +3755,8 @@ public int getLandmarksCount() { } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3275,6 +3771,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3296,6 +3794,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3314,6 +3814,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3334,6 +3836,8 @@ public Builder addLandmarks(com.google.cloud.vision.v1.FaceAnnotation.Landmark v return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3355,6 +3859,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3373,6 +3879,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3391,6 +3899,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3401,8 +3911,7 @@ public Builder addAllLandmarks( java.lang.Iterable values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3410,6 +3919,8 @@ public Builder addAllLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3427,6 +3938,8 @@ public Builder clearLandmarks() { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3444,6 +3957,8 @@ public Builder removeLandmarks(int index) { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3455,6 +3970,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder getLandmarksBu return getLandmarksFieldBuilder().getBuilder(index); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3464,19 +3981,22 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder getLandmarksBu public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); } else { + return landmarks_.get(index); + } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3484,6 +4004,8 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3491,10 +4013,12 @@ public com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksO * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder().addBuilder( - com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3503,37 +4027,45 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBu */ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.FaceAnnotation.Landmark, com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_ ; + private float rollAngle_; /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3541,6 +4073,7 @@ public com.google.cloud.vision.v1.FaceAnnotation.Landmark.Builder addLandmarksBu
      * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -3548,6 +4081,8 @@ public float getRollAngle() { return rollAngle_; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3555,16 +4090,19 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; + * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3572,17 +4110,20 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; + * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_ ; + private float panAngle_; /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3590,6 +4131,7 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -3597,6 +4139,8 @@ public float getPanAngle() { return panAngle_; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3604,16 +4148,19 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; + * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3621,23 +4168,27 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; + * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_ ; + private float tiltAngle_; /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -3645,44 +4196,53 @@ public float getTiltAngle() { return tiltAngle_; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_ ; + private float detectionConfidence_; /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -3690,42 +4250,51 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_ ; + private float landmarkingConfidence_; /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -3733,30 +4302,36 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -3764,51 +4339,65 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -3816,21 +4405,24 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -3838,51 +4430,65 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -3890,21 +4496,24 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1.Likelihood value) if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -3912,51 +4521,65 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -3964,21 +4587,24 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -3986,51 +4612,65 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4038,21 +4678,24 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1.Likelihood value if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4060,51 +4703,65 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4112,21 +4769,24 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1.Likelihood v if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4134,51 +4794,65 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4186,21 +4860,24 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1.Likelihood value) if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4208,51 +4885,65 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4260,28 +4951,31 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1.Likelihood value if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4291,12 +4985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.FaceAnnotation) private static final com.google.cloud.vision.v1.FaceAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.FaceAnnotation(); } @@ -4305,16 +4999,16 @@ public static com.google.cloud.vision.v1.FaceAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4329,6 +5023,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java similarity index 89% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java index dc8aa6f0a..3ee6a1b1b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface FaceAnnotationOrBuilder extends +public interface FaceAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -19,10 +37,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -34,10 +55,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -53,6 +77,8 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -63,10 +89,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -77,10 +106,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -95,15 +127,18 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List - getLandmarksList(); + java.util.List getLandmarksList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -112,6 +147,8 @@ public interface FaceAnnotationOrBuilder extends */ com.google.cloud.vision.v1.FaceAnnotation.Landmark getLandmarks(int index); /** + * + * *
    * Detected face landmarks.
    * 
@@ -120,25 +157,30 @@ public interface FaceAnnotationOrBuilder extends */ int getLandmarksCount(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; */ - com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( - int index); + com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index); /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -146,11 +188,14 @@ com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilde
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ float getRollAngle(); /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -158,170 +203,222 @@ com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilde
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ float getPanAngle(); /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ float getTiltAngle(); /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ float getDetectionConfidence(); /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ com.google.cloud.vision.v1.Likelihood getJoyLikelihood(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1.Likelihood getSorrowLikelihood(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ com.google.cloud.vision.v1.Likelihood getAngerLikelihood(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1.Likelihood getSurpriseLikelihood(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1.Likelihood getUnderExposedLikelihood(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ com.google.cloud.vision.v1.Likelihood getBlurredLikelihood(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ com.google.cloud.vision.v1.Likelihood getHeadwearLikelihood(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java index 554fe33ec..18d6f3fc7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Feature}
  */
-public final class Feature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Feature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Feature)
     FeatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -28,16 +46,15 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,30 +73,32 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            maxResults_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              maxResults_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            model_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              model_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,36 +106,41 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Feature.class, com.google.cloud.vision.v1.Feature.Builder.class);
+            com.google.cloud.vision.v1.Feature.class,
+            com.google.cloud.vision.v1.Feature.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.Feature.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified feature type.
      * 
@@ -125,6 +149,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Run face detection.
      * 
@@ -133,6 +159,8 @@ public enum Type */ FACE_DETECTION(1), /** + * + * *
      * Run landmark detection.
      * 
@@ -141,6 +169,8 @@ public enum Type */ LANDMARK_DETECTION(2), /** + * + * *
      * Run logo detection.
      * 
@@ -149,6 +179,8 @@ public enum Type */ LOGO_DETECTION(3), /** + * + * *
      * Run label detection.
      * 
@@ -157,6 +189,8 @@ public enum Type */ LABEL_DETECTION(4), /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -167,6 +201,8 @@ public enum Type
      */
     TEXT_DETECTION(5),
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -176,6 +212,8 @@ public enum Type
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -185,6 +223,8 @@ public enum Type
      */
     SAFE_SEARCH_DETECTION(6),
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -194,6 +234,8 @@ public enum Type
      */
     IMAGE_PROPERTIES(7),
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -202,6 +244,8 @@ public enum Type */ CROP_HINTS(9), /** + * + * *
      * Run web detection.
      * 
@@ -210,6 +254,8 @@ public enum Type */ WEB_DETECTION(10), /** + * + * *
      * Run Product Search.
      * 
@@ -218,6 +264,8 @@ public enum Type */ PRODUCT_SEARCH(12), /** + * + * *
      * Run localizer for object detection.
      * 
@@ -229,6 +277,8 @@ public enum Type ; /** + * + * *
      * Unspecified feature type.
      * 
@@ -237,6 +287,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Run face detection.
      * 
@@ -245,6 +297,8 @@ public enum Type */ public static final int FACE_DETECTION_VALUE = 1; /** + * + * *
      * Run landmark detection.
      * 
@@ -253,6 +307,8 @@ public enum Type */ public static final int LANDMARK_DETECTION_VALUE = 2; /** + * + * *
      * Run logo detection.
      * 
@@ -261,6 +317,8 @@ public enum Type */ public static final int LOGO_DETECTION_VALUE = 3; /** + * + * *
      * Run label detection.
      * 
@@ -269,6 +327,8 @@ public enum Type */ public static final int LABEL_DETECTION_VALUE = 4; /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -279,6 +339,8 @@ public enum Type
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -288,6 +350,8 @@ public enum Type
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -297,6 +361,8 @@ public enum Type
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -306,6 +372,8 @@ public enum Type
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -314,6 +382,8 @@ public enum Type */ public static final int CROP_HINTS_VALUE = 9; /** + * + * *
      * Run web detection.
      * 
@@ -322,6 +392,8 @@ public enum Type */ public static final int WEB_DETECTION_VALUE = 10; /** + * + * *
      * Run Product Search.
      * 
@@ -330,6 +402,8 @@ public enum Type */ public static final int PRODUCT_SEARCH_VALUE = 12; /** + * + * *
      * Run localizer for object detection.
      * 
@@ -338,7 +412,6 @@ public enum Type */ public static final int OBJECT_LOCALIZATION_VALUE = 19; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -363,59 +436,69 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return FACE_DETECTION; - case 2: return LANDMARK_DETECTION; - case 3: return LOGO_DETECTION; - case 4: return LABEL_DETECTION; - case 5: return TEXT_DETECTION; - case 11: return DOCUMENT_TEXT_DETECTION; - case 6: return SAFE_SEARCH_DETECTION; - case 7: return IMAGE_PROPERTIES; - case 9: return CROP_HINTS; - case 10: return WEB_DETECTION; - case 12: return PRODUCT_SEARCH; - case 19: return OBJECT_LOCALIZATION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return FACE_DETECTION; + case 2: + return LANDMARK_DETECTION; + case 3: + return LOGO_DETECTION; + case 4: + return LABEL_DETECTION; + case 5: + return TEXT_DETECTION; + case 11: + return DOCUMENT_TEXT_DETECTION; + case 6: + return SAFE_SEARCH_DETECTION; + case 7: + return IMAGE_PROPERTIES; + case 9: + return CROP_HINTS; + case 10: + return WEB_DETECTION; + case 12: + return PRODUCT_SEARCH; + case 19: + return OBJECT_LOCALIZATION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -435,39 +518,51 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1.Feature.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Feature.Type result = com.google.cloud.vision.v1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1.Feature.Type result = + com.google.cloud.vision.v1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -478,6 +573,8 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -485,6 +582,7 @@ public int getMaxResults() {
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -493,14 +591,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -508,16 +607,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -526,6 +624,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -537,8 +636,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.vision.v1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -558,12 +656,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -576,7 +672,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Feature)) { return super.equals(obj); @@ -584,10 +680,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.vision.v1.Feature other = (com.google.cloud.vision.v1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getModel() - .equals(other.getModel())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getModel().equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -610,97 +704,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Feature parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Feature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -709,21 +809,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.Feature}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Feature)
       com.google.cloud.vision.v1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Feature.class, com.google.cloud.vision.v1.Feature.Builder.class);
+              com.google.cloud.vision.v1.Feature.class,
+              com.google.cloud.vision.v1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Feature.newBuilder()
@@ -731,16 +833,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -754,9 +855,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -787,38 +888,39 @@ public com.google.cloud.vision.v1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1.Feature)other);
+        return mergeFrom((com.google.cloud.vision.v1.Feature) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -868,51 +970,65 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Feature.Type result = com.google.cloud.vision.v1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1.Feature.Type result = + com.google.cloud.vision.v1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1.Feature.Type.UNRECOGNIZED : result; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -920,34 +1036,40 @@ public Builder setType(com.google.cloud.vision.v1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -955,32 +1077,38 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -988,6 +1116,8 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -995,13 +1125,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1010,6 +1140,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1017,15 +1149,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1033,6 +1164,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1040,20 +1173,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1061,15 +1196,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1077,23 +1215,23 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1241,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Feature) private static final com.google.cloud.vision.v1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Feature(); } @@ -1117,16 +1255,16 @@ public static com.google.cloud.vision.v1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1279,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java index 87cca82da..3bea82449 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java @@ -1,43 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1.Feature.Type type = 1; + * * @return The type. */ com.google.cloud.vision.v1.Feature.Type getType(); /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -45,10 +72,13 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -56,8 +86,8 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java index 7cf322ab8..4672af537 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsDestination.class, com.google.cloud.vision.v1.GcsDestination.Builder.class); + com.google.cloud.vision.v1.GcsDestination.class, + com.google.cloud.vision.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -118,6 +140,7 @@ private GcsDestination(
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -126,14 +149,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -156,16 +180,15 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -174,6 +197,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -210,15 +233,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1.GcsDestination other = (com.google.cloud.vision.v1.GcsDestination) obj; + com.google.cloud.vision.v1.GcsDestination other = + (com.google.cloud.vision.v1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,118 +260,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GcsDestination) com.google.cloud.vision.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsDestination.class, com.google.cloud.vision.v1.GcsDestination.Builder.class); + com.google.cloud.vision.v1.GcsDestination.class, + com.google.cloud.vision.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1.GcsDestination.newBuilder() @@ -356,16 +388,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsDestination_descriptor; } @java.lang.Override @@ -396,7 +427,8 @@ public com.google.cloud.vision.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1.GcsDestination buildPartial() { - com.google.cloud.vision.v1.GcsDestination result = new com.google.cloud.vision.v1.GcsDestination(this); + com.google.cloud.vision.v1.GcsDestination result = + new com.google.cloud.vision.v1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,38 +438,39 @@ public com.google.cloud.vision.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1.GcsDestination)other); + return mergeFrom((com.google.cloud.vision.v1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -481,6 +514,8 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -503,13 +538,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -518,6 +553,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -540,15 +577,14 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -556,6 +592,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -578,20 +616,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -614,15 +654,18 @@ public Builder setUri(
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -645,23 +688,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -671,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsDestination) private static final com.google.cloud.vision.v1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GcsDestination(); } @@ -685,16 +728,16 @@ public static com.google.cloud.vision.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -709,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java index 014e9c47d..c805b5f91 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -30,10 +48,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -56,8 +77,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java index 25d804034..7eae2d79a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsSource.class, com.google.cloud.vision.v1.GcsSource.Builder.class); + com.google.cloud.vision.v1.GcsSource.class, + com.google.cloud.vision.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,15 +201,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GcsSource)) { return super.equals(obj); } com.google.cloud.vision.v1.GcsSource other = (com.google.cloud.vision.v1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +227,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GcsSource parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.GcsSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GcsSource) com.google.cloud.vision.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GcsSource.class, com.google.cloud.vision.v1.GcsSource.Builder.class); + com.google.cloud.vision.v1.GcsSource.class, + com.google.cloud.vision.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1.GcsSource.newBuilder() @@ -324,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_GcsSource_descriptor; } @java.lang.Override @@ -374,38 +403,39 @@ public com.google.cloud.vision.v1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1.GcsSource)other); + return mergeFrom((com.google.cloud.vision.v1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -449,19 +479,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +502,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +525,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsSource) private static final com.google.cloud.vision.v1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GcsSource(); } @@ -573,16 +613,16 @@ public static com.google.cloud.vision.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java index 9fa8a6cfb..db49a9923 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GcsSourceOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java new file mode 100644 index 000000000..0c3c935a8 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GeometryProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public final class GeometryProto { + private GeometryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/vision/v1/geometry.proto\022" + + "\026google.cloud.vision.v1\"\036\n\006Vertex\022\t\n\001x\030\001" + + " \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\207\001\n\014BoundingPoly\0220\n\010ve" + + "rtices\030\001 \003(\0132\036.google.cloud.vision.v1.Ve" + + "rtex\022E\n\023normalized_vertices\030\002 \003(\0132(.goog" + + "le.cloud.vision.v1.NormalizedVertex\"+\n\010P" + + "osition\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002" + + "Bu\n\032com.google.cloud.vision.v1B\rGeometry" + + "ProtoP\001Z * Request message for the `GetProduct` method. *
* * Protobuf type {@code google.cloud.vision.v1.GetProductRequest} */ -public final class GetProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetProductRequest) GetProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductRequest.class, com.google.cloud.vision.v1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1.GetProductRequest.class, + com.google.cloud.vision.v1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetProductRequest other = (com.google.cloud.vision.v1.GetProductRequest) obj; + com.google.cloud.vision.v1.GetProductRequest other = + (com.google.cloud.vision.v1.GetProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GetProductRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetProductRequest) com.google.cloud.vision.v1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductRequest.class, com.google.cloud.vision.v1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1.GetProductRequest.class, + com.google.cloud.vision.v1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetProductRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1.GetProductRequest result = new com.google.cloud.vision.v1.GetProductRequest(this); + com.google.cloud.vision.v1.GetProductRequest result = + new com.google.cloud.vision.v1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1.GetProductRequest) other); } else { super.mergeFrom(other); return this; @@ -451,20 +488,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +514,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +540,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetProductRequest) private static final com.google.cloud.vision.v1.GetProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetProductRequest(); } @@ -580,16 +637,16 @@ public static com.google.cloud.vision.v1.GetProductRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..8402bcce5 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java index 3445cda98..6d0a96fda 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductSetRequest} */ -public final class GetProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetProductSetRequest) GetProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductSetRequest.class, com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1.GetProductSetRequest.class, + com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetProductSetRequest other = (com.google.cloud.vision.v1.GetProductSetRequest) obj; + com.google.cloud.vision.v1.GetProductSetRequest other = + (com.google.cloud.vision.v1.GetProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetProductSetRequest) com.google.cloud.vision.v1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetProductSetRequest.class, com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1.GetProductSetRequest.class, + com.google.cloud.vision.v1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetProductSetRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1.GetProductSetRequest result = new com.google.cloud.vision.v1.GetProductSetRequest(this); + com.google.cloud.vision.v1.GetProductSetRequest result = + new com.google.cloud.vision.v1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.GetProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.GetProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -451,20 +489,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +515,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +541,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +624,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetProductSetRequest) private static final com.google.cloud.vision.v1.GetProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetProductSetRequest(); } @@ -580,16 +638,16 @@ public static com.google.cloud.vision.v1.GetProductSetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..2516ac5ba --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java index ef3a3907e..9cf81d6e2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetReferenceImageRequest.class, com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.GetReferenceImageRequest other = (com.google.cloud.vision.v1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1.GetReferenceImageRequest other = + (com.google.cloud.vision.v1.GetReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.GetReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.GetReferenceImageRequest) com.google.cloud.vision.v1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.GetReferenceImageRequest.class, com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.GetReferenceImageRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1.GetReferenceImageRequest result = new com.google.cloud.vision.v1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1.GetReferenceImageRequest result = + new com.google.cloud.vision.v1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1.GetReferenceImageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1.GetReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1.GetReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.GetReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1.GetReferenceImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.GetReferenceImageRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.vision.v1.GetReferenceImageRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..30652ba01 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface GetReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java index 15e4d6653..5649cbbb3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,34 @@ private Image( case 0: done = true; break; - case 10: { - - content_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.vision.v1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + case 10: + { + content_ = input.readBytes(); + break; } - source_ = input.readMessage(com.google.cloud.vision.v1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,22 +105,23 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Image.class, com.google.cloud.vision.v1.Image.Builder.class); } @@ -108,6 +129,8 @@ private Image( public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -117,6 +140,7 @@ private Image(
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -127,6 +151,8 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ImageSource source_; /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -134,6 +160,7 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return Whether the source field is set. */ @java.lang.Override @@ -141,6 +168,8 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -148,6 +177,7 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return The source. */ @java.lang.Override @@ -155,6 +185,8 @@ public com.google.cloud.vision.v1.ImageSource getSource() { return source_ == null ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -169,6 +201,7 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -180,8 +213,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -198,12 +230,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -213,19 +243,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.Image other = (com.google.cloud.vision.v1.Image) obj;
 
-    if (!getContent()
-        .equals(other.getContent())) return false;
+    if (!getContent().equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -249,118 +277,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.Image parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.Image parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.Image parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.vision.v1.Image parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Image parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Image parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Image) com.google.cloud.vision.v1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Image.class, com.google.cloud.vision.v1.Image.Builder.class); + com.google.cloud.vision.v1.Image.class, + com.google.cloud.vision.v1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1.Image.newBuilder() @@ -368,16 +404,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Image_descriptor; } @java.lang.Override @@ -429,38 +464,39 @@ public com.google.cloud.vision.v1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Image) { - return mergeFrom((com.google.cloud.vision.v1.Image)other); + return mergeFrom((com.google.cloud.vision.v1.Image) other); } else { super.mergeFrom(other); return this; @@ -506,6 +542,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -515,6 +553,7 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -522,6 +561,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -531,19 +572,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -553,10 +597,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -564,8 +609,13 @@ public Builder clearContent() { private com.google.cloud.vision.v1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder> sourceBuilder_; + com.google.cloud.vision.v1.ImageSource, + com.google.cloud.vision.v1.ImageSource.Builder, + com.google.cloud.vision.v1.ImageSourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -573,12 +623,15 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -586,16 +639,21 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return The source. */ public com.google.cloud.vision.v1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -618,6 +676,8 @@ public Builder setSource(com.google.cloud.vision.v1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -626,8 +686,7 @@ public Builder setSource(com.google.cloud.vision.v1.ImageSource value) {
      *
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
-    public Builder setSource(
-        com.google.cloud.vision.v1.ImageSource.Builder builderForValue) {
+    public Builder setSource(com.google.cloud.vision.v1.ImageSource.Builder builderForValue) {
       if (sourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -638,6 +697,8 @@ public Builder setSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -650,7 +711,9 @@ public Builder mergeSource(com.google.cloud.vision.v1.ImageSource value) {
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-            com.google.cloud.vision.v1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.ImageSource.newBuilder(source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -662,6 +725,8 @@ public Builder mergeSource(com.google.cloud.vision.v1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -682,6 +747,8 @@ public Builder clearSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -691,11 +758,13 @@ public Builder clearSource() {
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1.ImageSource.Builder getSourceBuilder() {
-      
+
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -708,11 +777,14 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null ?
-            com.google.cloud.vision.v1.ImageSource.getDefaultInstance() : source_;
+        return source_ == null
+            ? com.google.cloud.vision.v1.ImageSource.getDefaultInstance()
+            : source_;
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -722,21 +794,24 @@ public com.google.cloud.vision.v1.ImageSourceOrBuilder getSourceOrBuilder() {
      * .google.cloud.vision.v1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder> 
+            com.google.cloud.vision.v1.ImageSource,
+            com.google.cloud.vision.v1.ImageSource.Builder,
+            com.google.cloud.vision.v1.ImageSourceOrBuilder>
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImageSource, com.google.cloud.vision.v1.ImageSource.Builder, com.google.cloud.vision.v1.ImageSourceOrBuilder>(
-                getSource(),
-                getParentForChildren(),
-                isClean());
+        sourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.ImageSource,
+                com.google.cloud.vision.v1.ImageSource.Builder,
+                com.google.cloud.vision.v1.ImageSourceOrBuilder>(
+                getSource(), getParentForChildren(), isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -746,12 +821,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Image)
   private static final com.google.cloud.vision.v1.Image DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Image();
   }
@@ -760,16 +835,16 @@ public static com.google.cloud.vision.v1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Image parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Image(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Image parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Image(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -784,6 +859,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
index 9dafb6aea..429cba2d5 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageNumber_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageNumber_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImageAnnotationContext.class, com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1.ImageAnnotationContext.class,
+            com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
+   *
+   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -148,12 +171,15 @@ public java.lang.String getUri() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -162,6 +188,7 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImageAnnotationContext other = (com.google.cloud.vision.v1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1.ImageAnnotationContext other = + (com.google.cloud.vision.v1.ImageAnnotationContext) obj; - if (!getUri() - .equals(other.getUri())) return false; - if (getPageNumber() - != other.getPageNumber()) return false; + if (!getUri().equals(other.getUri())) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,96 +261,103 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -334,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ImageAnnotationContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageAnnotationContext)
       com.google.cloud.vision.v1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImageAnnotationContext.class, com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1.ImageAnnotationContext.class,
+              com.google.cloud.vision.v1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImageAnnotationContext.newBuilder()
@@ -356,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +430,8 @@ public com.google.cloud.vision.v1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1.ImageAnnotationContext result = new com.google.cloud.vision.v1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1.ImageAnnotationContext result =
+          new com.google.cloud.vision.v1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -409,38 +442,39 @@ public com.google.cloud.vision.v1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1.ImageAnnotationContext)other);
+        return mergeFrom((com.google.cloud.vision.v1.ImageAnnotationContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -475,7 +510,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -487,18 +523,20 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -507,20 +545,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -528,67 +567,77 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_ ; + private int pageNumber_; /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -596,39 +645,45 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -638,12 +693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageAnnotationContext) private static final com.google.cloud.vision.v1.ImageAnnotationContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageAnnotationContext(); } @@ -652,16 +707,16 @@ public static com.google.cloud.vision.v1.ImageAnnotationContext getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +731,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java index b078271c6..de85a2628 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotationContextOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageAnnotationContextOrBuilder extends +public interface ImageAnnotationContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java new file mode 100644 index 000000000..285bfec39 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java @@ -0,0 +1,850 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/image_annotator.proto + +package com.google.cloud.vision.v1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_FaceAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_EntityAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ColorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DominantColorsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHintsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CropHintsParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImageAnnotationContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1/image_annotator" + + ".proto\022\026google.cloud.vision.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032%" + + "google/cloud/vision/v1/geometry.proto\032+g" + + "oogle/cloud/vision/v1/product_search.pro" + + "to\032,google/cloud/vision/v1/text_annotati" + + "on.proto\032*google/cloud/vision/v1/web_det" + + "ection.proto\032#google/longrunning/operati" + + "ons.proto\032\037google/protobuf/timestamp.pro" + + "to\032\027google/rpc/status.proto\032\027google/type" + + "/color.proto\032\030google/type/latlng.proto\"\207" + + "\003\n\007Feature\0222\n\004type\030\001 \001(\0162$.google.cloud." + + "vision.v1.Feature.Type\022\023\n\013max_results\030\002 " + + "\001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSP" + + "ECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMAR" + + "K_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LAB" + + "EL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DO" + + "CUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_D" + + "ETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP" + + "_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PRODUCT_S" + + "EARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013Imag" + + "eSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_" + + "uri\030\002 \001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006s" + + "ource\030\002 \001(\0132#.google.cloud.vision.v1.Ima" + + "geSource\"\366\r\n\016FaceAnnotation\022;\n\rbounding_" + + "poly\030\001 \001(\0132$.google.cloud.vision.v1.Boun" + + "dingPoly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.goo" + + "gle.cloud.vision.v1.BoundingPoly\022B\n\tland" + + "marks\030\003 \003(\0132/.google.cloud.vision.v1.Fac" + + "eAnnotation.Landmark\022\022\n\nroll_angle\030\004 \001(\002" + + "\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022" + + "\034\n\024detection_confidence\030\007 \001(\002\022\036\n\026landmar" + + "king_confidence\030\010 \001(\002\022:\n\016joy_likelihood\030" + + "\t \001(\0162\".google.cloud.vision.v1.Likelihoo" + + "d\022=\n\021sorrow_likelihood\030\n \001(\0162\".google.cl" + + "oud.vision.v1.Likelihood\022<\n\020anger_likeli" + + "hood\030\013 \001(\0162\".google.cloud.vision.v1.Like" + + "lihood\022?\n\023surprise_likelihood\030\014 \001(\0162\".go" + + "ogle.cloud.vision.v1.Likelihood\022D\n\030under" + + "_exposed_likelihood\030\r \001(\0162\".google.cloud" + + ".vision.v1.Likelihood\022>\n\022blurred_likelih" + + "ood\030\016 \001(\0162\".google.cloud.vision.v1.Likel" + + "ihood\022?\n\023headwear_likelihood\030\017 \001(\0162\".goo" + + "gle.cloud.vision.v1.Likelihood\032\350\007\n\010Landm" + + "ark\022B\n\004type\030\003 \001(\01624.google.cloud.vision." + + "v1.FaceAnnotation.Landmark.Type\0222\n\010posit" + + "ion\030\004 \001(\0132 .google.cloud.vision.v1.Posit" + + "ion\"\343\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LE" + + "FT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_" + + "EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025" + + "LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGH" + + "T_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022\014" + + "\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LIP" + + "\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014M" + + "OUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020" + + "NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER" + + "\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EY" + + "E_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOUN" + + "DARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIGH" + + "T_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIGHT_" + + "CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY\020\027\022" + + "\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBR" + + "OW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPP" + + "ER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021R" + + "IGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023" + + "\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA" + + "\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONIO" + + "N\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\022\025\n\021LEFT_CHEEK" + + "_CENTER\020#\022\026\n\022RIGHT_CHEEK_CENTER\020$\"4\n\014Loc" + + "ationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type" + + ".LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\253\002\n\020Entit" + + "yAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t" + + "\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\n" + + "confidence\030\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002" + + "\022;\n\rbounding_poly\030\007 \001(\0132$.google.cloud.v" + + "ision.v1.BoundingPoly\0227\n\tlocations\030\010 \003(\013" + + "2$.google.cloud.vision.v1.LocationInfo\0224" + + "\n\nproperties\030\t \003(\0132 .google.cloud.vision" + + ".v1.Property\"\231\001\n\031LocalizedObjectAnnotati" + + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022;\n\rbounding_" + + "poly\030\005 \001(\0132$.google.cloud.vision.v1.Boun" + + "dingPoly\"\231\002\n\024SafeSearchAnnotation\0221\n\005adu" + + "lt\030\001 \001(\0162\".google.cloud.vision.v1.Likeli" + + "hood\0221\n\005spoof\030\002 \001(\0162\".google.cloud.visio" + + "n.v1.Likelihood\0223\n\007medical\030\003 \001(\0162\".googl" + + "e.cloud.vision.v1.Likelihood\0224\n\010violence" + + "\030\004 \001(\0162\".google.cloud.vision.v1.Likeliho" + + "od\0220\n\004racy\030\t \001(\0162\".google.cloud.vision.v" + + "1.Likelihood\"a\n\013LatLongRect\022(\n\013min_lat_l" + + "ng\030\001 \001(\0132\023.google.type.LatLng\022(\n\013max_lat" + + "_lng\030\002 \001(\0132\023.google.type.LatLng\"U\n\tColor" + + "Info\022!\n\005color\030\001 \001(\0132\022.google.type.Color\022" + + "\r\n\005score\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"M" + + "\n\030DominantColorsAnnotation\0221\n\006colors\030\001 \003" + + "(\0132!.google.cloud.vision.v1.ColorInfo\"\\\n" + + "\017ImageProperties\022I\n\017dominant_colors\030\001 \001(" + + "\01320.google.cloud.vision.v1.DominantColor" + + "sAnnotation\"x\n\010CropHint\022;\n\rbounding_poly" + + "\030\001 \001(\0132$.google.cloud.vision.v1.Bounding" + + "Poly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importance_f" + + "raction\030\003 \001(\002\"K\n\023CropHintsAnnotation\0224\n\n" + + "crop_hints\030\001 \003(\0132 .google.cloud.vision.v" + + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + + "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + + "Params\022.\n&enable_text_detection_confiden" + + "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + + " \003(\t\"\210\003\n\014ImageContext\022:\n\rlat_long_rect\030\001" + + " \001(\0132#.google.cloud.vision.v1.LatLongRec" + + "t\022\026\n\016language_hints\030\002 \003(\t\022B\n\021crop_hints_" + + "params\030\004 \001(\0132\'.google.cloud.vision.v1.Cr" + + "opHintsParams\022J\n\025product_search_params\030\005" + + " \001(\0132+.google.cloud.vision.v1.ProductSea" + + "rchParams\022H\n\024web_detection_params\030\006 \001(\0132" + + "*.google.cloud.vision.v1.WebDetectionPar" + + "ams\022J\n\025text_detection_params\030\014 \001(\0132+.goo" + + "gle.cloud.vision.v1.TextDetectionParams\"" + + "\264\001\n\024AnnotateImageRequest\022,\n\005image\030\001 \001(\0132" + + "\035.google.cloud.vision.v1.Image\0221\n\010featur" + + "es\030\002 \003(\0132\037.google.cloud.vision.v1.Featur" + + "e\022;\n\rimage_context\030\003 \001(\0132$.google.cloud." + + "vision.v1.ImageContext\":\n\026ImageAnnotatio" + + "nContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001" + + "(\005\"\344\007\n\025AnnotateImageResponse\022@\n\020face_ann" + + "otations\030\001 \003(\0132&.google.cloud.vision.v1." + + "FaceAnnotation\022F\n\024landmark_annotations\030\002" + + " \003(\0132(.google.cloud.vision.v1.EntityAnno" + + "tation\022B\n\020logo_annotations\030\003 \003(\0132(.googl" + + "e.cloud.vision.v1.EntityAnnotation\022C\n\021la" + + "bel_annotations\030\004 \003(\0132(.google.cloud.vis" + + "ion.v1.EntityAnnotation\022W\n\034localized_obj" + + "ect_annotations\030\026 \003(\01321.google.cloud.vis" + + "ion.v1.LocalizedObjectAnnotation\022B\n\020text" + + "_annotations\030\005 \003(\0132(.google.cloud.vision" + + ".v1.EntityAnnotation\022D\n\024full_text_annota" + + "tion\030\014 \001(\0132&.google.cloud.vision.v1.Text" + + "Annotation\022L\n\026safe_search_annotation\030\006 \001" + + "(\0132,.google.cloud.vision.v1.SafeSearchAn" + + "notation\022L\n\033image_properties_annotation\030" + + "\010 \001(\0132\'.google.cloud.vision.v1.ImageProp" + + "erties\022J\n\025crop_hints_annotation\030\013 \001(\0132+." + + "google.cloud.vision.v1.CropHintsAnnotati" + + "on\022;\n\rweb_detection\030\r \001(\0132$.google.cloud" + + ".vision.v1.WebDetection\022L\n\026product_searc" + + "h_results\030\016 \001(\0132,.google.cloud.vision.v1" + + ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + + "oogle.rpc.Status\022?\n\007context\030\025 \001(\0132..goog" + + "le.cloud.vision.v1.ImageAnnotationContex" + + "t\"q\n\032BatchAnnotateImagesRequest\022C\n\010reque" + + "sts\030\001 \003(\0132,.google.cloud.vision.v1.Annot" + + "ateImageRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n\033" + + "BatchAnnotateImagesResponse\022@\n\tresponses" + + "\030\001 \003(\0132-.google.cloud.vision.v1.Annotate" + + "ImageResponse\"\317\001\n\023AnnotateFileRequest\0229\n" + + "\014input_config\030\001 \001(\0132#.google.cloud.visio" + + "n.v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.goo" + + "gle.cloud.vision.v1.Feature\022;\n\rimage_con" + + "text\030\003 \001(\0132$.google.cloud.vision.v1.Imag" + + "eContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024AnnotateFile" + + "Response\0229\n\014input_config\030\001 \001(\0132#.google." + + "cloud.vision.v1.InputConfig\022@\n\tresponses" + + "\030\002 \003(\0132-.google.cloud.vision.v1.Annotate" + + "ImageResponse\022\023\n\013total_pages\030\003 \001(\005\022!\n\005er" + + "ror\030\004 \001(\0132\022.google.rpc.Status\"o\n\031BatchAn" + + "notateFilesRequest\022B\n\010requests\030\001 \003(\0132+.g" + + "oogle.cloud.vision.v1.AnnotateFileReques" + + "tB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032BatchAnnotateF" + + "ilesResponse\022?\n\tresponses\030\001 \003(\0132,.google" + + ".cloud.vision.v1.AnnotateFileResponse\"\202\002" + + "\n\030AsyncAnnotateFileRequest\0229\n\014input_conf" + + "ig\030\001 \001(\0132#.google.cloud.vision.v1.InputC" + + "onfig\0221\n\010features\030\002 \003(\0132\037.google.cloud.v" + + "ision.v1.Feature\022;\n\rimage_context\030\003 \001(\0132" + + "$.google.cloud.vision.v1.ImageContext\022;\n" + + "\routput_config\030\004 \001(\0132$.google.cloud.visi" + + "on.v1.OutputConfig\"X\n\031AsyncAnnotateFileR" + + "esponse\022;\n\routput_config\030\001 \001(\0132$.google." + + "cloud.vision.v1.OutputConfig\"\270\001\n\037AsyncBa" + + "tchAnnotateImagesRequest\022C\n\010requests\030\001 \003" + + "(\0132,.google.cloud.vision.v1.AnnotateImag" + + "eRequestB\003\340A\002\022@\n\routput_config\030\002 \001(\0132$.g" + + "oogle.cloud.vision.v1.OutputConfigB\003\340A\002\022" + + "\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchAnnotateIma" + + "gesResponse\022;\n\routput_config\030\001 \001(\0132$.goo" + + "gle.cloud.vision.v1.OutputConfig\"y\n\036Asyn" + + "cBatchAnnotateFilesRequest\022G\n\010requests\030\001" + + " \003(\01320.google.cloud.vision.v1.AsyncAnnot" + + "ateFileRequestB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"g\n\037A" + + "syncBatchAnnotateFilesResponse\022D\n\trespon" + + "ses\030\001 \003(\01321.google.cloud.vision.v1.Async" + + "AnnotateFileResponse\"h\n\013InputConfig\0225\n\ng" + + "cs_source\030\001 \001(\0132!.google.cloud.vision.v1" + + ".GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n\tmime_type" + + "\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_destinatio" + + "n\030\001 \001(\0132&.google.cloud.vision.v1.GcsDest" + + "ination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGcsSource" + + "\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001" + + " \001(\t\"\210\002\n\021OperationMetadata\022>\n\005state\030\001 \001(" + + "\0162/.google.cloud.vision.v1.OperationMeta" + + "data.State\022/\n\013create_time\030\005 \001(\0132\032.google" + + ".protobuf.Timestamp\022/\n\013update_time\030\006 \001(\013" + + "2\032.google.protobuf.Timestamp\"Q\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUN" + + "NING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikel" + + "ihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n" + + "\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n" + + "\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnotator\022\223\002\n\023Ba" + + "tchAnnotateImages\0222.google.cloud.vision." + + "v1.BatchAnnotateImagesRequest\0323.google.c" + + "loud.vision.v1.BatchAnnotateImagesRespon" + + "se\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annotate:\001*Z8\"3" + + "/v1/{parent=projects/*/locations/*}/imag" + + "es:annotate:\001*Z,\"\'/v1/{parent=projects/*" + + "}/images:annotate:\001*\332A\010requests\022\214\002\n\022Batc" + + "hAnnotateFiles\0221.google.cloud.vision.v1." + + "BatchAnnotateFilesRequest\0322.google.cloud" + + ".vision.v1.BatchAnnotateFilesResponse\"\216\001" + + "\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z7\"2/v1/{pa" + + "rent=projects/*/locations/*}/files:annot" + + "ate:\001*Z+\"&/v1/{parent=projects/*}/files:" + + "annotate:\001*\332A\010requests\022\353\002\n\030AsyncBatchAnn" + + "otateImages\0227.google.cloud.vision.v1.Asy" + + "ncBatchAnnotateImagesRequest\032\035.google.lo" + + "ngrunning.Operation\"\366\001\202\323\344\223\002\236\001\"\035/v1/image" + + "s:asyncBatchAnnotate:\001*ZB\"=/v1/{parent=p" + + "rojects/*/locations/*}/images:asyncBatch" + + "Annotate:\001*Z6\"1/v1/{parent=projects/*}/i" + + "mages:asyncBatchAnnotate:\001*\332A\026requests,o" + + "utput_config\312A5\n AsyncBatchAnnotateImage" + + "sResponse\022\021OperationMetadata\022\327\002\n\027AsyncBa" + + "tchAnnotateFiles\0226.google.cloud.vision.v" + + "1.AsyncBatchAnnotateFilesRequest\032\035.googl" + + "e.longrunning.Operation\"\344\001\202\323\344\223\002\233\001\"\034/v1/f" + + "iles:asyncBatchAnnotate:\001*ZA\" * Image context and/or feature-specific parameters. *
* * Protobuf type {@code google.cloud.vision.v1.ImageContext} */ -public final class ImageContext extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageContext) ImageContextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,87 +71,103 @@ private ImageContext( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = input.readMessage(com.google.cloud.vision.v1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; - } - case 34: { - com.google.cloud.vision.v1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.cloud.vision.v1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = + input.readMessage( + com.google.cloud.vision.v1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; } - productSearchParams_ = input.readMessage(com.google.cloud.vision.v1.ProductSearchParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; } - - break; - } - case 50: { - com.google.cloud.vision.v1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); + case 34: + { + com.google.cloud.vision.v1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = + input.readMessage( + com.google.cloud.vision.v1.CropHintsParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; } - webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.vision.v1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); + } + productSearchParams_ = + input.readMessage( + com.google.cloud.vision.v1.ProductSearchParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - com.google.cloud.vision.v1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); + case 50: + { + com.google.cloud.vision.v1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); + } + webDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1.WebDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.vision.v1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); + } + textDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1.TextDetectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -142,8 +175,7 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -152,27 +184,33 @@ private ImageContext( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageContext.class, com.google.cloud.vision.v1.ImageContext.Builder.class); + com.google.cloud.vision.v1.ImageContext.class, + com.google.cloud.vision.v1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.LatLongRect latLongRect_; /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -180,18 +218,25 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { - return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() + : latLongRect_; } /** + * + * *
    * Not used.
    * 
@@ -206,6 +251,8 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -218,13 +265,15 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder()
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -237,12 +286,15 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder()
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -255,6 +307,7 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -262,6 +315,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -274,22 +329,25 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1.CropHintsParams cropHintsParams_; /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -297,18 +355,25 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -323,11 +388,14 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1.ProductSearchParams productSearchParams_; /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -335,18 +403,25 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } /** + * + * *
    * Parameters for product search.
    * 
@@ -361,11 +436,14 @@ public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchP public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1.WebDetectionParams webDetectionParams_; /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -373,18 +451,25 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } /** + * + * *
    * Parameters for web detection.
    * 
@@ -399,11 +484,14 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1.TextDetectionParams textDetectionParams_; /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -411,18 +499,25 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
@@ -435,6 +530,7 @@ public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionP } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -446,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -476,8 +571,7 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -488,20 +582,17 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTextDetectionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -511,7 +602,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); @@ -520,30 +611,24 @@ public boolean equals(final java.lang.Object obj) { if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect() - .equals(other.getLatLongRect())) return false; + if (!getLatLongRect().equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList() - .equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams() - .equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams() - .equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams() - .equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams() - .equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -585,118 +670,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageContext) com.google.cloud.vision.v1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageContext.class, com.google.cloud.vision.v1.ImageContext.Builder.class); + com.google.cloud.vision.v1.ImageContext.class, + com.google.cloud.vision.v1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageContext.newBuilder() @@ -704,16 +798,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -753,9 +846,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageContext_descriptor; } @java.lang.Override @@ -774,7 +867,8 @@ public com.google.cloud.vision.v1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1.ImageContext buildPartial() { - com.google.cloud.vision.v1.ImageContext result = new com.google.cloud.vision.v1.ImageContext(this); + com.google.cloud.vision.v1.ImageContext result = + new com.google.cloud.vision.v1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -814,38 +908,39 @@ public com.google.cloud.vision.v1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1.ImageContext)other); + return mergeFrom((com.google.cloud.vision.v1.ImageContext) other); } else { super.mergeFrom(other); return this; @@ -907,38 +1002,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder> latLongRectBuilder_; + com.google.cloud.vision.v1.LatLongRect, + com.google.cloud.vision.v1.LatLongRect.Builder, + com.google.cloud.vision.v1.LatLongRectOrBuilder> + latLongRectBuilder_; /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() + : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** + * + * *
      * Not used.
      * 
@@ -959,14 +1068,15 @@ public Builder setLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { return this; } /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ - public Builder setLatLongRect( - com.google.cloud.vision.v1.LatLongRect.Builder builderForValue) { + public Builder setLatLongRect(com.google.cloud.vision.v1.LatLongRect.Builder builderForValue) { if (latLongRectBuilder_ == null) { latLongRect_ = builderForValue.build(); onChanged(); @@ -977,6 +1087,8 @@ public Builder setLatLongRect( return this; } /** + * + * *
      * Not used.
      * 
@@ -987,7 +1099,9 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.LatLongRect.newBuilder(latLongRect_) + .mergeFrom(value) + .buildPartial(); } else { latLongRect_ = value; } @@ -999,6 +1113,8 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1.LatLongRect value) { return this; } /** + * + * *
      * Not used.
      * 
@@ -1017,6 +1133,8 @@ public Builder clearLatLongRect() { return this; } /** + * + * *
      * Not used.
      * 
@@ -1024,11 +1142,13 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** + * + * *
      * Not used.
      * 
@@ -1039,11 +1159,14 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null ? - com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() + : latLongRect_; } } /** + * + * *
      * Not used.
      * 
@@ -1051,27 +1174,34 @@ public com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder() * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder> + com.google.cloud.vision.v1.LatLongRect, + com.google.cloud.vision.v1.LatLongRect.Builder, + com.google.cloud.vision.v1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.LatLongRect, com.google.cloud.vision.v1.LatLongRect.Builder, com.google.cloud.vision.v1.LatLongRectOrBuilder>( - getLatLongRect(), - getParentForChildren(), - isClean()); + latLongRectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.LatLongRect, + com.google.cloud.vision.v1.LatLongRect.Builder, + com.google.cloud.vision.v1.LatLongRectOrBuilder>( + getLatLongRect(), getParentForChildren(), isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1084,13 +1214,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1103,12 +1235,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1121,6 +1256,7 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1128,6 +1264,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1140,14 +1278,16 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1160,21 +1300,23 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints( - int index, java.lang.String value) { + public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1187,20 +1329,22 @@ public Builder setLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints( - java.lang.String value) { + public Builder addLanguageHints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1213,18 +1357,19 @@ public Builder addLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints( - java.lang.Iterable values) { + public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1237,6 +1382,7 @@ public Builder addAllLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1246,6 +1392,8 @@ public Builder clearLanguageHints() { return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1258,15 +1406,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; + * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1275,34 +1423,47 @@ public Builder addLanguageHintsBytes( private com.google.cloud.vision.v1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; + com.google.cloud.vision.v1.CropHintsParams, + com.google.cloud.vision.v1.CropHintsParams.Builder, + com.google.cloud.vision.v1.CropHintsParamsOrBuilder> + cropHintsParamsBuilder_; /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ public com.google.cloud.vision.v1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1323,6 +1484,8 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1.CropHintsParams val return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1341,6 +1504,8 @@ public Builder setCropHintsParams( return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1351,7 +1516,9 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1.CropHintsParams v if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.CropHintsParams.newBuilder(cropHintsParams_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsParams_ = value; } @@ -1363,6 +1530,8 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1.CropHintsParams v return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1381,6 +1550,8 @@ public Builder clearCropHintsParams() { return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1388,11 +1559,13 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1403,11 +1576,14 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null ? - com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1415,14 +1591,17 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1.CropHintsParams, + com.google.cloud.vision.v1.CropHintsParams.Builder, + com.google.cloud.vision.v1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.CropHintsParams, com.google.cloud.vision.v1.CropHintsParams.Builder, com.google.cloud.vision.v1.CropHintsParamsOrBuilder>( - getCropHintsParams(), - getParentForChildren(), - isClean()); + cropHintsParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.CropHintsParams, + com.google.cloud.vision.v1.CropHintsParams.Builder, + com.google.cloud.vision.v1.CropHintsParamsOrBuilder>( + getCropHintsParams(), getParentForChildren(), isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1430,34 +1609,47 @@ public com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrB private com.google.cloud.vision.v1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; + com.google.cloud.vision.v1.ProductSearchParams, + com.google.cloud.vision.v1.ProductSearchParams.Builder, + com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> + productSearchParamsBuilder_; /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ public com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for product search.
      * 
@@ -1478,6 +1670,8 @@ public Builder setProductSearchParams(com.google.cloud.vision.v1.ProductSearchPa return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1496,6 +1690,8 @@ public Builder setProductSearchParams( return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1506,7 +1702,9 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1.ProductSearch if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ProductSearchParams.newBuilder(productSearchParams_) + .mergeFrom(value) + .buildPartial(); } else { productSearchParams_ = value; } @@ -1518,6 +1716,8 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1.ProductSearch return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1536,6 +1736,8 @@ public Builder clearProductSearchParams() { return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1543,26 +1745,32 @@ public Builder clearProductSearchParams() { * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ public com.google.cloud.vision.v1.ProductSearchParams.Builder getProductSearchParamsBuilder() { - + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder + getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null ? - com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } } /** + * + * *
      * Parameters for product search.
      * 
@@ -1570,14 +1778,17 @@ public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchP * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1.ProductSearchParams, + com.google.cloud.vision.v1.ProductSearchParams.Builder, + com.google.cloud.vision.v1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchParams, com.google.cloud.vision.v1.ProductSearchParams.Builder, com.google.cloud.vision.v1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), - getParentForChildren(), - isClean()); + productSearchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchParams, + com.google.cloud.vision.v1.ProductSearchParams.Builder, + com.google.cloud.vision.v1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), getParentForChildren(), isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -1585,34 +1796,47 @@ public com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchP private com.google.cloud.vision.v1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; + com.google.cloud.vision.v1.WebDetectionParams, + com.google.cloud.vision.v1.WebDetectionParams.Builder, + com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> + webDetectionParamsBuilder_; /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ public com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1633,6 +1857,8 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPara return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1651,6 +1877,8 @@ public Builder setWebDetectionParams( return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1661,7 +1889,9 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPa if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.WebDetectionParams.newBuilder(webDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { webDetectionParams_ = value; } @@ -1673,6 +1903,8 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1.WebDetectionPa return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1691,6 +1923,8 @@ public Builder clearWebDetectionParams() { return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1698,11 +1932,13 @@ public Builder clearWebDetectionParams() { * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; */ public com.google.cloud.vision.v1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1713,11 +1949,14 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null ? - com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1725,14 +1964,17 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1.WebDetectionParams, + com.google.cloud.vision.v1.WebDetectionParams.Builder, + com.google.cloud.vision.v1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.WebDetectionParams, com.google.cloud.vision.v1.WebDetectionParams.Builder, com.google.cloud.vision.v1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), - getParentForChildren(), - isClean()); + webDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.WebDetectionParams, + com.google.cloud.vision.v1.WebDetectionParams.Builder, + com.google.cloud.vision.v1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), getParentForChildren(), isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1740,34 +1982,47 @@ public com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionPar private com.google.cloud.vision.v1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; + com.google.cloud.vision.v1.TextDetectionParams, + com.google.cloud.vision.v1.TextDetectionParams.Builder, + com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> + textDetectionParamsBuilder_; /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ public com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1788,6 +2043,8 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1.TextDetectionPa return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1806,6 +2063,8 @@ public Builder setTextDetectionParams( return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1816,7 +2075,9 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1.TextDetection if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextDetectionParams.newBuilder(textDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { textDetectionParams_ = value; } @@ -1828,6 +2089,8 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1.TextDetection return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1846,6 +2109,8 @@ public Builder clearTextDetectionParams() { return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1853,26 +2118,32 @@ public Builder clearTextDetectionParams() { * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ public com.google.cloud.vision.v1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null ? - com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1880,21 +2151,24 @@ public com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionP * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1.TextDetectionParams, + com.google.cloud.vision.v1.TextDetectionParams.Builder, + com.google.cloud.vision.v1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextDetectionParams, com.google.cloud.vision.v1.TextDetectionParams.Builder, com.google.cloud.vision.v1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), - getParentForChildren(), - isClean()); + textDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextDetectionParams, + com.google.cloud.vision.v1.TextDetectionParams.Builder, + com.google.cloud.vision.v1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), getParentForChildren(), isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1904,12 +2178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageContext) private static final com.google.cloud.vision.v1.ImageContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageContext(); } @@ -1918,16 +2192,16 @@ public static com.google.cloud.vision.v1.ImageContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1942,6 +2216,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java similarity index 87% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java index 239bae617..9f474f9d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageContextOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageContextOrBuilder extends +public interface ImageContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ com.google.cloud.vision.v1.LatLongRect getLatLongRect(); /** + * + * *
    * Not used.
    * 
@@ -35,6 +59,8 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -47,11 +73,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - java.util.List - getLanguageHintsList(); + java.util.List getLanguageHintsList(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -64,10 +92,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ int getLanguageHintsCount(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -80,11 +111,14 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -97,31 +131,39 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString - getLanguageHintsBytes(int index); + com.google.protobuf.ByteString getLanguageHintsBytes(int index); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ com.google.cloud.vision.v1.CropHintsParams getCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -131,24 +173,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
@@ -158,24 +208,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
@@ -185,24 +243,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java index 282193096..0b11d398d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -17,11 +35,14 @@ public interface ImageOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -29,10 +50,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -40,10 +64,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1.ImageSource source = 2; + * * @return The source. */ com.google.cloud.vision.v1.ImageSource getSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
index bd3ff4ccd..ca5d0070f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageProperties.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImageProperties} */ -public final class ImageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageProperties) ImagePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageProperties() { - } + + private ImageProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageProperties( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); + } + dominantColors_ = + input.readMessage( + com.google.cloud.vision.v1.DominantColorsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; } - dominantColors_ = input.readMessage(com.google.cloud.vision.v1.DominantColorsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageProperties.class, com.google.cloud.vision.v1.ImageProperties.Builder.class); + com.google.cloud.vision.v1.ImageProperties.class, + com.google.cloud.vision.v1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.DominantColorsAnnotation dominantColors_; /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
@@ -138,6 +170,7 @@ public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantC } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -164,8 +196,7 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImageProperties other = (com.google.cloud.vision.v1.ImageProperties) obj; + com.google.cloud.vision.v1.ImageProperties other = + (com.google.cloud.vision.v1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors() - .equals(other.getDominantColors())) return false; + if (!getDominantColors().equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +238,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageProperties parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageProperties parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageProperties) com.google.cloud.vision.v1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageProperties.class, com.google.cloud.vision.v1.ImageProperties.Builder.class); + com.google.cloud.vision.v1.ImageProperties.class, + com.google.cloud.vision.v1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageProperties.newBuilder() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageProperties_descriptor; } @java.lang.Override @@ -370,7 +409,8 @@ public com.google.cloud.vision.v1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1.ImageProperties buildPartial() { - com.google.cloud.vision.v1.ImageProperties result = new com.google.cloud.vision.v1.ImageProperties(this); + com.google.cloud.vision.v1.ImageProperties result = + new com.google.cloud.vision.v1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.vision.v1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1.ImageProperties)other); + return mergeFrom((com.google.cloud.vision.v1.ImageProperties) other); } else { super.mergeFrom(other); return this; @@ -458,34 +499,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; + com.google.cloud.vision.v1.DominantColorsAnnotation, + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> + dominantColorsBuilder_; /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ public com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -506,6 +560,8 @@ public Builder setDominantColors(com.google.cloud.vision.v1.DominantColorsAnnota return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -524,6 +580,8 @@ public Builder setDominantColors( return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -534,7 +592,9 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1.DominantColorsAnno if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.DominantColorsAnnotation.newBuilder(dominantColors_) + .mergeFrom(value) + .buildPartial(); } else { dominantColors_ = value; } @@ -546,6 +606,8 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1.DominantColorsAnno return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -564,6 +626,8 @@ public Builder clearDominantColors() { return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -571,26 +635,32 @@ public Builder clearDominantColors() { * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ public com.google.cloud.vision.v1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null ? - com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -598,21 +668,24 @@ public com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder getDominantC * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1.DominantColorsAnnotation, + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.DominantColorsAnnotation, com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), - getParentForChildren(), - isClean()); + dominantColorsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.DominantColorsAnnotation, + com.google.cloud.vision.v1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), getParentForChildren(), isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageProperties) private static final com.google.cloud.vision.v1.ImageProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageProperties(); } @@ -636,16 +709,16 @@ public static com.google.cloud.vision.v1.ImageProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java index f12aab933..78a7bd1aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImagePropertiesOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImagePropertiesOrBuilder extends +public interface ImagePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ com.google.cloud.vision.v1.DominantColorsAnnotation getDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java index 6e281845e..39c55965c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImageSource} */ -public final class ImageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImageSource) ImageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -26,16 +44,15 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ImageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageSource.class, com.google.cloud.vision.v1.ImageSource.Builder.class); + com.google.cloud.vision.v1.ImageSource.class, + com.google.cloud.vision.v1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -112,6 +135,7 @@ private ImageSource(
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ @java.lang.Override @@ -120,14 +144,15 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -137,16 +162,15 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -157,6 +181,8 @@ public java.lang.String getGcsImageUri() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -175,6 +201,7 @@ public java.lang.String getGcsImageUri() {
    * 
* * string image_uri = 2; + * * @return The imageUri. */ @java.lang.Override @@ -183,14 +210,15 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -209,16 +237,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -227,6 +254,7 @@ public java.lang.String getImageUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -269,17 +296,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageSource)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageSource other = (com.google.cloud.vision.v1.ImageSource) obj; - if (!getGcsImageUri() - .equals(other.getGcsImageUri())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; + if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,118 +325,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ImageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ImageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImageSource) com.google.cloud.vision.v1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImageSource.class, com.google.cloud.vision.v1.ImageSource.Builder.class); + com.google.cloud.vision.v1.ImageSource.class, + com.google.cloud.vision.v1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1.ImageSource.newBuilder() @@ -419,16 +453,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_ImageSource_descriptor; } @java.lang.Override @@ -461,7 +494,8 @@ public com.google.cloud.vision.v1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1.ImageSource buildPartial() { - com.google.cloud.vision.v1.ImageSource result = new com.google.cloud.vision.v1.ImageSource(this); + com.google.cloud.vision.v1.ImageSource result = + new com.google.cloud.vision.v1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -472,38 +506,39 @@ public com.google.cloud.vision.v1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1.ImageSource)other); + return mergeFrom((com.google.cloud.vision.v1.ImageSource) other); } else { super.mergeFrom(other); return this; @@ -551,6 +586,8 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -560,13 +597,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -575,6 +612,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -584,15 +623,14 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -600,6 +638,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -609,20 +649,22 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri( - java.lang.String value) { + public Builder setGcsImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -632,15 +674,18 @@ public Builder setGcsImageUri(
      * 
* * string gcs_image_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,16 +695,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -667,6 +712,8 @@ public Builder setGcsImageUriBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -685,13 +732,13 @@ public Builder setGcsImageUriBytes(
      * 
* * string image_uri = 2; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -700,6 +747,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -718,15 +767,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -734,6 +782,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -752,20 +802,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -784,15 +836,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 2; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -811,23 +866,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageSource) private static final com.google.cloud.vision.v1.ImageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImageSource(); } @@ -851,16 +906,16 @@ public static com.google.cloud.vision.v1.ImageSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java index 448e857e8..a4bbd68f7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface ImageSourceOrBuilder extends +public interface ImageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -17,10 +35,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -30,12 +51,14 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString - getGcsImageUriBytes(); + com.google.protobuf.ByteString getGcsImageUriBytes(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -54,10 +77,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -76,8 +102,8 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java index 204c5af64..383088600 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            csvFileUri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              csvFileUri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource.class,
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
+   *
+   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -148,6 +170,7 @@ private ImportProductSetsGcsSource(
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ @java.lang.Override @@ -156,14 +179,15 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -215,16 +239,15 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -233,6 +256,7 @@ public java.lang.String getCsvFileUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -269,15 +292,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1.ImportProductSetsGcsSource other = + (com.google.cloud.vision.v1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri() - .equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,96 +320,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsGcsSource prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -394,21 +425,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1.ImportProductSetsGcsSource.class,
+              com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder()
@@ -416,16 +449,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -435,9 +467,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
@@ -456,7 +488,8 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1.ImportProductSetsGcsSource result =
+          new com.google.cloud.vision.v1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -466,38 +499,39 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource)other);
+        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -505,7 +539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsGcsSource other) {
-      if (other == com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance())
+        return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -529,7 +564,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,6 +577,8 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
+     *
+     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -592,13 +630,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -607,6 +645,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -658,15 +698,14 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -674,6 +713,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -725,20 +766,22 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri( - java.lang.String value) { + public Builder setCsvFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -790,15 +833,18 @@ public Builder setCsvFileUri(
      * 
* * string csv_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -850,23 +896,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +922,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsGcsSource) private static final com.google.cloud.vision.v1.ImportProductSetsGcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsGcsSource(); } @@ -890,16 +936,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsGcsSource getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,6 +960,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java similarity index 89% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java index 18bba94c3..7c0413d92 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ImportProductSetsGcsSourceOrBuilder extends +public interface ImportProductSetsGcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -59,10 +77,13 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -114,8 +135,8 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString - getCsvFileUriBytes(); + com.google.protobuf.ByteString getCsvFileUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java index 157735a09..9131a3f2c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsInputConfig() { - } + + private ImportProductSetsInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,32 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1.ImportProductSetsGcsSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.vision.v1.ImportProductSetsGcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +101,39 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -123,30 +149,35 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -154,22 +185,27 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -180,12 +216,13 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_;
+      return (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,8 +234,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
     }
@@ -212,8 +248,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -223,18 +260,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1.ImportProductSetsInputConfig other =
+        (com.google.cloud.vision.v1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -264,117 +301,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsInputConfig) com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder() @@ -382,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override @@ -422,7 +468,8 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1.ImportProductSetsInputConfig result = + new com.google.cloud.vision.v1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -439,38 +486,39 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsInputConfig)other); + return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsInputConfig) other); } else { super.mergeFrom(other); return this; @@ -478,15 +526,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsInputConfig other) { - if (other == com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -507,7 +558,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -516,12 +568,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -531,16 +583,21 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1.ImportProductSetsGcsSource, + com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, + com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -548,12 +605,15 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -571,6 +631,8 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource() { } } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -592,6 +654,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSourc
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -611,6 +675,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -620,10 +686,14 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_
+                != com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.vision.v1.ImportProductSetsGcsSource.newBuilder(
+                      (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -639,6 +709,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.ImportProductSetsGcsSou
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -663,6 +735,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -674,6 +748,8 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder getGcsSourc
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -693,6 +769,8 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSour
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -701,26 +779,32 @@ public com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder getGcsSour
      * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder> 
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource,
+            com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder,
+            com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.vision.v1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.ImportProductSetsGcsSource, com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.ImportProductSetsGcsSource,
+                com.google.cloud.vision.v1.ImportProductSetsGcsSource.Builder,
+                com.google.cloud.vision.v1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -730,12 +814,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsInputConfig)
   private static final com.google.cloud.vision.v1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsInputConfig();
   }
@@ -744,16 +828,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsInputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsInputConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -768,6 +852,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.vision.v1.ImportProductSetsInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
index 7ef471af6..c508971e8 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ImportProductSetsInputConfigOrBuilder extends
+public interface ImportProductSetsInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1.ImportProductSetsGcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
index 360a45d3b..6745b2309 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + parent_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1.ImportProductSetsInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1.ImportProductSetsInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,42 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsRequest.class, com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.ImportProductSetsInputConfig inputConfig_; /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -169,30 +205,43 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +253,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +273,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +283,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ImportProductSetsRequest other = (com.google.cloud.vision.v1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1.ImportProductSetsRequest other = + (com.google.cloud.vision.v1.ImportProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +319,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsRequest) com.google.cloud.vision.v1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ImportProductSetsRequest.class, com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ImportProductSetsRequest.newBuilder() @@ -391,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -437,7 +491,8 @@ public com.google.cloud.vision.v1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1.ImportProductSetsRequest result = new com.google.cloud.vision.v1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1.ImportProductSetsRequest result = + new com.google.cloud.vision.v1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -452,38 +507,39 @@ public com.google.cloud.vision.v1.ImportProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ImportProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +575,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +588,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +613,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +638,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +709,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { @@ -679,11 +776,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputC return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -697,17 +798,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ImportProductSetsInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -719,11 +826,15 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInpu return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -737,55 +848,72 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ImportProductSetsInputConfig, com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +923,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1.ImportProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsRequest(); } @@ -809,16 +937,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +961,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..56a868db3 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface ImportProductSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputConfig. + */ + com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java index 05d0ef3a9..c6a4aadb9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,31 +75,34 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              referenceImages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                referenceImages_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              referenceImages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry));
+              break;
             }
-            referenceImages_.add(
-                input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              statuses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                statuses_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+              break;
             }
-            statuses_.add(
-                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +110,7 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -103,22 +122,27 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ImportProductSetsResponse.class, com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1.ImportProductSetsResponse.class,
+            com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -130,6 +154,8 @@ public java.util.List getReferenceIma return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -137,11 +163,13 @@ public java.util.List getReferenceIma * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -153,6 +181,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -164,6 +194,8 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { return referenceImages_.get(index); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -171,14 +203,15 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index) { return referenceImages_.get(index); } public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -194,6 +227,8 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -205,11 +240,12 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List 
-      getStatusesOrBuilderList() {
+  public java.util.List getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -225,6 +261,8 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -240,6 +278,8 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -251,12 +291,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -268,8 +308,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -286,12 +325,10 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -301,17 +338,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.ImportProductSetsResponse other = (com.google.cloud.vision.v1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1.ImportProductSetsResponse other =
+        (com.google.cloud.vision.v1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList()
-        .equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList()
-        .equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList().equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -337,96 +373,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -436,21 +479,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ImportProductSetsResponse)
       com.google.cloud.vision.v1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ImportProductSetsResponse.class, com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1.ImportProductSetsResponse.class,
+              com.google.cloud.vision.v1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ImportProductSetsResponse.newBuilder()
@@ -458,18 +503,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +534,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -510,7 +555,8 @@ public com.google.cloud.vision.v1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1.ImportProductSetsResponse result = new com.google.cloud.vision.v1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1.ImportProductSetsResponse result =
+          new com.google.cloud.vision.v1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -538,38 +584,39 @@ public com.google.cloud.vision.v1.ImportProductSetsResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1.ImportProductSetsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -577,7 +624,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1.ImportProductSetsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.ImportProductSetsResponse.getDefaultInstance())
+        return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -596,9 +644,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse ot
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReferenceImagesFieldBuilder() : null;
+            referenceImagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReferenceImagesFieldBuilder()
+                    : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -622,9 +671,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ImportProductSetsResponse ot
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStatusesFieldBuilder() : null;
+            statusesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStatusesFieldBuilder()
+                    : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -649,7 +699,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -658,21 +709,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ = new java.util.ArrayList(referenceImages_);
+        referenceImages_ =
+            new java.util.ArrayList(referenceImages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImagesBuilder_;
+            com.google.cloud.vision.v1.ReferenceImage,
+            com.google.cloud.vision.v1.ReferenceImage.Builder,
+            com.google.cloud.vision.v1.ReferenceImageOrBuilder>
+        referenceImagesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of reference_images that are imported successfully.
      * 
@@ -687,6 +746,8 @@ public java.util.List getReferenceIma } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -701,6 +762,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -715,14 +778,15 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder setReferenceImages( - int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder setReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -736,6 +800,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -754,6 +820,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -774,14 +842,15 @@ public Builder addReferenceImages(com.google.cloud.vision.v1.ReferenceImage valu return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder addReferenceImages( - int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder addReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -795,6 +864,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -813,6 +884,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -831,6 +904,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -841,8 +916,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -850,6 +924,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -867,6 +943,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -884,17 +962,20 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder( - int index) { + public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder(int index) { return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -904,19 +985,22 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuild public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -924,6 +1008,8 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -931,38 +1017,47 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder( - int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder(int index) { + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -972,19 +1067,22 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuild return referenceImagesBuilder_; } - private java.util.List statuses_ = - java.util.Collections.emptyList(); + private java.util.List statuses_ = java.util.Collections.emptyList(); + private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusesBuilder_; /** + * + * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1003,6 +1101,8 @@ public java.util.List getStatusesList() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1021,6 +1121,8 @@ public int getStatusesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1039,6 +1141,8 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1049,8 +1153,7 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder setStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1064,6 +1167,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1074,8 +1179,7 @@ public Builder setStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1086,6 +1190,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1110,6 +1216,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1120,8 +1228,7 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder addStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1135,6 +1242,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1145,8 +1254,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1157,6 +1265,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1167,8 +1277,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1179,6 +1288,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1189,12 +1300,10 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(
-        java.lang.Iterable values) {
+    public Builder addAllStatuses(java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1202,6 +1311,8 @@ public Builder addAllStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1223,6 +1334,8 @@ public Builder clearStatuses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1244,6 +1357,8 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1254,11 +1369,12 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1269,14 +1385,16 @@ public com.google.rpc.Status.Builder getStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);  } else {
+        return statuses_.get(index);
+      } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1287,8 +1405,7 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesOrBuilderList() {
+    public java.util.List getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1296,6 +1413,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1307,10 +1426,11 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1321,12 +1441,13 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(
-        int index) {
-      return getStatusesFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
+      return getStatusesFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1337,27 +1458,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesBuilderList() {
+    public java.util.List getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                statuses_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        statusesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1367,12 +1488,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1.ImportProductSetsResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ImportProductSetsResponse();
   }
@@ -1381,16 +1502,16 @@ public static com.google.cloud.vision.v1.ImportProductSetsResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1405,6 +1526,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
index 1a85174ad..6b36b9382 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ImportProductSetsResponseOrBuilder extends
+public interface ImportProductSetsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -25,6 +44,8 @@ public interface ImportProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -33,25 +54,30 @@ public interface ImportProductSetsResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -62,9 +88,10 @@ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesList();
+  java.util.List getStatusesList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -77,6 +104,8 @@ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(
    */
   com.google.rpc.Status getStatuses(int index);
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -89,6 +118,8 @@ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(
    */
   int getStatusesCount();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -99,9 +130,10 @@ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesOrBuilderList();
+  java.util.List getStatusesOrBuilderList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -112,6 +144,5 @@ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
index 83a3d8017..716cd0c4a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfig.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { content_ = com.google.protobuf.ByteString.EMPTY; mimeType_ = ""; @@ -26,16 +44,15 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,37 +71,41 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = input.readMessage(com.google.cloud.vision.v1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.vision.v1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.vision.v1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } - mimeType_ = s; - break; - } - case 26: { + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - content_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + case 26: + { + content_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.InputConfig.class, com.google.cloud.vision.v1.InputConfig.Builder.class); + com.google.cloud.vision.v1.InputConfig.class, + com.google.cloud.vision.v1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.GcsSource gcsSource_; /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -127,18 +153,25 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() + : gcsSource_; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -153,6 +186,8 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { public static final int CONTENT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString content_; /** + * + * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -162,6 +197,7 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
    * 
* * bytes content = 3; + * * @return The content. */ @java.lang.Override @@ -172,12 +208,15 @@ public com.google.protobuf.ByteString getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -186,30 +225,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -218,6 +257,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -250,15 +289,13 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, content_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, content_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,7 +305,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.InputConfig)) { return super.equals(obj); @@ -277,13 +314,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; } - if (!getContent() - .equals(other.getContent())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,118 +342,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.InputConfig) com.google.cloud.vision.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.InputConfig.class, com.google.cloud.vision.v1.InputConfig.Builder.class); + com.google.cloud.vision.v1.InputConfig.class, + com.google.cloud.vision.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.InputConfig.newBuilder() @@ -427,16 +470,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_InputConfig_descriptor; } @java.lang.Override @@ -475,7 +517,8 @@ public com.google.cloud.vision.v1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.InputConfig buildPartial() { - com.google.cloud.vision.v1.InputConfig result = new com.google.cloud.vision.v1.InputConfig(this); + com.google.cloud.vision.v1.InputConfig result = + new com.google.cloud.vision.v1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -491,38 +534,39 @@ public com.google.cloud.vision.v1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1.InputConfig)other); + return mergeFrom((com.google.cloud.vision.v1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -572,34 +616,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1.GcsSource, + com.google.cloud.vision.v1.GcsSource.Builder, + com.google.cloud.vision.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.vision.v1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() + : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -620,14 +677,15 @@ public Builder setGcsSource(com.google.cloud.vision.v1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ - public Builder setGcsSource( - com.google.cloud.vision.v1.GcsSource.Builder builderForValue) { + public Builder setGcsSource(com.google.cloud.vision.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); onChanged(); @@ -638,6 +696,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -648,7 +708,9 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); } else { gcsSource_ = value; } @@ -660,6 +722,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -678,6 +742,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -685,11 +751,13 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -700,11 +768,14 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null ? - com.google.cloud.vision.v1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1.GcsSource.getDefaultInstance() + : gcsSource_; } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -712,14 +783,17 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { * .google.cloud.vision.v1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder> + com.google.cloud.vision.v1.GcsSource, + com.google.cloud.vision.v1.GcsSource.Builder, + com.google.cloud.vision.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsSource, com.google.cloud.vision.v1.GcsSource.Builder, com.google.cloud.vision.v1.GcsSourceOrBuilder>( - getGcsSource(), - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.GcsSource, + com.google.cloud.vision.v1.GcsSource.Builder, + com.google.cloud.vision.v1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -727,6 +801,8 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -736,6 +812,7 @@ public com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      * 
* * bytes content = 3; + * * @return The content. */ @java.lang.Override @@ -743,6 +820,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -752,19 +831,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 3; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -774,10 +856,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 3; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -785,19 +868,21 @@ public Builder clearContent() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -806,21 +891,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -828,64 +914,71 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.InputConfig) private static final com.google.cloud.vision.v1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.InputConfig(); } @@ -909,16 +1002,16 @@ public static com.google.cloud.vision.v1.InputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1026,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java index d3a2ff9c3..a18298479 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/InputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -35,6 +59,8 @@ public interface InputConfigOrBuilder extends com.google.cloud.vision.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -44,29 +70,35 @@ public interface InputConfigOrBuilder extends
    * 
* * bytes content = 3; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java index 27a3a58eb..793982c2f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRect.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LatLongRect} */ -public final class LatLongRect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LatLongRect) LatLongRectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLongRect() { - } + + private LatLongRect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private LatLongRect( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); + } + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LatLongRect.class, com.google.cloud.vision.v1.LatLongRect.Builder.class); + com.google.cloud.vision.v1.LatLongRect.class, + com.google.cloud.vision.v1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -127,11 +150,14 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ @java.lang.Override @@ -139,6 +165,8 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** + * + * *
    * Min lat/long pair.
    * 
@@ -153,11 +181,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -165,11 +196,14 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ @java.lang.Override @@ -177,6 +211,8 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** + * + * *
    * Max lat/long pair.
    * 
@@ -189,6 +225,7 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -218,12 +254,10 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,7 +267,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LatLongRect)) { return super.equals(obj); @@ -242,13 +276,11 @@ public boolean equals(final java.lang.Object obj) { if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng() - .equals(other.getMinLatLng())) return false; + if (!getMinLatLng().equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng() - .equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +306,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.LatLongRect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.LatLongRect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.LatLongRect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LatLongRect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LatLongRect) com.google.cloud.vision.v1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LatLongRect.class, com.google.cloud.vision.v1.LatLongRect.Builder.class); + com.google.cloud.vision.v1.LatLongRect.class, + com.google.cloud.vision.v1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1.LatLongRect.newBuilder() @@ -393,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LatLongRect_descriptor; } @java.lang.Override @@ -443,7 +483,8 @@ public com.google.cloud.vision.v1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1.LatLongRect buildPartial() { - com.google.cloud.vision.v1.LatLongRect result = new com.google.cloud.vision.v1.LatLongRect(this); + com.google.cloud.vision.v1.LatLongRect result = + new com.google.cloud.vision.v1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -462,38 +503,39 @@ public com.google.cloud.vision.v1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1.LatLongRect)other); + return mergeFrom((com.google.cloud.vision.v1.LatLongRect) other); } else { super.mergeFrom(other); return this; @@ -539,24 +581,31 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + minLatLngBuilder_; /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -567,6 +616,8 @@ public com.google.type.LatLng getMinLatLng() { } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -587,14 +638,15 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -605,6 +657,8 @@ public Builder setMinLatLng( return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -615,7 +669,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -627,6 +681,8 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -645,6 +701,8 @@ public Builder clearMinLatLng() { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -652,11 +710,13 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Min lat/long pair.
      * 
@@ -667,11 +727,12 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -679,14 +740,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMinLatLng(), - getParentForChildren(), - isClean()); + minLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -694,24 +755,31 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + maxLatLngBuilder_; /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -722,6 +790,8 @@ public com.google.type.LatLng getMaxLatLng() { } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -742,14 +812,15 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -760,6 +831,8 @@ public Builder setMaxLatLng( return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -770,7 +843,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -782,6 +855,8 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -800,6 +875,8 @@ public Builder clearMaxLatLng() { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -807,11 +884,13 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Max lat/long pair.
      * 
@@ -822,11 +901,12 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -834,21 +914,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMaxLatLng(), - getParentForChildren(), - isClean()); + maxLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LatLongRect) private static final com.google.cloud.vision.v1.LatLongRect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LatLongRect(); } @@ -872,16 +952,16 @@ public static com.google.cloud.vision.v1.LatLongRect getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +976,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java index 2ec9e67d4..ab3a09510 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LatLongRectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LatLongRectOrBuilder extends +public interface LatLongRectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
@@ -35,24 +59,32 @@ public interface LatLongRectOrBuilder extends com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java index 410f257d7..a1fc620ea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Likelihood.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1.Likelihood}
  */
-public enum Likelihood
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unknown likelihood.
    * 
@@ -22,6 +40,8 @@ public enum Likelihood */ UNKNOWN(0), /** + * + * *
    * It is very unlikely.
    * 
@@ -30,6 +50,8 @@ public enum Likelihood */ VERY_UNLIKELY(1), /** + * + * *
    * It is unlikely.
    * 
@@ -38,6 +60,8 @@ public enum Likelihood */ UNLIKELY(2), /** + * + * *
    * It is possible.
    * 
@@ -46,6 +70,8 @@ public enum Likelihood */ POSSIBLE(3), /** + * + * *
    * It is likely.
    * 
@@ -54,6 +80,8 @@ public enum Likelihood */ LIKELY(4), /** + * + * *
    * It is very likely.
    * 
@@ -65,6 +93,8 @@ public enum Likelihood ; /** + * + * *
    * Unknown likelihood.
    * 
@@ -73,6 +103,8 @@ public enum Likelihood */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
    * It is very unlikely.
    * 
@@ -81,6 +113,8 @@ public enum Likelihood */ public static final int VERY_UNLIKELY_VALUE = 1; /** + * + * *
    * It is unlikely.
    * 
@@ -89,6 +123,8 @@ public enum Likelihood */ public static final int UNLIKELY_VALUE = 2; /** + * + * *
    * It is possible.
    * 
@@ -97,6 +133,8 @@ public enum Likelihood */ public static final int POSSIBLE_VALUE = 3; /** + * + * *
    * It is likely.
    * 
@@ -105,6 +143,8 @@ public enum Likelihood */ public static final int LIKELY_VALUE = 4; /** + * + * *
    * It is very likely.
    * 
@@ -113,7 +153,6 @@ public enum Likelihood */ public static final int VERY_LIKELY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,52 +177,55 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return VERY_UNLIKELY; - case 2: return UNLIKELY; - case 3: return POSSIBLE; - case 4: return LIKELY; - case 5: return VERY_LIKELY; - default: return null; + case 0: + return UNKNOWN; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Likelihood> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -199,4 +241,3 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1.Likelihood) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java index 112401ca0..293a9bec3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsRequest.class, com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductSetsRequest.class, + com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,11 +184,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,11 +202,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -184,29 +218,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -250,8 +284,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -264,19 +297,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductSetsRequest other = (com.google.cloud.vision.v1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1.ListProductSetsRequest other = + (com.google.cloud.vision.v1.ListProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductSetsRequest) com.google.cloud.vision.v1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsRequest.class, com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductSetsRequest.class, + com.google.cloud.vision.v1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductSetsRequest.newBuilder() @@ -418,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -462,7 +501,8 @@ public com.google.cloud.vision.v1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1.ListProductSetsRequest result = new com.google.cloud.vision.v1.ListProductSetsRequest(this); + com.google.cloud.vision.v1.ListProductSetsRequest result = + new com.google.cloud.vision.v1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -474,38 +514,39 @@ public com.google.cloud.vision.v1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -544,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,19 +599,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -577,21 +624,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -599,69 +649,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -669,30 +735,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -700,18 +772,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -720,20 +794,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -741,61 +816,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductSetsRequest) private static final com.google.cloud.vision.v1.ListProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductSetsRequest(); } @@ -819,16 +901,16 @@ public static com.google.cloud.vision.v1.ListProductSetsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java index f4edd0a25..b4f766fe3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductSetsRequestOrBuilder extends +public interface ListProductSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java index 109fba304..a692574b2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productSets_.add( + input.readMessage( + com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry)); + break; } - productSets_.add( - input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -94,22 +113,27 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsResponse.class, com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductSetsResponse.class, + com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** + * + * *
    * List of ProductSets.
    * 
@@ -121,6 +145,8 @@ public java.util.List getProductSetsList( return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -128,11 +154,13 @@ public java.util.List getProductSetsList( * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -144,6 +172,8 @@ public int getProductSetsCount() { return productSets_.size(); } /** + * + * *
    * List of ProductSets.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** + * + * *
    * List of ProductSets.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductSetsResponse other = (com.google.cloud.vision.v1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1.ListProductSetsResponse other = + (com.google.cloud.vision.v1.ListProductSetsResponse) obj; - if (!getProductSetsList() - .equals(other.getProductSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductSetsList().equals(other.getProductSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductSetsResponse) com.google.cloud.vision.v1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductSetsResponse.class, com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductSetsResponse.class, + com.google.cloud.vision.v1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductSetsResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.vision.v1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1.ListProductSetsResponse result = new com.google.cloud.vision.v1.ListProductSetsResponse(this); + com.google.cloud.vision.v1.ListProductSetsResponse result = + new com.google.cloud.vision.v1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.vision.v1.ListProductSetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductSetsResponse)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductSetsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListProductSetsResponse.getDefaultInstance()) + return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductSetsResponse othe productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductSetsFieldBuilder() : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductSetsFieldBuilder() + : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +622,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productSets_ = new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetsBuilder_; + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> + productSetsBuilder_; /** + * + * *
      * List of ProductSets.
      * 
@@ -605,6 +658,8 @@ public java.util.List getProductSetsList( } } /** + * + * *
      * List of ProductSets.
      * 
@@ -619,6 +674,8 @@ public int getProductSetsCount() { } } /** + * + * *
      * List of ProductSets.
      * 
@@ -633,14 +690,15 @@ public com.google.cloud.vision.v1.ProductSet getProductSets(int index) { } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder setProductSets( - int index, com.google.cloud.vision.v1.ProductSet value) { + public Builder setProductSets(int index, com.google.cloud.vision.v1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +712,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -672,6 +732,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -692,14 +754,15 @@ public Builder addProductSets(com.google.cloud.vision.v1.ProductSet value) { return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder addProductSets( - int index, com.google.cloud.vision.v1.ProductSet value) { + public Builder addProductSets(int index, com.google.cloud.vision.v1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +776,15 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public Builder addProductSets( - com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder addProductSets(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); productSets_.add(builderForValue.build()); @@ -731,6 +795,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -749,6 +815,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -759,8 +827,7 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -768,6 +835,8 @@ public Builder addAllProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -785,6 +854,8 @@ public Builder clearProductSets() { return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -802,39 +873,44 @@ public Builder removeProductSets(int index) { return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSet.Builder getProductSetsBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSet.Builder getProductSetsBuilder(int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); } else { + return productSets_.get(index); + } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +918,8 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( } } /** + * + * *
      * List of ProductSets.
      * 
@@ -849,42 +927,48 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder( - int index) { - return getProductSetsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder(int index) { + return getProductSetsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( - productSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder>( + productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); productSets_ = null; } return productSetsBuilder_; @@ -892,19 +976,21 @@ public com.google.cloud.vision.v1.ProductSet.Builder addProductSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +999,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1022,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductSetsResponse) private static final com.google.cloud.vision.v1.ListProductSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductSetsResponse(); } @@ -1016,16 +1110,16 @@ public static com.google.cloud.vision.v1.ListProductSetsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1134,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java index 3b90ee5b0..cc555bb04 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductSetsResponseOrBuilder extends +public interface ListProductSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - java.util.List - getProductSetsList(); + java.util.List getProductSetsList(); /** + * + * *
    * List of ProductSets.
    * 
@@ -25,6 +44,8 @@ public interface ListProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1.ProductSet getProductSets(int index); /** + * + * *
    * List of ProductSets.
    * 
@@ -33,43 +54,51 @@ public interface ListProductSetsResponseOrBuilder extends */ int getProductSetsCount(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java index 30ed9b8d7..0fb24b3eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +105,43 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -123,31 +150,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -158,11 +187,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +205,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +221,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -252,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1.ListProductsInProductSetRequest other = + (com.google.cloud.vision.v1.ListProductsInProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,117 +334,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsInProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsInProductSetRequest) com.google.cloud.vision.v1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1.ListProductsInProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsInProductSetRequest.newBuilder() @@ -420,16 +462,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override @@ -464,7 +505,8 @@ public com.google.cloud.vision.v1.ListProductsInProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1.ListProductsInProductSetRequest result = + new com.google.cloud.vision.v1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +518,39 @@ public com.google.cloud.vision.v1.ListProductsInProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -515,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetRequest other) { - if (other == com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListProductsInProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -546,7 +590,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +603,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,22 +629,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -603,72 +655,88 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +744,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +781,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +803,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +825,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsInProductSetRequest) private static final com.google.cloud.vision.v1.ListProductsInProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsInProductSetRequest(); } @@ -826,16 +910,16 @@ public static com.google.cloud.vision.v1.ListProductsInProductSetRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +934,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.vision.v1.ListProductsInProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java index ce0af1091..a191e586a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsInProductSetRequestOrBuilder extends +public interface ListProductsInProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java index c334154d9..d9590e972 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,31 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +114,27 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * The list of Products.
    * 
@@ -121,6 +146,8 @@ public java.util.List getProductsList() { return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -128,11 +155,13 @@ public java.util.List getProductsList() { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -144,6 +173,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * The list of Products.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * The list of Products.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1.ListProductsInProductSetResponse other = + (com.google.cloud.vision.v1.ListProductsInProductSetResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsInProductSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsInProductSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsInProductSetResponse) com.google.cloud.vision.v1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1.ListProductsInProductSetResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsInProductSetResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1.ListProductsInProductSetResponse result = + new com.google.cloud.vision.v1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsInProductSetResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetResponse)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsInProductSetResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetResponse other) { - if (other == com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListProductsInProductSetResponse.getDefaultInstance()) + return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsInProductSetResp productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * The list of Products.
      * 
@@ -605,6 +660,8 @@ public java.util.List getProductsList() { } } /** + * + * *
      * The list of Products.
      * 
@@ -619,6 +676,8 @@ public int getProductsCount() { } } /** + * + * *
      * The list of Products.
      * 
@@ -633,14 +692,15 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +714,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -672,6 +734,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -692,14 +756,15 @@ public Builder addProducts(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +778,15 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +797,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -749,6 +817,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -759,8 +829,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +837,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -785,6 +856,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * The list of Products.
      * 
@@ -802,39 +875,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +920,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * The list of Products.
      * 
@@ -849,42 +929,47 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1.Product products = 1; */ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +977,21 @@ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1000,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1023,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsInProductSetResponse) private static final com.google.cloud.vision.v1.ListProductsInProductSetResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsInProductSetResponse(); } @@ -1016,16 +1111,16 @@ public static com.google.cloud.vision.v1.ListProductsInProductSetResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1135,4 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.vision.v1.ListProductsInProductSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java index ca45fbda5..027dccf1f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsInProductSetResponseOrBuilder extends +public interface ListProductsInProductSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * The list of Products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ com.google.cloud.vision.v1.Product getProducts(int index); /** + * + * *
    * The list of Products.
    * 
@@ -33,43 +54,50 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List - getProductsOrBuilderList(); + java.util.List getProductsOrBuilderList(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java index 9786c2fa4..eef868fad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsRequest} */ -public final class ListProductsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsRequest) ListProductsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsRequest.class, com.google.cloud.vision.v1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsRequest.class, + com.google.cloud.vision.v1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +204,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +220,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +251,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -252,8 +286,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsRequest other = (com.google.cloud.vision.v1.ListProductsRequest) obj; + com.google.cloud.vision.v1.ListProductsRequest other = + (com.google.cloud.vision.v1.ListProductsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,118 +332,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsRequest) com.google.cloud.vision.v1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsRequest.class, com.google.cloud.vision.v1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1.ListProductsRequest.class, + com.google.cloud.vision.v1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsRequest.newBuilder() @@ -420,16 +460,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; } @java.lang.Override @@ -464,7 +503,8 @@ public com.google.cloud.vision.v1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1.ListProductsRequest result = new com.google.cloud.vision.v1.ListProductsRequest(this); + com.google.cloud.vision.v1.ListProductsRequest result = + new com.google.cloud.vision.v1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +516,39 @@ public com.google.cloud.vision.v1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsRequest)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsRequest) other); } else { super.mergeFrom(other); return this; @@ -558,20 +599,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -580,22 +625,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -603,72 +651,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +740,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +777,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +799,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +821,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsRequest) private static final com.google.cloud.vision.v1.ListProductsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsRequest(); } @@ -826,16 +906,16 @@ public static com.google.cloud.vision.v1.ListProductsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java index 92a3172ac..68a2b1d49 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsRequestOrBuilder extends +public interface ListProductsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java index 7afa9a3ed..3229ab50e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsResponse} */ -public final class ListProductsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListProductsResponse) ListProductsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListProductsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +113,27 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsResponse.class, com.google.cloud.vision.v1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsResponse.class, + com.google.cloud.vision.v1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * List of products.
    * 
@@ -121,6 +145,8 @@ public java.util.List getProductsList() { return products_; } /** + * + * *
    * List of products.
    * 
@@ -128,11 +154,13 @@ public java.util.List getProductsList() { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * List of products.
    * 
@@ -144,6 +172,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * List of products.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * List of products.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { * repeated .google.cloud.vision.v1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListProductsResponse other = (com.google.cloud.vision.v1.ListProductsResponse) obj; + com.google.cloud.vision.v1.ListProductsResponse other = + (com.google.cloud.vision.v1.ListProductsResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +324,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListProductsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListProductsResponse) com.google.cloud.vision.v1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListProductsResponse.class, com.google.cloud.vision.v1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1.ListProductsResponse.class, + com.google.cloud.vision.v1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListProductsResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.vision.v1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1.ListProductsResponse result = new com.google.cloud.vision.v1.ListProductsResponse(this); + com.google.cloud.vision.v1.ListProductsResponse result = + new com.google.cloud.vision.v1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.vision.v1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListProductsResponse)other); + return mergeFrom((com.google.cloud.vision.v1.ListProductsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListProductsResponse.getDefaultInstance()) + return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListProductsResponse other) productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -576,21 +621,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * List of products.
      * 
@@ -605,6 +657,8 @@ public java.util.List getProductsList() { } } /** + * + * *
      * List of products.
      * 
@@ -619,6 +673,8 @@ public int getProductsCount() { } } /** + * + * *
      * List of products.
      * 
@@ -633,14 +689,15 @@ public com.google.cloud.vision.v1.Product getProducts(int index) { } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +711,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -672,6 +731,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -692,14 +753,15 @@ public Builder addProducts(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +775,15 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +794,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -749,6 +814,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -759,8 +826,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +834,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -785,6 +853,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * List of products.
      * 
@@ -802,39 +872,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +917,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * List of products.
      * 
@@ -849,42 +926,47 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1.Product products = 1; */ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +974,21 @@ public com.google.cloud.vision.v1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +997,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1020,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListProductsResponse) private static final com.google.cloud.vision.v1.ListProductsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListProductsResponse(); } @@ -1016,16 +1108,16 @@ public static com.google.cloud.vision.v1.ListProductsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java index 74ad193bc..967b15809 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListProductsResponseOrBuilder extends +public interface ListProductsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * List of products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsResponseOrBuilder extends */ com.google.cloud.vision.v1.Product getProducts(int index); /** + * + * *
    * List of products.
    * 
@@ -33,43 +54,50 @@ public interface ListProductsResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - java.util.List - getProductsOrBuilderList(); + java.util.List getProductsOrBuilderList(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1.Product products = 1; */ - com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java index dafe7e985..99606b754 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +204,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -180,6 +213,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -188,14 +222,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -203,16 +238,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -256,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1.ListReferenceImagesRequest other = + (com.google.cloud.vision.v1.ListReferenceImagesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +337,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListReferenceImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListReferenceImagesRequest) com.google.cloud.vision.v1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.ListReferenceImagesRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; } @java.lang.Override @@ -468,7 +508,8 @@ public com.google.cloud.vision.v1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1.ListReferenceImagesRequest result = + new com.google.cloud.vision.v1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -480,38 +521,39 @@ public com.google.cloud.vision.v1.ListReferenceImagesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesRequest other) { - if (other == com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListReferenceImagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +593,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,20 +606,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -584,22 +632,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -607,72 +658,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -680,30 +747,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -711,6 +784,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -718,13 +793,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -733,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -740,15 +817,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -756,6 +832,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -763,20 +841,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -784,15 +864,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -800,23 +883,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListReferenceImagesRequest) private static final com.google.cloud.vision.v1.ListReferenceImagesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListReferenceImagesRequest(); } @@ -840,16 +923,16 @@ public static com.google.cloud.vision.v1.ListReferenceImagesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java index ab5516738..beedb5c07 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListReferenceImagesRequestOrBuilder extends +public interface ListReferenceImagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -49,10 +79,13 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -60,8 +93,8 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java index 461df1425..04bee783c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,37 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + referenceImages_.add( + input.readMessage( + com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry)); + break; } - referenceImages_.add( - input.readMessage(com.google.cloud.vision.v1.ReferenceImage.parser(), extensionRegistry)); - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +110,7 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -99,22 +119,27 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** + * + * *
    * The list of reference images.
    * 
@@ -126,6 +151,8 @@ public java.util.List getReferenceIma return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -133,11 +160,13 @@ public java.util.List getReferenceIma * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -149,6 +178,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference images.
    * 
@@ -160,6 +191,8 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { return referenceImages_.get(index); } /** + * + * *
    * The list of reference images.
    * 
@@ -167,19 +200,21 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index) { return referenceImages_.get(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,11 +225,14 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -203,29 +241,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,6 +272,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +284,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -266,12 +304,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -284,19 +320,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1.ListReferenceImagesResponse other = + (com.google.cloud.vision.v1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList() - .equals(other.getReferenceImagesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,117 +356,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ListReferenceImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ListReferenceImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ListReferenceImagesResponse) com.google.cloud.vision.v1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1.ListReferenceImagesResponse.newBuilder() @@ -440,17 +484,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; } @java.lang.Override @@ -489,7 +533,8 @@ public com.google.cloud.vision.v1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1.ListReferenceImagesResponse result = + new com.google.cloud.vision.v1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -510,38 +555,39 @@ public com.google.cloud.vision.v1.ListReferenceImagesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1.ListReferenceImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -549,7 +595,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesResponse other) { - if (other == com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ListReferenceImagesResponse.getDefaultInstance()) + return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -568,9 +615,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ListReferenceImagesResponse referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReferenceImagesFieldBuilder() : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReferenceImagesFieldBuilder() + : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -602,7 +650,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ListReferenceImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ListReferenceImagesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,21 +660,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(referenceImages_); + referenceImages_ = + new java.util.ArrayList(referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> referenceImagesBuilder_; + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder> + referenceImagesBuilder_; /** + * + * *
      * The list of reference images.
      * 
@@ -640,6 +697,8 @@ public java.util.List getReferenceIma } } /** + * + * *
      * The list of reference images.
      * 
@@ -654,6 +713,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference images.
      * 
@@ -668,14 +729,15 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index) { } } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder setReferenceImages( - int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder setReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,6 +751,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -707,6 +771,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -727,14 +793,15 @@ public Builder addReferenceImages(com.google.cloud.vision.v1.ReferenceImage valu return this; } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public Builder addReferenceImages( - int index, com.google.cloud.vision.v1.ReferenceImage value) { + public Builder addReferenceImages(int index, com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -748,6 +815,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -766,6 +835,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -784,6 +855,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -794,8 +867,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -803,6 +875,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -820,6 +894,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -837,17 +913,20 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder( - int index) { + public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuilder(int index) { return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference images.
      * 
@@ -857,19 +936,22 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImagesBuild public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -877,6 +959,8 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu } } /** + * + * *
      * The list of reference images.
      * 
@@ -884,38 +968,47 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBu * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder( - int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); + public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuilder(int index) { + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ReferenceImage, com.google.cloud.vision.v1.ReferenceImage.Builder, com.google.cloud.vision.v1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ReferenceImage, + com.google.cloud.vision.v1.ReferenceImage.Builder, + com.google.cloud.vision.v1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -925,13 +1018,16 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder addReferenceImagesBuild return referenceImagesBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -939,30 +1035,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -970,18 +1072,20 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -990,20 +1094,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1011,61 +1116,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +1187,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ListReferenceImagesResponse) private static final com.google.cloud.vision.v1.ListReferenceImagesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ListReferenceImagesResponse(); } @@ -1089,16 +1201,16 @@ public static com.google.cloud.vision.v1.ListReferenceImagesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,6 +1225,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java index 12ca5efbf..7f0c65a1a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ListReferenceImagesResponseOrBuilder extends +public interface ListReferenceImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference images.
    * 
@@ -25,6 +44,8 @@ public interface ListReferenceImagesResponseOrBuilder extends */ com.google.cloud.vision.v1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference images.
    * 
@@ -33,51 +54,62 @@ public interface ListReferenceImagesResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java index 98b863d75..1dc02b1ef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -27,16 +45,15 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,49 +72,55 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 42: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + name_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } + case 42: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +128,39 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -141,29 +169,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -174,6 +202,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -181,6 +211,7 @@ public java.lang.String getMid() {
    * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -189,14 +220,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -204,16 +236,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -224,11 +255,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -237,29 +271,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -270,11 +304,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -285,11 +322,14 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -297,18 +337,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -321,6 +368,7 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +380,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -368,12 +415,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,26 +428,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1.LocalizedObjectAnnotation other = + (com.google.cloud.vision.v1.LocalizedObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -422,8 +463,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -434,117 +474,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LocalizedObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LocalizedObjectAnnotation) com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1.LocalizedObjectAnnotation.newBuilder() @@ -552,16 +601,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -604,7 +652,8 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1.LocalizedObjectAnnotation result = + new com.google.cloud.vision.v1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -622,38 +671,39 @@ public com.google.cloud.vision.v1.LocalizedObjectAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.LocalizedObjectAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1.LocalizedObjectAnnotation) other); } else { super.mergeFrom(other); return this; @@ -661,7 +711,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.LocalizedObjectAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -699,7 +750,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,18 +763,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -731,20 +785,21 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -752,54 +807,61 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -807,6 +869,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -814,13 +878,13 @@ public Builder setMidBytes(
      * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -829,6 +893,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -836,15 +902,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -852,6 +917,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -859,20 +926,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -880,15 +949,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -896,16 +968,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -913,18 +985,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -933,20 +1007,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -954,66 +1029,76 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1021,30 +1106,36 @@ public float getScore() { return score_; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1052,34 +1143,47 @@ public Builder clearScore() { private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1100,6 +1204,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1118,6 +1224,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1128,7 +1236,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -1140,6 +1250,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1158,6 +1270,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1165,11 +1279,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1180,11 +1296,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1192,21 +1311,24 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1.LocalizedObjectAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LocalizedObjectAnnotation(); } @@ -1230,16 +1352,16 @@ public static com.google.cloud.vision.v1.LocalizedObjectAnnotation getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java index b01ff6e37..c77966c76 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocalizedObjectAnnotationOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LocalizedObjectAnnotationOrBuilder extends +public interface LocalizedObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -35,10 +58,13 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -46,60 +72,76 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java index fd5f727d6..91238b4dd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfo.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1.LocationInfo} */ -public final class LocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.LocationInfo) LocationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationInfo() { - } + + private LocationInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,27 @@ private LocationInfo( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +96,39 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocationInfo.class, com.google.cloud.vision.v1.LocationInfo.Builder.class); + com.google.cloud.vision.v1.LocationInfo.class, + com.google.cloud.vision.v1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -114,11 +136,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -126,6 +151,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * lat/long location coordinates.
    * 
@@ -138,6 +165,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -164,8 +191,7 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,7 +201,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.LocationInfo)) { return super.equals(obj); @@ -184,8 +210,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.LocationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.LocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1.LocationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.LocationInfo) com.google.cloud.vision.v1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.LocationInfo.class, com.google.cloud.vision.v1.LocationInfo.Builder.class); + com.google.cloud.vision.v1.LocationInfo.class, + com.google.cloud.vision.v1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1.LocationInfo.newBuilder() @@ -326,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_LocationInfo_descriptor; } @java.lang.Override @@ -370,7 +403,8 @@ public com.google.cloud.vision.v1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1.LocationInfo buildPartial() { - com.google.cloud.vision.v1.LocationInfo result = new com.google.cloud.vision.v1.LocationInfo(this); + com.google.cloud.vision.v1.LocationInfo result = + new com.google.cloud.vision.v1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -384,38 +418,39 @@ public com.google.cloud.vision.v1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1.LocationInfo)other); + return mergeFrom((com.google.cloud.vision.v1.LocationInfo) other); } else { super.mergeFrom(other); return this; @@ -458,24 +493,31 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -486,6 +528,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -506,14 +550,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -524,6 +569,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -533,8 +580,7 @@ public Builder setLatLng( public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = - com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -546,6 +592,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -564,6 +612,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -571,11 +621,13 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -586,11 +638,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -598,21 +651,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.LocationInfo) private static final com.google.cloud.vision.v1.LocationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.LocationInfo(); } @@ -636,16 +689,16 @@ public static com.google.cloud.vision.v1.LocationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +713,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java index 1bb6cce34..b4a1444ea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface LocationInfoOrBuilder extends +public interface LocationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java index 8d8fc876e..43daa233e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,23 +70,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,34 +94,39 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.NormalizedVertex.class, com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1.NormalizedVertex.class,
+            com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1.NormalizedVertex other = (com.google.cloud.vision.v1.NormalizedVertex) obj; + com.google.cloud.vision.v1.NormalizedVertex other = + (com.google.cloud.vision.v1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -307,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.NormalizedVertex)
       com.google.cloud.vision.v1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.NormalizedVertex.class, com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1.NormalizedVertex.class,
+              com.google.cloud.vision.v1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.NormalizedVertex.newBuilder()
@@ -329,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -371,7 +398,8 @@ public com.google.cloud.vision.v1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1.NormalizedVertex result = new com.google.cloud.vision.v1.NormalizedVertex(this);
+      com.google.cloud.vision.v1.NormalizedVertex result =
+          new com.google.cloud.vision.v1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -382,38 +410,39 @@ public com.google.cloud.vision.v1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.vision.v1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -457,13 +486,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -471,42 +503,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -514,37 +555,43 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -554,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.NormalizedVertex) private static final com.google.cloud.vision.v1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.NormalizedVertex(); } @@ -568,16 +615,16 @@ public static com.google.cloud.vision.v1.NormalizedVertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..46239e1db --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java index 77182322e..8593514f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,50 @@ private OperationMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + state_ = rawValue; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +121,41 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OperationMetadata.class, com.google.cloud.vision.v1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1.OperationMetadata.class, + com.google.cloud.vision.v1.OperationMetadata.Builder.class); } /** + * + * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1.OperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -137,6 +164,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is received.
      * 
@@ -145,6 +174,8 @@ public enum State */ CREATED(1), /** + * + * *
      * Request is actively being processed.
      * 
@@ -153,6 +184,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The batch processing is done.
      * 
@@ -161,6 +194,8 @@ public enum State */ DONE(3), /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -172,6 +207,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -180,6 +217,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is received.
      * 
@@ -188,6 +227,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * Request is actively being processed.
      * 
@@ -196,6 +237,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The batch processing is done.
      * 
@@ -204,6 +247,8 @@ public enum State */ public static final int DONE_VALUE = 3; /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -212,7 +257,6 @@ public enum State */ public static final int CANCELLED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -237,51 +281,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATED; - case 2: return RUNNING; - case 3: return DONE; - case 4: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1.OperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -301,38 +347,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.OperationMetadata.State result = com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1.OperationMetadata.State result = + com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -340,11 +400,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -352,6 +415,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the batch request was received.
    * 
@@ -366,11 +431,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -378,11 +446,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -390,6 +461,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the operation result was last updated.
    * 
@@ -402,6 +475,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,9 +487,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -433,17 +507,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.vision.v1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,23 +525,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1.OperationMetadata other = (com.google.cloud.vision.v1.OperationMetadata) obj; + com.google.cloud.vision.v1.OperationMetadata other = + (com.google.cloud.vision.v1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -497,118 +568,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.OperationMetadata) com.google.cloud.vision.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OperationMetadata.class, com.google.cloud.vision.v1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1.OperationMetadata.class, + com.google.cloud.vision.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1.OperationMetadata.newBuilder() @@ -616,16 +696,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,9 +726,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -668,7 +747,8 @@ public com.google.cloud.vision.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1.OperationMetadata result = new com.google.cloud.vision.v1.OperationMetadata(this); + com.google.cloud.vision.v1.OperationMetadata result = + new com.google.cloud.vision.v1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -688,38 +768,39 @@ public com.google.cloud.vision.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.vision.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -768,51 +849,67 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.OperationMetadata.State result = com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1.OperationMetadata.State result = + com.google.cloud.vision.v1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1.OperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -820,21 +917,24 @@ public Builder setState(com.google.cloud.vision.v1.OperationMetadata.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -842,34 +942,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -890,14 +1003,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -908,6 +1022,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -918,7 +1034,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -930,6 +1046,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -948,6 +1066,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -955,11 +1075,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -970,11 +1092,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -982,14 +1107,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -997,34 +1125,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1045,14 +1186,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1063,6 +1205,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1073,7 +1217,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1085,6 +1229,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1103,6 +1249,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1110,11 +1258,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1125,11 +1275,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1137,21 +1290,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1161,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OperationMetadata) private static final com.google.cloud.vision.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.OperationMetadata(); } @@ -1175,16 +1331,16 @@ public static com.google.cloud.vision.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,6 +1355,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java index 4073376e7..a794cd5b2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OperationMetadataOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1.OperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1.OperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
@@ -54,24 +84,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java index b3c1c9b95..bd3eb54c6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.vision.v1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); + } + + break; } - gcsDestination_ = input.readMessage(com.google.cloud.vision.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); + case 16: + { + batchSize_ = input.readInt32(); + break; } - - break; - } - case 16: { - - batchSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,34 +103,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OutputConfig.class, com.google.cloud.vision.v1.OutputConfig.Builder.class); + com.google.cloud.vision.v1.OutputConfig.class, + com.google.cloud.vision.v1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.GcsDestination gcsDestination_; /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -119,18 +143,25 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1.GcsDestination getGcsDestination() { - return gcsDestination_ == null ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() + : gcsDestination_; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -145,6 +176,8 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -158,6 +191,7 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -166,6 +200,7 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -195,12 +229,10 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,7 +242,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.OutputConfig)) { return super.equals(obj); @@ -219,11 +251,9 @@ public boolean equals(final java.lang.Object obj) { if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; } - if (getBatchSize() - != other.getBatchSize()) return false; + if (getBatchSize() != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,118 +276,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.OutputConfig) com.google.cloud.vision.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.OutputConfig.class, com.google.cloud.vision.v1.OutputConfig.Builder.class); + com.google.cloud.vision.v1.OutputConfig.class, + com.google.cloud.vision.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.OutputConfig.newBuilder() @@ -365,16 +404,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_OutputConfig_descriptor; } @java.lang.Override @@ -411,7 +449,8 @@ public com.google.cloud.vision.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1.OutputConfig buildPartial() { - com.google.cloud.vision.v1.OutputConfig result = new com.google.cloud.vision.v1.OutputConfig(this); + com.google.cloud.vision.v1.OutputConfig result = + new com.google.cloud.vision.v1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -426,38 +465,39 @@ public com.google.cloud.vision.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1.OutputConfig)other); + return mergeFrom((com.google.cloud.vision.v1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -503,34 +543,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.vision.v1.GcsDestination, + com.google.cloud.vision.v1.GcsDestination.Builder, + com.google.cloud.vision.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ public com.google.cloud.vision.v1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() + : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -551,6 +604,8 @@ public Builder setGcsDestination(com.google.cloud.vision.v1.GcsDestination value return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -569,6 +624,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -579,7 +636,9 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1.GcsDestination val if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); } else { gcsDestination_ = value; } @@ -591,6 +650,8 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1.GcsDestination val return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -609,6 +670,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -616,11 +679,13 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -631,11 +696,14 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null ? - com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1.GcsDestination.getDefaultInstance() + : gcsDestination_; } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -643,21 +711,26 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1.GcsDestination, + com.google.cloud.vision.v1.GcsDestination.Builder, + com.google.cloud.vision.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.GcsDestination, com.google.cloud.vision.v1.GcsDestination.Builder, com.google.cloud.vision.v1.GcsDestinationOrBuilder>( - getGcsDestination(), - getParentForChildren(), - isClean()); + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.GcsDestination, + com.google.cloud.vision.v1.GcsDestination.Builder, + com.google.cloud.vision.v1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_ ; + private int batchSize_; /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -671,6 +744,7 @@ public com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
      * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -678,6 +752,8 @@ public int getBatchSize() { return batchSize_; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -691,16 +767,19 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; + * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -714,17 +793,18 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; + * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OutputConfig) private static final com.google.cloud.vision.v1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.OutputConfig(); } @@ -748,16 +828,16 @@ public static com.google.cloud.vision.v1.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java index 1a8816b0f..484902802 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.vision.v1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -35,6 +59,8 @@ public interface OutputConfigOrBuilder extends com.google.cloud.vision.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -48,6 +74,7 @@ public interface OutputConfigOrBuilder extends
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ int getBatchSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java index 5df0266c8..63ec56ae8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Page.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** + * + * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Page} */ -public final class Page extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Page extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Page) PageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,50 +71,55 @@ private Page( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 16: + { + width_ = input.readInt32(); + break; } - - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 24: + { + height_ = input.readInt32(); + break; } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1.Block.parser(), extensionRegistry)); - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blocks_.add( + input.readMessage(com.google.cloud.vision.v1.Block.parser(), extensionRegistry)); + break; + } + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +127,7 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -115,15 +136,17 @@ private Page( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Page.class, com.google.cloud.vision.v1.Page.Builder.class); } @@ -131,11 +154,14 @@ private Page( public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -143,18 +169,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected on the page.
    * 
@@ -169,12 +202,15 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -185,12 +221,15 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -201,6 +240,8 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -212,6 +253,8 @@ public java.util.List getBlocksList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -219,11 +262,13 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -235,6 +280,8 @@ public int getBlocksCount() { return blocks_.size(); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -246,6 +293,8 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { return blocks_.get(index); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -253,19 +302,21 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -274,6 +325,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -312,24 +363,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,7 +385,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Page)) { return super.equals(obj); @@ -348,18 +394,13 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!getBlocksList() - .equals(other.getBlocksList())) return false; + if (!getProperty().equals(other.getProperty())) return false; + } + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getBlocksList().equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,123 +425,129 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Page parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Page parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Page parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Page parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Page parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Page parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Page parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Page parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Page} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Page) com.google.cloud.vision.v1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Page.class, com.google.cloud.vision.v1.Page.Builder.class); } @@ -510,17 +557,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Page_descriptor; } @java.lang.Override @@ -594,38 +641,39 @@ public com.google.cloud.vision.v1.Page buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Page) { - return mergeFrom((com.google.cloud.vision.v1.Page)other); + return mergeFrom((com.google.cloud.vision.v1.Page) other); } else { super.mergeFrom(other); return this; @@ -661,9 +709,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlocksFieldBuilder() : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlocksFieldBuilder() + : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -700,38 +749,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -752,6 +815,8 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -770,6 +835,8 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -780,7 +847,9 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -792,6 +861,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -810,6 +881,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -817,11 +890,13 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -832,11 +907,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -844,27 +922,33 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } - private int width_ ; + private int width_; /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -872,45 +956,54 @@ public int getWidth() { return width_; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -918,50 +1011,62 @@ public int getHeight() { return height_; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder> blocksBuilder_; + com.google.cloud.vision.v1.Block, + com.google.cloud.vision.v1.Block.Builder, + com.google.cloud.vision.v1.BlockOrBuilder> + blocksBuilder_; /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -976,6 +1081,8 @@ public java.util.List getBlocksList() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -990,6 +1097,8 @@ public int getBlocksCount() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1004,14 +1113,15 @@ public com.google.cloud.vision.v1.Block getBlocks(int index) { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1.Block value) { + public Builder setBlocks(int index, com.google.cloud.vision.v1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1025,14 +1135,15 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder setBlocks(int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); @@ -1043,6 +1154,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1063,14 +1176,15 @@ public Builder addBlocks(com.google.cloud.vision.v1.Block value) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1.Block value) { + public Builder addBlocks(int index, com.google.cloud.vision.v1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1084,14 +1198,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks( - com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder addBlocks(com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1102,14 +1217,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { + public Builder addBlocks(int index, com.google.cloud.vision.v1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); @@ -1120,6 +1236,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1130,8 +1248,7 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1139,6 +1256,8 @@ public Builder addAllBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1156,6 +1275,8 @@ public Builder clearBlocks() { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1173,39 +1294,44 @@ public Builder removeBlocks(int index) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.Block.Builder getBlocksBuilder( - int index) { + public com.google.cloud.vision.v1.Block.Builder getBlocksBuilder(int index) { return getBlocksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); } else { + return blocks_.get(index); + } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1213,6 +1339,8 @@ public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1220,54 +1348,62 @@ public com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( * repeated .google.cloud.vision.v1.Block blocks = 4; */ public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Block.getDefaultInstance()); + return getBlocksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder( - int index) { - return getBlocksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1.Block.Builder addBlocksBuilder(int index) { + return getBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - public java.util.List - getBlocksBuilderList() { + public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder> + com.google.cloud.vision.v1.Block, + com.google.cloud.vision.v1.Block.Builder, + com.google.cloud.vision.v1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Block, com.google.cloud.vision.v1.Block.Builder, com.google.cloud.vision.v1.BlockOrBuilder>( - blocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Block, + com.google.cloud.vision.v1.Block.Builder, + com.google.cloud.vision.v1.BlockOrBuilder>( + blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1275,37 +1411,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1457,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Page) private static final com.google.cloud.vision.v1.Page DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Page(); } @@ -1329,16 +1471,16 @@ public static com.google.cloud.vision.v1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,6 +1495,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java index a14f99dda..2eda18313 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PageOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface PageOrBuilder extends +public interface PageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Page) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
@@ -35,37 +59,46 @@ public interface PageOrBuilder extends com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ int getWidth(); /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ int getHeight(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - java.util.List - getBlocksList(); + java.util.List getBlocksList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -74,6 +107,8 @@ public interface PageOrBuilder extends */ com.google.cloud.vision.v1.Block getBlocks(int index); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -82,30 +117,35 @@ public interface PageOrBuilder extends */ int getBlocksCount(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - java.util.List - getBlocksOrBuilderList(); + java.util.List getBlocksOrBuilderList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1.Block blocks = 4; */ - com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder( - int index); + com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java index 337437eba..d974ae34f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Paragraph.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** + * + * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Paragraph} */ -public final class Paragraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Paragraph) ParagraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,61 @@ private Paragraph( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage(com.google.cloud.vision.v1.Word.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - words_.add( - input.readMessage(com.google.cloud.vision.v1.Word.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +133,7 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +142,33 @@ private Paragraph( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Paragraph.class, com.google.cloud.vision.v1.Paragraph.Builder.class); + com.google.cloud.vision.v1.Paragraph.class, + com.google.cloud.vision.v1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +176,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -172,6 +209,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +230,7 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +238,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +259,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +299,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
+   *
+   *
    * 
    * List of all words in this paragraph.
    * 
@@ -263,6 +312,8 @@ public java.util.List getWordsList() { return words_; } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -270,11 +321,13 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -286,6 +339,8 @@ public int getWordsCount() { return words_.size(); } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -297,6 +352,8 @@ public com.google.cloud.vision.v1.Word getWords(int index) { return words_.get(index); } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -304,19 +361,21 @@ public com.google.cloud.vision.v1.Word getWords(int index) { * repeated .google.cloud.vision.v1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -325,6 +384,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -360,20 +419,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,7 +438,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Paragraph)) { return super.equals(obj); @@ -392,19 +447,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,125 +480,132 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Paragraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Paragraph parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Paragraph parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Paragraph parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Paragraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Paragraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Paragraph) com.google.cloud.vision.v1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Paragraph.class, com.google.cloud.vision.v1.Paragraph.Builder.class); + com.google.cloud.vision.v1.Paragraph.class, + com.google.cloud.vision.v1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1.Paragraph.newBuilder() @@ -555,17 +613,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +651,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Paragraph_descriptor; } @java.lang.Override @@ -644,38 +702,39 @@ public com.google.cloud.vision.v1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1.Paragraph)other); + return mergeFrom((com.google.cloud.vision.v1.Paragraph) other); } else { super.mergeFrom(other); return this; @@ -708,9 +767,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -747,38 +807,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -799,6 +873,8 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -817,6 +893,8 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -827,7 +905,9 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -839,6 +919,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -857,6 +939,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -864,11 +948,13 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -879,11 +965,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -891,14 +980,17 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -906,8 +998,13 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -927,12 +1024,15 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -952,16 +1052,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -996,6 +1101,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1016,8 +1123,7 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(
-        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1028,6 +1134,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,7 +1160,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1064,6 +1174,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1096,6 +1208,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1117,11 +1231,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1146,11 +1262,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1172,32 +1291,41 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder> wordsBuilder_;
+            com.google.cloud.vision.v1.Word,
+            com.google.cloud.vision.v1.Word.Builder,
+            com.google.cloud.vision.v1.WordOrBuilder>
+        wordsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of all words in this paragraph.
      * 
@@ -1212,6 +1340,8 @@ public java.util.List getWordsList() { } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1226,6 +1356,8 @@ public int getWordsCount() { } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1240,14 +1372,15 @@ public com.google.cloud.vision.v1.Word getWords(int index) { } } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1.Word value) { + public Builder setWords(int index, com.google.cloud.vision.v1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1261,14 +1394,15 @@ public Builder setWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder setWords(int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.set(index, builderForValue.build()); @@ -1279,6 +1413,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1299,14 +1435,15 @@ public Builder addWords(com.google.cloud.vision.v1.Word value) { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1.Word value) { + public Builder addWords(int index, com.google.cloud.vision.v1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1320,14 +1457,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords( - com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder addWords(com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1338,14 +1476,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { + public Builder addWords(int index, com.google.cloud.vision.v1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(index, builderForValue.build()); @@ -1356,6 +1495,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1366,8 +1507,7 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1375,6 +1515,8 @@ public Builder addAllWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1392,6 +1534,8 @@ public Builder clearWords() { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1409,39 +1553,44 @@ public Builder removeWords(int index) { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.Word.Builder getWordsBuilder( - int index) { + public com.google.cloud.vision.v1.Word.Builder getWordsBuilder(int index) { return getWordsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index) { if (wordsBuilder_ == null) { - return words_.get(index); } else { + return words_.get(index); + } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,6 +1598,8 @@ public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1456,54 +1607,62 @@ public com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( * repeated .google.cloud.vision.v1.Word words = 3; */ public com.google.cloud.vision.v1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Word.getDefaultInstance()); + return getWordsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Word.getDefaultInstance()); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public com.google.cloud.vision.v1.Word.Builder addWordsBuilder( - int index) { - return getWordsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1.Word.Builder addWordsBuilder(int index) { + return getWordsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Word.getDefaultInstance()); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - public java.util.List - getWordsBuilderList() { + public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder> + com.google.cloud.vision.v1.Word, + com.google.cloud.vision.v1.Word.Builder, + com.google.cloud.vision.v1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Word, com.google.cloud.vision.v1.Word.Builder, com.google.cloud.vision.v1.WordOrBuilder>( - words_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + wordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Word, + com.google.cloud.vision.v1.Word.Builder, + com.google.cloud.vision.v1.WordOrBuilder>( + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1511,37 +1670,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1551,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Paragraph) private static final com.google.cloud.vision.v1.Paragraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Paragraph(); } @@ -1565,16 +1730,16 @@ public static com.google.cloud.vision.v1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1754,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java index 13c5555fb..e6285fba0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface ParagraphOrBuilder extends +public interface ParagraphOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Paragraph) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -35,6 +59,8 @@ public interface ParagraphOrBuilder extends com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface ParagraphOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -121,6 +156,8 @@ public interface ParagraphOrBuilder extends */ com.google.cloud.vision.v1.Word getWords(int index); /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -129,30 +166,35 @@ public interface ParagraphOrBuilder extends */ int getWordsCount(); /** + * + * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - java.util.List - getWordsOrBuilderList(); + java.util.List getWordsOrBuilderList(); /** + * + * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1.Word words = 3; */ - com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder( - int index); + com.google.cloud.vision.v1.WordOrBuilder getWordsOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java index 49bd8fe64..af1e4814f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Position.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/geometry.proto package com.google.cloud.vision.v1; /** + * + * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Position}
  */
-public final class Position extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Position extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Position)
     PositionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Position() {
-  }
+
+  private Position() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,28 +70,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            z_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          case 29:
+            {
+              z_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +99,39 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Position.class, com.google.cloud.vision.v1.Position.Builder.class);
+            com.google.cloud.vision.v1.Position.class,
+            com.google.cloud.vision.v1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -121,11 +142,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -136,11 +160,14 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -149,6 +176,7 @@ public float getZ() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -181,16 +208,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -200,22 +224,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Position)) { return super.equals(obj); } com.google.cloud.vision.v1.Position other = (com.google.cloud.vision.v1.Position) obj; - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,110 +249,113 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Position parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -340,21 +364,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.Position}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Position)
       com.google.cloud.vision.v1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Position.class, com.google.cloud.vision.v1.Position.Builder.class);
+              com.google.cloud.vision.v1.Position.class,
+              com.google.cloud.vision.v1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Position.newBuilder()
@@ -362,16 +388,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -418,38 +443,39 @@ public com.google.cloud.vision.v1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1.Position)other);
+        return mergeFrom((com.google.cloud.vision.v1.Position) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,13 +522,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -510,42 +539,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -553,42 +591,51 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_ ; + private float z_; /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -596,37 +643,43 @@ public float getZ() { return z_; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Position) private static final com.google.cloud.vision.v1.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Position(); } @@ -650,16 +703,16 @@ public static com.google.cloud.vision.v1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,6 +727,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java new file mode 100644 index 000000000..8b22966fb --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PositionOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface PositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Position) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); + + /** + * + * + *
+   * Z coordinate (or depth).
+   * 
+ * + * float z = 3; + * + * @return The z. + */ + float getZ(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java index 273e8c965..1657bd7ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Product} */ -public final class Product extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Product extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Product) ProductOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Product() { name_ = ""; displayName_ = ""; @@ -29,16 +47,15 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,46 +75,53 @@ private Product( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + productCategory_ = s; + break; } - productLabels_.add( - input.readMessage(com.google.cloud.vision.v1.Product.KeyValue.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productLabels_.add( + input.readMessage( + com.google.cloud.vision.v1.Product.KeyValue.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +129,7 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -115,83 +138,100 @@ private Product( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.class, com.google.cloud.vision.v1.Product.Builder.class); + com.google.cloud.vision.v1.Product.class, + com.google.cloud.vision.v1.Product.Builder.class); } - public interface KeyValueOrBuilder extends + public interface KeyValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Product.KeyValue} */ - public static final class KeyValue extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KeyValue() { key_ = ""; value_ = ""; @@ -199,16 +239,15 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -227,25 +266,27 @@ private KeyValue( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -253,35 +294,40 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.KeyValue.class, com.google.cloud.vision.v1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1.Product.KeyValue.class, + com.google.cloud.vision.v1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ @java.lang.Override @@ -290,30 +336,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -324,12 +370,15 @@ public java.lang.String getKey() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -338,30 +387,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -370,6 +419,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +431,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -412,17 +461,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1.Product.KeyValue other = (com.google.cloud.vision.v1.Product.KeyValue) obj; + com.google.cloud.vision.v1.Product.KeyValue other = + (com.google.cloud.vision.v1.Product.KeyValue) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -443,88 +491,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -534,27 +588,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1.Product.KeyValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Product.KeyValue) com.google.cloud.vision.v1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.KeyValue.class, com.google.cloud.vision.v1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1.Product.KeyValue.class, + com.google.cloud.vision.v1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1.Product.KeyValue.newBuilder() @@ -562,16 +621,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; } @java.lang.Override @@ -604,7 +662,8 @@ public com.google.cloud.vision.v1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1.Product.KeyValue result = new com.google.cloud.vision.v1.Product.KeyValue(this); + com.google.cloud.vision.v1.Product.KeyValue result = + new com.google.cloud.vision.v1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -615,38 +674,41 @@ public com.google.cloud.vision.v1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1.Product.KeyValue)other); + return mergeFrom((com.google.cloud.vision.v1.Product.KeyValue) other); } else { super.mergeFrom(other); return this; @@ -694,19 +756,21 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -715,21 +779,22 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -737,57 +802,64 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -795,19 +867,21 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -816,21 +890,22 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -838,61 +913,69 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -905,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Product.KeyValue) private static final com.google.cloud.vision.v1.Product.KeyValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Product.KeyValue(); } @@ -919,16 +1002,16 @@ public static com.google.cloud.vision.v1.Product.KeyValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,12 +1026,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -957,6 +1041,7 @@ public com.google.cloud.vision.v1.Product.KeyValue getDefaultInstanceForType() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -965,14 +1050,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -981,16 +1067,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1001,12 +1086,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1015,30 +1103,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1049,12 +1137,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -1063,30 +1154,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1097,6 +1188,8 @@ public java.lang.String getDescription() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -1105,6 +1198,7 @@ public java.lang.String getDescription() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ @java.lang.Override @@ -1113,14 +1207,15 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -1129,16 +1224,15 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1149,6 +1243,8 @@ public java.lang.String getProductCategory() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1169,6 +1265,8 @@ public java.util.List getProductLab
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1185,11 +1283,13 @@ public java.util.List getProductLab
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1210,6 +1310,8 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1230,6 +1332,8 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
     return productLabels_.get(index);
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1246,12 +1350,12 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index) {
     return productLabels_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1263,8 +1367,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1302,8 +1405,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1313,23 +1415,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.Product)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.Product other = (com.google.cloud.vision.v1.Product) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getProductCategory()
-        .equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList()
-        .equals(other.getProductLabelsList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getProductCategory().equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1358,118 +1455,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.Product parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.Product parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.Product parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.vision.v1.Product parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Product parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Product parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Product} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Product) com.google.cloud.vision.v1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Product.class, com.google.cloud.vision.v1.Product.Builder.class); + com.google.cloud.vision.v1.Product.class, + com.google.cloud.vision.v1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1.Product.newBuilder() @@ -1477,17 +1582,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1509,9 +1614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_Product_descriptor; } @java.lang.Override @@ -1553,38 +1658,39 @@ public com.google.cloud.vision.v1.Product buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Product) { - return mergeFrom((com.google.cloud.vision.v1.Product)other); + return mergeFrom((com.google.cloud.vision.v1.Product) other); } else { super.mergeFrom(other); return this; @@ -1627,9 +1733,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductLabelsFieldBuilder() : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductLabelsFieldBuilder() + : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1663,10 +1770,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1675,13 +1785,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1690,6 +1800,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1698,15 +1810,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1714,6 +1825,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1722,20 +1835,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1744,15 +1859,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1761,16 +1879,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1778,19 +1896,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1799,21 +1919,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1821,57 +1942,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1879,19 +2007,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1900,21 +2030,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1922,57 +2053,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1980,6 +2118,8 @@ public Builder setDescriptionBytes( private java.lang.Object productCategory_ = ""; /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -1988,13 +2128,13 @@ public Builder setDescriptionBytes(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -2003,6 +2143,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2011,15 +2153,14 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2027,6 +2168,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2035,20 +2178,22 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory( - java.lang.String value) { + public Builder setProductCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2057,15 +2202,18 @@ public Builder setProductCategory(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -2074,34 +2222,41 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(productLabels_); + productLabels_ = + new java.util.ArrayList(productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder> productLabelsBuilder_; + com.google.cloud.vision.v1.Product.KeyValue, + com.google.cloud.vision.v1.Product.KeyValue.Builder, + com.google.cloud.vision.v1.Product.KeyValueOrBuilder> + productLabelsBuilder_; /** + * + * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2125,6 +2280,8 @@ public java.util.List getProductLab
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2148,6 +2305,8 @@ public int getProductLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2171,6 +2330,8 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2186,8 +2347,7 @@ public com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index) {
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public Builder setProductLabels(
-        int index, com.google.cloud.vision.v1.Product.KeyValue value) {
+    public Builder setProductLabels(int index, com.google.cloud.vision.v1.Product.KeyValue value) {
       if (productLabelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2201,6 +2361,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2228,6 +2390,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2257,6 +2421,8 @@ public Builder addProductLabels(com.google.cloud.vision.v1.Product.KeyValue valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2272,8 +2438,7 @@ public Builder addProductLabels(com.google.cloud.vision.v1.Product.KeyValue valu
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public Builder addProductLabels(
-        int index, com.google.cloud.vision.v1.Product.KeyValue value) {
+    public Builder addProductLabels(int index, com.google.cloud.vision.v1.Product.KeyValue value) {
       if (productLabelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2287,6 +2452,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2314,6 +2481,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2341,6 +2510,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2360,8 +2531,7 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2369,6 +2539,8 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2395,6 +2567,8 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2421,6 +2595,8 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2436,11 +2612,12 @@ public Builder removeProductLabels(int index) {
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuilder(int index) {
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2459,11 +2636,14 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder getProductLabelsBuild
     public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);  } else {
+        return productLabels_.get(index);
+      } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2479,8 +2659,8 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsOrBuilderList() {
+    public java.util.List
+        getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2488,6 +2668,8 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2504,10 +2686,12 @@ public com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBu
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2523,12 +2707,13 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder(
-        int index) {
-      return getProductLabelsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
+    public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuilder(int index) {
+      return getProductLabelsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2544,16 +2729,22 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
      *
      * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsBuilderList() {
+    public java.util.List
+        getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder> 
+            com.google.cloud.vision.v1.Product.KeyValue,
+            com.google.cloud.vision.v1.Product.KeyValue.Builder,
+            com.google.cloud.vision.v1.Product.KeyValueOrBuilder>
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Product.KeyValue, com.google.cloud.vision.v1.Product.KeyValue.Builder, com.google.cloud.vision.v1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.Product.KeyValue,
+                com.google.cloud.vision.v1.Product.KeyValue.Builder,
+                com.google.cloud.vision.v1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2562,9 +2753,9 @@ public com.google.cloud.vision.v1.Product.KeyValue.Builder addProductLabelsBuild
       }
       return productLabelsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2574,12 +2765,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Product)
   private static final com.google.cloud.vision.v1.Product DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Product();
   }
@@ -2588,16 +2779,16 @@ public static com.google.cloud.vision.v1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Product parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Product(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Product parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Product(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2612,6 +2803,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
index 26524dc31..adcda0dad 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ProductOrBuilder extends
+public interface ProductOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the product.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -28,56 +49,68 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -86,10 +119,13 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ java.lang.String getProductCategory(); /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
@@ -98,12 +134,14 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString - getProductCategoryBytes(); + com.google.protobuf.ByteString getProductCategoryBytes(); /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -119,9 +157,10 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
-      getProductLabelsList();
+  java.util.List getProductLabelsList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -139,6 +178,8 @@ public interface ProductOrBuilder extends
    */
   com.google.cloud.vision.v1.Product.KeyValue getProductLabels(int index);
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -156,6 +197,8 @@ public interface ProductOrBuilder extends
    */
   int getProductLabelsCount();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -171,9 +214,11 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
+  java.util.List
       getProductLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -189,6 +234,5 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
index 57551f380..c4187814a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchParams} */ -public final class ProductSearchParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchParams) ProductSearchParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,53 @@ private ProductSearchParams( case 0: done = true; break; - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + productSet_ = s; + break; } - productCategories_.add(s); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 74: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productCategories_.add(s); + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; } + case 74: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +127,7 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -114,28 +136,34 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchParams.class, com.google.cloud.vision.v1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1.ProductSearchParams.class, + com.google.cloud.vision.v1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -143,19 +171,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -171,6 +206,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
+   *
+   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -178,6 +215,7 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ @java.lang.Override @@ -186,14 +224,15 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** + * + * *
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -201,16 +240,15 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -221,6 +259,8 @@ public java.lang.String getProductSet() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -232,13 +272,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_; } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -250,12 +292,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -267,6 +312,7 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -274,6 +320,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -285,17 +333,19 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -307,6 +357,7 @@ public java.lang.String getProductCategories(int index) {
    * 
* * string filter = 8; + * * @return The filter. */ @java.lang.Override @@ -315,14 +366,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -334,16 +386,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -352,6 +403,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +415,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -401,8 +452,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,24 +462,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchParams other = (com.google.cloud.vision.v1.ProductSearchParams) obj; + com.google.cloud.vision.v1.ProductSearchParams other = + (com.google.cloud.vision.v1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; - } - if (!getProductSet() - .equals(other.getProductSet())) return false; - if (!getProductCategoriesList() - .equals(other.getProductCategoriesList())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + } + if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -458,118 +505,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchParams) com.google.cloud.vision.v1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchParams.class, com.google.cloud.vision.v1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1.ProductSearchParams.class, + com.google.cloud.vision.v1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchParams.newBuilder() @@ -577,16 +633,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; } @java.lang.Override @@ -627,7 +682,8 @@ public com.google.cloud.vision.v1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1.ProductSearchParams result = new com.google.cloud.vision.v1.ProductSearchParams(this); + com.google.cloud.vision.v1.ProductSearchParams result = + new com.google.cloud.vision.v1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -649,38 +705,39 @@ public com.google.cloud.vision.v1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchParams)other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchParams) other); } else { super.mergeFrom(other); return this; @@ -738,40 +795,54 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -793,6 +864,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -812,6 +885,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -823,7 +898,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -835,6 +912,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -854,6 +933,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -862,11 +943,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -878,11 +961,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -891,14 +977,17 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -906,6 +995,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
 
     private java.lang.Object productSet_ = "";
     /**
+     *
+     *
      * 
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -913,13 +1004,13 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -928,6 +1019,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -935,15 +1028,14 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -951,6 +1043,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -958,20 +1052,22 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet( - java.lang.String value) { + public Builder setProductSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -979,15 +1075,18 @@ public Builder setProductSet(
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
@@ -995,29 +1094,33 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList productCategories_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1029,13 +1132,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1047,12 +1152,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1064,6 +1172,7 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1071,6 +1180,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1082,14 +1193,16 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1101,21 +1214,23 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories( - int index, java.lang.String value) { + public Builder setProductCategories(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1127,20 +1242,22 @@ public Builder setProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories( - java.lang.String value) { + public Builder addProductCategories(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1152,18 +1269,19 @@ public Builder addProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories( - java.lang.Iterable values) { + public Builder addAllProductCategories(java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1175,6 +1293,7 @@ public Builder addAllProductCategories(
      * 
* * repeated string product_categories = 7; + * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1184,6 +1303,8 @@ public Builder clearProductCategories() { return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1195,15 +1316,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; + * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes( - com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1212,6 +1333,8 @@ public Builder addProductCategoriesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1223,13 +1346,13 @@ public Builder addProductCategoriesBytes(
      * 
* * string filter = 8; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1238,6 +1361,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1249,15 +1374,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1265,6 +1389,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1276,20 +1402,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1301,15 +1429,18 @@ public Builder setFilter(
      * 
* * string filter = 8; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1321,23 +1452,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1347,12 +1478,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchParams) private static final com.google.cloud.vision.v1.ProductSearchParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchParams(); } @@ -1361,16 +1492,16 @@ public static com.google.cloud.vision.v1.ProductSearchParams getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1385,6 +1516,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java index cc978287f..4dc67d100 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search.proto package com.google.cloud.vision.v1; -public interface ProductSearchParamsOrBuilder extends +public interface ProductSearchParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -38,6 +62,8 @@ public interface ProductSearchParamsOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -45,10 +71,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ java.lang.String getProductSet(); /** + * + * *
    * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
@@ -56,12 +85,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - com.google.protobuf.ByteString - getProductSetBytes(); + com.google.protobuf.ByteString getProductSetBytes(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -73,11 +104,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - java.util.List - getProductCategoriesList(); + java.util.List getProductCategoriesList(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -89,10 +122,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ int getProductCategoriesCount(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -104,11 +140,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -120,13 +159,15 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString - getProductCategoriesBytes(int index); + com.google.protobuf.ByteString getProductCategoriesBytes(int index); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -138,10 +179,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -153,8 +197,8 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java new file mode 100644 index 000000000..bdae2eea0 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search.proto + +package com.google.cloud.vision.v1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/vision/v1/product_search." + + "proto\022\026google.cloud.vision.v1\032\031google/ap" + + "i/resource.proto\032%google/cloud/vision/v1" + + "/geometry.proto\0323google/cloud/vision/v1/" + + "product_search_service.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\272\001\n\023ProductSearchP" + + "arams\022;\n\rbounding_poly\030\t \001(\0132$.google.cl" + + "oud.vision.v1.BoundingPoly\022:\n\013product_se" + + "t\030\006 \001(\tB%\372A\"\n vision.googleapis.com/Prod" + + "uctSet\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006fi" + + "lter\030\010 \001(\t\"\210\005\n\024ProductSearchResults\022.\n\ni" + + "ndex_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022D\n\007results\030\005 \003(\01323.google.cloud.visi" + + "on.v1.ProductSearchResults.Result\022[\n\027pro" + + "duct_grouped_results\030\006 \003(\0132:.google.clou" + + "d.vision.v1.ProductSearchResults.Grouped" + + "Result\032X\n\006Result\0220\n\007product\030\001 \001(\0132\037.goog" + + "le.cloud.vision.v1.Product\022\r\n\005score\030\002 \001(" + + "\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotation\022\013\n\003" + + "mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name" + + "\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\355\001\n\rGroupedResult\022" + + ";\n\rbounding_poly\030\001 \001(\0132$.google.cloud.vi" + + "sion.v1.BoundingPoly\022D\n\007results\030\002 \003(\01323." + + "google.cloud.vision.v1.ProductSearchResu" + + "lts.Result\022Y\n\022object_annotations\030\003 \003(\0132=" + + ".google.cloud.vision.v1.ProductSearchRes" + + "ults.ObjectAnnotationBz\n\032com.google.clou" + + "d.vision.v1B\022ProductSearchProtoP\001Z * Results for a product search request. *
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults} */ -public final class ProductSearchResults extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults) ProductSearchResultsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,56 @@ private ProductSearchResults( case 0: done = true; break; - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); + } + indexTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - results_.add( - input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.vision.v1.ProductSearchResults.Result>(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage( + com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), + extensionRegistry)); + break; } - productGroupedResults_.add( - input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = + new java.util.ArrayList< + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult>(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage( + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,8 +129,7 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -113,42 +141,54 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.class, com.google.cloud.vision.v1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.class, + com.google.cloud.vision.v1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder extends + public interface ResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** + * + * *
      * The Product.
      * 
@@ -158,70 +198,80 @@ public interface ResultOrBuilder extends com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); } /** + * + * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Result extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -240,37 +290,41 @@ private Result( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } + + break; } - product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + case 21: + { + score_ = input.readFloat(); + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + image_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,34 +332,39 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.Result.class, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.Product product_; /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return Whether the product field is set. */ @java.lang.Override @@ -313,11 +372,14 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return The product. */ @java.lang.Override @@ -325,6 +387,8 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** + * + * *
      * The Product.
      * 
@@ -339,12 +403,15 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -355,12 +422,15 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ @java.lang.Override @@ -369,30 +439,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -401,6 +471,7 @@ public java.lang.String getImage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +483,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -433,12 +503,10 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -451,23 +519,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.Result other = (com.google.cloud.vision.v1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1.ProductSearchResults.Result other = + (com.google.cloud.vision.v1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getImage() - .equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getImage().equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,8 +550,7 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -494,87 +559,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.Result prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -584,27 +656,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.Result} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.Result) com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.Result.class, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchResults.Result.newBuilder() @@ -612,16 +689,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -639,9 +715,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_Result_descriptor; } @java.lang.Override @@ -660,7 +736,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults.Result result = new com.google.cloud.vision.v1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1.ProductSearchResults.Result result = + new com.google.cloud.vision.v1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -676,38 +753,41 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.Result)other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.Result) other); } else { super.mergeFrom(other); return this; @@ -715,7 +795,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.Result other) { - if (other == com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -745,7 +826,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.Result) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ProductSearchResults.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -757,34 +839,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> + productBuilder_; /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; + * * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
        * The Product.
        * 
@@ -805,14 +900,15 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1.Product product = 1; */ - public Builder setProduct( - com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -823,6 +919,8 @@ public Builder setProduct( return this; } /** + * + * *
        * The Product.
        * 
@@ -833,7 +931,9 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -845,6 +945,8 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
@@ -863,6 +965,8 @@ public Builder clearProduct() { return this; } /** + * + * *
        * The Product.
        * 
@@ -870,11 +974,13 @@ public Builder clearProduct() { * .google.cloud.vision.v1.Product product = 1; */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
        * The Product.
        * 
@@ -885,11 +991,14 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } } /** + * + * *
        * The Product.
        * 
@@ -897,27 +1006,33 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { * .google.cloud.vision.v1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; } - private float score_ ; + private float score_; /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -925,32 +1040,38 @@ public float getScore() { return score_; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -958,19 +1079,21 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -979,21 +1102,22 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1001,61 +1125,69 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1068,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.Result) private static final com.google.cloud.vision.v1.ProductSearchResults.Result DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.Result(); } @@ -1082,16 +1214,16 @@ public static com.google.cloud.vision.v1.ProductSearchResults.Result getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1106,34 +1238,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchResults.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ObjectAnnotationOrBuilder extends + public interface ObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1141,10 +1280,13 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1152,57 +1294,68 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ float getScore(); } /** + * + * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1211,16 +1364,15 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1239,36 +1391,39 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 37: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1276,34 +1431,39 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -1312,29 +1472,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1345,6 +1505,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1352,6 +1514,7 @@ public java.lang.String getMid() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -1360,14 +1523,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1375,16 +1539,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1395,11 +1558,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -1408,29 +1574,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1441,11 +1607,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1454,6 +1623,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1465,8 +1635,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1498,8 +1667,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1509,22 +1677,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other = + (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1543,95 +1708,102 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1641,44 +1813,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder.class); } - // Construct using com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using + // com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1694,14 +1871,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { - return com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { + return com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -1715,7 +1894,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation build() @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(this); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation result = + new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1728,46 +1908,53 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation)other); + return mergeFrom( + (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other) { - if (other == com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation other) { + if (other + == com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1802,7 +1989,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1814,18 +2003,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1834,20 +2025,21 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1855,54 +2047,61 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1910,6 +2109,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1917,13 +2118,13 @@ public Builder setMidBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1932,6 +2133,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1939,15 +2142,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1955,6 +2157,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1962,20 +2166,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1983,15 +2189,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1999,16 +2208,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2016,18 +2225,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2036,20 +2247,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2057,66 +2269,76 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -2124,34 +2346,41 @@ public float getScore() { return score_; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2164,30 +2393,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { + public static com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2199,35 +2430,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GroupedResultOrBuilder extends + public interface GroupedResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1.BoundingPoly getBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2237,15 +2477,18 @@ public interface GroupedResultOrBuilder extends com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2254,6 +2497,8 @@ public interface GroupedResultOrBuilder extends */ com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int index); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2262,69 +2507,96 @@ public interface GroupedResultOrBuilder extends */ int getResultsCount(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List getObjectAnnotationsList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ int getObjectAnnotationsCount(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); } /** + * + * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2332,15 +2604,16 @@ com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObj
    *
    * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2348,16 +2621,15 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2377,44 +2649,57 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null;
-              if (boundingPoly_ != null) {
-                subBuilder = boundingPoly_.toBuilder();
-              }
-              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(boundingPoly_);
-                boundingPoly_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null;
+                if (boundingPoly_ != null) {
+                  subBuilder = boundingPoly_.toBuilder();
+                }
+                boundingPoly_ =
+                    input.readMessage(
+                        com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(boundingPoly_);
+                  boundingPoly_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  results_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1.ProductSearchResults.Result>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                results_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1.ProductSearchResults.Result.parser(),
+                        extensionRegistry));
+                break;
               }
-              results_.add(
-                  input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.Result.parser(), extensionRegistry));
-              break;
-            }
-            case 26: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                objectAnnotations_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 26:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  objectAnnotations_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                objectAnnotations_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.parser(),
+                        extensionRegistry));
+                break;
               }
-              objectAnnotations_.add(
-                  input.readMessage(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2422,8 +2707,7 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2435,27 +2719,33 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class,
+              com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1.BoundingPoly boundingPoly_;
     /**
+     *
+     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2463,18 +2753,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2489,6 +2786,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2500,6 +2799,8 @@ public java.util.List ge return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2507,11 +2808,13 @@ public java.util.List ge * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2523,6 +2826,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2534,6 +2839,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind return results_.get(index); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2547,66 +2854,91 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List objectAnnotations_; + private java.util.List + objectAnnotations_; /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index) { return objectAnnotations_.get(index); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2618,8 +2950,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2639,16 +2970,14 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, objectAnnotations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2658,22 +2987,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other = + (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList() - .equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2703,87 +3030,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2793,6 +3127,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about the products similar to a single product in a query
      * image.
@@ -2800,21 +3136,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.vision.v1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.class,
+                com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
       // Construct using com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.newBuilder()
@@ -2822,18 +3161,18 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2859,13 +3198,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.vision.v1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
+      public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult
+          getDefaultInstanceForType() {
         return com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance();
       }
 
@@ -2880,7 +3220,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult build() {
 
       @java.lang.Override
       public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1.ProductSearchResults.GroupedResult result =
+            new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -2913,46 +3254,52 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult buildPartia
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) {
-          return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)other);
+          return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other) {
-        if (other == com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.vision.v1.ProductSearchResults.GroupedResult other) {
+        if (other
+            == com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance())
+          return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -2974,9 +3321,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.Grouped
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getResultsFieldBuilder() : null;
+              resultsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getResultsFieldBuilder()
+                      : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3000,9 +3348,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults.Grouped
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getObjectAnnotationsFieldBuilder() : null;
+              objectAnnotationsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getObjectAnnotationsFieldBuilder()
+                      : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3027,7 +3376,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.vision.v1.ProductSearchResults.GroupedResult)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3036,38 +3387,52 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private com.google.cloud.vision.v1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolyBuilder_;
+              com.google.cloud.vision.v1.BoundingPoly,
+              com.google.cloud.vision.v1.BoundingPoly.Builder,
+              com.google.cloud.vision.v1.BoundingPolyOrBuilder>
+          boundingPolyBuilder_;
       /**
+       *
+       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3088,6 +3453,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3106,6 +3473,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3116,7 +3485,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -3128,6 +3499,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1.BoundingPoly value) return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3146,6 +3519,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3153,11 +3528,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3168,11 +3545,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3180,39 +3560,51 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * .google.cloud.vision.v1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } private java.util.List results_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList( + results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.Result, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + resultsBuilder_; /** + * + * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3220,6 +3612,8 @@ public java.util.List ge } } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3234,6 +3628,8 @@ public int getResultsCount() { } } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3248,6 +3644,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind } } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3269,6 +3667,8 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3276,7 +3676,8 @@ public Builder setResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder setResults( - int index, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3287,6 +3688,8 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3307,6 +3710,8 @@ public Builder addResults(com.google.cloud.vision.v1.ProductSearchResults.Result return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3328,6 +3733,8 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3346,6 +3753,8 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3353,7 +3762,8 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder addResults( - int index, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3364,6 +3774,8 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3371,11 +3783,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3383,6 +3795,8 @@ public Builder addAllResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3400,6 +3814,8 @@ public Builder clearResults() { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3417,6 +3833,8 @@ public Builder removeResults(int index) { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3428,6 +3846,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3437,19 +3857,23 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3457,6 +3881,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3464,10 +3890,13 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
@@ -3476,55 +3905,73 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResults */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.Result, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.Result, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List objectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + objectAnnotations_ = java.util.Collections.emptyList(); + private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>( + objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + objectAnnotationsBuilder_; /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -3532,11 +3979,15 @@ public java.util.List * List of generic predictions for the object in the bounding box. *
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -3546,13 +3997,18 @@ public int getObjectAnnotationsCount() { } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -3560,11 +4016,15 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation getObjec } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { @@ -3581,14 +4041,20 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( - int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -3599,13 +4065,18 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public Builder addObjectAnnotations(com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations( + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3619,11 +4090,15 @@ public Builder addObjectAnnotations(com.google.cloud.vision.v1.ProductSearchResu return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation value) { @@ -3640,14 +4115,19 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -3658,14 +4138,20 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - int index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -3676,18 +4162,23 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addAllObjectAnnotations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation> + values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -3695,11 +4186,15 @@ public Builder addAllObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -3712,11 +4207,15 @@ public Builder clearObjectAnnotations() { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -3729,39 +4228,53 @@ public Builder removeObjectAnnotations(int index) { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + getObjectAnnotationsBuilder(int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); } else { + return objectAnnotations_.get(index); + } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3769,45 +4282,70 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( - int index) { - return getObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsBuilderList() { + public java.util.List< + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder> + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3816,6 +4354,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation.Builder } return objectAnnotationsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3828,30 +4367,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1.ProductSearchResults.GroupedResult + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstance() { + public static com.google.cloud.vision.v1.ProductSearchResults.GroupedResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3863,15 +4404,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3879,6 +4422,7 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getDefaultI
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -3886,6 +4430,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3893,6 +4439,7 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ @java.lang.Override @@ -3900,6 +4447,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3916,6 +4465,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
@@ -3927,6 +4478,8 @@ public java.util.List ge return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3934,11 +4487,13 @@ public java.util.List ge * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3950,6 +4505,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3961,6 +4518,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind return results_.get(index); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3974,8 +4533,11 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List productGroupedResults_; + private java.util.List + productGroupedResults_; /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3983,13 +4545,18 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { return productGroupedResults_; } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3997,14 +4564,19 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder>
       getProductGroupedResultsOrBuilderList() {
     return productGroupedResults_;
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4012,13 +4584,17 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
   public int getProductGroupedResultsCount() {
     return productGroupedResults_.size();
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4026,13 +4602,18 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults( + int index) { return productGroupedResults_.get(index); } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4040,15 +4621,18 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4060,8 +4644,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4081,16 +4664,15 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, productGroupedResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4100,22 +4682,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; + com.google.cloud.vision.v1.ProductSearchResults other = + (com.google.cloud.vision.v1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime() - .equals(other.getIndexTime())) return false; + if (!getIndexTime().equals(other.getIndexTime())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList() - .equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4144,118 +4724,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSearchResults} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSearchResults) com.google.cloud.vision.v1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSearchResults.class, com.google.cloud.vision.v1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1.ProductSearchResults.class, + com.google.cloud.vision.v1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSearchResults.newBuilder() @@ -4263,18 +4852,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4300,9 +4889,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchProto.internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchProto + .internal_static_google_cloud_vision_v1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4321,7 +4910,8 @@ public com.google.cloud.vision.v1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1.ProductSearchResults result = new com.google.cloud.vision.v1.ProductSearchResults(this); + com.google.cloud.vision.v1.ProductSearchResults result = + new com.google.cloud.vision.v1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -4354,38 +4944,39 @@ public com.google.cloud.vision.v1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults)other); + return mergeFrom((com.google.cloud.vision.v1.ProductSearchResults) other); } else { super.mergeFrom(other); return this; @@ -4393,7 +4984,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ProductSearchResults.getDefaultInstance()) + return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -4415,9 +5007,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -4441,9 +5034,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ProductSearchResults other) productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductGroupedResultsFieldBuilder() : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductGroupedResultsFieldBuilder() + : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -4477,12 +5071,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4490,12 +5090,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4503,6 +5106,7 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -4513,6 +5117,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4535,6 +5141,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4543,8 +5151,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -4555,6 +5162,8 @@ public Builder setIndexTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4567,7 +5176,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -4579,6 +5188,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4599,6 +5210,8 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4608,11 +5221,13 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-      
+
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4625,11 +5240,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4639,32 +5255,43 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(),
-                getParentForChildren(),
-                isClean());
+        indexTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(), getParentForChildren(), isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
+            com.google.cloud.vision.v1.ProductSearchResults.Result,
+            com.google.cloud.vision.v1.ProductSearchResults.Result.Builder,
+            com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of results, one for each product match.
      * 
@@ -4679,6 +5306,8 @@ public java.util.List ge } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4693,6 +5322,8 @@ public int getResultsCount() { } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4707,6 +5338,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int ind } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4728,6 +5361,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4746,6 +5381,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4766,6 +5403,8 @@ public Builder addResults(com.google.cloud.vision.v1.ProductSearchResults.Result return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4787,6 +5426,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4805,6 +5446,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4823,6 +5466,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4830,11 +5475,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -4842,6 +5487,8 @@ public Builder addAllResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4859,6 +5506,8 @@ public Builder clearResults() { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4876,6 +5525,8 @@ public Builder removeResults(int index) { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4887,6 +5538,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4896,19 +5549,22 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder getResults public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -4916,6 +5572,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4923,10 +5581,12 @@ public com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResult * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4935,48 +5595,62 @@ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResults */ public com.google.cloud.vision.v1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.Result, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.Result, com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.Result, + com.google.cloud.vision.v1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List productGroupedResults_ = - java.util.Collections.emptyList(); + private java.util.List + productGroupedResults_ = java.util.Collections.emptyList(); + private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); + productGroupedResults_ = + new java.util.ArrayList( + productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> + productGroupedResultsBuilder_; /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -4984,9 +5658,12 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -4994,6 +5671,8 @@ public java.util.List * List of results grouped by products detected in the query image. Each entry * corresponds to one bounding polygon in the query image, and contains the @@ -5001,7 +5680,9 @@ public java.util.List * - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5011,6 +5692,8 @@ public int getProductGroupedResultsCount() { } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5018,9 +5701,12 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults( + int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5028,6 +5714,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5035,7 +5723,9 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductG
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { @@ -5052,6 +5742,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5059,10 +5751,13 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( - int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5073,6 +5768,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5080,9 +5777,12 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public Builder addProductGroupedResults(com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults( + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5096,6 +5796,8 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1.ProductSearch return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5103,7 +5805,9 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1.ProductSearch
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult value) { @@ -5120,6 +5824,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5127,7 +5833,9 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { @@ -5141,6 +5849,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5148,10 +5858,13 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( - int index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5162,6 +5875,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5169,14 +5884,16 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addAllProductGroupedResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5184,6 +5901,8 @@ public Builder addAllProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5191,7 +5910,9 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5204,6 +5925,8 @@ public Builder clearProductGroupedResults() { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5211,7 +5934,9 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -5224,6 +5949,8 @@ public Builder removeProductGroupedResults(int index) { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5231,13 +5958,17 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder + getProductGroupedResultsBuilder(int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5245,16 +5976,21 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder get
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); } else { + return productGroupedResults_.get(index); + } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5262,10 +5998,13 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder ge
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -5273,6 +6012,8 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder ge } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5280,13 +6021,19 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder ge
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5294,14 +6041,20 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder add
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( - int index) { - return getProductGroupedResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder(int index) { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5309,18 +6062,26 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder add
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsBuilderList() { + public java.util.List + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5329,9 +6090,9 @@ public com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder add } return productGroupedResultsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5341,12 +6102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSearchResults) private static final com.google.cloud.vision.v1.ProductSearchResults DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSearchResults(); } @@ -5355,16 +6116,16 @@ public static com.google.cloud.vision.v1.ProductSearchResults getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5379,6 +6140,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java index 5c4e626f9..a65845753 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchResultsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search.proto package com.google.cloud.vision.v1; -public interface ProductSearchResultsOrBuilder extends +public interface ProductSearchResultsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -15,10 +33,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -26,10 +47,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -41,15 +65,18 @@ public interface ProductSearchResultsOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -58,6 +85,8 @@ public interface ProductSearchResultsOrBuilder extends */ com.google.cloud.vision.v1.ProductSearchResults.Result getResults(int index); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -66,25 +95,30 @@ public interface ProductSearchResultsOrBuilder extends */ int getResultsCount(); /** + * + * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; */ - com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -92,11 +126,15 @@ com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuil
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List getProductGroupedResultsList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -104,10 +142,14 @@ com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuil
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ com.google.cloud.vision.v1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -115,10 +157,14 @@ com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuil
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ int getProductGroupedResultsCount(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -126,11 +172,15 @@ com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuil
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List getProductGroupedResultsOrBuilderList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -138,8 +188,10 @@ com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder getResultsOrBuil
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index); + com.google.cloud.vision.v1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java new file mode 100644 index 000000000..2302ccfb5 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java @@ -0,0 +1,683 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Product_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Product_KeyValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ReferenceImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_GetReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ImportProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1/product_search_" + + "service.proto\022\026google.cloud.vision.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032%google" + + "/cloud/vision/v1/geometry.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\"\253\002\n\007Produc" + + "t\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022\035\n\020product_category\030\004" + + " \001(\tB\003\340A\005\022@\n\016product_labels\030\005 \003(\0132(.goog" + + "le.cloud.vision.v1.Product.KeyValue\032&\n\010K" + + "eyValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[" + + "\n\035vision.googleapis.com/Product\022:project" + + "s/{project}/locations/{location}/product" + + "s/{product}\"\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\t\0223\n\nindex_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022,\n\013i" + + "ndex_error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003:h\352Ae\n vision.googleapis.com/ProductSet" + + "\022Aprojects/{project}/locations/{location" + + "}/productSets/{product_set}\"\376\001\n\016Referenc" + + "eImage\022\014\n\004name\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022A" + + "\n\016bounding_polys\030\003 \003(\0132$.google.cloud.vi" + + "sion.v1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision" + + ".googleapis.com/ReferenceImage\022\\projects" + + "/{project}/locations/{location}/products" + + "/{product}/referenceImages/{reference_im" + + "age}\"\234\001\n\024CreateProductRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\0225\n\007product\030\002 \001(\0132\037.google.cloud" + + ".vision.v1.ProductB\003\340A\002\022\022\n\nproduct_id\030\003 " + + "\001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"b\n\024ListProductsResponse\0221\n\010products" + + "\030\001 \003(\0132\037.google.cloud.vision.v1.Product\022" + + "\027\n\017next_page_token\030\002 \001(\t\"H\n\021GetProductRe" + + "quest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vision.goog" + + "leapis.com/Product\"~\n\024UpdateProductReque" + + "st\0225\n\007product\030\001 \001(\0132\037.google.cloud.visio" + + "n.v1.ProductB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"K\n\024DeleteProd" + + "uctRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vision" + + ".googleapis.com/Product\"\252\001\n\027CreateProduc" + + "tSetRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022<\n\013produc" + + "t_set\030\002 \001(\0132\".google.cloud.vision.v1.Pro" + + "ductSetB\003\340A\002\022\026\n\016product_set_id\030\003 \001(\t\"z\n\026" + + "ListProductSetsRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"l\n\027ListProductSetsResponse\0228\n\014product_s" + + "ets\030\001 \003(\0132\".google.cloud.vision.v1.Produ" + + "ctSet\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetPro" + + "ductSetRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vi" + + "sion.googleapis.com/ProductSet\"\210\001\n\027Updat" + + "eProductSetRequest\022<\n\013product_set\030\001 \001(\0132" + + "\".google.cloud.vision.v1.ProductSetB\003\340A\002" + + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMask\"Q\n\027DeleteProductSetRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.co" + + "m/ProductSet\"\266\001\n\033CreateReferenceImageReq" + + "uest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.goo" + + "gleapis.com/Product\022D\n\017reference_image\030\002" + + " \001(\0132&.google.cloud.vision.v1.ReferenceI" + + "mageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001(\t\"z\n" + + "\032ListReferenceImagesRequest\0225\n\006parent\030\001 " + + "\001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/Produ" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\213\001\n\033ListReferenceImagesResponse\022@\n\020ref" + + "erence_images\030\001 \003(\0132&.google.cloud.visio" + + "n.v1.ReferenceImage\022\021\n\tpage_size\030\002 \001(\005\022\027" + + "\n\017next_page_token\030\003 \001(\t\"V\n\030GetReferenceI" + + "mageRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$visio" + + "n.googleapis.com/ReferenceImage\"Y\n\033Delet" + + "eReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340A" + + "\002\372A&\n$vision.googleapis.com/ReferenceIma" + + "ge\"\217\001\n\035AddProductToProductSetRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.co" + + "m/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037\n\035v" + + "ision.googleapis.com/Product\"\224\001\n\"RemoveP" + + "roductFromProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037\n\035vision.goo" + + "gleapis.com/Product\"\200\001\n\037ListProductsInPr" + + "oductSetRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n v" + + "ision.googleapis.com/ProductSet\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n ListPr" + + "oductsInProductSetResponse\0221\n\010products\030\001" + + " \003(\0132\037.google.cloud.vision.v1.Product\022\027\n" + + "\017next_page_token\030\002 \001(\t\"2\n\032ImportProductS" + + "etsGcsSource\022\024\n\014csv_file_uri\030\001 \001(\t\"r\n\034Im" + + "portProductSetsInputConfig\022H\n\ngcs_source" + + "\030\001 \001(\01322.google.cloud.vision.v1.ImportPr" + + "oductSetsGcsSourceH\000B\010\n\006source\"\246\001\n\030Impor" + + "tProductSetsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\n!locations.googleapis.com/Location\022O" + + "\n\014input_config\030\002 \001(\01324.google.cloud.visi" + + "on.v1.ImportProductSetsInputConfigB\003\340A\002\"" + + "\203\001\n\031ImportProductSetsResponse\022@\n\020referen" + + "ce_images\030\001 \003(\0132&.google.cloud.vision.v1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\227\002\n\026BatchOperationMetadata" + + "\022C\n\005state\030\001 \001(\01624.google.cloud.vision.v1" + + ".BatchOperationMetadata.State\022/\n\013submit_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022," + + "\n\010end_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\016\n\n" + + "PROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006FAILED\020\003" + + "\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurgeConfig" + + "\022\026\n\016product_set_id\030\001 \001(\t\"\337\001\n\024PurgeProduc" + + "tsRequest\022Q\n\030product_set_purge_config\030\002 " + + "\001(\0132-.google.cloud.vision.v1.ProductSetP" + + "urgeConfigH\000\022 \n\026delete_orphan_products\030\003" + + " \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\r\n\005force\030\004 \001(\010" + + "B\010\n\006target2\364\035\n\rProductSearch\022\321\001\n\020CreateP" + + "roductSet\022/.google.cloud.vision.v1.Creat" + + "eProductSetRequest\032\".google.cloud.vision" + + ".v1.ProductSet\"h\202\323\344\223\002>\"//v1/{parent=proj" + + "ects/*/locations/*}/productSets:\013product" + + "_set\332A!parent,product_set,product_set_id" + + "\022\264\001\n\017ListProductSets\022..google.cloud.visi" + + "on.v1.ListProductSetsRequest\032/.google.cl" + + "oud.vision.v1.ListProductSetsResponse\"@\202" + + "\323\344\223\0021\022//v1/{parent=projects/*/locations/" + + "*}/productSets\332A\006parent\022\241\001\n\rGetProductSe" + + "t\022,.google.cloud.vision.v1.GetProductSet" + + "Request\032\".google.cloud.vision.v1.Product" + + "Set\">\202\323\344\223\0021\022//v1/{name=projects/*/locati" + + "ons/*/productSets/*}\332A\004name\022\323\001\n\020UpdatePr" + + "oductSet\022/.google.cloud.vision.v1.Update" + + "ProductSetRequest\032\".google.cloud.vision." + + "v1.ProductSet\"j\202\323\344\223\002J2;/v1/{product_set." + + "name=projects/*/locations/*/productSets/" + + "*}:\013product_set\332A\027product_set,update_mas" + + "k\022\233\001\n\020DeleteProductSet\022/.google.cloud.vi" + + "sion.v1.DeleteProductSetRequest\032\026.google" + + ".protobuf.Empty\">\202\323\344\223\0021*//v1/{name=proje" + + "cts/*/locations/*/productSets/*}\332A\004name\022" + + "\271\001\n\rCreateProduct\022,.google.cloud.vision." + + "v1.CreateProductRequest\032\037.google.cloud.v" + + "ision.v1.Product\"Y\202\323\344\223\0027\",/v1/{parent=pr" + + "ojects/*/locations/*}/products:\007product\332" + + "A\031parent,product,product_id\022\250\001\n\014ListProd" + + "ucts\022+.google.cloud.vision.v1.ListProduc" + + "tsRequest\032,.google.cloud.vision.v1.ListP" + + "roductsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*/locations/*}/products\332A\006parent\022\225" + + "\001\n\nGetProduct\022).google.cloud.vision.v1.G" + + "etProductRequest\032\037.google.cloud.vision.v" + + "1.Product\";\202\323\344\223\002.\022,/v1/{name=projects/*/" + + "locations/*/products/*}\332A\004name\022\273\001\n\rUpdat" + + "eProduct\022,.google.cloud.vision.v1.Update" + + "ProductRequest\032\037.google.cloud.vision.v1." + + "Product\"[\202\323\344\223\002?24/v1/{product.name=proje" + + "cts/*/locations/*/products/*}:\007product\332A" + + "\023product,update_mask\022\222\001\n\rDeleteProduct\022," + + ".google.cloud.vision.v1.DeleteProductReq" + + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + + "1/{name=projects/*/locations/*/products/" + + "*}\332A\004name\022\371\001\n\024CreateReferenceImage\0223.goo" + + "gle.cloud.vision.v1.CreateReferenceImage" + + "Request\032&.google.cloud.vision.v1.Referen" + + "ceImage\"\203\001\202\323\344\223\002Q\">/v1/{parent=projects/*" + + "/locations/*/products/*}/referenceImages" + + ":\017reference_image\332A)parent,reference_ima" + + "ge,reference_image_id\022\262\001\n\024DeleteReferenc" + + "eImage\0223.google.cloud.vision.v1.DeleteRe" + + "ferenceImageRequest\032\026.google.protobuf.Em" + + "pty\"M\202\323\344\223\002@*>/v1/{name=projects/*/locati" + + "ons/*/products/*/referenceImages/*}\332A\004na" + + "me\022\317\001\n\023ListReferenceImages\0222.google.clou" + + "d.vision.v1.ListReferenceImagesRequest\0323" + + ".google.cloud.vision.v1.ListReferenceIma" + + "gesResponse\"O\202\323\344\223\002@\022>/v1/{parent=project" + + "s/*/locations/*/products/*}/referenceIma" + + "ges\332A\006parent\022\274\001\n\021GetReferenceImage\0220.goo" + + "gle.cloud.vision.v1.GetReferenceImageReq" + + "uest\032&.google.cloud.vision.v1.ReferenceI" + + "mage\"M\202\323\344\223\002@\022>/v1/{name=projects/*/locat" + + "ions/*/products/*/referenceImages/*}\332A\004n" + + "ame\022\275\001\n\026AddProductToProductSet\0225.google." + + "cloud.vision.v1.AddProductToProductSetRe" + + "quest\032\026.google.protobuf.Empty\"T\202\323\344\223\002?\":/" + + "v1/{name=projects/*/locations/*/productS" + + "ets/*}:addProduct:\001*\332A\014name,product\022\312\001\n\033" + + "RemoveProductFromProductSet\022:.google.clo" + + "ud.vision.v1.RemoveProductFromProductSet" + + "Request\032\026.google.protobuf.Empty\"W\202\323\344\223\002B\"" + + "=/v1/{name=projects/*/locations/*/produc" + + "tSets/*}:removeProduct:\001*\332A\014name,product" + + "\022\326\001\n\030ListProductsInProductSet\0227.google.c" + + "loud.vision.v1.ListProductsInProductSetR" + + "equest\0328.google.cloud.vision.v1.ListProd" + + "uctsInProductSetResponse\"G\202\323\344\223\002:\0228/v1/{n" + + "ame=projects/*/locations/*/productSets/*" + + "}/products\332A\004name\022\364\001\n\021ImportProductSets\022" + + "0.google.cloud.vision.v1.ImportProductSe" + + "tsRequest\032\035.google.longrunning.Operation" + + "\"\215\001\202\323\344\223\002;\"6/v1/{parent=projects/*/locati" + + "ons/*}/productSets:import:\001*\332A\023parent,in" + + "put_config\312A3\n\031ImportProductSetsResponse" + + "\022\026BatchOperationMetadata\022\326\001\n\rPurgeProduc" + + "ts\022,.google.cloud.vision.v1.PurgeProduct" + + "sRequest\032\035.google.longrunning.Operation\"" + + "x\202\323\344\223\0027\"2/v1/{parent=projects/*/location" + + "s/*}/products:purge:\001*\332A\006parent\312A/\n\025goog" + + "le.protobuf.Empty\022\026BatchOperationMetadat" + + "a\032v\312A\025vision.googleapis.com\322A[https://ww" + + "w.googleapis.com/auth/cloud-platform,htt" + + "ps://www.googleapis.com/auth/cloud-visio" + + "nB\201\001\n\032com.google.cloud.vision.v1B\031Produc" + + "tSearchServiceProtoP\001Z * A ProductSet contains Products. A ProductSet can contain a maximum of 1 * million reference images. If the limit is exceeded, periodic indexing will @@ -12,15 +29,16 @@ * * Protobuf type {@code google.cloud.vision.v1.ProductSet} */ -public final class ProductSet extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSet) ProductSetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSet.newBuilder() to construct. private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSet() { name_ = ""; displayName_ = ""; @@ -28,16 +46,15 @@ private ProductSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,51 +73,56 @@ private ProductSet( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.rpc.Status.Builder subBuilder = null; - if (indexError_ != null) { - subBuilder = indexError_.toBuilder(); + displayName_ = s; + break; } - indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexError_); - indexError_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); + } + indexTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + com.google.rpc.Status.Builder subBuilder = null; + if (indexError_ != null) { + subBuilder = indexError_.toBuilder(); + } + indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexError_); + indexError_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,29 +130,33 @@ private ProductSet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSet.class, com.google.cloud.vision.v1.ProductSet.Builder.class); + com.google.cloud.vision.v1.ProductSet.class, + com.google.cloud.vision.v1.ProductSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -139,6 +165,7 @@ private ProductSet(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -147,14 +174,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -163,16 +191,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -183,12 +210,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -197,30 +227,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -231,6 +261,8 @@ public java.lang.String getDisplayName() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -239,7 +271,9 @@ public java.lang.String getDisplayName() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -247,6 +281,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -255,7 +291,9 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ @java.lang.Override @@ -263,6 +301,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -271,7 +311,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -281,6 +322,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -288,6 +331,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ @java.lang.Override @@ -295,6 +339,8 @@ public boolean hasIndexError() { return indexError_ != null; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -302,6 +348,7 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ @java.lang.Override @@ -309,6 +356,8 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -323,6 +372,7 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -334,8 +384,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -364,12 +413,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -379,26 +426,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.ProductSet)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.ProductSet other = (com.google.cloud.vision.v1.ProductSet) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime()
-          .equals(other.getIndexTime())) return false;
+      if (!getIndexTime().equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError()
-          .equals(other.getIndexError())) return false;
+      if (!getIndexError().equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -428,97 +471,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.ProductSet parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.vision.v1.ProductSet parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -527,21 +576,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ProductSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSet)
       com.google.cloud.vision.v1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ProductSet.class, com.google.cloud.vision.v1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1.ProductSet.class,
+              com.google.cloud.vision.v1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ProductSet.newBuilder()
@@ -549,16 +600,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,9 +632,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -603,7 +653,8 @@ public com.google.cloud.vision.v1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1.ProductSet result = new com.google.cloud.vision.v1.ProductSet(this);
+      com.google.cloud.vision.v1.ProductSet result =
+          new com.google.cloud.vision.v1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -624,38 +675,39 @@ public com.google.cloud.vision.v1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1.ProductSet)other);
+        return mergeFrom((com.google.cloud.vision.v1.ProductSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -709,6 +761,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -717,13 +771,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -732,6 +786,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -740,15 +796,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -756,6 +811,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -764,20 +821,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -786,15 +845,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -803,16 +865,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -820,19 +882,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -841,21 +905,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -863,57 +928,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -921,8 +993,13 @@ public Builder setDisplayNameBytes( private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -931,13 +1008,17 @@ public Builder setDisplayNameBytes(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -946,7 +1027,9 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -957,6 +1040,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -965,7 +1050,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -981,6 +1067,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -989,10 +1077,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setIndexTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -1003,6 +1091,8 @@ public Builder setIndexTime( return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1011,13 +1101,14 @@ public Builder setIndexTime(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1029,6 +1120,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1037,7 +1130,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1051,6 +1145,8 @@ public Builder clearIndexTime() { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1059,14 +1155,17 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1075,17 +1174,19 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1094,17 +1195,21 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), - getParentForChildren(), - isClean()); + indexTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), getParentForChildren(), isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1112,8 +1217,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + indexErrorBuilder_; /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1121,12 +1229,15 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1134,6 +1245,7 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1144,6 +1256,8 @@ public com.google.rpc.Status getIndexError() { } } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1166,6 +1280,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1174,8 +1290,7 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1186,6 +1301,8 @@ public Builder setIndexError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1198,7 +1315,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1210,6 +1327,8 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1230,6 +1349,8 @@ public Builder clearIndexError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1239,11 +1360,13 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-      
+
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1256,11 +1379,12 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1270,21 +1394,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getIndexError(),
-                getParentForChildren(),
-                isClean());
+        indexErrorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1294,12 +1418,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSet)
   private static final com.google.cloud.vision.v1.ProductSet DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSet();
   }
@@ -1308,16 +1432,16 @@ public static com.google.cloud.vision.v1.ProductSet getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ProductSet parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ProductSet(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ProductSet parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ProductSet(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1332,6 +1456,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
index e67969e95..a5c8b7a5b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface ProductSetOrBuilder extends
+public interface ProductSetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -28,34 +49,41 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -64,11 +92,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -77,11 +109,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -90,11 +126,14 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -102,10 +141,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -113,10 +155,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
index 158a7d1a8..35878074b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfig.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Config to control which ProductSet contains the Products to be deleted.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSetPurgeConfig} */ -public final class ProductSetPurgeConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSetPurgeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ProductSetPurgeConfig) ProductSetPurgeConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSetPurgeConfig.newBuilder() to construct. private ProductSetPurgeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSetPurgeConfig() { productSetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSetPurgeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSetPurgeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ProductSetPurgeConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private ProductSetPurgeConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); } public static final int PRODUCT_SET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object productSetId_; /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -103,6 +125,7 @@ private ProductSetPurgeConfig(
    * 
* * string product_set_id = 1; + * * @return The productSetId. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -126,16 +150,15 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getProductSetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productSetId_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ProductSetPurgeConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1.ProductSetPurgeConfig other = (com.google.cloud.vision.v1.ProductSetPurgeConfig) obj; + com.google.cloud.vision.v1.ProductSetPurgeConfig other = + (com.google.cloud.vision.v1.ProductSetPurgeConfig) obj; - if (!getProductSetId() - .equals(other.getProductSetId())) return false; + if (!getProductSetId().equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +230,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ProductSetPurgeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ProductSetPurgeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to control which ProductSet contains the Products to be deleted.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ProductSetPurgeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ProductSetPurgeConfig) com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder.class); } // Construct using com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder() @@ -326,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_ProductSetPurgeConfig_descriptor; } @java.lang.Override @@ -366,7 +397,8 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig build() { @java.lang.Override public com.google.cloud.vision.v1.ProductSetPurgeConfig buildPartial() { - com.google.cloud.vision.v1.ProductSetPurgeConfig result = new com.google.cloud.vision.v1.ProductSetPurgeConfig(this); + com.google.cloud.vision.v1.ProductSetPurgeConfig result = + new com.google.cloud.vision.v1.ProductSetPurgeConfig(this); result.productSetId_ = productSetId_; onBuilt(); return result; @@ -376,38 +408,39 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.ProductSetPurgeConfig) { - return mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig)other); + return mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) other); } else { super.mergeFrom(other); return this; @@ -415,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.ProductSetPurgeConfig other) { - if (other == com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) + return this; if (!other.getProductSetId().isEmpty()) { productSetId_ = other.productSetId_; onChanged(); @@ -451,6 +485,8 @@ public Builder mergeFrom( private java.lang.Object productSetId_ = ""; /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -458,13 +494,13 @@ public Builder mergeFrom(
      * 
* * string product_set_id = 1; + * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -473,6 +509,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -480,15 +518,14 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -496,6 +533,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -503,20 +542,22 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; + * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId( - java.lang.String value) { + public Builder setProductSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -524,15 +565,18 @@ public Builder setProductSetId(
      * 
* * string product_set_id = 1; + * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -540,23 +584,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 1; + * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ProductSetPurgeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ProductSetPurgeConfig) private static final com.google.cloud.vision.v1.ProductSetPurgeConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ProductSetPurgeConfig(); } @@ -580,16 +624,16 @@ public static com.google.cloud.vision.v1.ProductSetPurgeConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSetPurgeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSetPurgeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSetPurgeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSetPurgeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ProductSetPurgeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java index 9909e1160..9131ade70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetPurgeConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ProductSetPurgeConfigOrBuilder extends +public interface ProductSetPurgeConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ProductSetPurgeConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -15,10 +33,13 @@ public interface ProductSetPurgeConfigOrBuilder extends
    * 
* * string product_set_id = 1; + * * @return The productSetId. */ java.lang.String getProductSetId(); /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -26,8 +47,8 @@ public interface ProductSetPurgeConfigOrBuilder extends
    * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString - getProductSetIdBytes(); + com.google.protobuf.ByteString getProductSetIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java index 6f500cdd8..dc41a6b15 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Property.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; value_ = ""; @@ -26,16 +44,15 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private Property( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uint64Value_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 24: + { + uint64Value_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Property.class, com.google.cloud.vision.v1.Property.Builder.class); + com.google.cloud.vision.v1.Property.class, + com.google.cloud.vision.v1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,11 +178,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -167,29 +194,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -200,11 +227,14 @@ public java.lang.String getValue() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -213,6 +243,7 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +281,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,19 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Property)) { return super.equals(obj); } com.google.cloud.vision.v1.Property other = (com.google.cloud.vision.v1.Property) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getUint64Value() - != other.getUint64Value()) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (getUint64Value() != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,125 +317,132 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Property parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Property parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Property parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Property) com.google.cloud.vision.v1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Property.class, com.google.cloud.vision.v1.Property.Builder.class); + com.google.cloud.vision.v1.Property.class, + com.google.cloud.vision.v1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1.Property.newBuilder() @@ -417,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_Property_descriptor; } @java.lang.Override @@ -473,38 +505,39 @@ public com.google.cloud.vision.v1.Property buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Property) { - return mergeFrom((com.google.cloud.vision.v1.Property)other); + return mergeFrom((com.google.cloud.vision.v1.Property) other); } else { super.mergeFrom(other); return this; @@ -555,18 +588,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,20 +610,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -596,54 +632,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -651,18 +694,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -671,20 +716,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -692,66 +738,76 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_ ; + private long uint64Value_; /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -759,37 +815,43 @@ public long getUint64Value() { return uint64Value_; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Property) private static final com.google.cloud.vision.v1.Property DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Property(); } @@ -813,16 +875,16 @@ public static com.google.cloud.vision.v1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +899,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java index 5f764c7d0..65ed81d05 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PropertyOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ long getUint64Value(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java index 8d70e226f..39892c5c4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `PurgeProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.PurgeProductsRequest} */ -public final class PurgeProductsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.PurgeProductsRequest) PurgeProductsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PurgeProductsRequest.newBuilder() to construct. private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PurgeProductsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PurgeProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PurgeProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,43 +70,48 @@ private PurgeProductsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_).toBuilder(); + parent_ = s; + break; } - target_ = - input.readMessage(com.google.cloud.vision.v1.ProductSetPurgeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); - target_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = + ((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.vision.v1.ProductSetPurgeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; } - targetCase_ = 2; - break; - } - case 24: { - target_ = input.readBool(); - targetCase_ = 3; - break; - } - case 32: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + target_ = input.readBool(); + targetCase_ = 3; + break; + } + case 32: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,35 +119,40 @@ private PurgeProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.PurgeProductsRequest.class, com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1.PurgeProductsRequest.class, + com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_SET_PURGE_CONFIG(2), DELETE_ORPHAN_PRODUCTS(3), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -141,30 +168,36 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: return PRODUCT_SET_PURGE_CONFIG; - case 3: return DELETE_ORPHAN_PRODUCTS; - case 0: return TARGET_NOT_SET; - default: return null; + case 2: + return PRODUCT_SET_PURGE_CONFIG; + case 3: + return DELETE_ORPHAN_PRODUCTS; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER = 2; /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -172,21 +205,26 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return The productSetPurgeConfig. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -194,21 +232,25 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER = 3; /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ @java.lang.Override @@ -216,12 +258,15 @@ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ @java.lang.Override @@ -235,12 +280,17 @@ public boolean getDeleteOrphanProducts() { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -249,30 +299,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -283,12 +335,15 @@ public java.lang.String getParent() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_; /** + * + * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -297,6 +352,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +364,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -317,8 +372,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) target_)); + output.writeBool(3, (boolean) ((java.lang.Boolean) target_)); } if (force_ != false) { output.writeBool(4, force_); @@ -336,17 +390,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) target_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) target_)); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,26 +410,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.PurgeProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.PurgeProductsRequest other = (com.google.cloud.vision.v1.PurgeProductsRequest) obj; + com.google.cloud.vision.v1.PurgeProductsRequest other = + (com.google.cloud.vision.v1.PurgeProductsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getForce() - != other.getForce()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getForce() != other.getForce()) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getProductSetPurgeConfig() - .equals(other.getProductSetPurgeConfig())) return false; + if (!getProductSetPurgeConfig().equals(other.getProductSetPurgeConfig())) return false; break; case 3: - if (getDeleteOrphanProducts() - != other.getDeleteOrphanProducts()) return false; + if (getDeleteOrphanProducts() != other.getDeleteOrphanProducts()) return false; break; case 0: default: @@ -394,8 +445,7 @@ public int hashCode() { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); switch (targetCase_) { case 2: hash = (37 * hash) + PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER; @@ -403,8 +453,7 @@ public int hashCode() { break; case 3: hash = (37 * hash) + DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleteOrphanProducts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteOrphanProducts()); break; case 0: default: @@ -414,118 +463,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.PurgeProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.PurgeProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `PurgeProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.PurgeProductsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.PurgeProductsRequest) com.google.cloud.vision.v1.PurgeProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.PurgeProductsRequest.class, com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1.PurgeProductsRequest.class, + com.google.cloud.vision.v1.PurgeProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.PurgeProductsRequest.newBuilder() @@ -533,16 +591,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_PurgeProductsRequest_descriptor; } @java.lang.Override @@ -577,7 +634,8 @@ public com.google.cloud.vision.v1.PurgeProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1.PurgeProductsRequest buildPartial() { - com.google.cloud.vision.v1.PurgeProductsRequest result = new com.google.cloud.vision.v1.PurgeProductsRequest(this); + com.google.cloud.vision.v1.PurgeProductsRequest result = + new com.google.cloud.vision.v1.PurgeProductsRequest(this); if (targetCase_ == 2) { if (productSetPurgeConfigBuilder_ == null) { result.target_ = target_; @@ -599,38 +657,39 @@ public com.google.cloud.vision.v1.PurgeProductsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.PurgeProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1.PurgeProductsRequest)other); + return mergeFrom((com.google.cloud.vision.v1.PurgeProductsRequest) other); } else { super.mergeFrom(other); return this; @@ -638,7 +697,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.PurgeProductsRequest other) { - if (other == com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.PurgeProductsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -647,17 +707,20 @@ public Builder mergeFrom(com.google.cloud.vision.v1.PurgeProductsRequest other) setForce(other.getForce()); } switch (other.getTargetCase()) { - case PRODUCT_SET_PURGE_CONFIG: { - mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); - break; - } - case DELETE_ORPHAN_PRODUCTS: { - setDeleteOrphanProducts(other.getDeleteOrphanProducts()); - break; - } - case TARGET_NOT_SET: { - break; - } + case PRODUCT_SET_PURGE_CONFIG: + { + mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); + break; + } + case DELETE_ORPHAN_PRODUCTS: + { + setDeleteOrphanProducts(other.getDeleteOrphanProducts()); + break; + } + case TARGET_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -687,12 +750,12 @@ public Builder mergeFrom( } return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -702,15 +765,20 @@ public Builder clearTarget() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> productSetPurgeConfigBuilder_; + com.google.cloud.vision.v1.ProductSetPurgeConfig, + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> + productSetPurgeConfigBuilder_; /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -718,11 +786,14 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return The productSetPurgeConfig. */ @java.lang.Override @@ -740,13 +811,16 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig } } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetPurgeConfig value) { + public Builder setProductSetPurgeConfig( + com.google.cloud.vision.v1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -760,6 +834,8 @@ public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetPur return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -778,18 +854,24 @@ public Builder setProductSetPurgeConfig( return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetPurgeConfig value) { + public Builder mergeProductSetPurgeConfig( + com.google.cloud.vision.v1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { - if (targetCase_ == 2 && - target_ != com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) { - target_ = com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder((com.google.cloud.vision.v1.ProductSetPurgeConfig) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 2 + && target_ != com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance()) { + target_ = + com.google.cloud.vision.v1.ProductSetPurgeConfig.newBuilder( + (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -805,6 +887,8 @@ public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1.ProductSetP return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -828,16 +912,21 @@ public Builder clearProductSetPurgeConfig() { return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ - public com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder getProductSetPurgeConfigBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder + getProductSetPurgeConfigBuilder() { return getProductSetPurgeConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -845,7 +934,8 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder getProductSetPur * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { if ((targetCase_ == 2) && (productSetPurgeConfigBuilder_ != null)) { return productSetPurgeConfigBuilder_.getMessageOrBuilder(); } else { @@ -856,6 +946,8 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPu } } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
@@ -863,43 +955,55 @@ public com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPu * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> + com.google.cloud.vision.v1.ProductSetPurgeConfig, + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder> getProductSetPurgeConfigFieldBuilder() { if (productSetPurgeConfigBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = com.google.cloud.vision.v1.ProductSetPurgeConfig.getDefaultInstance(); } - productSetPurgeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSetPurgeConfig, com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder>( + productSetPurgeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSetPurgeConfig, + com.google.cloud.vision.v1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder>( (com.google.cloud.vision.v1.ProductSetPurgeConfig) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; - onChanged();; + onChanged(); + ; return productSetPurgeConfigBuilder_; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ public boolean getDeleteOrphanProducts() { @@ -909,12 +1013,15 @@ public boolean getDeleteOrphanProducts() { return false; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @param value The deleteOrphanProducts to set. * @return This builder for chaining. */ @@ -925,12 +1032,15 @@ public Builder setDeleteOrphanProducts(boolean value) { return this; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return This builder for chaining. */ public Builder clearDeleteOrphanProducts() { @@ -944,19 +1054,23 @@ public Builder clearDeleteOrphanProducts() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -965,21 +1079,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -987,70 +1104,86 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -1058,39 +1191,45 @@ public boolean getForce() { return force_; } /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.PurgeProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.PurgeProductsRequest) private static final com.google.cloud.vision.v1.PurgeProductsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.PurgeProductsRequest(); } @@ -1114,16 +1253,16 @@ public static com.google.cloud.vision.v1.PurgeProductsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,6 +1277,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.PurgeProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java index 57400ff88..56188fdf9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface PurgeProductsRequestOrBuilder extends +public interface PurgeProductsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.PurgeProductsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return Whether the productSetPurgeConfig field is set. */ boolean hasProductSetPurgeConfig(); /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return The productSetPurgeConfig. */ com.google.cloud.vision.v1.ProductSetPurgeConfig getProductSetPurgeConfig(); /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -35,55 +59,73 @@ public interface PurgeProductsRequestOrBuilder extends com.google.cloud.vision.v1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder(); /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ boolean hasDeleteOrphanProducts(); /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ boolean getDeleteOrphanProducts(); /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java index c3d62d2d0..81877d3e9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.ReferenceImage}
  */
-public final class ReferenceImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.ReferenceImage)
     ReferenceImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -28,16 +46,15 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,34 +74,38 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingPolys_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              uri_ = s;
+              break;
             }
-            boundingPolys_.add(
-                input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingPolys_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              boundingPolys_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +113,7 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -102,22 +122,27 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.ReferenceImage.class, com.google.cloud.vision.v1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1.ReferenceImage.class,
+            com.google.cloud.vision.v1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -126,6 +151,7 @@ private ReferenceImage(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -134,14 +160,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -150,16 +177,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,12 +196,15 @@ public java.lang.String getName() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -184,30 +213,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -218,6 +247,8 @@ public java.lang.String getUri() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -228,13 +259,17 @@ public java.lang.String getUri() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -245,14 +280,18 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -263,13 +302,17 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -280,13 +323,17 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -297,15 +344,17 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( - int index) { + public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { return boundingPolys_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,8 +366,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -344,8 +392,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,19 +402,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1.ReferenceImage other = (com.google.cloud.vision.v1.ReferenceImage) obj; + com.google.cloud.vision.v1.ReferenceImage other = + (com.google.cloud.vision.v1.ReferenceImage) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getBoundingPolysList() - .equals(other.getBoundingPolysList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,97 +437,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.ReferenceImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -490,21 +542,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.ReferenceImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.ReferenceImage)
       com.google.cloud.vision.v1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.ReferenceImage.class, com.google.cloud.vision.v1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1.ReferenceImage.class,
+              com.google.cloud.vision.v1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.ReferenceImage.newBuilder()
@@ -512,17 +566,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -540,9 +594,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -561,7 +615,8 @@ public com.google.cloud.vision.v1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1.ReferenceImage result = new com.google.cloud.vision.v1.ReferenceImage(this);
+      com.google.cloud.vision.v1.ReferenceImage result =
+          new com.google.cloud.vision.v1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -582,38 +637,39 @@ public com.google.cloud.vision.v1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1.ReferenceImage)other);
+        return mergeFrom((com.google.cloud.vision.v1.ReferenceImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -648,9 +704,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.ReferenceImage other) {
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingPolysFieldBuilder() : null;
+            boundingPolysBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingPolysFieldBuilder()
+                    : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -684,10 +741,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -696,13 +756,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -711,6 +771,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -719,15 +781,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -735,6 +796,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -743,20 +806,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -765,15 +830,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -782,16 +850,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -799,19 +867,21 @@ public Builder setNameBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -820,21 +890,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -842,75 +913,89 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = new java.util.ArrayList(boundingPolys_); + boundingPolys_ = + new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingPolysBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingPolysBuilder_; /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -921,7 +1006,9 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -931,6 +1018,8 @@ public java.util.List getBoundingPolysL } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -941,7 +1030,9 @@ public java.util.List getBoundingPolysL
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -951,6 +1042,8 @@ public int getBoundingPolysCount() { } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -961,7 +1054,9 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -971,6 +1066,8 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -981,10 +1078,11 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBoundingPolys( - int index, com.google.cloud.vision.v1.BoundingPoly value) { + public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -998,6 +1096,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1008,7 +1108,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1022,6 +1124,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1032,7 +1136,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1048,6 +1154,8 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1058,10 +1166,11 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addBoundingPolys( - int index, com.google.cloud.vision.v1.BoundingPoly value) { + public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1075,6 +1184,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1085,7 +1196,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1099,6 +1212,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1109,7 +1224,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1123,6 +1240,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1133,14 +1252,15 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1148,6 +1268,8 @@ public Builder addAllBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1158,7 +1280,9 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1171,6 +1295,8 @@ public Builder clearBoundingPolys() { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1181,7 +1307,9 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1194,6 +1322,8 @@ public Builder removeBoundingPolys(int index) { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1204,13 +1334,16 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder( - int index) { + public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1221,16 +1354,20 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( - int index) { + public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); } else { + return boundingPolys_.get(index); + } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1241,10 +1378,12 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1252,6 +1391,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1262,13 +1403,17 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder().addBuilder( - com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1279,14 +1424,17 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder()
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder( - int index) { - return getBoundingPolysFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); + public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(int index) { + return getBoundingPolysFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1297,18 +1445,26 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1317,9 +1473,9 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder( } return boundingPolysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,12 +1485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ReferenceImage) private static final com.google.cloud.vision.v1.ReferenceImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.ReferenceImage(); } @@ -1343,16 +1499,16 @@ public static com.google.cloud.vision.v1.ReferenceImage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,6 +1523,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java index 277ffca2e..f7784c325 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; -public interface ReferenceImageOrBuilder extends +public interface ReferenceImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -16,10 +34,13 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -28,34 +49,41 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -66,11 +94,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getBoundingPolysList(); + java.util.List getBoundingPolysList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -81,10 +112,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -95,10 +130,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getBoundingPolysCount(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -109,11 +148,15 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -124,8 +167,9 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( - int index); + com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java index 0764b4449..919326ac7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +45,15 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +72,27 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +100,43 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +145,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,13 +182,18 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -168,31 +202,33 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -201,6 +237,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +279,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other = + (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,117 +310,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.newBuilder() @@ -393,16 +438,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +458,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance(); } @@ -435,7 +480,8 @@ public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest result = + new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -446,38 +492,39 @@ public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -485,7 +532,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.RemoveProductFromProductSetRequest other) { - if (other == com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1.RemoveProductFromProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +562,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.RemoveProductFromProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +576,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +602,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,60 +628,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -631,20 +702,24 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -653,22 +728,25 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -676,67 +754,80 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +837,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1.RemoveProductFromProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.RemoveProductFromProductSetRequest(); } @@ -760,16 +852,16 @@ public static com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +876,4 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.vision.v1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..4ddfb7309 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/product_search_service.proto + +package com.google.cloud.vision.v1; + +public interface RemoveProductFromProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java index 5875814d5..3ded4d8a9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; /** + * + * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -31,16 +49,15 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,43 +76,48 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            adult_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              adult_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spoof_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              spoof_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            medical_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              medical_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            violence_ = rawValue;
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
+              violence_ = rawValue;
+              break;
+            }
+          case 72:
+            {
+              int rawValue = input.readEnum();
 
-            racy_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              racy_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,29 +125,33 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.SafeSearchAnnotation.class, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1.SafeSearchAnnotation.class,
+            com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
+   *
+   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -133,12 +159,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -146,17 +176,22 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The adult. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAdult() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -164,12 +199,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -177,71 +216,94 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The spoof. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSpoof() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The medical. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getMedical() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The violence. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getViolence() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -250,12 +312,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -264,15 +330,19 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The racy. */ - @java.lang.Override public com.google.cloud.vision.v1.Likelihood getRacy() { + @java.lang.Override + public com.google.cloud.vision.v1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -311,24 +380,19 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,12 +402,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.SafeSearchAnnotation other = (com.google.cloud.vision.v1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1.SafeSearchAnnotation other = + (com.google.cloud.vision.v1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -376,97 +441,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -475,21 +547,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.SafeSearchAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.SafeSearchAnnotation)
       com.google.cloud.vision.v1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.SafeSearchAnnotation.class, com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1.SafeSearchAnnotation.class,
+              com.google.cloud.vision.v1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.SafeSearchAnnotation.newBuilder()
@@ -497,16 +571,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +597,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +618,8 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1.SafeSearchAnnotation result = new com.google.cloud.vision.v1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1.SafeSearchAnnotation result =
+          new com.google.cloud.vision.v1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -559,38 +633,39 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1.SafeSearchAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1.SafeSearchAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,7 +673,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1.SafeSearchAnnotation.getDefaultInstance())
+        return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -645,6 +721,8 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
+     *
+     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -652,12 +730,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -665,16 +747,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -682,15 +767,19 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -698,6 +787,7 @@ public com.google.cloud.vision.v1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @param value The adult to set. * @return This builder for chaining. */ @@ -705,12 +795,14 @@ public Builder setAdult(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -718,10 +810,11 @@ public Builder setAdult(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -729,6 +822,8 @@ public Builder clearAdult() { private int spoof_ = 0; /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -736,12 +831,16 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -749,16 +848,19 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -766,15 +868,19 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -782,6 +888,7 @@ public com.google.cloud.vision.v1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @param value The spoof to set. * @return This builder for chaining. */ @@ -789,12 +896,14 @@ public Builder setSpoof(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -802,10 +911,11 @@ public Builder setSpoof(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -813,51 +923,65 @@ public Builder clearSpoof() { private int medical_ = 0; /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @param value The medical to set. * @return This builder for chaining. */ @@ -865,21 +989,24 @@ public Builder setMedical(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -887,51 +1014,65 @@ public Builder clearMedical() { private int violence_ = 0; /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @param value The violence to set. * @return This builder for chaining. */ @@ -939,21 +1080,24 @@ public Builder setViolence(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -961,6 +1105,8 @@ public Builder clearViolence() { private int racy_ = 0; /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -969,12 +1115,16 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -983,16 +1133,19 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1001,15 +1154,19 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.Likelihood result = com.google.cloud.vision.v1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1.Likelihood result = + com.google.cloud.vision.v1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1018,6 +1175,7 @@ public com.google.cloud.vision.v1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @param value The racy to set. * @return This builder for chaining. */ @@ -1025,12 +1183,14 @@ public Builder setRacy(com.google.cloud.vision.v1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1039,17 +1199,18 @@ public Builder setRacy(com.google.cloud.vision.v1.Likelihood value) {
      * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1.SafeSearchAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.SafeSearchAnnotation(); } @@ -1073,16 +1234,16 @@ public static com.google.cloud.vision.v1.SafeSearchAnnotation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1258,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java index 482f3c3cc..2391cd7a6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface SafeSearchAnnotationOrBuilder extends +public interface SafeSearchAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -15,10 +33,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -26,11 +47,14 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood adult = 1; + * * @return The adult. */ com.google.cloud.vision.v1.Likelihood getAdult(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -38,10 +62,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -49,49 +76,64 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood spoof = 2; + * * @return The spoof. */ com.google.cloud.vision.v1.Likelihood getSpoof(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1.Likelihood medical = 3; + * * @return The medical. */ com.google.cloud.vision.v1.Likelihood getMedical(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1.Likelihood violence = 4; + * * @return The violence. */ com.google.cloud.vision.v1.Likelihood getViolence(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -100,10 +142,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -112,6 +157,7 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1.Likelihood racy = 9; + * * @return The racy. */ com.google.cloud.vision.v1.Likelihood getRacy(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java index 6b2fa642c..e12b20b7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Symbol.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** + * + * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1.Symbol} */ -public final class Symbol extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symbol extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Symbol) SymbolOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,50 +70,58 @@ private Symbol( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + text_ = s; + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - text_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,34 +129,39 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Symbol.class, com.google.cloud.vision.v1.Symbol.Builder.class); + com.google.cloud.vision.v1.Symbol.class, + com.google.cloud.vision.v1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -139,18 +169,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -165,6 +202,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -184,6 +223,7 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -191,6 +231,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -210,13 +252,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -245,11 +292,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -258,29 +308,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -291,11 +341,14 @@ public java.lang.String getText() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -304,6 +357,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +369,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -339,19 +392,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +411,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Symbol)) { return super.equals(obj); @@ -370,19 +420,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,125 +451,132 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Symbol parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Symbol parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Symbol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Symbol parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Symbol parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Symbol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Symbol} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Symbol) com.google.cloud.vision.v1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.Symbol.class, com.google.cloud.vision.v1.Symbol.Builder.class); + com.google.cloud.vision.v1.Symbol.class, + com.google.cloud.vision.v1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1.Symbol.newBuilder() @@ -531,16 +584,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Symbol_descriptor; } @java.lang.Override @@ -606,38 +658,39 @@ public com.google.cloud.vision.v1.Symbol buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1.Symbol)other); + return mergeFrom((com.google.cloud.vision.v1.Symbol) other); } else { super.mergeFrom(other); return this; @@ -690,34 +743,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -738,6 +804,8 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -756,6 +824,8 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -766,7 +836,9 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -778,6 +850,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -796,6 +870,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -803,11 +879,13 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -818,11 +896,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -830,14 +911,17 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -845,8 +929,13 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -866,12 +955,15 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -891,16 +983,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -935,6 +1032,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -955,8 +1054,7 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(
-        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -967,6 +1065,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,7 +1091,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1003,6 +1105,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1035,6 +1139,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1056,11 +1162,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1085,11 +1193,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,14 +1222,17 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1126,18 +1240,20 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
 
     private java.lang.Object text_ = "";
     /**
+     *
+     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1146,20 +1262,21 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -1167,66 +1284,76 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1234,37 +1361,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,12 +1407,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Symbol) private static final com.google.cloud.vision.v1.Symbol DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Symbol(); } @@ -1288,16 +1421,16 @@ public static com.google.cloud.vision.v1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,6 +1445,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java index aaa469315..c5f0275b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SymbolOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface SymbolOrBuilder extends +public interface SymbolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Symbol) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -35,6 +59,8 @@ public interface SymbolOrBuilder extends com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,31 +136,39 @@ public interface SymbolOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java index 4db8ca068..bba66b0a8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; /** + * + * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -16,15 +33,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.TextAnnotation}
  */
-public final class TextAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation)
     TextAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -32,16 +50,15 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,28 +78,30 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(
+                  input.readMessage(com.google.cloud.vision.v1.Page.parser(), extensionRegistry));
+              break;
             }
-            pages_.add(
-                input.readMessage(com.google.cloud.vision.v1.Page.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            text_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              text_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +109,7 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -100,24 +118,30 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.TextAnnotation.class, com.google.cloud.vision.v1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1.TextAnnotation.class,
+            com.google.cloud.vision.v1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder extends
+  public interface DetectedLanguageOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -125,10 +149,13 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -136,53 +163,58 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); } /** + * + * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -201,24 +233,25 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -226,29 +259,33 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -256,6 +293,7 @@ private DetectedLanguage(
      * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -264,14 +302,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -279,16 +318,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -299,11 +337,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -312,6 +353,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,8 +365,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -344,8 +385,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,18 +395,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other = + (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -381,95 +420,101 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -479,27 +524,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.newBuilder() @@ -507,16 +557,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -528,13 +577,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { return com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance(); } @@ -549,7 +599,8 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage result = + new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -560,38 +611,41 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage)other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) other); } else { super.mergeFrom(other); return this; @@ -599,7 +653,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage other) { - if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -626,7 +682,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -638,6 +695,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -645,13 +704,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -660,6 +719,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -667,15 +728,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -683,6 +743,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -690,20 +752,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -711,15 +775,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -727,28 +794,31 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -756,34 +826,41 @@ public float getConfidence() { return confidence_; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -796,12 +873,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage(); } @@ -810,16 +888,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,74 +912,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DetectedBreakOrBuilder extends + public interface DetectedBreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType(); /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ boolean getIsPrefix(); } /** + * + * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -920,24 +1009,25 @@ private DetectedBreak( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: { - - isPrefix_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 16: + { + isPrefix_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -945,36 +1035,41 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); } /** + * + * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown break label type.
        * 
@@ -983,6 +1078,8 @@ public enum BreakType */ UNKNOWN(0), /** + * + * *
        * Regular space.
        * 
@@ -991,6 +1088,8 @@ public enum BreakType */ SPACE(1), /** + * + * *
        * Sure space (very wide).
        * 
@@ -999,6 +1098,8 @@ public enum BreakType */ SURE_SPACE(2), /** + * + * *
        * Line-wrapping break.
        * 
@@ -1007,6 +1108,8 @@ public enum BreakType */ EOL_SURE_SPACE(3), /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1016,6 +1119,8 @@ public enum BreakType
        */
       HYPHEN(4),
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1027,6 +1132,8 @@ public enum BreakType ; /** + * + * *
        * Unknown break label type.
        * 
@@ -1035,6 +1142,8 @@ public enum BreakType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
        * Regular space.
        * 
@@ -1043,6 +1152,8 @@ public enum BreakType */ public static final int SPACE_VALUE = 1; /** + * + * *
        * Sure space (very wide).
        * 
@@ -1051,6 +1162,8 @@ public enum BreakType */ public static final int SURE_SPACE_VALUE = 2; /** + * + * *
        * Line-wrapping break.
        * 
@@ -1059,6 +1172,8 @@ public enum BreakType */ public static final int EOL_SURE_SPACE_VALUE = 3; /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1068,6 +1183,8 @@ public enum BreakType
        */
       public static final int HYPHEN_VALUE = 4;
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1076,7 +1193,6 @@ public enum BreakType */ public static final int LINE_BREAK_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1101,52 +1217,57 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return SPACE; - case 2: return SURE_SPACE; - case 3: return EOL_SURE_SPACE; - case 4: return HYPHEN; - case 5: return LINE_BREAK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return SPACE; + case 2: + return SURE_SPACE; + case 3: + return EOL_SURE_SPACE; + case 4: + return HYPHEN; + case 5: + return LINE_BREAK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BreakType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDescriptor() + .getEnumTypes() + .get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1166,38 +1287,52 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1206,6 +1341,7 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1217,9 +1353,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1234,13 +1371,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1250,16 +1387,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other = + (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() - != other.getIsPrefix()) return false; + if (getIsPrefix() != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1274,95 +1411,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1372,27 +1515,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.DetectedBreak} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder() @@ -1400,16 +1548,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1421,9 +1568,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override @@ -1442,7 +1589,8 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak result = + new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1453,38 +1601,41 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedBreak)other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) other); } else { super.mergeFrom(other); return this; @@ -1492,7 +1643,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1518,7 +1670,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1530,85 +1683,108 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } /** + * + * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType( + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_ ; + private boolean isPrefix_; /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1616,34 +1792,41 @@ public boolean getIsPrefix() { return isPrefix_; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1656,12 +1839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.DetectedBreak) private static final com.google.cloud.vision.v1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.DetectedBreak(); } @@ -1670,16 +1853,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1694,76 +1877,104 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextPropertyOrBuilder extends + public interface TextPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ int getDetectedLanguagesCount(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesOrBuilderList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index); + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1773,37 +1984,39 @@ com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedL com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); } /** + * + * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1823,35 +2036,44 @@ private TextProperty( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage>(); + mutable_bitField0_ |= 0x00000001; + } + detectedLanguages_.add( + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.parser(), + extensionRegistry)); + break; } - detectedLanguages_.add( - input.readMessage(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); + case 18: + { + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder subBuilder = null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); + } + detectedBreak_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); + } + + break; } - detectedBreak_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1859,8 +2081,7 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -1869,87 +2090,117 @@ private TextProperty( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List detectedLanguages_; + private java.util.List + detectedLanguages_; /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { return detectedLanguages_.get(index); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.TextAnnotation.DetectedBreak detectedBreak_; /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -1957,18 +2208,25 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1976,11 +2234,13 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak( * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1992,8 +2252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2010,12 +2269,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, detectedLanguages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2025,19 +2283,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1.TextAnnotation.TextProperty other = + (com.google.cloud.vision.v1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList() - .equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak() - .equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2064,87 +2321,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation.TextProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2154,27 +2418,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1.TextAnnotation.TextProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation.TextProperty) com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder() @@ -2182,17 +2451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2212,9 +2481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override @@ -2233,7 +2502,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1.TextAnnotation.TextProperty result = + new com.google.cloud.vision.v1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2257,38 +2527,41 @@ public com.google.cloud.vision.v1.TextAnnotation.TextProperty buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.TextProperty)other); + return mergeFrom((com.google.cloud.vision.v1.TextAnnotation.TextProperty) other); } else { super.mergeFrom(other); return this; @@ -2296,7 +2569,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance()) + return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2315,9 +2589,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation.TextProperty detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetectedLanguagesFieldBuilder() : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetectedLanguagesFieldBuilder() + : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2345,7 +2620,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2354,28 +2630,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List detectedLanguages_ = - java.util.Collections.emptyList(); + private java.util.List + detectedLanguages_ = java.util.Collections.emptyList(); + private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); + detectedLanguages_ = + new java.util.ArrayList( + detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> + detectedLanguagesBuilder_; /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2383,11 +2671,15 @@ public java.util.List * A list of detected languages together with confidence. *
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2397,13 +2689,18 @@ public int getDetectedLanguagesCount() { } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2411,11 +2708,15 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage getDetectedLan } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { @@ -2432,14 +2733,19 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( - int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2450,13 +2756,18 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public Builder addDetectedLanguages(com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages( + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2470,11 +2781,15 @@ public Builder addDetectedLanguages(com.google.cloud.vision.v1.TextAnnotation.De return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage value) { @@ -2491,11 +2806,15 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { @@ -2509,14 +2828,19 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - int index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2527,18 +2851,22 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addAllDetectedLanguages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2546,11 +2874,15 @@ public Builder addAllDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2563,11 +2895,15 @@ public Builder clearDetectedLanguages() { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2580,39 +2916,53 @@ public Builder removeDetectedLanguages(int index) { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( - int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder + getDetectedLanguagesBuilder(int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); } else { + return detectedLanguages_.get(index); + } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2620,45 +2970,67 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder getDe } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( - int index) { - return getDetectedLanguagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder(int index) { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2670,41 +3042,55 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedLanguage.Builder addDet private com.google.cloud.vision.v1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> + detectedBreakBuilder_; /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder setDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak( + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2718,6 +3104,8 @@ public Builder setDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.Detect return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
@@ -2736,17 +3124,22 @@ public Builder setDetectedBreak( return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public Builder mergeDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak( + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_) + .mergeFrom(value) + .buildPartial(); } else { detectedBreak_ = value; } @@ -2758,6 +3151,8 @@ public Builder mergeDetectedBreak(com.google.cloud.vision.v1.TextAnnotation.Dete return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
@@ -2776,33 +3171,42 @@ public Builder clearDetectedBreak() { return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder + getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** + * + * *
        * Detected start or end of a text segment.
        * 
* * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ - public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null ? - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } } /** + * + * *
        * Detected start or end of a text segment.
        * 
@@ -2810,18 +3214,22 @@ public com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder getDetec * .google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), - getParentForChildren(), - isClean()); + detectedBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), getParentForChildren(), isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2834,12 +3242,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation.TextProperty) private static final com.google.cloud.vision.v1.TextAnnotation.TextProperty DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation.TextProperty(); } @@ -2848,16 +3256,16 @@ public static com.google.cloud.vision.v1.TextAnnotation.TextProperty getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2872,12 +3280,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation.TextProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2889,6 +3298,8 @@ public java.util.List getPagesList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2896,11 +3307,13 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2912,6 +3325,8 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2923,6 +3338,8 @@ public com.google.cloud.vision.v1.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2930,19 +3347,21 @@ public com.google.cloud.vision.v1.Page getPages(int index) { * repeated .google.cloud.vision.v1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ @java.lang.Override @@ -2951,29 +3370,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -2982,6 +3401,7 @@ public java.lang.String getText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2993,8 +3413,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3011,8 +3430,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3025,17 +3443,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextAnnotation other = (com.google.cloud.vision.v1.TextAnnotation) obj; + com.google.cloud.vision.v1.TextAnnotation other = + (com.google.cloud.vision.v1.TextAnnotation) obj; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getText() - .equals(other.getText())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getText().equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3058,97 +3475,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.TextAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3161,21 +3585,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.TextAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextAnnotation)
       com.google.cloud.vision.v1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.TextAnnotation.class, com.google.cloud.vision.v1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1.TextAnnotation.class,
+              com.google.cloud.vision.v1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.TextAnnotation.newBuilder()
@@ -3183,17 +3609,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3209,9 +3635,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3230,7 +3656,8 @@ public com.google.cloud.vision.v1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1.TextAnnotation result = new com.google.cloud.vision.v1.TextAnnotation(this);
+      com.google.cloud.vision.v1.TextAnnotation result =
+          new com.google.cloud.vision.v1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3250,38 +3677,39 @@ public com.google.cloud.vision.v1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1.TextAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1.TextAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3308,9 +3736,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextAnnotation other) {
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3348,21 +3777,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder> pagesBuilder_;
+            com.google.cloud.vision.v1.Page,
+            com.google.cloud.vision.v1.Page.Builder,
+            com.google.cloud.vision.v1.PageOrBuilder>
+        pagesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3377,6 +3813,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3391,6 +3829,8 @@ public int getPagesCount() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3405,14 +3845,15 @@ public com.google.cloud.vision.v1.Page getPages(int index) { } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1.Page value) { + public Builder setPages(int index, com.google.cloud.vision.v1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3426,14 +3867,15 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder setPages(int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.set(index, builderForValue.build()); @@ -3444,6 +3886,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3464,14 +3908,15 @@ public Builder addPages(com.google.cloud.vision.v1.Page value) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1.Page value) { + public Builder addPages(int index, com.google.cloud.vision.v1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3485,14 +3930,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages( - com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder addPages(com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3503,14 +3949,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { + public Builder addPages(int index, com.google.cloud.vision.v1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(index, builderForValue.build()); @@ -3521,6 +3968,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3531,8 +3980,7 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3540,6 +3988,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3557,6 +4007,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3574,39 +4026,44 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.Page.Builder getPagesBuilder( - int index) { + public com.google.cloud.vision.v1.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -3614,6 +4071,8 @@ public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3621,42 +4080,47 @@ public com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( * repeated .google.cloud.vision.v1.Page pages = 1; */ public com.google.cloud.vision.v1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.Page.getDefaultInstance()); + return getPagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public com.google.cloud.vision.v1.Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder> + com.google.cloud.vision.v1.Page, + com.google.cloud.vision.v1.Page.Builder, + com.google.cloud.vision.v1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.Page, com.google.cloud.vision.v1.Page.Builder, com.google.cloud.vision.v1.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.Page, + com.google.cloud.vision.v1.Page.Builder, + com.google.cloud.vision.v1.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; @@ -3664,18 +4128,20 @@ public com.google.cloud.vision.v1.Page.Builder addPagesBuilder( private java.lang.Object text_ = ""; /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -3684,20 +4150,21 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -3705,61 +4172,68 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3769,12 +4243,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation) private static final com.google.cloud.vision.v1.TextAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextAnnotation(); } @@ -3783,16 +4257,16 @@ public static com.google.cloud.vision.v1.TextAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3807,6 +4281,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java index 5a686b18b..0440b9e29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface TextAnnotationOrBuilder extends +public interface TextAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -25,6 +44,8 @@ public interface TextAnnotationOrBuilder extends */ com.google.cloud.vision.v1.Page getPages(int index); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -33,41 +54,48 @@ public interface TextAnnotationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1.Page pages = 1; */ - com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder( - int index); + com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); } diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java new file mode 100644 index 000000000..bd89507fa --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java @@ -0,0 +1,206 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/text_annotation.proto + +package com.google.cloud.vision.v1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Block_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Paragraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Word_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_Symbol_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1/text_annotation" + + ".proto\022\026google.cloud.vision.v1\032%google/c" + + "loud/vision/v1/geometry.proto\"\226\004\n\016TextAn" + + "notation\022+\n\005pages\030\001 \003(\0132\034.google.cloud.v" + + "ision.v1.Page\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedL" + + "anguage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfid" + + "ence\030\002 \001(\002\032\325\001\n\rDetectedBreak\022L\n\004type\030\001 \001" + + "(\0162>.google.cloud.vision.v1.TextAnnotati" + + "on.DetectedBreak.BreakType\022\021\n\tis_prefix\030" + + "\002 \001(\010\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE" + + "\020\001\022\016\n\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n" + + "\n\006HYPHEN\020\004\022\016\n\nLINE_BREAK\020\005\032\261\001\n\014TextPrope" + + "rty\022S\n\022detected_languages\030\001 \003(\01327.google" + + ".cloud.vision.v1.TextAnnotation.Detected" + + "Language\022L\n\016detected_break\030\002 \001(\01324.googl" + + "e.cloud.vision.v1.TextAnnotation.Detecte" + + "dBreak\"\257\001\n\004Page\022E\n\010property\030\001 \001(\01323.goog" + + "le.cloud.vision.v1.TextAnnotation.TextPr" + + "operty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022-\n" + + "\006blocks\030\004 \003(\0132\035.google.cloud.vision.v1.B" + + "lock\022\022\n\nconfidence\030\005 \001(\002\"\346\002\n\005Block\022E\n\010pr" + + "operty\030\001 \001(\01323.google.cloud.vision.v1.Te" + + "xtAnnotation.TextProperty\022:\n\014bounding_bo" + + "x\030\002 \001(\0132$.google.cloud.vision.v1.Boundin" + + "gPoly\0225\n\nparagraphs\030\003 \003(\0132!.google.cloud" + + ".vision.v1.Paragraph\022;\n\nblock_type\030\004 \001(\016" + + "2\'.google.cloud.vision.v1.Block.BlockTyp" + + "e\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007UN" + + "KNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE\020" + + "\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\317\001\n\tParagraph\022" + + "E\n\010property\030\001 \001(\01323.google.cloud.vision." + + "v1.TextAnnotation.TextProperty\022:\n\014boundi" + + "ng_box\030\002 \001(\0132$.google.cloud.vision.v1.Bo" + + "undingPoly\022+\n\005words\030\003 \003(\0132\034.google.cloud" + + ".vision.v1.Word\022\022\n\nconfidence\030\004 \001(\002\"\316\001\n\004" + + "Word\022E\n\010property\030\001 \001(\01323.google.cloud.vi" + + "sion.v1.TextAnnotation.TextProperty\022:\n\014b" + + "ounding_box\030\002 \001(\0132$.google.cloud.vision." + + "v1.BoundingPoly\022/\n\007symbols\030\003 \003(\0132\036.googl" + + "e.cloud.vision.v1.Symbol\022\022\n\nconfidence\030\004" + + " \001(\002\"\255\001\n\006Symbol\022E\n\010property\030\001 \001(\01323.goog" + + "le.cloud.vision.v1.TextAnnotation.TextPr" + + "operty\022:\n\014bounding_box\030\002 \001(\0132$.google.cl" + + "oud.vision.v1.BoundingPoly\022\014\n\004text\030\003 \001(\t" + + "\022\022\n\nconfidence\030\004 \001(\002B{\n\032com.google.cloud" + + ".vision.v1B\023TextAnnotationProtoP\001Z * Parameters for text detections. This is used to control TEXT_DETECTION and * DOCUMENT_TEXT_DETECTION features. @@ -11,31 +28,31 @@ * * Protobuf type {@code google.cloud.vision.v1.TextDetectionParams} */ -public final class TextDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.TextDetectionParams) TextDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextDetectionParams.newBuilder() to construct. private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextDetectionParams() { advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,27 +72,28 @@ private TextDetectionParams( case 0: done = true; break; - case 72: { - - enableTextDetectionConfidenceScore_ = input.readBool(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 72: + { + enableTextDetectionConfidenceScore_ = input.readBool(); + break; } - advancedOcrOptions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + advancedOcrOptions_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,8 +101,7 @@ private TextDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView(); @@ -93,22 +110,27 @@ private TextDetectionParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.TextDetectionParams.class, com.google.cloud.vision.v1.TextDetectionParams.Builder.class); + com.google.cloud.vision.v1.TextDetectionParams.class, + com.google.cloud.vision.v1.TextDetectionParams.Builder.class); } public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9; private boolean enableTextDetectionConfidenceScore_; /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -116,6 +138,7 @@ private TextDetectionParams(
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -126,34 +149,42 @@ public boolean getEnableTextDetectionConfidenceScore() { public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList advancedOcrOptions_; /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_; } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -161,20 +192,23 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } @@ -204,8 +237,9 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableTextDetectionConfidenceScore_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, enableTextDetectionConfidenceScore_); } { int dataSize = 0; @@ -223,17 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.TextDetectionParams other = (com.google.cloud.vision.v1.TextDetectionParams) obj; + com.google.cloud.vision.v1.TextDetectionParams other = + (com.google.cloud.vision.v1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() - != other.getEnableTextDetectionConfidenceScore()) return false; - if (!getAdvancedOcrOptionsList() - .equals(other.getAdvancedOcrOptionsList())) return false; + if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) + return false; + if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,8 +280,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableTextDetectionConfidenceScore()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); if (getAdvancedOcrOptionsCount() > 0) { hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); @@ -257,97 +292,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -355,21 +397,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.TextDetectionParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.TextDetectionParams)
       com.google.cloud.vision.v1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.TextDetectionParams.class, com.google.cloud.vision.v1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1.TextDetectionParams.class,
+              com.google.cloud.vision.v1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.TextDetectionParams.newBuilder()
@@ -377,16 +421,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +441,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +462,8 @@ public com.google.cloud.vision.v1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1.TextDetectionParams result = new com.google.cloud.vision.v1.TextDetectionParams(this);
+      com.google.cloud.vision.v1.TextDetectionParams result =
+          new com.google.cloud.vision.v1.TextDetectionParams(this);
       int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -435,38 +479,39 @@ public com.google.cloud.vision.v1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1.TextDetectionParams)other);
+        return mergeFrom((com.google.cloud.vision.v1.TextDetectionParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,10 +561,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_ ;
+    private boolean enableTextDetectionConfidenceScore_;
     /**
+     *
+     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -527,6 +575,7 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -534,6 +583,8 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -541,16 +592,19 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -558,51 +612,62 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList advancedOcrOptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_.getUnmodifiableView(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -610,80 +675,90 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index to set the value at. * @param value The advancedOcrOptions to set. * @return This builder for chaining. */ - public Builder setAdvancedOcrOptions( - int index, java.lang.String value) { + public Builder setAdvancedOcrOptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptions( - java.lang.String value) { + public Builder addAdvancedOcrOptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param values The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAllAdvancedOcrOptions( - java.lang.Iterable values) { + public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) { ensureAdvancedOcrOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, advancedOcrOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return This builder for chaining. */ public Builder clearAdvancedOcrOptions() { @@ -693,28 +768,30 @@ public Builder clearAdvancedOcrOptions() { return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The bytes of the advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextDetectionParams) private static final com.google.cloud.vision.v1.TextDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.TextDetectionParams(); } @@ -738,16 +815,16 @@ public static com.google.cloud.vision.v1.TextDetectionParams getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java index 2a652659a..7d038b80b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/image_annotator.proto package com.google.cloud.vision.v1; -public interface TextDetectionParamsOrBuilder extends +public interface TextDetectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextDetectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -15,48 +33,59 @@ public interface TextDetectionParamsOrBuilder extends
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ boolean getEnableTextDetectionConfidenceScore(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - java.util.List - getAdvancedOcrOptionsList(); + java.util.List getAdvancedOcrOptionsList(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ int getAdvancedOcrOptionsCount(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ java.lang.String getAdvancedOcrOptions(int index); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index); + com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java index 98b42fb20..b564d3033 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/product_search_service.proto package com.google.cloud.vision.v1; /** + * + * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductRequest} */ -public final class UpdateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.UpdateProductRequest) UpdateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductRequest() { - } + + private UpdateProductRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage(com.google.cloud.vision.v1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,41 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductRequest.class, com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductRequest.class, + com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.Product product_; /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -128,12 +154,16 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override @@ -141,12 +171,15 @@ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { @@ -156,6 +189,8 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -165,6 +200,7 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -172,6 +208,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -181,6 +219,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -188,6 +227,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -204,6 +245,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,8 +257,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -233,12 +274,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -248,22 +287,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.UpdateProductRequest other = (com.google.cloud.vision.v1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1.UpdateProductRequest other =
+        (com.google.cloud.vision.v1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct()
-          .equals(other.getProduct())) return false;
+      if (!getProduct().equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -289,118 +327,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.UpdateProductRequest) com.google.cloud.vision.v1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductRequest.class, com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductRequest.class, + com.google.cloud.vision.v1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.UpdateProductRequest.newBuilder() @@ -408,16 +455,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -458,7 +504,8 @@ public com.google.cloud.vision.v1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1.UpdateProductRequest result = new com.google.cloud.vision.v1.UpdateProductRequest(this); + com.google.cloud.vision.v1.UpdateProductRequest result = + new com.google.cloud.vision.v1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -477,38 +524,39 @@ public com.google.cloud.vision.v1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1.UpdateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1.UpdateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -516,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.UpdateProductRequest.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -554,42 +603,58 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -605,15 +670,17 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -624,18 +691,23 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -647,12 +719,15 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -666,51 +741,64 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder> + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.Product, com.google.cloud.vision.v1.Product.Builder, com.google.cloud.vision.v1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.Product, + com.google.cloud.vision.v1.Product.Builder, + com.google.cloud.vision.v1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -718,8 +806,13 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -729,12 +822,15 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -744,16 +840,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -778,6 +879,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -788,8 +891,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -800,6 +902,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -814,7 +918,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -826,6 +930,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -848,6 +954,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -859,11 +967,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -878,11 +988,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -894,21 +1007,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +1034,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1.UpdateProductRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.UpdateProductRequest();
   }
@@ -932,16 +1048,16 @@ public static com.google.cloud.vision.v1.UpdateProductRequest getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -956,6 +1072,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
index 7126cf1c1..77477d030 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java
@@ -1,43 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface UpdateProductRequestOrBuilder extends
+public interface UpdateProductRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1.Product getProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -47,10 +76,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -60,10 +92,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
index 92c5cb77e..528b1f03c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductSetRequest() { - } + + private UpdateProductSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductSetRequest.class, com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -161,6 +202,7 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -168,6 +210,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -176,6 +220,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -183,6 +228,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -198,6 +245,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,8 +257,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -227,12 +274,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -242,22 +287,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1.UpdateProductSetRequest other = (com.google.cloud.vision.v1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1.UpdateProductSetRequest other =
+        (com.google.cloud.vision.v1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet()
-          .equals(other.getProductSet())) return false;
+      if (!getProductSet().equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -284,117 +328,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1.UpdateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.UpdateProductSetRequest) com.google.cloud.vision.v1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.UpdateProductSetRequest.class, com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1.UpdateProductSetRequest.newBuilder() @@ -402,16 +455,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -452,7 +504,8 @@ public com.google.cloud.vision.v1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1.UpdateProductSetRequest result = new com.google.cloud.vision.v1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1.UpdateProductSetRequest result = + new com.google.cloud.vision.v1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -471,38 +524,39 @@ public com.google.cloud.vision.v1.UpdateProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1.UpdateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1.UpdateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.UpdateProductSetRequest.getDefaultInstance()) + return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -536,7 +591,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,39 +604,58 @@ public Builder mergeFrom( private com.google.cloud.vision.v1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -596,14 +671,17 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProductSet( - com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { + public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { productSet_ = builderForValue.build(); onChanged(); @@ -614,17 +692,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -636,11 +720,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -654,48 +742,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder> + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.ProductSet, com.google.cloud.vision.v1.ProductSet.Builder, com.google.cloud.vision.v1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.ProductSet, + com.google.cloud.vision.v1.ProductSet.Builder, + com.google.cloud.vision.v1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -703,8 +807,13 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -713,12 +822,15 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -727,16 +839,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -760,6 +877,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -769,8 +888,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -781,6 +899,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -794,7 +914,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -806,6 +926,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -827,6 +949,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -837,11 +961,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -855,11 +981,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -870,21 +999,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -894,12 +1026,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1.UpdateProductSetRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.UpdateProductSetRequest();
   }
@@ -908,16 +1040,16 @@ public static com.google.cloud.vision.v1.UpdateProductSetRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductSetRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductSetRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductSetRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductSetRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -932,6 +1064,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
index 5b04f5d58..871102666 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java
@@ -1,40 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/product_search_service.proto
 
 package com.google.cloud.vision.v1;
 
-public interface UpdateProductSetRequestOrBuilder extends
+public interface UpdateProductSetRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -43,10 +75,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -55,10 +90,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
similarity index 68%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
index c121a38ab..fabfb4415 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Vertex.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/geometry.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1.GeometryProto
+        .internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1.Vertex.class, com.google.cloud.vision.v1.Vertex.Builder.class);
+            com.google.cloud.vision.v1.Vertex.class,
+            com.google.cloud.vision.v1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1.Vertex other = (com.google.cloud.vision.v1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +223,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Vertex parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Vertex parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Vertex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +327,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Vertex)
       com.google.cloud.vision.v1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1.Vertex.class, com.google.cloud.vision.v1.Vertex.Builder.class);
+              com.google.cloud.vision.v1.Vertex.class,
+              com.google.cloud.vision.v1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1.Vertex.newBuilder()
@@ -323,16 +351,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -344,9 +371,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1.GeometryProto.internal_static_google_cloud_vision_v1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1.GeometryProto
+          .internal_static_google_cloud_vision_v1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -376,38 +403,39 @@ public com.google.cloud.vision.v1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1.Vertex)other);
+        return mergeFrom((com.google.cloud.vision.v1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +479,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +496,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +548,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Vertex) private static final com.google.cloud.vision.v1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Vertex(); } @@ -562,16 +608,16 @@ public static com.google.cloud.vision.v1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java new file mode 100644 index 000000000..967813bbf --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/VertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/geometry.proto + +package com.google.cloud.vision.v1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java index 77a0f6ab3..efeca24da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/web_detection.proto package com.google.cloud.vision.v1; /** + * + * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection} */ -public final class WebDetection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection) WebDetectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,67 +76,90 @@ private WebDetection( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + webEntities_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebEntity.parser(), + extensionRegistry)); + break; } - webEntities_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebEntity.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + pagesWithMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebPage.parser(), extensionRegistry)); + break; } - pagesWithMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebPage.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + visuallySimilarImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - visuallySimilarImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 66: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + bestGuessLabels_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebLabel.parser(), + extensionRegistry)); + break; } - bestGuessLabels_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebLabel.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,8 +167,7 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -152,90 +191,110 @@ private WebDetection( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.class, com.google.cloud.vision.v1.WebDetection.Builder.class); + com.google.cloud.vision.v1.WebDetection.class, + com.google.cloud.vision.v1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder extends + public interface WebEntityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ java.lang.String getEntityId(); /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - com.google.protobuf.ByteString - getEntityIdBytes(); + com.google.protobuf.ByteString getEntityIdBytes(); /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebEntity} */ - public static final class WebEntity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebEntity() { entityId_ = ""; description_ = ""; @@ -243,16 +302,15 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -271,30 +329,32 @@ private WebEntity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -302,34 +362,39 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebEntity.class, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ @java.lang.Override @@ -338,29 +403,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -371,12 +436,15 @@ public java.lang.String getEntityId() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -387,11 +455,14 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -400,29 +471,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -431,6 +502,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +514,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -466,8 +537,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -480,20 +550,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebEntity other = (com.google.cloud.vision.v1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1.WebDetection.WebEntity other = + (com.google.cloud.vision.v1.WebDetection.WebEntity) obj; - if (!getEntityId() - .equals(other.getEntityId())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,8 +576,7 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -518,87 +585,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,27 +681,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebEntity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebEntity) com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebEntity.class, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebEntity.newBuilder() @@ -636,16 +714,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +736,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -680,7 +757,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebEntity result = new com.google.cloud.vision.v1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1.WebDetection.WebEntity result = + new com.google.cloud.vision.v1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -692,38 +770,41 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebEntity)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebEntity) other); } else { super.mergeFrom(other); return this; @@ -731,7 +812,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()) + return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -762,7 +844,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -774,18 +857,20 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -794,20 +879,21 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -815,67 +901,77 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId( - java.lang.String value) { + public Builder setEntityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -883,32 +979,38 @@ public float getScore() { return score_; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -916,18 +1018,20 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,20 +1040,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -957,58 +1062,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1134,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1.WebDetection.WebEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebEntity(); } @@ -1035,16 +1148,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebEntity getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,75 +1172,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebImageOrBuilder extends + public interface WebImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); } /** + * + * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebImage} */ - public static final class WebImage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,24 +1269,25 @@ private WebImage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,34 +1295,39 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebImage.class, com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebImage.class, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -1207,29 +1336,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1240,11 +1369,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1253,6 +1385,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1264,8 +1397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1285,8 +1417,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1296,18 +1427,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebImage other = (com.google.cloud.vision.v1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1.WebDetection.WebImage other = + (com.google.cloud.vision.v1.WebDetection.WebImage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,95 +1452,100 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,27 +1555,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebImage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebImage) com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebImage.class, com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebImage.class, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebImage.newBuilder() @@ -1448,16 +1588,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1469,9 +1608,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1490,7 +1629,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebImage result = new com.google.cloud.vision.v1.WebDetection.WebImage(this); + com.google.cloud.vision.v1.WebDetection.WebImage result = + new com.google.cloud.vision.v1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1501,38 +1641,41 @@ public com.google.cloud.vision.v1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebImage)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebImage) other); } else { super.mergeFrom(other); return this; @@ -1540,7 +1683,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1567,7 +1711,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1579,18 +1724,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1599,20 +1746,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1620,66 +1768,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1687,34 +1845,41 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,12 +1892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebImage) private static final com.google.cloud.vision.v1.WebDetection.WebImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebImage(); } @@ -1741,16 +1906,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,64 +1930,79 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebPageOrBuilder extends + public interface WebPageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ java.lang.String getPageTitle(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString - getPageTitleBytes(); + com.google.protobuf.ByteString getPageTitleBytes(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -1830,9 +2010,10 @@ public interface WebPageOrBuilder extends
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
-    java.util.List 
-        getFullMatchingImagesList();
+    java.util.List getFullMatchingImagesList();
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -1842,6 +2023,8 @@ public interface WebPageOrBuilder extends
      */
     com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index);
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -1851,6 +2034,8 @@ public interface WebPageOrBuilder extends
      */
     int getFullMatchingImagesCount();
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -1858,9 +2043,11 @@ public interface WebPageOrBuilder extends
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
-    java.util.List 
+    java.util.List
         getFullMatchingImagesOrBuilderList();
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -1872,6 +2059,8 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
         int index);
 
     /**
+     *
+     *
      * 
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1879,11 +2068,13 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List - getPartialMatchingImagesList(); + java.util.List getPartialMatchingImagesList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1891,10 +2082,13 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1902,10 +2096,13 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ int getPartialMatchingImagesCount(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1913,11 +2110,14 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1925,27 +2125,31 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( int index); } /** + * + * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebPage} */ - public static final class WebPage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebPage() { url_ = ""; pageTitle_ = ""; @@ -1955,16 +2159,15 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1984,48 +2187,58 @@ private WebPage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageTitle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageTitle_ = s; + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2033,8 +2246,7 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2046,27 +2258,33 @@ private WebPage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebPage.class, com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebPage.class, + com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -2075,29 +2293,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2108,11 +2326,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2123,11 +2344,14 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ @java.lang.Override @@ -2136,29 +2360,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2169,6 +2393,8 @@ public java.lang.String getPageTitle() { public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; private java.util.List fullMatchingImages_; /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2177,10 +2403,13 @@ public java.lang.String getPageTitle() {
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
     @java.lang.Override
-    public java.util.List getFullMatchingImagesList() {
+    public java.util.List
+        getFullMatchingImagesList() {
       return fullMatchingImages_;
     }
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2189,11 +2418,13 @@ public java.util.List getFullM
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List
         getFullMatchingImagesOrBuilderList() {
       return fullMatchingImages_;
     }
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2206,6 +2437,8 @@ public int getFullMatchingImagesCount() {
       return fullMatchingImages_.size();
     }
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2218,6 +2451,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
       return fullMatchingImages_.get(index);
     }
     /**
+     *
+     *
      * 
      * Fully matching images on the page.
      * Can include resized copies of the query image.
@@ -2234,6 +2469,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
     public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5;
     private java.util.List partialMatchingImages_;
     /**
+     *
+     *
      * 
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2241,13 +2478,17 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2255,14 +2496,17 @@ public java.util.List getParti
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2270,13 +2514,16 @@ public java.util.List getParti
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2284,13 +2531,16 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2298,15 +2548,17 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages
      * crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2318,8 +2570,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2348,19 +2599,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2370,24 +2621,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebPage other = (com.google.cloud.vision.v1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1.WebDetection.WebPage other = + (com.google.cloud.vision.v1.WebDetection.WebPage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getPageTitle() - .equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2402,8 +2650,7 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2420,87 +2667,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2510,27 +2763,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebPage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebPage) com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebPage.class, com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebPage.class, + com.google.cloud.vision.v1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebPage.newBuilder() @@ -2538,18 +2796,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2575,9 +2833,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2596,7 +2854,8 @@ public com.google.cloud.vision.v1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebPage result = new com.google.cloud.vision.v1.WebDetection.WebPage(this); + com.google.cloud.vision.v1.WebDetection.WebPage result = + new com.google.cloud.vision.v1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2627,38 +2886,41 @@ public com.google.cloud.vision.v1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebPage)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; @@ -2666,7 +2928,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2696,9 +2959,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2722,9 +2986,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebPage other) partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -2749,7 +3014,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2758,22 +3024,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object url_ = ""; /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -2782,20 +3051,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2803,66 +3073,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2870,30 +3150,36 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -2901,18 +3187,20 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -2921,20 +3209,21 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2942,80 +3231,97 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle( - java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3023,12 +3329,15 @@ public java.util.List getFullM } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3038,12 +3347,15 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3053,12 +3365,15 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3075,12 +3390,15 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3094,12 +3412,15 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { @@ -3115,12 +3436,15 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.Web return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3137,12 +3461,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3156,12 +3483,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3175,19 +3505,21 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addAllFullMatchingImages( java.lang.Iterable values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3195,12 +3527,15 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3213,12 +3548,15 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3231,42 +3569,52 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3274,48 +3622,65 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3325,19 +3690,27 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3345,9 +3718,11 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3355,6 +3730,8 @@ public java.util.List getParti } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3362,7 +3739,8 @@ public java.util.List getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3372,6 +3750,8 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3379,7 +3759,8 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3389,6 +3770,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3396,7 +3779,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3413,6 +3797,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3420,7 +3806,8 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3434,6 +3821,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3441,9 +3830,11 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,6 +3848,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection. return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3464,7 +3857,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection.
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -3481,6 +3875,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3488,7 +3884,8 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3502,6 +3899,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3509,7 +3908,8 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -3523,6 +3923,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3530,14 +3932,14 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addAllPartialMatchingImages( java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3545,6 +3947,8 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3552,7 +3956,8 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3565,6 +3970,8 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3572,7 +3979,8 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3585,6 +3993,8 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3592,13 +4002,16 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3606,16 +4019,20 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchi
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3623,10 +4040,11 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatch
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3634,6 +4052,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatch } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3641,13 +4061,17 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatch
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3655,14 +4079,18 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchi
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3670,18 +4098,25 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchi
        * crops.
        * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3690,6 +4125,7 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchi } return partialMatchingImagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3702,12 +4138,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebPage) private static final com.google.cloud.vision.v1.WebDetection.WebPage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebPage(); } @@ -3716,16 +4152,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebPage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,34 +4176,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebLabelOrBuilder extends + public interface WebLabelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3775,10 +4218,13 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3786,27 +4232,30 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } /** + * + * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebLabel} */ - public static final class WebLabel extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebLabel() { label_ = ""; languageCode_ = ""; @@ -3814,16 +4263,15 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3842,25 +4290,27 @@ private WebLabel( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3868,34 +4318,39 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebLabel.class, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ @java.lang.Override @@ -3904,29 +4359,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -3937,6 +4392,8 @@ public java.lang.String getLabel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3944,6 +4401,7 @@ public java.lang.String getLabel() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -3952,14 +4410,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3967,16 +4426,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3985,6 +4443,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3996,8 +4455,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4027,17 +4485,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetection.WebLabel other = (com.google.cloud.vision.v1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1.WebDetection.WebLabel) obj; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4059,87 +4516,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4149,27 +4612,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection.WebLabel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection.WebLabel) com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.WebLabel.class, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.WebLabel.newBuilder() @@ -4177,16 +4645,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4198,9 +4665,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4219,7 +4686,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1.WebDetection.WebLabel result = new com.google.cloud.vision.v1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4230,38 +4698,41 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebLabel)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection.WebLabel) other); } else { super.mergeFrom(other); return this; @@ -4269,7 +4740,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4297,7 +4769,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4309,18 +4782,20 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4329,20 +4804,21 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4350,54 +4826,61 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4405,6 +4888,8 @@ public Builder setLabelBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4412,13 +4897,13 @@ public Builder setLabelBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4427,6 +4912,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4434,15 +4921,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4450,6 +4936,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4457,20 +4945,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4478,15 +4968,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4494,20 +4987,21 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4520,12 +5014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1.WebDetection.WebLabel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection.WebLabel(); } @@ -4534,16 +5028,16 @@ public static com.google.cloud.vision.v1.WebDetection.WebLabel getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4558,12 +5052,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4575,6 +5070,8 @@ public java.util.List getWebE return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4582,11 +5079,13 @@ public java.util.List getWebE * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4598,6 +5097,8 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4609,6 +5110,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int inde return webEntities_.get(index); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4624,6 +5127,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; private java.util.List fullMatchingImages_; /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -4632,10 +5137,13 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
   @java.lang.Override
-  public java.util.List getFullMatchingImagesList() {
+  public java.util.List
+      getFullMatchingImagesList() {
     return fullMatchingImages_;
   }
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -4644,11 +5152,13 @@ public java.util.List getFullM
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getFullMatchingImagesOrBuilderList() {
     return fullMatchingImages_;
   }
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -4661,6 +5171,8 @@ public int getFullMatchingImagesCount() {
     return fullMatchingImages_.size();
   }
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -4673,6 +5185,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
     return fullMatchingImages_.get(index);
   }
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -4689,196 +5203,246 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
   public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3;
   private java.util.List partialMatchingImages_;
   /**
+   *
+   *
    * 
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { return partialMatchingImages_.get(index); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; private java.util.List pagesWithMatchingImages_; /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index) { return pagesWithMatchingImages_.get(index); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; private java.util.List visuallySimilarImages_; /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index) { return visuallySimilarImages_.get(index); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -4891,6 +5455,8 @@ public java.util.List getBestG
     return bestGuessLabels_;
   }
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -4899,11 +5465,13 @@ public java.util.List getBestG
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getBestGuessLabelsOrBuilderList() {
     return bestGuessLabels_;
   }
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -4916,6 +5484,8 @@ public int getBestGuessLabelsCount() {
     return bestGuessLabels_.size();
   }
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -4928,6 +5498,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int i
     return bestGuessLabels_.get(index);
   }
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -4942,6 +5514,7 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -4953,8 +5526,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < webEntities_.size(); i++) {
       output.writeMessage(1, webEntities_.get(i));
     }
@@ -4983,28 +5555,29 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < webEntities_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, webEntities_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i));
     }
     for (int i = 0; i < fullMatchingImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, fullMatchingImages_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i));
     }
     for (int i = 0; i < partialMatchingImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, partialMatchingImages_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, partialMatchingImages_.get(i));
     }
     for (int i = 0; i < pagesWithMatchingImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, pagesWithMatchingImages_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, pagesWithMatchingImages_.get(i));
     }
     for (int i = 0; i < visuallySimilarImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, visuallySimilarImages_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, visuallySimilarImages_.get(i));
     }
     for (int i = 0; i < bestGuessLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, bestGuessLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -5014,25 +5587,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1.WebDetection)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1.WebDetection other = (com.google.cloud.vision.v1.WebDetection) obj;
 
-    if (!getWebEntitiesList()
-        .equals(other.getWebEntitiesList())) return false;
-    if (!getFullMatchingImagesList()
-        .equals(other.getFullMatchingImagesList())) return false;
-    if (!getPartialMatchingImagesList()
-        .equals(other.getPartialMatchingImagesList())) return false;
-    if (!getPagesWithMatchingImagesList()
-        .equals(other.getPagesWithMatchingImagesList())) return false;
-    if (!getVisuallySimilarImagesList()
-        .equals(other.getVisuallySimilarImagesList())) return false;
-    if (!getBestGuessLabelsList()
-        .equals(other.getBestGuessLabelsList())) return false;
+    if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false;
+    if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false;
+    if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false;
+    if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList()))
+      return false;
+    if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false;
+    if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -5073,118 +5641,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1.WebDetection parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1.WebDetection parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1.WebDetection prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetection) com.google.cloud.vision.v1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetection.class, com.google.cloud.vision.v1.WebDetection.Builder.class); + com.google.cloud.vision.v1.WebDetection.class, + com.google.cloud.vision.v1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetection.newBuilder() @@ -5192,14 +5769,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5208,6 +5784,7 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5251,9 +5828,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.WebDetectionProto.internal_static_google_cloud_vision_v1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.WebDetectionProto + .internal_static_google_cloud_vision_v1_WebDetection_descriptor; } @java.lang.Override @@ -5272,7 +5849,8 @@ public com.google.cloud.vision.v1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetection buildPartial() { - com.google.cloud.vision.v1.WebDetection result = new com.google.cloud.vision.v1.WebDetection(this); + com.google.cloud.vision.v1.WebDetection result = + new com.google.cloud.vision.v1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5303,7 +5881,8 @@ public com.google.cloud.vision.v1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5336,38 +5915,39 @@ public com.google.cloud.vision.v1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1.WebDetection)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetection) other); } else { super.mergeFrom(other); return this; @@ -5394,9 +5974,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebEntitiesFieldBuilder() : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebEntitiesFieldBuilder() + : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -5420,9 +6001,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -5446,9 +6028,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -5472,9 +6055,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPagesWithMatchingImagesFieldBuilder() : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPagesWithMatchingImagesFieldBuilder() + : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -5498,9 +6082,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVisuallySimilarImagesFieldBuilder() : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVisuallySimilarImagesFieldBuilder() + : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -5524,9 +6109,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBestGuessLabelsFieldBuilder() : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBestGuessLabelsFieldBuilder() + : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -5560,21 +6146,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(webEntities_); + webEntities_ = + new java.util.ArrayList( + webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebEntity, + com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> + webEntitiesBuilder_; /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5589,6 +6184,8 @@ public java.util.List getWebE } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5603,6 +6200,8 @@ public int getWebEntitiesCount() { } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5617,6 +6216,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int inde } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5638,6 +6239,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5656,6 +6259,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5676,6 +6281,8 @@ public Builder addWebEntities(com.google.cloud.vision.v1.WebDetection.WebEntity return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5697,6 +6304,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5715,6 +6324,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5733,6 +6344,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5743,8 +6356,7 @@ public Builder addAllWebEntities( java.lang.Iterable values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -5752,6 +6364,8 @@ public Builder addAllWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5769,6 +6383,8 @@ public Builder clearWebEntities() { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5786,6 +6402,8 @@ public Builder removeWebEntities(int index) { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5797,6 +6415,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder getWebEntitiesB return getWebEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5806,19 +6426,22 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder getWebEntitiesB public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); } else { + return webEntities_.get(index); + } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -5826,6 +6449,8 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5833,10 +6458,12 @@ public com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntities * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5845,48 +6472,62 @@ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesB */ public com.google.cloud.vision.v1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebEntity, + com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebEntity, com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder>( - webEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + webEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebEntity, + com.google.cloud.vision.v1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder>( + webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); webEntities_ = null; } return webEntitiesBuilder_; } private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5894,7 +6535,8 @@ private void ensureFullMatchingImagesIsMutable() {
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List getFullMatchingImagesList() {
+    public java.util.List
+        getFullMatchingImagesList() {
       if (fullMatchingImagesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(fullMatchingImages_);
       } else {
@@ -5902,6 +6544,8 @@ public java.util.List getFullM
       }
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5917,6 +6561,8 @@ public int getFullMatchingImagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5932,6 +6578,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(in
       }
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5954,6 +6602,8 @@ public Builder setFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5973,6 +6623,8 @@ public Builder setFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -5994,6 +6646,8 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1.WebDetection.Web
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6016,6 +6670,8 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6035,6 +6691,8 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6054,6 +6712,8 @@ public Builder addFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6065,8 +6725,7 @@ public Builder addAllFullMatchingImages(
         java.lang.Iterable values) {
       if (fullMatchingImagesBuilder_ == null) {
         ensureFullMatchingImagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, fullMatchingImages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_);
         onChanged();
       } else {
         fullMatchingImagesBuilder_.addAllMessages(values);
@@ -6074,6 +6733,8 @@ public Builder addAllFullMatchingImages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6092,6 +6753,8 @@ public Builder clearFullMatchingImages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6110,6 +6773,8 @@ public Builder removeFullMatchingImages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6122,6 +6787,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingI
       return getFullMatchingImagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6132,11 +6799,14 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getFullMatchingI
     public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder(
         int index) {
       if (fullMatchingImagesBuilder_ == null) {
-        return fullMatchingImages_.get(index);  } else {
+        return fullMatchingImages_.get(index);
+      } else {
         return fullMatchingImagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6144,8 +6814,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List 
-         getFullMatchingImagesOrBuilderList() {
+    public java.util.List
+        getFullMatchingImagesOrBuilderList() {
       if (fullMatchingImagesBuilder_ != null) {
         return fullMatchingImagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -6153,6 +6823,8 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
       }
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6161,10 +6833,12 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatching
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
     public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() {
-      return getFullMatchingImagesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
+      return getFullMatchingImagesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6174,10 +6848,12 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
      */
     public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder(
         int index) {
-      return getFullMatchingImagesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
+      return getFullMatchingImagesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
@@ -6185,16 +6861,22 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
      */
-    public java.util.List 
-         getFullMatchingImagesBuilderList() {
+    public java.util.List
+        getFullMatchingImagesBuilderList() {
       return getFullMatchingImagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> 
+            com.google.cloud.vision.v1.WebDetection.WebImage,
+            com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
+            com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>
         getFullMatchingImagesFieldBuilder() {
       if (fullMatchingImagesBuilder_ == null) {
-        fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>(
+        fullMatchingImagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.WebDetection.WebImage,
+                com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
+                com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>(
                 fullMatchingImages_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -6204,28 +6886,38 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addFullMatchingI
       return fullMatchingImagesBuilder_;
     }
 
-    private java.util.List partialMatchingImages_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        partialMatchingImages_ = java.util.Collections.emptyList();
+
     private void ensurePartialMatchingImagesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_);
+        partialMatchingImages_ =
+            new java.util.ArrayList(
+                partialMatchingImages_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_;
+            com.google.cloud.vision.v1.WebDetection.WebImage,
+            com.google.cloud.vision.v1.WebDetection.WebImage.Builder,
+            com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>
+        partialMatchingImagesBuilder_;
 
     /**
+     *
+     *
      * 
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6233,13 +6925,16 @@ public java.util.List getParti } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6249,13 +6944,16 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6265,13 +6963,16 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -6288,13 +6989,16 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -6308,15 +7012,19 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6330,13 +7038,16 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1.WebDetection. return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -6353,13 +7064,16 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -6373,13 +7087,16 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -6393,20 +7110,22 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addAllPartialMatchingImages( java.lang.Iterable values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -6414,13 +7133,16 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -6433,13 +7155,16 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6452,45 +7177,55 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6498,51 +7233,67 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatch } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getPartialMatchingImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6552,26 +7303,36 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addPartialMatchi return partialMatchingImagesBuilder_; } - private java.util.List pagesWithMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + pagesWithMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + new java.util.ArrayList( + pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebPage, + com.google.cloud.vision.v1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> + pagesWithMatchingImagesBuilder_; /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -6579,11 +7340,14 @@ public java.util.List getPagesW } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6593,11 +7357,14 @@ public int getPagesWithMatchingImagesCount() { } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6607,11 +7374,14 @@ public com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImage } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage value) { @@ -6628,11 +7398,14 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -6646,13 +7419,17 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages( + com.google.cloud.vision.v1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6666,11 +7443,14 @@ public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1.WebDetectio return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage value) { @@ -6687,11 +7467,14 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -6705,11 +7488,14 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1.WebDetection.WebPage.Builder builderForValue) { @@ -6723,18 +7509,20 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addAllPagesWithMatchingImages( java.lang.Iterable values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -6742,11 +7530,14 @@ public Builder addAllPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6759,11 +7550,14 @@ public Builder clearPagesWithMatchingImages() { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6776,39 +7570,49 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder + getPagesWithMatchingImagesBuilder(int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); } else { + return pagesWithMatchingImages_.get(index); + } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6816,45 +7620,61 @@ public com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatc } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( - int index) { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder(int index) { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebPage, + com.google.cloud.vision.v1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebPage, com.google.cloud.vision.v1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebPage, + com.google.cloud.vision.v1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6864,26 +7684,36 @@ public com.google.cloud.vision.v1.WebDetection.WebPage.Builder addPagesWithMatch return pagesWithMatchingImagesBuilder_; } - private java.util.List visuallySimilarImages_ = - java.util.Collections.emptyList(); + private java.util.List + visuallySimilarImages_ = java.util.Collections.emptyList(); + private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); + visuallySimilarImages_ = + new java.util.ArrayList( + visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + visuallySimilarImagesBuilder_; /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -6891,11 +7721,14 @@ public java.util.List getVisua } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -6905,11 +7738,14 @@ public int getVisuallySimilarImagesCount() { } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -6919,11 +7755,14 @@ public com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -6940,11 +7779,14 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -6958,13 +7800,17 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public Builder addVisuallySimilarImages(com.google.cloud.vision.v1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages( + com.google.cloud.vision.v1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6978,11 +7824,14 @@ public Builder addVisuallySimilarImages(com.google.cloud.vision.v1.WebDetection. return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage value) { @@ -6999,11 +7848,14 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7017,11 +7869,14 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1.WebDetection.WebImage.Builder builderForValue) { @@ -7035,18 +7890,20 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addAllVisuallySimilarImages( java.lang.Iterable values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7054,11 +7911,14 @@ public Builder addAllVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7071,11 +7931,14 @@ public Builder clearVisuallySimilarImages() { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7088,39 +7951,49 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); } else { + return visuallySimilarImages_.get(index); + } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7128,45 +8001,61 @@ public com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimi } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( int index) { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebImage, com.google.cloud.vision.v1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1.WebDetection.WebImage, + com.google.cloud.vision.v1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7177,18 +8066,26 @@ public com.google.cloud.vision.v1.WebDetection.WebImage.Builder addVisuallySimil } private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); + bestGuessLabels_ = + new java.util.ArrayList( + bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; + com.google.cloud.vision.v1.WebDetection.WebLabel, + com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> + bestGuessLabelsBuilder_; /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7196,7 +8093,8 @@ private void ensureBestGuessLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List getBestGuessLabelsList() {
+    public java.util.List
+        getBestGuessLabelsList() {
       if (bestGuessLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(bestGuessLabels_);
       } else {
@@ -7204,6 +8102,8 @@ public java.util.List getBestG
       }
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7219,6 +8119,8 @@ public int getBestGuessLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7234,6 +8136,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int i
       }
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7256,6 +8160,8 @@ public Builder setBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7275,6 +8181,8 @@ public Builder setBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7296,6 +8204,8 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1.WebDetection.WebLab
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7318,6 +8228,8 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7337,6 +8249,8 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7356,6 +8270,8 @@ public Builder addBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7367,8 +8283,7 @@ public Builder addAllBestGuessLabels(
         java.lang.Iterable values) {
       if (bestGuessLabelsBuilder_ == null) {
         ensureBestGuessLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, bestGuessLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_);
         onChanged();
       } else {
         bestGuessLabelsBuilder_.addAllMessages(values);
@@ -7376,6 +8291,8 @@ public Builder addAllBestGuessLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7394,6 +8311,8 @@ public Builder clearBestGuessLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7412,6 +8331,8 @@ public Builder removeBestGuessLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7424,6 +8345,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder getBestGuessLabe
       return getBestGuessLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7434,11 +8357,14 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder getBestGuessLabe
     public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(
         int index) {
       if (bestGuessLabelsBuilder_ == null) {
-        return bestGuessLabels_.get(index);  } else {
+        return bestGuessLabels_.get(index);
+      } else {
         return bestGuessLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7446,8 +8372,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List 
-         getBestGuessLabelsOrBuilderList() {
+    public java.util.List
+        getBestGuessLabelsOrBuilderList() {
       if (bestGuessLabelsBuilder_ != null) {
         return bestGuessLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -7455,6 +8381,8 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
       }
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7463,10 +8391,12 @@ public com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLab
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
     public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() {
-      return getBestGuessLabelsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
+      return getBestGuessLabelsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7476,10 +8406,12 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
      */
     public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder(
         int index) {
-      return getBestGuessLabelsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
+      return getBestGuessLabelsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.WebDetection.WebLabel.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
@@ -7487,16 +8419,22 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
      *
      * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
      */
-    public java.util.List 
-         getBestGuessLabelsBuilderList() {
+    public java.util.List
+        getBestGuessLabelsBuilderList() {
       return getBestGuessLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder> 
+            com.google.cloud.vision.v1.WebDetection.WebLabel,
+            com.google.cloud.vision.v1.WebDetection.WebLabel.Builder,
+            com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>
         getBestGuessLabelsFieldBuilder() {
       if (bestGuessLabelsBuilder_ == null) {
-        bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.WebDetection.WebLabel, com.google.cloud.vision.v1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>(
+        bestGuessLabelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.WebDetection.WebLabel,
+                com.google.cloud.vision.v1.WebDetection.WebLabel.Builder,
+                com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder>(
                 bestGuessLabels_,
                 ((bitField0_ & 0x00000020) != 0),
                 getParentForChildren(),
@@ -7505,9 +8443,9 @@ public com.google.cloud.vision.v1.WebDetection.WebLabel.Builder addBestGuessLabe
       }
       return bestGuessLabelsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -7517,12 +8455,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetection)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetection)
   private static final com.google.cloud.vision.v1.WebDetection DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetection();
   }
@@ -7531,16 +8469,16 @@ public static com.google.cloud.vision.v1.WebDetection getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public WebDetection parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new WebDetection(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public WebDetection parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new WebDetection(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -7555,6 +8493,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1.WebDetection getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
index 62d8fc8fc..42d251025 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/web_detection.proto
 
 package com.google.cloud.vision.v1;
 
-public interface WebDetectionOrBuilder extends
+public interface WebDetectionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetection)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - java.util.List - getWebEntitiesList(); + java.util.List getWebEntitiesList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -25,6 +44,8 @@ public interface WebDetectionOrBuilder extends */ com.google.cloud.vision.v1.WebDetection.WebEntity getWebEntities(int index); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -33,25 +54,30 @@ public interface WebDetectionOrBuilder extends */ int getWebEntitiesCount(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1; */ - com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( - int index); + com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder(int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -59,9 +85,10 @@ com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuild
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
-  java.util.List 
-      getFullMatchingImagesList();
+  java.util.List getFullMatchingImagesList();
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -71,6 +98,8 @@ com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuild
    */
   com.google.cloud.vision.v1.WebDetection.WebImage getFullMatchingImages(int index);
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -80,6 +109,8 @@ com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuild
    */
   int getFullMatchingImagesCount();
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -87,9 +118,11 @@ com.google.cloud.vision.v1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuild
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;
    */
-  java.util.List 
+  java.util.List
       getFullMatchingImagesOrBuilderList();
   /**
+   *
+   *
    * 
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
@@ -101,148 +134,192 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getFullMatchingImagesO
       int index);
 
   /**
+   *
+   *
    * 
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List - getPartialMatchingImagesList(); + java.util.List getPartialMatchingImagesList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ int getPartialMatchingImagesCount(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * repeated .google.cloud.vision.v1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List - getPagesWithMatchingImagesList(); + java.util.List getPagesWithMatchingImagesList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ int getPagesWithMatchingImagesCount(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List - getVisuallySimilarImagesList(); + java.util.List getVisuallySimilarImagesList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1.WebDetection.WebImage getVisuallySimilarImages(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ int getVisuallySimilarImagesCount(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( int index); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -250,9 +327,10 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  java.util.List 
-      getBestGuessLabelsList();
+  java.util.List getBestGuessLabelsList();
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -262,6 +340,8 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    */
   com.google.cloud.vision.v1.WebDetection.WebLabel getBestGuessLabels(int index);
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -271,6 +351,8 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    */
   int getBestGuessLabelsCount();
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -278,9 +360,11 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  java.util.List 
+  java.util.List
       getBestGuessLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
@@ -288,6 +372,5 @@ com.google.cloud.vision.v1.WebDetection.WebImageOrBuilder getVisuallySimilarImag
    *
    * repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;
    */
-  com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
index 2dc32b410..9d8ebb0ac 100644
--- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParams.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1/image_annotator.proto
 
 package com.google.cloud.vision.v1;
 
 /**
+ *
+ *
  * 
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetectionParams} */ -public final class WebDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.WebDetectionParams) WebDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetectionParams() { - } + + private WebDetectionParams() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: { - - includeGeoResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + includeGeoResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetectionParams.class, com.google.cloud.vision.v1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1.WebDetectionParams.class, + com.google.cloud.vision.v1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** + * + * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1.WebDetectionParams other = (com.google.cloud.vision.v1.WebDetectionParams) obj; + com.google.cloud.vision.v1.WebDetectionParams other = + (com.google.cloud.vision.v1.WebDetectionParams) obj; - if (getIncludeGeoResults() - != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1.WebDetectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.WebDetectionParams) com.google.cloud.vision.v1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1.WebDetectionParams.class, com.google.cloud.vision.v1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1.WebDetectionParams.class, + com.google.cloud.vision.v1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1.WebDetectionParams.newBuilder() @@ -291,16 +319,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1_WebDetectionParams_descriptor; } @java.lang.Override @@ -331,7 +358,8 @@ public com.google.cloud.vision.v1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1.WebDetectionParams result = new com.google.cloud.vision.v1.WebDetectionParams(this); + com.google.cloud.vision.v1.WebDetectionParams result = + new com.google.cloud.vision.v1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -341,38 +369,39 @@ public com.google.cloud.vision.v1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1.WebDetectionParams)other); + return mergeFrom((com.google.cloud.vision.v1.WebDetectionParams) other); } else { super.mergeFrom(other); return this; @@ -413,13 +442,16 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_ ; + private boolean includeGeoResults_; /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -427,37 +459,43 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +505,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.WebDetectionParams) private static final com.google.cloud.vision.v1.WebDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.WebDetectionParams(); } @@ -481,16 +519,16 @@ public static com.google.cloud.vision.v1.WebDetectionParams getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +543,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..fb8e2dac4 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/image_annotator.proto + +package com.google.cloud.vision.v1; + +public interface WebDetectionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java new file mode 100644 index 000000000..1a53f72c4 --- /dev/null +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WebDetectionProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1/web_detection.proto + +package com.google.cloud.vision.v1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebPage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vision/v1/web_detection.p" + + "roto\022\026google.cloud.vision.v1\"\324\006\n\014WebDete" + + "ction\022D\n\014web_entities\030\001 \003(\0132..google.clo" + + "ud.vision.v1.WebDetection.WebEntity\022K\n\024f" + + "ull_matching_images\030\002 \003(\0132-.google.cloud" + + ".vision.v1.WebDetection.WebImage\022N\n\027part" + + "ial_matching_images\030\003 \003(\0132-.google.cloud" + + ".vision.v1.WebDetection.WebImage\022P\n\032page" + + "s_with_matching_images\030\004 \003(\0132,.google.cl" + + "oud.vision.v1.WebDetection.WebPage\022N\n\027vi" + + "sually_similar_images\030\006 \003(\0132-.google.clo" + + "ud.vision.v1.WebDetection.WebImage\022H\n\021be" + + "st_guess_labels\030\010 \003(\0132-.google.cloud.vis" + + "ion.v1.WebDetection.WebLabel\032B\n\tWebEntit" + + "y\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\023\n\013d" + + "escription\030\003 \001(\t\032&\n\010WebImage\022\013\n\003url\030\001 \001(" + + "\t\022\r\n\005score\030\002 \001(\002\032\326\001\n\007WebPage\022\013\n\003url\030\001 \001(" + + "\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001(\t\022K\n\024" + + "full_matching_images\030\004 \003(\0132-.google.clou" + + "d.vision.v1.WebDetection.WebImage\022N\n\027par" + + "tial_matching_images\030\005 \003(\0132-.google.clou" + + "d.vision.v1.WebDetection.WebImage\0320\n\010Web" + + "Label\022\r\n\005label\030\001 \001(\t\022\025\n\rlanguage_code\030\002 " + + "\001(\tBy\n\032com.google.cloud.vision.v1B\021WebDe" + + "tectionProtoP\001Z * A word representation. *
* * Protobuf type {@code google.cloud.vision.v1.Word} */ -public final class Word extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Word extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Word) WordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,61 @@ private Word( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + symbols_.add( + input.readMessage(com.google.cloud.vision.v1.Symbol.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1.Symbol.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +133,7 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -118,15 +142,17 @@ private Word( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Word.class, com.google.cloud.vision.v1.Word.Builder.class); } @@ -134,11 +160,14 @@ private Word( public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +175,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the word.
    * 
@@ -172,6 +208,8 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +229,7 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +237,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +258,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +298,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -264,6 +312,8 @@ public java.util.List getSymbolsList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -272,11 +322,13 @@ public java.util.List getSymbolsList() {
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -289,6 +341,8 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -301,6 +355,8 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -309,19 +365,21 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -330,6 +388,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +400,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,20 +423,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,7 +442,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1.Word)) { return super.equals(obj); @@ -397,19 +451,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getSymbolsList() - .equals(other.getSymbolsList())) return false; + if (!getSymbolsList().equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,123 +484,129 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1.Word parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1.Word parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Word parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1.Word parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.vision.v1.Word parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1.Word parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Word parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Word parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1.Word parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1.Word} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Word) com.google.cloud.vision.v1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_fieldAccessorTable + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.vision.v1.Word.class, com.google.cloud.vision.v1.Word.Builder.class); } @@ -560,17 +616,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +654,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1.TextAnnotationProto.internal_static_google_cloud_vision_v1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1.TextAnnotationProto + .internal_static_google_cloud_vision_v1_Word_descriptor; } @java.lang.Override @@ -649,38 +705,39 @@ public com.google.cloud.vision.v1.Word buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1.Word) { - return mergeFrom((com.google.cloud.vision.v1.Word)other); + return mergeFrom((com.google.cloud.vision.v1.Word) other); } else { super.mergeFrom(other); return this; @@ -713,9 +770,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymbolsFieldBuilder() : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymbolsFieldBuilder() + : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -752,38 +810,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -804,6 +876,8 @@ public Builder setProperty(com.google.cloud.vision.v1.TextAnnotation.TextPropert return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -822,6 +896,8 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -832,7 +908,9 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -844,6 +922,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1.TextAnnotation.TextPrope return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -862,6 +942,8 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -869,11 +951,13 @@ public Builder clearProperty() { * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ public com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -884,11 +968,14 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -896,14 +983,17 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.TextAnnotation.TextProperty, com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -911,8 +1001,13 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper private com.google.cloud.vision.v1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1.BoundingPoly, + com.google.cloud.vision.v1.BoundingPoly.Builder, + com.google.cloud.vision.v1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -932,12 +1027,15 @@ public com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getProper
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -957,16 +1055,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1001,6 +1104,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1021,8 +1126,7 @@ public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
      *
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
-    public Builder setBoundingBox(
-        com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
+    public Builder setBoundingBox(com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) {
       if (boundingBoxBuilder_ == null) {
         boundingBox_ = builderForValue.build();
         onChanged();
@@ -1033,6 +1137,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1057,7 +1163,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1069,6 +1177,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1.BoundingPoly value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,6 +1211,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1122,11 +1234,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1151,11 +1265,14 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1177,32 +1294,41 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(
      * .google.cloud.vision.v1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1.BoundingPoly,
+            com.google.cloud.vision.v1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1.BoundingPoly, com.google.cloud.vision.v1.BoundingPoly.Builder, com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1.BoundingPoly,
+                com.google.cloud.vision.v1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder> symbolsBuilder_;
+            com.google.cloud.vision.v1.Symbol,
+            com.google.cloud.vision.v1.Symbol.Builder,
+            com.google.cloud.vision.v1.SymbolOrBuilder>
+        symbolsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1218,6 +1344,8 @@ public java.util.List getSymbolsList() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1233,6 +1361,8 @@ public int getSymbolsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1248,6 +1378,8 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1255,8 +1387,7 @@ public com.google.cloud.vision.v1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder setSymbols(
-        int index, com.google.cloud.vision.v1.Symbol value) {
+    public Builder setSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1270,6 +1401,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1289,6 +1422,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1310,6 +1445,8 @@ public Builder addSymbols(com.google.cloud.vision.v1.Symbol value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1317,8 +1454,7 @@ public Builder addSymbols(com.google.cloud.vision.v1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        int index, com.google.cloud.vision.v1.Symbol value) {
+    public Builder addSymbols(int index, com.google.cloud.vision.v1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1332,6 +1468,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1339,8 +1477,7 @@ public Builder addSymbols(
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        com.google.cloud.vision.v1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(com.google.cloud.vision.v1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1351,6 +1488,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1370,6 +1509,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1381,8 +1522,7 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1390,6 +1530,8 @@ public Builder addAllSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1408,6 +1550,8 @@ public Builder clearSymbols() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1426,6 +1570,8 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1433,11 +1579,12 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,14 +1592,16 @@ public com.google.cloud.vision.v1.Symbol.Builder getSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);  } else {
+        return symbols_.get(index);
+      } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1460,8 +1609,8 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsOrBuilderList() {
+    public java.util.List
+        getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1469,6 +1618,8 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,10 +1628,12 @@ public com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1488,12 +1641,13 @@ public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(
-        int index) {
-      return getSymbolsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(int index) {
+      return getSymbolsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1501,32 +1655,37 @@ public com.google.cloud.vision.v1.Symbol.Builder addSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsBuilderList() {
+    public java.util.List getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder> 
+            com.google.cloud.vision.v1.Symbol,
+            com.google.cloud.vision.v1.Symbol.Builder,
+            com.google.cloud.vision.v1.SymbolOrBuilder>
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1.Symbol, com.google.cloud.vision.v1.Symbol.Builder, com.google.cloud.vision.v1.SymbolOrBuilder>(
-                symbols_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        symbolsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1.Symbol,
+                com.google.cloud.vision.v1.Symbol.Builder,
+                com.google.cloud.vision.v1.SymbolOrBuilder>(
+                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1534,37 +1693,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1574,12 +1739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Word) private static final com.google.cloud.vision.v1.Word DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Word(); } @@ -1588,16 +1753,16 @@ public static com.google.cloud.vision.v1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1777,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java rename to proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java index 0061a231c..f4a12cac7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java +++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/WordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1/text_annotation.proto package com.google.cloud.vision.v1; -public interface WordOrBuilder extends +public interface WordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Word) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
@@ -35,6 +59,8 @@ public interface WordOrBuilder extends com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,6 +136,8 @@ public interface WordOrBuilder extends
   com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -111,9 +145,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsList();
+  java.util.List getSymbolsList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -123,6 +158,8 @@ public interface WordOrBuilder extends
    */
   com.google.cloud.vision.v1.Symbol getSymbols(int index);
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -132,6 +169,8 @@ public interface WordOrBuilder extends
    */
   int getSymbolsCount();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -139,9 +178,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsOrBuilderList();
+  java.util.List getSymbolsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -149,15 +189,17 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1.SymbolOrBuilder getSymbolsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/geometry.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto rename to proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/web_detection.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java index f0c8b5760..37bebc618 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,56 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p1beta1.Image.Builder subBuilder = null;
-            if (image_ != null) {
-              subBuilder = image_.toBuilder();
-            }
-            image_ = input.readMessage(com.google.cloud.vision.v1p1beta1.Image.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(image_);
-              image_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p1beta1.Image.Builder subBuilder = null;
+              if (image_ != null) {
+                subBuilder = image_.toBuilder();
+              }
+              image_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p1beta1.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(image_);
+                image_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              features_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            features_.add(
-                input.readMessage(com.google.cloud.vision.v1p1beta1.Feature.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.vision.v1p1beta1.ImageContext.Builder subBuilder = null;
-            if (imageContext_ != null) {
-              subBuilder = imageContext_.toBuilder();
-            }
-            imageContext_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageContext.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(imageContext_);
-              imageContext_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                features_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              features_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p1beta1.Feature.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.vision.v1p1beta1.ImageContext.Builder subBuilder = null;
+              if (imageContext_ != null) {
+                subBuilder = imageContext_.toBuilder();
+              }
+              imageContext_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p1beta1.ImageContext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(imageContext_);
+                imageContext_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,8 +129,7 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -114,27 +138,33 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class,
+            com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p1beta1.Image image_;
   /**
+   *
+   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -142,11 +172,14 @@ public boolean hasImage() { return image_ != null; } /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -154,6 +187,8 @@ public com.google.cloud.vision.v1p1beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; } /** + * + * *
    * The image to be processed.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Requested features.
    * 
@@ -179,6 +216,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Requested features.
    * 
@@ -186,11 +225,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -202,6 +243,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Requested features.
    * 
@@ -213,6 +256,8 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Requested features.
    * 
@@ -220,19 +265,21 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p1beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -240,18 +287,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image.
    * 
@@ -264,6 +318,7 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -296,16 +350,13 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,24 +366,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other = + (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -363,96 +412,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -460,21 +517,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.class,
+              com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.newBuilder()
@@ -482,17 +541,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -518,9 +577,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -539,7 +598,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p1beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p1beta1.AnnotateImageRequest result =
+          new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -568,38 +628,39 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,7 +668,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance())
+        return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -629,9 +691,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFeaturesFieldBuilder() : null;
+            featuresBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFeaturesFieldBuilder()
+                    : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -659,7 +722,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p1beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,38 +732,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p1beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder> imageBuilder_;
+            com.google.cloud.vision.v1p1beta1.Image,
+            com.google.cloud.vision.v1p1beta1.Image.Builder,
+            com.google.cloud.vision.v1p1beta1.ImageOrBuilder>
+        imageBuilder_;
     /**
+     *
+     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return The image. */ public com.google.cloud.vision.v1p1beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() + : image_; } else { return imageBuilder_.getMessage(); } } /** + * + * *
      * The image to be processed.
      * 
@@ -720,14 +798,15 @@ public Builder setImage(com.google.cloud.vision.v1p1beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; */ - public Builder setImage( - com.google.cloud.vision.v1p1beta1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.vision.v1p1beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -738,6 +817,8 @@ public Builder setImage( return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -748,7 +829,9 @@ public Builder mergeImage(com.google.cloud.vision.v1p1beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p1beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); } else { image_ = value; } @@ -760,6 +843,8 @@ public Builder mergeImage(com.google.cloud.vision.v1p1beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -778,6 +863,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -785,11 +872,13 @@ public Builder clearImage() { * .google.cloud.vision.v1p1beta1.Image image = 1; */ public com.google.cloud.vision.v1p1beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * The image to be processed.
      * 
@@ -800,11 +889,14 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? - com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p1beta1.Image.getDefaultInstance() + : image_; } } /** + * + * *
      * The image to be processed.
      * 
@@ -812,32 +904,41 @@ public com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p1beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder> + com.google.cloud.vision.v1p1beta1.Image, + com.google.cloud.vision.v1p1beta1.Image.Builder, + com.google.cloud.vision.v1p1beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Image, com.google.cloud.vision.v1p1beta1.Image.Builder, com.google.cloud.vision.v1p1beta1.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Image, + com.google.cloud.vision.v1p1beta1.Image.Builder, + com.google.cloud.vision.v1p1beta1.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p1beta1.Feature, + com.google.cloud.vision.v1p1beta1.Feature.Builder, + com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Requested features.
      * 
@@ -852,6 +953,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Requested features.
      * 
@@ -866,6 +969,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Requested features.
      * 
@@ -880,14 +985,15 @@ public com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p1beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,6 +1007,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -919,6 +1027,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -939,14 +1049,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p1beta1.Feature value) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p1beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p1beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,14 +1071,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p1beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p1beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -978,6 +1090,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -996,6 +1110,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1006,8 +1122,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1015,6 +1130,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1032,6 +1149,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Requested features.
      * 
@@ -1049,39 +1168,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1089,6 +1213,8 @@ public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Requested features.
      * 
@@ -1096,42 +1222,48 @@ public com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p1beta1.Feature, + com.google.cloud.vision.v1p1beta1.Feature.Builder, + com.google.cloud.vision.v1p1beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Feature, com.google.cloud.vision.v1p1beta1.Feature.Builder, com.google.cloud.vision.v1p1beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Feature, + com.google.cloud.vision.v1p1beta1.Feature.Builder, + com.google.cloud.vision.v1p1beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1139,34 +1271,47 @@ public com.google.cloud.vision.v1p1beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p1beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p1beta1.ImageContext, + com.google.cloud.vision.v1p1beta1.ImageContext.Builder, + com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p1beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1187,6 +1332,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p1beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1205,6 +1352,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1215,7 +1364,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p1beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1227,6 +1378,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p1beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1245,6 +1398,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1252,11 +1407,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p1beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1267,11 +1424,14 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p1beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1279,21 +1439,24 @@ public com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p1beta1.ImageContext, + com.google.cloud.vision.v1p1beta1.ImageContext.Builder, + com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageContext, com.google.cloud.vision.v1p1beta1.ImageContext.Builder, com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ImageContext, + com.google.cloud.vision.v1p1beta1.ImageContext.Builder, + com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p1beta1.AnnotateImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.AnnotateImageRequest(); } @@ -1317,16 +1480,16 @@ public static com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,6 +1504,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java index 20070dd68..f66b53c99 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface AnnotateImageRequestOrBuilder extends +public interface AnnotateImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p1beta1.Image image = 1; + * * @return The image. */ com.google.cloud.vision.v1p1beta1.Image getImage(); /** + * + * *
    * The image to be processed.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateImageRequestOrBuilder extends com.google.cloud.vision.v1p1beta1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateImageRequestOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Feature getFeatures(int index); /** + * + * *
    * Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AnnotateImageRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Feature features = 2; */ - com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p1beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p1beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java index 9c554e4d2..ded3ff0de 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -29,16 +47,15 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,136 +75,175 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + faceAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.parser(), + extensionRegistry)); + break; } - faceAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.FaceAnnotation.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - labelAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - textAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + textAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } + case 50: + { + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); + } + safeSearchAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.vision.v1p1beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); + } + imagePropertiesAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.ImageProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 74: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + break; } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } - break; - } - case 90: { - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); + break; } + case 90: + { + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 98: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); + break; } + case 98: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 106: { - com.google.cloud.vision.v1p1beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); + break; } + case 106: + { + com.google.cloud.vision.v1p1beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -195,8 +251,7 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -217,22 +272,27 @@ private AnnotateImageResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -244,6 +304,8 @@ public java.util.List getFaceA return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -251,11 +313,13 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -267,6 +331,8 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -278,6 +344,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -293,6 +361,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -300,10 +370,13 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -311,11 +384,13 @@ public java.util.List getLan * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -327,6 +402,8 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -338,6 +415,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -345,14 +424,16 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -360,10 +441,13 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAn * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -371,11 +455,13 @@ public java.util.List getLog * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -387,6 +473,8 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -398,6 +486,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -413,6 +503,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -420,10 +512,13 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -431,11 +526,13 @@ public java.util.List getLab * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -447,6 +544,8 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -458,6 +557,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -473,6 +574,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -480,10 +583,13 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -491,11 +597,13 @@ public java.util.List getTex * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -507,6 +615,8 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -518,6 +628,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -533,6 +645,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p1beta1.TextAnnotation fullTextAnnotation_; /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -541,6 +655,7 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -548,6 +663,8 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -556,13 +673,18 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -573,18 +695,22 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder
+      getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -592,18 +718,25 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -611,18 +744,22 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p1beta1.ImageProperties imagePropertiesAnnotation_; /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -630,18 +767,25 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -649,18 +793,22 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p1beta1.CropHintsAnnotation cropHintsAnnotation_; /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -668,18 +816,25 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -687,18 +842,22 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p1beta1.WebDetection webDetection_; /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -706,18 +865,25 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection() { - return webDetection_ == null ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() + : webDetection_; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -732,6 +898,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -739,6 +907,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ @java.lang.Override @@ -746,6 +915,8 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -753,6 +924,7 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ @java.lang.Override @@ -760,6 +932,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -774,6 +948,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -785,8 +960,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -830,48 +1004,42 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, landmarkAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getSafeSearchAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getImagePropertiesAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCropHintsAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -881,52 +1049,43 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList()
-        .equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList()
-        .equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList()
-        .equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList()
-        .equals(other.getLabelAnnotationsList())) return false;
-    if (!getTextAnnotationsList()
-        .equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other =
+        (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
+    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation()
-          .equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation()
-          .equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation()
-          .equals(other.getImagePropertiesAnnotation())) return false;
+      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
+        return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation()
-          .equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection()
-          .equals(other.getWebDetection())) return false;
+      if (!getWebDetection().equals(other.getWebDetection())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -989,117 +1148,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p1beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.AnnotateImageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.AnnotateImageResponse) com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.newBuilder() @@ -1107,14 +1276,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1122,6 +1290,7 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1195,9 +1364,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1216,7 +1385,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse result = + new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1301,38 +1471,39 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageResponse)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) other); } else { super.mergeFrom(other); return this; @@ -1340,7 +1511,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()) + return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1359,9 +1531,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFaceAnnotationsFieldBuilder() : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFaceAnnotationsFieldBuilder() + : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1385,9 +1558,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarkAnnotationsFieldBuilder() : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarkAnnotationsFieldBuilder() + : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1411,9 +1585,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogoAnnotationsFieldBuilder() : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoAnnotationsFieldBuilder() + : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1437,9 +1612,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelAnnotationsFieldBuilder() : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1463,9 +1639,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextAnnotationsFieldBuilder() : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1508,7 +1685,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1517,28 +1695,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = + new java.util.ArrayList( + faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.FaceAnnotation, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> + faceAnnotationsBuilder_; /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List getFaceAnnotationsList() { + public java.util.List + getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1546,6 +1734,8 @@ public java.util.List getFaceA } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1560,6 +1750,8 @@ public int getFaceAnnotationsCount() { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1574,6 +1766,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int i } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1595,6 +1789,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1613,6 +1809,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1633,6 +1831,8 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p1beta1.FaceAnnotati return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1654,6 +1854,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1672,6 +1874,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1690,6 +1894,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1700,8 +1906,7 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -1709,6 +1914,8 @@ public Builder addAllFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1726,6 +1933,8 @@ public Builder clearFaceAnnotations() { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1743,6 +1952,8 @@ public Builder removeFaceAnnotations(int index) { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1754,6 +1965,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1763,19 +1976,22 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); } else { + return faceAnnotations_.get(index); + } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -1783,6 +1999,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1790,10 +2008,12 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1802,26 +2022,34 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.FaceAnnotation, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.FaceAnnotation, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1831,26 +2059,36 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + landmarkAnnotations_ = java.util.Collections.emptyList(); + private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); + landmarkAnnotations_ = + new java.util.ArrayList( + landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + landmarkAnnotationsBuilder_; /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -1858,11 +2096,14 @@ public java.util.List getLan } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -1872,11 +2113,14 @@ public int getLandmarkAnnotationsCount() { } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -1886,11 +2130,14 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { @@ -1907,11 +2154,14 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -1925,13 +2175,17 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations( + com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1945,11 +2199,14 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p1beta1.EntityAn return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation value) { @@ -1966,11 +2223,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -1984,11 +2244,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder builderForValue) { @@ -2002,18 +2265,20 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2021,11 +2286,14 @@ public Builder addAllLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2038,11 +2306,14 @@ public Builder clearLandmarkAnnotations() { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2055,39 +2326,49 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); } else { + return landmarkAnnotations_.get(index); + } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2095,45 +2376,62 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAn } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder + addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2144,25 +2442,34 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = + new java.util.ArrayList( + logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + logoAnnotationsBuilder_; /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2170,6 +2477,8 @@ public java.util.List getLog } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2184,6 +2493,8 @@ public int getLogoAnnotationsCount() { } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2198,6 +2509,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2219,6 +2532,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2237,6 +2552,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2257,6 +2574,8 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnota return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2278,6 +2597,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2296,6 +2617,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2314,6 +2637,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2324,8 +2649,7 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2333,6 +2657,8 @@ public Builder addAllLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2350,6 +2676,8 @@ public Builder clearLogoAnnotations() { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2367,6 +2695,8 @@ public Builder removeLogoAnnotations(int index) { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2378,6 +2708,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2387,19 +2719,22 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); } else { + return logoAnnotations_.get(index); + } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2407,6 +2742,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2414,10 +2751,12 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2426,26 +2765,35 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2456,25 +2804,34 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = + new java.util.ArrayList( + labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + labelAnnotationsBuilder_; /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2482,6 +2839,8 @@ public java.util.List getLab } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2496,6 +2855,8 @@ public int getLabelAnnotationsCount() { } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2510,6 +2871,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(in } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2531,6 +2894,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2549,6 +2914,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2569,6 +2936,8 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnot return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2590,6 +2959,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2608,6 +2979,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2626,6 +2999,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2636,8 +3011,7 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -2645,6 +3019,8 @@ public Builder addAllLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2662,6 +3038,8 @@ public Builder clearLabelAnnotations() { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2679,6 +3057,8 @@ public Builder removeLabelAnnotations(int index) { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2690,6 +3070,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2699,19 +3081,22 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); } else { + return labelAnnotations_.get(index); + } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2719,6 +3104,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2726,10 +3113,12 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2738,26 +3127,35 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -2768,25 +3166,34 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addLabelAnnota } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = new java.util.ArrayList(textAnnotations_); + textAnnotations_ = + new java.util.ArrayList( + textAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + textAnnotationsBuilder_; /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -2794,6 +3201,8 @@ public java.util.List getTex } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2808,6 +3217,8 @@ public int getTextAnnotationsCount() { } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2822,6 +3233,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2843,6 +3256,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2861,6 +3276,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2881,6 +3298,8 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p1beta1.EntityAnnota return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2902,6 +3321,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2920,6 +3341,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2938,6 +3361,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2948,8 +3373,7 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -2957,6 +3381,8 @@ public Builder addAllTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2974,6 +3400,8 @@ public Builder clearTextAnnotations() { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2991,6 +3419,8 @@ public Builder removeTextAnnotations(int index) { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3002,6 +3432,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3011,19 +3443,22 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); } else { + return textAnnotations_.get(index); + } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3031,6 +3466,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3038,10 +3475,12 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3050,26 +3489,35 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.EntityAnnotation, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.EntityAnnotation, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3081,8 +3529,13 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p1beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation, + com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> + fullTextAnnotationBuilder_; /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3091,12 +3544,15 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3105,16 +3561,21 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3138,6 +3599,8 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnnot
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3159,6 +3622,8 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3172,7 +3637,9 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3184,6 +3651,8 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p1beta1.TextAnn
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3205,6 +3674,8 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3215,11 +3686,13 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-      
+
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3229,15 +3702,19 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder
+        getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null ?
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
+        return fullTextAnnotation_ == null
+            ? com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance()
+            : fullTextAnnotation_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3248,14 +3725,17 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnno
      * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.TextAnnotation,
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder,
+            com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.TextAnnotation, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(),
-                getParentForChildren(),
-                isClean());
+        fullTextAnnotationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.TextAnnotation,
+                com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder,
+                com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(), getParentForChildren(), isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3263,41 +3743,55 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnno
 
     private com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation,
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder,
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>
+        safeSearchAnnotationBuilder_;
     /**
+     *
+     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation( + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3311,6 +3805,8 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeSea return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3329,17 +3825,23 @@ public Builder setSafeSearchAnnotation( return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation( + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder( + safeSearchAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3351,6 +3853,8 @@ public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p1beta1.SafeS return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3369,33 +3873,42 @@ public Builder clearSafeSearchAnnotation() { return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder + getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null ? - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3403,14 +3916,17 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSe * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), - getParentForChildren(), - isClean()); + safeSearchAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), getParentForChildren(), isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -3418,41 +3934,55 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSe private com.google.cloud.vision.v1p1beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.ImageProperties, + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> + imagePropertiesAnnotationBuilder_; /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation( + com.google.cloud.vision.v1p1beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3466,6 +3996,8 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1.Im return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3484,17 +4016,23 @@ public Builder setImagePropertiesAnnotation( return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation( + com.google.cloud.vision.v1p1beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder( + imagePropertiesAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -3506,6 +4044,8 @@ public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p1beta1. return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3524,33 +4064,42 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p1beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.ImageProperties.Builder + getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null ? - com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3558,14 +4107,17 @@ public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImageProper * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p1beta1.ImageProperties, + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageProperties, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), - getParentForChildren(), - isClean()); + imagePropertiesAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ImageProperties, + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), getParentForChildren(), isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -3573,41 +4125,55 @@ public com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImageProper private com.google.cloud.vision.v1p1beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> + cropHintsAnnotationBuilder_; /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation( + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3621,6 +4187,8 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHint return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3639,17 +4207,22 @@ public Builder setCropHintsAnnotation( return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation( + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -3661,6 +4234,8 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p1beta1.CropHi return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3679,33 +4254,42 @@ public Builder clearCropHintsAnnotation() { return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder + getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null ? - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3713,14 +4297,17 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHin * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), - getParentForChildren(), - isClean()); + cropHintsAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), getParentForChildren(), isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -3728,34 +4315,47 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHin private com.google.cloud.vision.v1p1beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> webDetectionBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection, + com.google.cloud.vision.v1p1beta1.WebDetection.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> + webDetectionBuilder_; /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ public com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() + : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3776,6 +4376,8 @@ public Builder setWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection va return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3794,6 +4396,8 @@ public Builder setWebDetection( return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3804,7 +4408,9 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder(webDetection_) + .mergeFrom(value) + .buildPartial(); } else { webDetection_ = value; } @@ -3816,6 +4422,8 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p1beta1.WebDetection return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3834,6 +4442,8 @@ public Builder clearWebDetection() { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3841,11 +4451,13 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p1beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3856,11 +4468,14 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null ? - com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetection.getDefaultInstance() + : webDetection_; } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3868,14 +4483,17 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection, + com.google.cloud.vision.v1p1beta1.WebDetection.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection, com.google.cloud.vision.v1p1beta1.WebDetection.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder>( - getWebDetection(), - getParentForChildren(), - isClean()); + webDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection, + com.google.cloud.vision.v1p1beta1.WebDetection.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder>( + getWebDetection(), getParentForChildren(), isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -3883,8 +4501,11 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3892,12 +4513,15 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOr
      * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3905,6 +4529,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -3915,6 +4540,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3937,6 +4564,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3945,8 +4574,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -3957,6 +4585,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3968,8 +4598,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -3981,6 +4610,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4001,6 +4632,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4010,11 +4643,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4027,11 +4662,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4041,21 +4677,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4065,12 +4701,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p1beta1.AnnotateImageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.AnnotateImageResponse();
   }
@@ -4079,16 +4715,16 @@ public static com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateImageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateImageResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateImageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateImageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4103,6 +4739,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
index 1ee0a0448..29bcb0f3c 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/AnnotateImageResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
-public interface AnnotateImageResponseOrBuilder extends
+public interface AnnotateImageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - java.util.List - getFaceAnnotationsList(); + java.util.List getFaceAnnotationsList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -25,6 +44,8 @@ public interface AnnotateImageResponseOrBuilder extends */ com.google.cloud.vision.v1p1beta1.FaceAnnotation getFaceAnnotations(int index); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -33,34 +54,40 @@ public interface AnnotateImageResponseOrBuilder extends */ int getFaceAnnotationsCount(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List - getLandmarkAnnotationsList(); + java.util.List getLandmarkAnnotationsList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLandmarkAnnotations(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ int getLandmarkAnnotationsCount(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,15 +129,18 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List - getLogoAnnotationsList(); + java.util.List getLogoAnnotationsList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -113,6 +149,8 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLogoAnnotations(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -121,15 +159,19 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -140,15 +182,18 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - java.util.List - getLabelAnnotationsList(); + java.util.List getLabelAnnotationsList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -157,6 +202,8 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getLabelAnnotations(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -165,15 +212,19 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -184,15 +235,18 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - java.util.List - getTextAnnotationsList(); + java.util.List getTextAnnotationsList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -201,6 +255,8 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ com.google.cloud.vision.v1p1beta1.EntityAnnotation getTextAnnotations(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -209,15 +265,19 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ int getTextAnnotationsCount(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p1beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -228,6 +288,8 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -236,10 +298,13 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -248,10 +313,13 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p1beta1.TextAnnotation getFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -264,78 +332,104 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p1beta1.ImageProperties getImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p1beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -345,24 +439,32 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ com.google.cloud.vision.v1p1beta1.WebDetection getWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -372,6 +474,8 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -379,10 +483,13 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -390,10 +497,13 @@ com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
index 2039cb820..ba7efea32 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.parser(), + extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -87,72 +108,95 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -161,6 +205,7 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -187,8 +231,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +241,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +271,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.newBuilder() @@ -346,17 +399,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -391,7 +445,8 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +465,39 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -468,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -495,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +564,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -533,11 +605,15 @@ public java.util.List ge } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -547,11 +623,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -561,11 +641,15 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int in } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { @@ -582,11 +666,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -600,11 +688,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -620,11 +712,15 @@ public Builder addRequests(com.google.cloud.vision.v1p1beta1.AnnotateImageReques return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest value) { @@ -641,11 +737,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -659,11 +759,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder builderForValue) { @@ -677,18 +781,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -696,11 +804,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -713,11 +825,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -730,39 +846,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -770,56 +899,72 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +974,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest(); } @@ -843,16 +989,16 @@ public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..4811ba03f --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/image_annotator.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface BatchAnnotateImagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p1beta1.AnnotateImageRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p1beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p1beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java index 26dfffc1b..600257f02 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -110,10 +136,13 @@ private BatchAnnotateImagesResponse( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -121,11 +150,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -137,6 +168,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,6 +181,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -161,6 +196,7 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -187,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +262,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.newBuilder() @@ -346,17 +390,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -391,7 +436,8 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +456,39 @@ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +496,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -468,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -495,7 +545,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +556,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -533,6 +595,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -547,6 +611,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -561,6 +627,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -582,6 +650,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -589,7 +659,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -600,6 +671,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,6 +693,8 @@ public Builder addResponses(com.google.cloud.vision.v1p1beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -641,6 +716,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,6 +736,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -666,7 +745,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -677,6 +757,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -684,11 +766,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -696,6 +778,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -713,6 +797,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -730,6 +816,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -741,6 +829,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -750,19 +840,23 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +864,8 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -777,10 +873,12 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -789,37 +887,43 @@ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +933,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse(); } @@ -843,16 +948,16 @@ public static com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +972,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java index 564cfec86..b344890fb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface BatchAnnotateImagesResponseOrBuilder extends +public interface BatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -25,6 +44,8 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p1beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -33,21 +54,24 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java index bc80bf611..6b9735236 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Block} */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Block extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Block) BlockOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -26,16 +44,15 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,71 @@ private Block( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paragraphs_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Paragraph.parser(), extensionRegistry)); + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + blockType_ = rawValue; + break; } - paragraphs_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Paragraph.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - blockType_ = rawValue; - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,8 +144,7 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -125,29 +153,35 @@ private Block( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Block.class, com.google.cloud.vision.v1p1beta1.Block.Builder.class); + com.google.cloud.vision.v1p1beta1.Block.class, + com.google.cloud.vision.v1p1beta1.Block.Builder.class); } /** + * + * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.Block.BlockType} */ - public enum BlockType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown block type.
      * 
@@ -156,6 +190,8 @@ public enum BlockType */ UNKNOWN(0), /** + * + * *
      * Regular text block.
      * 
@@ -164,6 +200,8 @@ public enum BlockType */ TEXT(1), /** + * + * *
      * Table block.
      * 
@@ -172,6 +210,8 @@ public enum BlockType */ TABLE(2), /** + * + * *
      * Image block.
      * 
@@ -180,6 +220,8 @@ public enum BlockType */ PICTURE(3), /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -188,6 +230,8 @@ public enum BlockType */ RULER(4), /** + * + * *
      * Barcode block.
      * 
@@ -199,6 +243,8 @@ public enum BlockType ; /** + * + * *
      * Unknown block type.
      * 
@@ -207,6 +253,8 @@ public enum BlockType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Regular text block.
      * 
@@ -215,6 +263,8 @@ public enum BlockType */ public static final int TEXT_VALUE = 1; /** + * + * *
      * Table block.
      * 
@@ -223,6 +273,8 @@ public enum BlockType */ public static final int TABLE_VALUE = 2; /** + * + * *
      * Image block.
      * 
@@ -231,6 +283,8 @@ public enum BlockType */ public static final int PICTURE_VALUE = 3; /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -239,6 +293,8 @@ public enum BlockType */ public static final int RULER_VALUE = 4; /** + * + * *
      * Barcode block.
      * 
@@ -247,7 +303,6 @@ public enum BlockType */ public static final int BARCODE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,52 +327,55 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return TEXT; - case 2: return TABLE; - case 3: return PICTURE; - case 4: return RULER; - case 5: return BARCODE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return TEXT; + case 2: + return TABLE; + case 3: + return PICTURE; + case 4: + return RULER; + case 5: + return BARCODE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p1beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,11 +395,14 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -349,18 +410,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the block.
    * 
@@ -368,13 +436,16 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -394,6 +465,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -401,6 +473,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -420,13 +494,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -455,6 +534,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -466,6 +547,8 @@ public java.util.List getParagraphs return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -473,11 +556,13 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -489,6 +574,8 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -500,6 +587,8 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -507,46 +596,57 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Block.BlockType result = com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p1beta1.Block.BlockType result = + com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -555,6 +655,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,8 +667,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -593,24 +693,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p1beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,7 +715,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Block)) { return super.equals(obj); @@ -629,20 +724,16 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getParagraphsList() - .equals(other.getParagraphsList())) return false; + if (!getParagraphsList().equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,125 +760,133 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Block parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Block} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Block) com.google.cloud.vision.v1p1beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Block.class, com.google.cloud.vision.v1p1beta1.Block.Builder.class); + com.google.cloud.vision.v1p1beta1.Block.class, + com.google.cloud.vision.v1p1beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Block.newBuilder() @@ -795,17 +894,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +934,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; } @java.lang.Override @@ -856,7 +955,8 @@ public com.google.cloud.vision.v1p1beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block buildPartial() { - com.google.cloud.vision.v1p1beta1.Block result = new com.google.cloud.vision.v1p1beta1.Block(this); + com.google.cloud.vision.v1p1beta1.Block result = + new com.google.cloud.vision.v1p1beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -887,38 +987,39 @@ public com.google.cloud.vision.v1p1beta1.Block buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Block)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Block) other); } else { super.mergeFrom(other); return this; @@ -951,9 +1052,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParagraphsFieldBuilder() : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParagraphsFieldBuilder() + : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -993,45 +1095,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1045,6 +1162,8 @@ public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1063,17 +1182,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -1085,6 +1209,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1103,33 +1229,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1137,14 +1272,17 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1152,8 +1290,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1173,12 +1316,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1198,16 +1344,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,6 +1393,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1274,6 +1427,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1298,7 +1453,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1310,6 +1467,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1342,6 +1501,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1363,11 +1524,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1392,11 +1555,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1418,32 +1584,42 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ = new java.util.ArrayList(paragraphs_);
+        paragraphs_ =
+            new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> paragraphsBuilder_;
+            com.google.cloud.vision.v1p1beta1.Paragraph,
+            com.google.cloud.vision.v1p1beta1.Paragraph.Builder,
+            com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>
+        paragraphsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1458,6 +1634,8 @@ public java.util.List getParagraphs } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1472,6 +1650,8 @@ public int getParagraphsCount() { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1486,14 +1666,15 @@ public com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index) { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs( - int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { + public Builder setParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,6 +1688,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1525,6 +1708,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1545,14 +1730,15 @@ public Builder addParagraphs(com.google.cloud.vision.v1p1beta1.Paragraph value) return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { + public Builder addParagraphs(int index, com.google.cloud.vision.v1p1beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1566,6 +1752,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1584,6 +1772,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1602,6 +1792,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1612,8 +1804,7 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1621,6 +1812,8 @@ public Builder addAllParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,6 +1831,8 @@ public Builder clearParagraphs() { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1655,39 +1850,44 @@ public Builder removeParagraphs(int index) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.Paragraph.Builder getParagraphsBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Paragraph.Builder getParagraphsBuilder(int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); } else { + return paragraphs_.get(index); + } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,6 +1895,8 @@ public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1702,42 +1904,48 @@ public com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder( - int index) { - return getParagraphsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder(int index) { + return getParagraphsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p1beta1.Paragraph, + com.google.cloud.vision.v1p1beta1.Paragraph.Builder, + com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Paragraph, com.google.cloud.vision.v1p1beta1.Paragraph.Builder, com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>( - paragraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + paragraphsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Paragraph, + com.google.cloud.vision.v1p1beta1.Paragraph.Builder, + com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder>( + paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1745,51 +1953,67 @@ public com.google.cloud.vision.v1p1beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Block.BlockType result = com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); - return result == null ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p1beta1.Block.BlockType result = + com.google.cloud.vision.v1p1beta1.Block.BlockType.valueOf(blockType_); + return result == null + ? com.google.cloud.vision.v1p1beta1.Block.BlockType.UNRECOGNIZED + : result; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @param value The blockType to set. * @return This builder for chaining. */ @@ -1797,33 +2021,39 @@ public Builder setBlockType(com.google.cloud.vision.v1p1beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1831,37 +2061,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1871,12 +2107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Block) private static final com.google.cloud.vision.v1p1beta1.Block DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Block(); } @@ -1885,16 +2121,16 @@ public static com.google.cloud.vision.v1p1beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1909,6 +2145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java index 8bd118014..aa8c4b48a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BlockOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface BlockOrBuilder extends +public interface BlockOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Block) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
@@ -35,6 +59,8 @@ public interface BlockOrBuilder extends com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface BlockOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - java.util.List - getParagraphsList(); + java.util.List getParagraphsList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -121,6 +156,8 @@ public interface BlockOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Paragraph getParagraphs(int index); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -129,49 +166,61 @@ public interface BlockOrBuilder extends */ int getParagraphsCount(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ com.google.cloud.vision.v1p1beta1.Block.BlockType getBlockType(); /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java index 7526ac194..d6a5d1279 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPoly.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BoundingPoly} */ -public final class BoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.BoundingPoly) BoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Vertex.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -87,22 +105,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.GeometryProto + .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.GeometryProto + .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BoundingPoly.class, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p1beta1.BoundingPoly.class, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -114,6 +137,8 @@ public java.util.List getVerticesList( return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -121,11 +146,13 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -137,6 +164,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.BoundingPoly other = (com.google.cloud.vision.v1p1beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p1beta1.BoundingPoly other = + (com.google.cloud.vision.v1p1beta1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +256,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.BoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.BoundingPoly) com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.GeometryProto + .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.GeometryProto + .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.BoundingPoly.class, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p1beta1.BoundingPoly.class, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder() @@ -346,17 +384,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.GeometryProto + .internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -391,7 +429,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p1beta1.BoundingPoly result = new com.google.cloud.vision.v1p1beta1.BoundingPoly(this); + com.google.cloud.vision.v1p1beta1.BoundingPoly result = + new com.google.cloud.vision.v1p1beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +449,39 @@ public com.google.cloud.vision.v1p1beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.BoundingPoly)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -468,9 +508,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -504,21 +545,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.vision.v1p1beta1.Vertex, + com.google.cloud.vision.v1p1beta1.Vertex.Builder, + com.google.cloud.vision.v1p1beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -533,6 +581,8 @@ public java.util.List getVerticesList( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -547,6 +597,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -561,14 +613,15 @@ public com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.vision.v1p1beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +635,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -600,6 +655,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -620,14 +677,15 @@ public Builder addVertices(com.google.cloud.vision.v1p1beta1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.vision.v1p1beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.vision.v1p1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +699,15 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public Builder addVertices( - com.google.cloud.vision.v1p1beta1.Vertex.Builder builderForValue) { + public Builder addVertices(com.google.cloud.vision.v1p1beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -659,6 +718,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -677,6 +738,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -687,8 +750,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -696,6 +758,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -713,6 +777,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -730,39 +796,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +841,8 @@ public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -777,49 +850,55 @@ public com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder> + com.google.cloud.vision.v1p1beta1.Vertex, + com.google.cloud.vision.v1p1beta1.Vertex.Builder, + com.google.cloud.vision.v1p1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Vertex, com.google.cloud.vision.v1p1beta1.Vertex.Builder, com.google.cloud.vision.v1p1beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Vertex, + com.google.cloud.vision.v1p1beta1.Vertex.Builder, + com.google.cloud.vision.v1p1beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BoundingPoly) private static final com.google.cloud.vision.v1p1beta1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.BoundingPoly(); } @@ -843,16 +922,16 @@ public static com.google.cloud.vision.v1p1beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +946,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java similarity index 62% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java index 04377a3e7..d995da91c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,21 +54,24 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.VertexOrBuilder getVerticesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java index a63e2cd9d..01c0679a0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.ColorInfo}
  */
-public final class ColorInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ColorInfo)
     ColorInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ColorInfo() {
-  }
+
+  private ColorInfo() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,37 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Color.Builder subBuilder = null;
-            if (color_ != null) {
-              subBuilder = color_.toBuilder();
+          case 10:
+            {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
+              }
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(color_);
-              color_ = subBuilder.buildPartial();
+          case 21:
+            {
+              score_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 21: {
-
-            score_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            pixelFraction_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 29:
+            {
+              pixelFraction_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,34 +107,39 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.ColorInfo.class, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p1beta1.ColorInfo.class,
+            com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
+   *
+   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ @java.lang.Override @@ -125,11 +147,14 @@ public boolean hasColor() { return color_ != null; } /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** + * + * *
    * RGB components of the color.
    * 
@@ -151,11 +178,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -166,12 +196,15 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -180,6 +213,7 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -212,16 +245,13 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,24 +261,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ColorInfo other = (com.google.cloud.vision.v1p1beta1.ColorInfo) obj; + com.google.cloud.vision.v1p1beta1.ColorInfo other = + (com.google.cloud.vision.v1p1beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor() - .equals(other.getColor())) return false; + if (!getColor().equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits( - other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,107 +293,112 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -373,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.ColorInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ColorInfo)
       com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.ColorInfo.class, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p1beta1.ColorInfo.class,
+              com.google.cloud.vision.v1p1beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.ColorInfo.newBuilder()
@@ -395,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -443,7 +477,8 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p1beta1.ColorInfo result = new com.google.cloud.vision.v1p1beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p1beta1.ColorInfo result =
+          new com.google.cloud.vision.v1p1beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -459,38 +494,39 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.ColorInfo)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.ColorInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,24 +575,31 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
+            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
+        colorBuilder_;
     /**
+     *
+     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return The color. */ public com.google.type.Color getColor() { @@ -567,6 +610,8 @@ public com.google.type.Color getColor() { } } /** + * + * *
      * RGB components of the color.
      * 
@@ -587,14 +632,15 @@ public Builder setColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor( - com.google.type.Color.Builder builderForValue) { + public Builder setColor(com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -605,6 +651,8 @@ public Builder setColor( return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -614,8 +662,7 @@ public Builder setColor( public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = - com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -627,6 +674,8 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -645,6 +694,8 @@ public Builder clearColor() { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -652,11 +703,13 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** + * + * *
      * RGB components of the color.
      * 
@@ -667,11 +720,12 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? - com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } } /** + * + * *
      * RGB components of the color.
      * 
@@ -679,26 +733,29 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( - getColor(), - getParentForChildren(), - isClean()); + colorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -706,43 +763,52 @@ public float getScore() { return score_; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_ ; + private float pixelFraction_; /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -750,39 +816,45 @@ public float getPixelFraction() { return pixelFraction_; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ColorInfo) private static final com.google.cloud.vision.v1p1beta1.ColorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ColorInfo(); } @@ -806,16 +878,16 @@ public static com.google.cloud.vision.v1p1beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java index 774d3b205..0f0034da5 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ColorInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ColorInfoOrBuilder extends +public interface ColorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ boolean hasColor(); /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ com.google.type.Color getColor(); /** + * + * *
    * RGB components of the color.
    * 
@@ -35,22 +59,28 @@ public interface ColorInfoOrBuilder extends com.google.type.ColorOrBuilder getColorOrBuilder(); /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java index a3e3f94b7..99d6eeeb3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHint.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHint} */ -public final class CropHint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHint) CropHintOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHint() { - } + + private CropHint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,39 @@ private CropHint( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - case 29: { - - importanceFraction_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 29: + { + importanceFraction_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,35 +108,40 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHint.class, com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHint.class, + com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -125,19 +149,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -153,11 +184,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -168,12 +202,15 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -182,6 +219,7 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -214,16 +251,13 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,24 +267,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHint other = (com.google.cloud.vision.v1p1beta1.CropHint) obj; + com.google.cloud.vision.v1p1beta1.CropHint other = + (com.google.cloud.vision.v1p1beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits( - other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,128 +299,135 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHint) com.google.cloud.vision.v1p1beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHint.class, com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHint.class, + com.google.cloud.vision.v1p1beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHint.newBuilder() @@ -396,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor; } @java.lang.Override @@ -444,7 +482,8 @@ public com.google.cloud.vision.v1p1beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHint result = new com.google.cloud.vision.v1p1beta1.CropHint(this); + com.google.cloud.vision.v1p1beta1.CropHint result = + new com.google.cloud.vision.v1p1beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -460,38 +499,39 @@ public com.google.cloud.vision.v1p1beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHint)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHint) other); } else { super.mergeFrom(other); return this; @@ -540,36 +580,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -591,6 +644,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -610,6 +665,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -621,7 +678,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -633,6 +692,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -652,6 +713,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -660,11 +723,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -676,11 +741,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -689,26 +757,32 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -716,43 +790,52 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_ ; + private float importanceFraction_; /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -760,39 +843,45 @@ public float getImportanceFraction() { return importanceFraction_; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHint) private static final com.google.cloud.vision.v1p1beta1.CropHint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHint(); } @@ -816,16 +905,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java index 05a68b2a5..337fbd106 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintOrBuilder extends +public interface CropHintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -38,22 +62,28 @@ public interface CropHintOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java index fdbde2545..0c4bca8c2 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cropHints_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.CropHint.parser(), extensionRegistry)); + break; } - cropHints_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.CropHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -87,22 +105,27 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** + * + * *
    * Crop hint results.
    * 
@@ -114,6 +137,8 @@ public java.util.List getCropHintsLi return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -121,11 +146,13 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -137,6 +164,8 @@ public int getCropHintsCount() { return cropHints_.size(); } /** + * + * *
    * Crop hint results.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** + * + * *
    * Crop hint results.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other = + (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) obj; - if (!getCropHintsList() - .equals(other.getCropHintsList())) return false; + if (!getCropHintsList().equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHintsAnnotation) com.google.cloud.vision.v1p1beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p1beta1.CropHintsAnnotation result = + new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.CropHintsAnnotation.getDefaultInstance()) + return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCropHintsFieldBuilder() : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCropHintsFieldBuilder() + : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(cropHints_); + cropHints_ = + new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> cropHintsBuilder_; + com.google.cloud.vision.v1p1beta1.CropHint, + com.google.cloud.vision.v1p1beta1.CropHint.Builder, + com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> + cropHintsBuilder_; /** + * + * *
      * Crop hint results.
      * 
@@ -533,6 +585,8 @@ public java.util.List getCropHintsLi } } /** + * + * *
      * Crop hint results.
      * 
@@ -547,6 +601,8 @@ public int getCropHintsCount() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -561,14 +617,15 @@ public com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index) { } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public Builder setCropHints( - int index, com.google.cloud.vision.v1p1beta1.CropHint value) { + public Builder setCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +639,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -600,6 +659,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -620,14 +681,15 @@ public Builder addCropHints(com.google.cloud.vision.v1p1beta1.CropHint value) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public Builder addCropHints( - int index, com.google.cloud.vision.v1p1beta1.CropHint value) { + public Builder addCropHints(int index, com.google.cloud.vision.v1p1beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +703,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -659,6 +723,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -677,6 +743,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -687,8 +755,7 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -696,6 +763,8 @@ public Builder addAllCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -713,6 +782,8 @@ public Builder clearCropHints() { return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -730,39 +801,44 @@ public Builder removeCropHints(int index) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHint.Builder getCropHintsBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.CropHint.Builder getCropHintsBuilder(int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); } else { + return cropHints_.get(index); + } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +846,8 @@ public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** + * + * *
      * Crop hint results.
      * 
@@ -777,49 +855,55 @@ public com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder( - int index) { - return getCropHintsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.CropHint.Builder addCropHintsBuilder(int index) { + return getCropHintsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHint, + com.google.cloud.vision.v1p1beta1.CropHint.Builder, + com.google.cloud.vision.v1p1beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHint, com.google.cloud.vision.v1p1beta1.CropHint.Builder, com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>( - cropHints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cropHintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHint, + com.google.cloud.vision.v1p1beta1.CropHint.Builder, + com.google.cloud.vision.v1p1beta1.CropHintOrBuilder>( + cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cropHints_ = null; } return cropHintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p1beta1.CropHintsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHintsAnnotation(); } @@ -843,16 +927,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java index ff3802bfe..abe0308bb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintsAnnotationOrBuilder extends +public interface CropHintsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - java.util.List - getCropHintsList(); + java.util.List getCropHintsList(); /** + * + * *
    * Crop hint results.
    * 
@@ -25,6 +44,8 @@ public interface CropHintsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p1beta1.CropHint getCropHints(int index); /** + * + * *
    * Crop hint results.
    * 
@@ -33,21 +54,24 @@ public interface CropHintsAnnotationOrBuilder extends */ int getCropHintsCount(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p1beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java index 618af7cbd..13f0bfad5 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsParams} */ -public final class CropHintsParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.CropHintsParams) CropHintsParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,34 +71,36 @@ private CropHintsParams( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } aspectRatios_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -99,22 +117,27 @@ private CropHintsParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsParams.class, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsParams.class, + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -125,14 +148,16 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List - getAspectRatiosList() { + public java.util.List getAspectRatiosList() { return aspectRatios_; } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -143,12 +168,15 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -159,15 +187,18 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } + private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -204,8 +234,7 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -217,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.CropHintsParams other = (com.google.cloud.vision.v1p1beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p1beta1.CropHintsParams other = + (com.google.cloud.vision.v1p1beta1.CropHintsParams) obj; - if (!getAspectRatiosList() - .equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,117 +276,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.CropHintsParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.CropHintsParams) com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.CropHintsParams.class, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p1beta1.CropHintsParams.class, + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder() @@ -365,16 +403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -405,7 +442,8 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p1beta1.CropHintsParams result = new com.google.cloud.vision.v1p1beta1.CropHintsParams(this); + com.google.cloud.vision.v1p1beta1.CropHintsParams result = + new com.google.cloud.vision.v1p1beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -420,38 +458,39 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsParams)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.CropHintsParams) other); } else { super.mergeFrom(other); return this; @@ -459,7 +498,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance()) + return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -489,7 +529,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,16 +539,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); + private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -518,14 +563,17 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ - public java.util.List - getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; + public java.util.List getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(aspectRatios_) + : aspectRatios_; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -536,12 +584,15 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -552,6 +603,7 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -559,6 +611,8 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -569,18 +623,20 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios( - int index, float value) { + public Builder setAspectRatios(int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -591,6 +647,7 @@ public Builder setAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -601,6 +658,8 @@ public Builder addAspectRatios(float value) { return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -611,18 +670,19 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; + * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios( - java.lang.Iterable values) { + public Builder addAllAspectRatios(java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -633,6 +693,7 @@ public Builder addAllAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -641,9 +702,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsParams) private static final com.google.cloud.vision.v1p1beta1.CropHintsParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.CropHintsParams(); } @@ -667,16 +728,16 @@ public static com.google.cloud.vision.v1p1beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java index eea5626dd..6e7fced83 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/CropHintsParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface CropHintsParamsOrBuilder extends +public interface CropHintsParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -18,10 +36,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -32,10 +53,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -46,6 +70,7 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java index d1721d2d5..31b701aa1 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + colors_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.ColorInfo.parser(), extensionRegistry)); + break; } - colors_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.ColorInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -87,22 +105,27 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -114,6 +137,8 @@ public java.util.List getColorsList return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -121,11 +146,13 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,6 +164,8 @@ public int getColorsCount() { return colors_.size(); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other = + (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) obj; - if (!getColorsList() - .equals(other.getColorsList())) return false; + if (!getColorsList().equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.DominantColorsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation result = + new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance()) + return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColorsFieldBuilder() : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColorsFieldBuilder() + : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> colorsBuilder_; + com.google.cloud.vision.v1p1beta1.ColorInfo, + com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> + colorsBuilder_; /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -533,6 +584,8 @@ public java.util.List getColorsList } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -547,6 +600,8 @@ public int getColorsCount() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -561,14 +616,15 @@ public com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index) { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder setColors( - int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { + public Builder setColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +638,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,6 +658,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -620,14 +680,15 @@ public Builder addColors(com.google.cloud.vision.v1p1beta1.ColorInfo value) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder addColors( - int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { + public Builder addColors(int index, com.google.cloud.vision.v1p1beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +702,15 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public Builder addColors( - com.google.cloud.vision.v1p1beta1.ColorInfo.Builder builderForValue) { + public Builder addColors(com.google.cloud.vision.v1p1beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -659,6 +721,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -677,6 +741,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -687,8 +753,7 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -696,6 +761,8 @@ public Builder addAllColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -713,6 +780,8 @@ public Builder clearColors() { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -730,39 +799,44 @@ public Builder removeColors(int index) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder getColorsBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder getColorsBuilder(int index) { return getColorsFieldBuilder().getBuilder(index); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { if (colorsBuilder_ == null) { - return colors_.get(index); } else { + return colors_.get(index); + } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +844,8 @@ public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -777,49 +853,55 @@ public com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder( - int index) { - return getColorsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.ColorInfo.Builder addColorsBuilder(int index) { + return getColorsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p1beta1.ColorInfo, + com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ColorInfo, com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder>( - colors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + colorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.ColorInfo, + com.google.cloud.vision.v1p1beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder>( + colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation(); } @@ -843,16 +925,16 @@ public static com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java index 07bc1245e..591cadce1 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/DominantColorsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface DominantColorsAnnotationOrBuilder extends +public interface DominantColorsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - java.util.List - getColorsList(); + java.util.List getColorsList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -25,6 +44,8 @@ public interface DominantColorsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p1beta1.ColorInfo getColors(int index); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -33,21 +54,24 @@ public interface DominantColorsAnnotationOrBuilder extends */ int getColorsCount(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p1beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java index ada7e6faf..da3ae2870 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.EntityAnnotation} */ -public final class EntityAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.EntityAnnotation) EntityAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -29,16 +47,15 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,88 @@ private EntityAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 37: { - - score_ = input.readFloat(); - break; - } - case 45: { + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 53: { + locale_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - topicality_ = input.readFloat(); - break; - } - case 58: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + description_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + confidence_ = input.readFloat(); + break; } - locations_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.LocationInfo.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 53: + { + topicality_ = input.readFloat(); + break; } - properties_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Property.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + properties_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Property.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +164,7 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -149,22 +176,27 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -172,6 +204,7 @@ private EntityAnnotation(
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -180,14 +213,15 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -195,16 +229,15 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -215,12 +248,15 @@ public java.lang.String getMid() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ @java.lang.Override @@ -229,30 +265,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -263,11 +299,14 @@ public java.lang.String getLocale() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -276,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -309,11 +348,14 @@ public java.lang.String getDescription() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -324,6 +366,8 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * The accuracy of the entity detection in an image.
    * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -332,6 +376,7 @@ public float getScore() {
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -342,6 +387,8 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -351,6 +398,7 @@ public float getConfidence() {
    * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -361,12 +409,15 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -374,19 +425,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -402,6 +460,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -417,6 +477,8 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -428,11 +490,13 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -448,6 +512,8 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -463,6 +529,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -474,14 +542,15 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -494,6 +563,8 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -502,11 +573,13 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -519,6 +592,8 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -531,6 +606,8 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -539,12 +616,12 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -556,8 +633,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -604,28 +680,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -635,37 +705,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p1beta1.EntityAnnotation other = (com.google.cloud.vision.v1p1beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p1beta1.EntityAnnotation other =
+        (com.google.cloud.vision.v1p1beta1.EntityAnnotation) obj;
 
-    if (!getMid()
-        .equals(other.getMid())) return false;
-    if (!getLocale()
-        .equals(other.getLocale())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getMid().equals(other.getMid())) return false;
+    if (!getLocale().equals(other.getLocale())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(
-            other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(
-            other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly()
-          .equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList()
-        .equals(other.getLocationsList())) return false;
-    if (!getPropertiesList()
-        .equals(other.getPropertiesList())) return false;
+    if (!getLocationsList().equals(other.getLocationsList())) return false;
+    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -684,14 +746,11 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -710,117 +769,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.EntityAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.EntityAnnotation) com.google.cloud.vision.v1p1beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p1beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.EntityAnnotation.newBuilder() @@ -828,18 +896,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -877,9 +945,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -898,7 +966,8 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.EntityAnnotation result = new com.google.cloud.vision.v1p1beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p1beta1.EntityAnnotation result = + new com.google.cloud.vision.v1p1beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -937,38 +1006,39 @@ public com.google.cloud.vision.v1p1beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.EntityAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.EntityAnnotation) other); } else { super.mergeFrom(other); return this; @@ -976,7 +1046,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.EntityAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1019,9 +1090,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1045,9 +1117,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1072,7 +1145,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1081,10 +1155,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mid_ = ""; /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1092,13 +1169,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1107,6 +1184,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1114,15 +1193,14 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1130,6 +1208,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1137,20 +1217,22 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1158,15 +1240,18 @@ public Builder setMid(
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1174,16 +1259,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1191,19 +1276,21 @@ public Builder setMidBytes( private java.lang.Object locale_ = ""; /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1212,21 +1299,22 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -1234,57 +1322,64 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale( - java.lang.String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1292,18 +1387,20 @@ public Builder setLocaleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1312,20 +1409,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1333,66 +1431,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1400,37 +1508,45 @@ public float getScore() { return score_; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1439,6 +1555,7 @@ public Builder clearScore() {
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1446,6 +1563,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1454,16 +1573,19 @@ public float getConfidence() {
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The accuracy of the entity detection in an image.
      * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -1472,17 +1594,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_ ; + private float topicality_; /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1492,6 +1617,7 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -1499,6 +1625,8 @@ public float getTopicality() { return topicality_; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1508,16 +1636,19 @@ public float getTopicality() {
      * 
* * float topicality = 6; + * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1527,10 +1658,11 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; + * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1538,36 +1670,49 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1589,6 +1734,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1608,6 +1755,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1619,7 +1768,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1631,6 +1782,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1650,6 +1803,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1658,11 +1813,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1674,11 +1831,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1687,32 +1847,42 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ = new java.util.ArrayList(locations_);
+        locations_ =
+            new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder> locationsBuilder_;
+            com.google.cloud.vision.v1p1beta1.LocationInfo,
+            com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>
+        locationsBuilder_;
 
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1731,6 +1901,8 @@ public java.util.List getLocatio
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1749,6 +1921,8 @@ public int getLocationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1767,6 +1941,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1777,8 +1953,7 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(
-        int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
+    public Builder setLocations(int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1792,6 +1967,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1814,6 +1991,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1838,6 +2017,8 @@ public Builder addLocations(com.google.cloud.vision.v1p1beta1.LocationInfo value
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1848,8 +2029,7 @@ public Builder addLocations(com.google.cloud.vision.v1p1beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
+    public Builder addLocations(int index, com.google.cloud.vision.v1p1beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1863,6 +2043,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1885,6 +2067,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1907,6 +2091,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1921,8 +2107,7 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -1930,6 +2115,8 @@ public Builder addAllLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1951,6 +2138,8 @@ public Builder clearLocations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1972,6 +2161,8 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1982,11 +2173,12 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilder(int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2000,11 +2192,14 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);  } else {
+        return locations_.get(index);
+      } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2015,8 +2210,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsOrBuilderList() {
+    public java.util.List
+        getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2024,6 +2219,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2035,10 +2232,12 @@ public com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2049,12 +2248,13 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder(
-        int index) {
-      return getLocationsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilder(int index) {
+      return getLocationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p1beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2065,38 +2265,48 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsBuilderList() {
+    public java.util.List
+        getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.LocationInfo,
+            com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.LocationInfo, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder, com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>(
-                locations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        locationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.LocationInfo,
+                com.google.cloud.vision.v1p1beta1.LocationInfo.Builder,
+                com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder>(
+                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ = new java.util.ArrayList(properties_);
+        properties_ =
+            new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder> propertiesBuilder_;
+            com.google.cloud.vision.v1p1beta1.Property,
+            com.google.cloud.vision.v1p1beta1.Property.Builder,
+            com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2112,6 +2322,8 @@ public java.util.List getPropertiesL
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2127,6 +2339,8 @@ public int getPropertiesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2142,6 +2356,8 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2149,8 +2365,7 @@ public com.google.cloud.vision.v1p1beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public Builder setProperties(
-        int index, com.google.cloud.vision.v1p1beta1.Property value) {
+    public Builder setProperties(int index, com.google.cloud.vision.v1p1beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2164,6 +2379,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2183,6 +2400,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2204,6 +2423,8 @@ public Builder addProperties(com.google.cloud.vision.v1p1beta1.Property value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2211,8 +2432,7 @@ public Builder addProperties(com.google.cloud.vision.v1p1beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public Builder addProperties(
-        int index, com.google.cloud.vision.v1p1beta1.Property value) {
+    public Builder addProperties(int index, com.google.cloud.vision.v1p1beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2226,6 +2446,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2245,6 +2467,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2264,6 +2488,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2275,8 +2501,7 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2284,6 +2509,8 @@ public Builder addAllProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2302,6 +2529,8 @@ public Builder clearProperties() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2320,6 +2549,8 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2327,11 +2558,12 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2339,14 +2571,16 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder getPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);  } else {
+        return properties_.get(index);
+      } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2354,8 +2588,8 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesOrBuilderList() {
+    public java.util.List
+        getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2363,6 +2597,8 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2371,10 +2607,12 @@ public com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2382,12 +2620,13 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(
-        int index) {
-      return getPropertiesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(int index) {
+      return getPropertiesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p1beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2395,27 +2634,30 @@ public com.google.cloud.vision.v1p1beta1.Property.Builder addPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesBuilderList() {
+    public java.util.List
+        getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.Property,
+            com.google.cloud.vision.v1p1beta1.Property.Builder,
+            com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Property, com.google.cloud.vision.v1p1beta1.Property.Builder, com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>(
-                properties_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        propertiesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.Property,
+                com.google.cloud.vision.v1p1beta1.Property.Builder,
+                com.google.cloud.vision.v1p1beta1.PropertyOrBuilder>(
+                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2425,12 +2667,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p1beta1.EntityAnnotation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.EntityAnnotation();
   }
@@ -2439,16 +2681,16 @@ public static com.google.cloud.vision.v1p1beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public EntityAnnotation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new EntityAnnotation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public EntityAnnotation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new EntityAnnotation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2463,6 +2705,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
index 0a2f511f9..19db73bee 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/EntityAnnotationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
-public interface EntityAnnotationOrBuilder extends
+public interface EntityAnnotationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -15,10 +33,13 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -26,64 +47,79 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ java.lang.String getLocale(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * The accuracy of the entity detection in an image.
    * For example, for an image in which the "Eiffel Tower" entity is detected,
@@ -92,11 +128,14 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -106,31 +145,40 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float topicality = 6; + * * @return The topicality. */ float getTopicality(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -141,6 +189,8 @@ public interface EntityAnnotationOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -151,9 +201,10 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  java.util.List 
-      getLocationsList();
+  java.util.List getLocationsList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -166,6 +217,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   com.google.cloud.vision.v1p1beta1.LocationInfo getLocations(int index);
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -178,6 +231,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   int getLocationsCount();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -188,9 +243,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  java.util.List 
+  java.util.List
       getLocationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -201,10 +258,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -212,9 +270,10 @@ com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  java.util.List 
-      getPropertiesList();
+  java.util.List getPropertiesList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -224,6 +283,8 @@ com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   com.google.cloud.vision.v1p1beta1.Property getProperties(int index);
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -233,6 +294,8 @@ com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -240,9 +303,11 @@ com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  java.util.List 
+  java.util.List
       getPropertiesOrBuilderList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -250,6 +315,5 @@ com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p1beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p1beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
similarity index 77%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
index 64455d452..af9e5e9a9 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation} */ -public final class FaceAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.FaceAnnotation) FaceAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -32,16 +50,15 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,115 +78,133 @@ private FaceAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); + } + fdBoundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); + break; } - fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark>(); + mutable_bitField0_ |= 0x00000001; + } + landmarks_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.parser(), + extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + rollAngle_ = input.readFloat(); + break; } - landmarks_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); - break; - } - case 37: { - - rollAngle_ = input.readFloat(); - break; - } - case 45: { - - panAngle_ = input.readFloat(); - break; - } - case 53: { - - tiltAngle_ = input.readFloat(); - break; - } - case 61: { - - detectionConfidence_ = input.readFloat(); - break; - } - case 69: { - - landmarkingConfidence_ = input.readFloat(); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 45: + { + panAngle_ = input.readFloat(); + break; + } + case 53: + { + tiltAngle_ = input.readFloat(); + break; + } + case 61: + { + detectionConfidence_ = input.readFloat(); + break; + } + case 69: + { + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: + { + int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + joyLikelihood_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - sorrowLikelihood_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + sorrowLikelihood_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - angerLikelihood_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + angerLikelihood_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - surpriseLikelihood_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); + surpriseLikelihood_ = rawValue; + break; + } + case 104: + { + int rawValue = input.readEnum(); - underExposedLikelihood_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); + underExposedLikelihood_ = rawValue; + break; + } + case 112: + { + int rawValue = input.readEnum(); - blurredLikelihood_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); + blurredLikelihood_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + headwearLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -177,8 +212,7 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -187,61 +221,79 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder extends + public interface LandmarkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return The position. */ com.google.cloud.vision.v1p1beta1.Position getPosition(); /** + * + * *
      * Face landmark position.
      * 
@@ -251,37 +303,39 @@ public interface LandmarkOrBuilder extends com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder(); } /** + * + * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -300,32 +354,36 @@ private Landmark( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.vision.v1p1beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); + type_ = rawValue; + break; } - position_ = input.readMessage(com.google.cloud.vision.v1p1beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p1beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -333,27 +391,31 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); } /** + * + * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -363,9 +425,10 @@ private Landmark(
      *
      * Protobuf enum {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -374,6 +437,8 @@ public enum Type */ UNKNOWN_LANDMARK(0), /** + * + * *
        * Left eye.
        * 
@@ -382,6 +447,8 @@ public enum Type */ LEFT_EYE(1), /** + * + * *
        * Right eye.
        * 
@@ -390,6 +457,8 @@ public enum Type */ RIGHT_EYE(2), /** + * + * *
        * Left of left eyebrow.
        * 
@@ -398,6 +467,8 @@ public enum Type */ LEFT_OF_LEFT_EYEBROW(3), /** + * + * *
        * Right of left eyebrow.
        * 
@@ -406,6 +477,8 @@ public enum Type */ RIGHT_OF_LEFT_EYEBROW(4), /** + * + * *
        * Left of right eyebrow.
        * 
@@ -414,6 +487,8 @@ public enum Type */ LEFT_OF_RIGHT_EYEBROW(5), /** + * + * *
        * Right of right eyebrow.
        * 
@@ -422,6 +497,8 @@ public enum Type */ RIGHT_OF_RIGHT_EYEBROW(6), /** + * + * *
        * Midpoint between eyes.
        * 
@@ -430,6 +507,8 @@ public enum Type */ MIDPOINT_BETWEEN_EYES(7), /** + * + * *
        * Nose tip.
        * 
@@ -438,6 +517,8 @@ public enum Type */ NOSE_TIP(8), /** + * + * *
        * Upper lip.
        * 
@@ -446,6 +527,8 @@ public enum Type */ UPPER_LIP(9), /** + * + * *
        * Lower lip.
        * 
@@ -454,6 +537,8 @@ public enum Type */ LOWER_LIP(10), /** + * + * *
        * Mouth left.
        * 
@@ -462,6 +547,8 @@ public enum Type */ MOUTH_LEFT(11), /** + * + * *
        * Mouth right.
        * 
@@ -470,6 +557,8 @@ public enum Type */ MOUTH_RIGHT(12), /** + * + * *
        * Mouth center.
        * 
@@ -478,6 +567,8 @@ public enum Type */ MOUTH_CENTER(13), /** + * + * *
        * Nose, bottom right.
        * 
@@ -486,6 +577,8 @@ public enum Type */ NOSE_BOTTOM_RIGHT(14), /** + * + * *
        * Nose, bottom left.
        * 
@@ -494,6 +587,8 @@ public enum Type */ NOSE_BOTTOM_LEFT(15), /** + * + * *
        * Nose, bottom center.
        * 
@@ -502,6 +597,8 @@ public enum Type */ NOSE_BOTTOM_CENTER(16), /** + * + * *
        * Left eye, top boundary.
        * 
@@ -510,6 +607,8 @@ public enum Type */ LEFT_EYE_TOP_BOUNDARY(17), /** + * + * *
        * Left eye, right corner.
        * 
@@ -518,6 +617,8 @@ public enum Type */ LEFT_EYE_RIGHT_CORNER(18), /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -526,6 +627,8 @@ public enum Type */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** + * + * *
        * Left eye, left corner.
        * 
@@ -534,6 +637,8 @@ public enum Type */ LEFT_EYE_LEFT_CORNER(20), /** + * + * *
        * Right eye, top boundary.
        * 
@@ -542,6 +647,8 @@ public enum Type */ RIGHT_EYE_TOP_BOUNDARY(21), /** + * + * *
        * Right eye, right corner.
        * 
@@ -550,6 +657,8 @@ public enum Type */ RIGHT_EYE_RIGHT_CORNER(22), /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -558,6 +667,8 @@ public enum Type */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** + * + * *
        * Right eye, left corner.
        * 
@@ -566,6 +677,8 @@ public enum Type */ RIGHT_EYE_LEFT_CORNER(24), /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -574,6 +687,8 @@ public enum Type */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -582,6 +697,8 @@ public enum Type */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** + * + * *
        * Left ear tragion.
        * 
@@ -590,6 +707,8 @@ public enum Type */ LEFT_EAR_TRAGION(27), /** + * + * *
        * Right ear tragion.
        * 
@@ -598,6 +717,8 @@ public enum Type */ RIGHT_EAR_TRAGION(28), /** + * + * *
        * Left eye pupil.
        * 
@@ -606,6 +727,8 @@ public enum Type */ LEFT_EYE_PUPIL(29), /** + * + * *
        * Right eye pupil.
        * 
@@ -614,6 +737,8 @@ public enum Type */ RIGHT_EYE_PUPIL(30), /** + * + * *
        * Forehead glabella.
        * 
@@ -622,6 +747,8 @@ public enum Type */ FOREHEAD_GLABELLA(31), /** + * + * *
        * Chin gnathion.
        * 
@@ -630,6 +757,8 @@ public enum Type */ CHIN_GNATHION(32), /** + * + * *
        * Chin left gonion.
        * 
@@ -638,6 +767,8 @@ public enum Type */ CHIN_LEFT_GONION(33), /** + * + * *
        * Chin right gonion.
        * 
@@ -649,6 +780,8 @@ public enum Type ; /** + * + * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -657,6 +790,8 @@ public enum Type */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** + * + * *
        * Left eye.
        * 
@@ -665,6 +800,8 @@ public enum Type */ public static final int LEFT_EYE_VALUE = 1; /** + * + * *
        * Right eye.
        * 
@@ -673,6 +810,8 @@ public enum Type */ public static final int RIGHT_EYE_VALUE = 2; /** + * + * *
        * Left of left eyebrow.
        * 
@@ -681,6 +820,8 @@ public enum Type */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** + * + * *
        * Right of left eyebrow.
        * 
@@ -689,6 +830,8 @@ public enum Type */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** + * + * *
        * Left of right eyebrow.
        * 
@@ -697,6 +840,8 @@ public enum Type */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** + * + * *
        * Right of right eyebrow.
        * 
@@ -705,6 +850,8 @@ public enum Type */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** + * + * *
        * Midpoint between eyes.
        * 
@@ -713,6 +860,8 @@ public enum Type */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** + * + * *
        * Nose tip.
        * 
@@ -721,6 +870,8 @@ public enum Type */ public static final int NOSE_TIP_VALUE = 8; /** + * + * *
        * Upper lip.
        * 
@@ -729,6 +880,8 @@ public enum Type */ public static final int UPPER_LIP_VALUE = 9; /** + * + * *
        * Lower lip.
        * 
@@ -737,6 +890,8 @@ public enum Type */ public static final int LOWER_LIP_VALUE = 10; /** + * + * *
        * Mouth left.
        * 
@@ -745,6 +900,8 @@ public enum Type */ public static final int MOUTH_LEFT_VALUE = 11; /** + * + * *
        * Mouth right.
        * 
@@ -753,6 +910,8 @@ public enum Type */ public static final int MOUTH_RIGHT_VALUE = 12; /** + * + * *
        * Mouth center.
        * 
@@ -761,6 +920,8 @@ public enum Type */ public static final int MOUTH_CENTER_VALUE = 13; /** + * + * *
        * Nose, bottom right.
        * 
@@ -769,6 +930,8 @@ public enum Type */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** + * + * *
        * Nose, bottom left.
        * 
@@ -777,6 +940,8 @@ public enum Type */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** + * + * *
        * Nose, bottom center.
        * 
@@ -785,6 +950,8 @@ public enum Type */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** + * + * *
        * Left eye, top boundary.
        * 
@@ -793,6 +960,8 @@ public enum Type */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** + * + * *
        * Left eye, right corner.
        * 
@@ -801,6 +970,8 @@ public enum Type */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -809,6 +980,8 @@ public enum Type */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** + * + * *
        * Left eye, left corner.
        * 
@@ -817,6 +990,8 @@ public enum Type */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** + * + * *
        * Right eye, top boundary.
        * 
@@ -825,6 +1000,8 @@ public enum Type */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** + * + * *
        * Right eye, right corner.
        * 
@@ -833,6 +1010,8 @@ public enum Type */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -841,6 +1020,8 @@ public enum Type */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** + * + * *
        * Right eye, left corner.
        * 
@@ -849,6 +1030,8 @@ public enum Type */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -857,6 +1040,8 @@ public enum Type */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -865,6 +1050,8 @@ public enum Type */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** + * + * *
        * Left ear tragion.
        * 
@@ -873,6 +1060,8 @@ public enum Type */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** + * + * *
        * Right ear tragion.
        * 
@@ -881,6 +1070,8 @@ public enum Type */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** + * + * *
        * Left eye pupil.
        * 
@@ -889,6 +1080,8 @@ public enum Type */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** + * + * *
        * Right eye pupil.
        * 
@@ -897,6 +1090,8 @@ public enum Type */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** + * + * *
        * Forehead glabella.
        * 
@@ -905,6 +1100,8 @@ public enum Type */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** + * + * *
        * Chin gnathion.
        * 
@@ -913,6 +1110,8 @@ public enum Type */ public static final int CHIN_GNATHION_VALUE = 32; /** + * + * *
        * Chin left gonion.
        * 
@@ -921,6 +1120,8 @@ public enum Type */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** + * + * *
        * Chin right gonion.
        * 
@@ -929,7 +1130,6 @@ public enum Type */ public static final int CHIN_RIGHT_GONION_VALUE = 34; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -954,81 +1154,115 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return UNKNOWN_LANDMARK; - case 1: return LEFT_EYE; - case 2: return RIGHT_EYE; - case 3: return LEFT_OF_LEFT_EYEBROW; - case 4: return RIGHT_OF_LEFT_EYEBROW; - case 5: return LEFT_OF_RIGHT_EYEBROW; - case 6: return RIGHT_OF_RIGHT_EYEBROW; - case 7: return MIDPOINT_BETWEEN_EYES; - case 8: return NOSE_TIP; - case 9: return UPPER_LIP; - case 10: return LOWER_LIP; - case 11: return MOUTH_LEFT; - case 12: return MOUTH_RIGHT; - case 13: return MOUTH_CENTER; - case 14: return NOSE_BOTTOM_RIGHT; - case 15: return NOSE_BOTTOM_LEFT; - case 16: return NOSE_BOTTOM_CENTER; - case 17: return LEFT_EYE_TOP_BOUNDARY; - case 18: return LEFT_EYE_RIGHT_CORNER; - case 19: return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: return LEFT_EYE_LEFT_CORNER; - case 21: return RIGHT_EYE_TOP_BOUNDARY; - case 22: return RIGHT_EYE_RIGHT_CORNER; - case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: return RIGHT_EYE_LEFT_CORNER; - case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: return LEFT_EAR_TRAGION; - case 28: return RIGHT_EAR_TRAGION; - case 29: return LEFT_EYE_PUPIL; - case 30: return RIGHT_EYE_PUPIL; - case 31: return FOREHEAD_GLABELLA; - case 32: return CHIN_GNATHION; - case 33: return CHIN_LEFT_GONION; - case 34: return CHIN_RIGHT_GONION; - default: return null; + case 0: + return UNKNOWN_LANDMARK; + case 1: + return LEFT_EYE; + case 2: + return RIGHT_EYE; + case 3: + return LEFT_OF_LEFT_EYEBROW; + case 4: + return RIGHT_OF_LEFT_EYEBROW; + case 5: + return LEFT_OF_RIGHT_EYEBROW; + case 6: + return RIGHT_OF_RIGHT_EYEBROW; + case 7: + return MIDPOINT_BETWEEN_EYES; + case 8: + return NOSE_TIP; + case 9: + return UPPER_LIP; + case 10: + return LOWER_LIP; + case 11: + return MOUTH_LEFT; + case 12: + return MOUTH_RIGHT; + case 13: + return MOUTH_CENTER; + case 14: + return NOSE_BOTTOM_RIGHT; + case 15: + return NOSE_BOTTOM_LEFT; + case 16: + return NOSE_BOTTOM_CENTER; + case 17: + return LEFT_EYE_TOP_BOUNDARY; + case 18: + return LEFT_EYE_RIGHT_CORNER; + case 19: + return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: + return LEFT_EYE_LEFT_CORNER; + case 21: + return RIGHT_EYE_TOP_BOUNDARY; + case 22: + return RIGHT_EYE_RIGHT_CORNER; + case 23: + return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: + return RIGHT_EYE_LEFT_CORNER; + case 25: + return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: + return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: + return LEFT_EAR_TRAGION; + case 28: + return RIGHT_EAR_TRAGION; + case 29: + return LEFT_EYE_PUPIL; + case 30: + return RIGHT_EYE_PUPIL; + case 31: + return FOREHEAD_GLABELLA; + case 32: + return CHIN_GNATHION; + case 33: + return CHIN_LEFT_GONION; + case 34: + return CHIN_RIGHT_GONION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1048,38 +1282,52 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p1beta1.Position position_; /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return Whether the position field is set. */ @java.lang.Override @@ -1087,18 +1335,25 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Position getPosition() { - return position_ == null ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() + : position_; } /** + * + * *
      * Face landmark position.
      * 
@@ -1111,6 +1366,7 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1122,9 +1378,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1139,13 +1396,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1155,18 +1412,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other = + (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1191,87 +1448,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1281,27 +1545,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.newBuilder() @@ -1309,16 +1578,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1334,9 +1602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1355,7 +1623,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark result = + new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1370,38 +1639,41 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) other); } else { super.mergeFrom(other); return this; @@ -1409,7 +1681,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1435,7 +1708,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1447,51 +1721,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1499,21 +1789,24 @@ public Builder setType(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1521,34 +1814,47 @@ public Builder clearType() { private com.google.cloud.vision.v1p1beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder> positionBuilder_; + com.google.cloud.vision.v1p1beta1.Position, + com.google.cloud.vision.v1p1beta1.Position.Builder, + com.google.cloud.vision.v1p1beta1.PositionOrBuilder> + positionBuilder_; /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p1beta1.Position position = 4; + * * @return The position. */ public com.google.cloud.vision.v1p1beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * Face landmark position.
        * 
@@ -1569,6 +1875,8 @@ public Builder setPosition(com.google.cloud.vision.v1p1beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1587,6 +1895,8 @@ public Builder setPosition( return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1597,7 +1907,9 @@ public Builder mergePosition(com.google.cloud.vision.v1p1beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p1beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.Position.newBuilder(position_) + .mergeFrom(value) + .buildPartial(); } else { position_ = value; } @@ -1609,6 +1921,8 @@ public Builder mergePosition(com.google.cloud.vision.v1p1beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1627,6 +1941,8 @@ public Builder clearPosition() { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1634,11 +1950,13 @@ public Builder clearPosition() { * .google.cloud.vision.v1p1beta1.Position position = 4; */ public com.google.cloud.vision.v1p1beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Face landmark position.
        * 
@@ -1649,11 +1967,14 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p1beta1.Position.getDefaultInstance() + : position_; } } /** + * + * *
        * Face landmark position.
        * 
@@ -1661,18 +1982,22 @@ public com.google.cloud.vision.v1p1beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p1beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder> + com.google.cloud.vision.v1p1beta1.Position, + com.google.cloud.vision.v1p1beta1.Position.Builder, + com.google.cloud.vision.v1p1beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Position, com.google.cloud.vision.v1p1beta1.Position.Builder, com.google.cloud.vision.v1p1beta1.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Position, + com.google.cloud.vision.v1p1beta1.Position.Builder, + com.google.cloud.vision.v1p1beta1.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1685,12 +2010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark(); } @@ -1699,16 +2024,16 @@ public static com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1723,12 +2048,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1740,6 +2066,7 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -1747,6 +2074,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1758,13 +2087,18 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1785,6 +2119,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p1beta1.BoundingPoly fdBoundingPoly_;
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1795,6 +2131,7 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -1802,6 +2139,8 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1812,13 +2151,18 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1838,6 +2182,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
@@ -1845,10 +2191,13 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1856,11 +2205,14 @@ public java.util.List * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1872,6 +2224,8 @@ public int getLandmarksCount() { return landmarks_.size(); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1883,6 +2237,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1898,6 +2254,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -1905,6 +2263,7 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -1915,6 +2274,8 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -1922,6 +2283,7 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -1932,12 +2294,15 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -1948,11 +2313,14 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -1963,11 +2331,14 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -1978,193 +2349,257 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2176,8 +2611,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2214,7 +2648,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (surpriseLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2233,64 +2668,50 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2300,40 +2721,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.FaceAnnotation other = (com.google.cloud.vision.v1p1beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p1beta1.FaceAnnotation other = + (com.google.cloud.vision.v1p1beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly() - .equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList() - .equals(other.getLandmarksList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits( - other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits( - other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits( - other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits( - other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits( - other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2365,20 +2779,15 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2398,118 +2807,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.FaceAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.FaceAnnotation) com.google.cloud.vision.v1p1beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p1beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.FaceAnnotation.newBuilder() @@ -2517,17 +2935,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2577,9 +2995,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -2598,7 +3016,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p1beta1.FaceAnnotation result = new com.google.cloud.vision.v1p1beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p1beta1.FaceAnnotation result = + new com.google.cloud.vision.v1p1beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -2639,38 +3058,39 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.FaceAnnotation) other); } else { super.mergeFrom(other); return this; @@ -2678,7 +3098,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.FaceAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -2703,9 +3124,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarksFieldBuilder() : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -2775,12 +3197,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2792,12 +3220,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2809,16 +3240,21 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2845,6 +3281,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2869,6 +3307,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2885,7 +3325,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -2897,6 +3339,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2921,6 +3365,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2934,11 +3380,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2955,11 +3403,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2973,14 +3424,17 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -2988,8 +3442,13 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p1beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
+        fdBoundingPolyBuilder_;
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3000,12 +3459,15 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3016,16 +3478,21 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3051,6 +3518,8 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3074,6 +3543,8 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3089,7 +3560,9 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3101,6 +3574,8 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p1beta1.BoundingPol
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3124,6 +3599,8 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3136,11 +3613,13 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-      
+
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3156,11 +3635,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
+        return fdBoundingPoly_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : fdBoundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3173,39 +3655,51 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        fdBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(), getParentForChildren(), isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ = new java.util.ArrayList(landmarks_);
+        landmarks_ =
+            new java.util.ArrayList(
+                landmarks_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
+            com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark,
+            com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder,
+            com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>
+        landmarksBuilder_;
 
     /**
+     *
+     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3213,6 +3707,8 @@ public java.util.List } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3227,6 +3723,8 @@ public int getLandmarksCount() { } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3241,6 +3739,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(in } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3262,6 +3762,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3269,7 +3771,8 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3280,6 +3783,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3300,6 +3805,8 @@ public Builder addLandmarks(com.google.cloud.vision.v1p1beta1.FaceAnnotation.Lan return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3321,6 +3828,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3339,6 +3848,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3346,7 +3857,8 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3357,6 +3869,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3364,11 +3878,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3376,6 +3890,8 @@ public Builder addAllLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3393,6 +3909,8 @@ public Builder clearLandmarks() { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3410,6 +3928,8 @@ public Builder removeLandmarks(int index) { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3421,6 +3941,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3430,19 +3952,23 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); } else { + return landmarks_.get(index); + } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3450,6 +3976,8 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3457,10 +3985,13 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3469,37 +4000,46 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_ ; + private float rollAngle_; /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3507,6 +4047,7 @@ public com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -3514,6 +4055,8 @@ public float getRollAngle() { return rollAngle_; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3521,16 +4064,19 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; + * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3538,17 +4084,20 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; + * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_ ; + private float panAngle_; /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3556,6 +4105,7 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -3563,6 +4113,8 @@ public float getPanAngle() { return panAngle_; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3570,16 +4122,19 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; + * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3587,23 +4142,27 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; + * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_ ; + private float tiltAngle_; /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -3611,44 +4170,53 @@ public float getTiltAngle() { return tiltAngle_; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_ ; + private float detectionConfidence_; /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -3656,42 +4224,51 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_ ; + private float landmarkingConfidence_; /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -3699,30 +4276,36 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -3730,51 +4313,65 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -3782,21 +4379,24 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -3804,51 +4404,65 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -3856,21 +4470,24 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -3878,51 +4495,65 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -3930,21 +4561,24 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -3952,51 +4586,65 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4004,21 +4652,24 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p1beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4026,51 +4677,65 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4078,21 +4743,24 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p1beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4100,51 +4768,65 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4152,21 +4834,24 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p1beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4174,51 +4859,65 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4226,28 +4925,31 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p1beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4257,12 +4959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p1beta1.FaceAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.FaceAnnotation(); } @@ -4271,16 +4973,16 @@ public static com.google.cloud.vision.v1p1beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4295,6 +4997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java index 81024f41d..0f9240d2c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FaceAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface FaceAnnotationOrBuilder extends +public interface FaceAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -19,10 +37,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -34,10 +55,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -53,6 +77,8 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -63,10 +89,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -77,10 +106,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -95,15 +127,18 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List - getLandmarksList(); + java.util.List getLandmarksList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -112,6 +147,8 @@ public interface FaceAnnotationOrBuilder extends */ com.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark getLandmarks(int index); /** + * + * *
    * Detected face landmarks.
    * 
@@ -120,15 +157,19 @@ public interface FaceAnnotationOrBuilder extends */ int getLandmarksCount(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -139,6 +180,8 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -146,11 +189,14 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ float getRollAngle(); /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -158,170 +204,222 @@ com.google.cloud.vision.v1p1beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ float getPanAngle(); /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ float getTiltAngle(); /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ float getDetectionConfidence(); /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getJoyLikelihood(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getSorrowLikelihood(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getAngerLikelihood(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getSurpriseLikelihood(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getUnderExposedLikelihood(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getBlurredLikelihood(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p1beta1.Likelihood getHeadwearLikelihood(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java index 650ece503..85d7d9ec4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Users describe the type of Google Cloud Vision API tasks to perform over
  * images by using *Feature*s. Each Feature indicates a type of image
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Feature}
  */
-public final class Feature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Feature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Feature)
     FeatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -29,16 +47,15 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,30 +74,32 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            maxResults_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              maxResults_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            model_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              model_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,36 +107,41 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Feature.class, com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Feature.class,
+            com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of image feature.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.Feature.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified feature type.
      * 
@@ -126,6 +150,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Run face detection.
      * 
@@ -134,6 +160,8 @@ public enum Type */ FACE_DETECTION(1), /** + * + * *
      * Run landmark detection.
      * 
@@ -142,6 +170,8 @@ public enum Type */ LANDMARK_DETECTION(2), /** + * + * *
      * Run logo detection.
      * 
@@ -150,6 +180,8 @@ public enum Type */ LOGO_DETECTION(3), /** + * + * *
      * Run label detection.
      * 
@@ -158,6 +190,8 @@ public enum Type */ LABEL_DETECTION(4), /** + * + * *
      * Run OCR.
      * 
@@ -166,6 +200,8 @@ public enum Type */ TEXT_DETECTION(5), /** + * + * *
      * Run dense text document OCR. Takes precedence when both
      * DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.
@@ -175,6 +211,8 @@ public enum Type
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
+     *
+     *
      * 
      * Run computer vision models to compute image safe-search properties.
      * 
@@ -183,6 +221,8 @@ public enum Type */ SAFE_SEARCH_DETECTION(6), /** + * + * *
      * Compute a set of image properties, such as the image's dominant colors.
      * 
@@ -191,6 +231,8 @@ public enum Type */ IMAGE_PROPERTIES(7), /** + * + * *
      * Run crop hints.
      * 
@@ -199,6 +241,8 @@ public enum Type */ CROP_HINTS(9), /** + * + * *
      * Run web detection.
      * 
@@ -210,6 +254,8 @@ public enum Type ; /** + * + * *
      * Unspecified feature type.
      * 
@@ -218,6 +264,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Run face detection.
      * 
@@ -226,6 +274,8 @@ public enum Type */ public static final int FACE_DETECTION_VALUE = 1; /** + * + * *
      * Run landmark detection.
      * 
@@ -234,6 +284,8 @@ public enum Type */ public static final int LANDMARK_DETECTION_VALUE = 2; /** + * + * *
      * Run logo detection.
      * 
@@ -242,6 +294,8 @@ public enum Type */ public static final int LOGO_DETECTION_VALUE = 3; /** + * + * *
      * Run label detection.
      * 
@@ -250,6 +304,8 @@ public enum Type */ public static final int LABEL_DETECTION_VALUE = 4; /** + * + * *
      * Run OCR.
      * 
@@ -258,6 +314,8 @@ public enum Type */ public static final int TEXT_DETECTION_VALUE = 5; /** + * + * *
      * Run dense text document OCR. Takes precedence when both
      * DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present.
@@ -267,6 +325,8 @@ public enum Type
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Run computer vision models to compute image safe-search properties.
      * 
@@ -275,6 +335,8 @@ public enum Type */ public static final int SAFE_SEARCH_DETECTION_VALUE = 6; /** + * + * *
      * Compute a set of image properties, such as the image's dominant colors.
      * 
@@ -283,6 +345,8 @@ public enum Type */ public static final int IMAGE_PROPERTIES_VALUE = 7; /** + * + * *
      * Run crop hints.
      * 
@@ -291,6 +355,8 @@ public enum Type */ public static final int CROP_HINTS_VALUE = 9; /** + * + * *
      * Run web detection.
      * 
@@ -299,7 +365,6 @@ public enum Type */ public static final int WEB_DETECTION_VALUE = 10; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,57 +389,65 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return FACE_DETECTION; - case 2: return LANDMARK_DETECTION; - case 3: return LOGO_DETECTION; - case 4: return LABEL_DETECTION; - case 5: return TEXT_DETECTION; - case 11: return DOCUMENT_TEXT_DETECTION; - case 6: return SAFE_SEARCH_DETECTION; - case 7: return IMAGE_PROPERTIES; - case 9: return CROP_HINTS; - case 10: return WEB_DETECTION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return FACE_DETECTION; + case 2: + return LANDMARK_DETECTION; + case 3: + return LOGO_DETECTION; + case 4: + return LABEL_DETECTION; + case 5: + return TEXT_DETECTION; + case 11: + return DOCUMENT_TEXT_DETECTION; + case 6: + return SAFE_SEARCH_DETECTION; + case 7: + return IMAGE_PROPERTIES; + case 9: + return CROP_HINTS; + case 10: + return WEB_DETECTION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p1beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -394,38 +467,50 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Feature.Type result = com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p1beta1.Feature.Type result = + com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p1beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** + * + * *
    * Maximum number of results of this type.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -436,6 +521,8 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -443,6 +530,7 @@ public int getMaxResults() {
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -451,14 +539,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -466,16 +555,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -484,6 +572,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -495,8 +584,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p1beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -516,12 +604,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p1beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -534,18 +620,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Feature other = (com.google.cloud.vision.v1p1beta1.Feature) obj; + com.google.cloud.vision.v1p1beta1.Feature other = + (com.google.cloud.vision.v1p1beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getModel() - .equals(other.getModel())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getModel().equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -568,97 +653,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Users describe the type of Google Cloud Vision API tasks to perform over
    * images by using *Feature*s. Each Feature indicates a type of image
@@ -668,21 +760,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Feature}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Feature)
       com.google.cloud.vision.v1p1beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Feature.class, com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Feature.class,
+              com.google.cloud.vision.v1p1beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Feature.newBuilder()
@@ -690,16 +784,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -713,9 +806,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -734,7 +827,8 @@ public com.google.cloud.vision.v1p1beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Feature result = new com.google.cloud.vision.v1p1beta1.Feature(this);
+      com.google.cloud.vision.v1p1beta1.Feature result =
+          new com.google.cloud.vision.v1p1beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -746,38 +840,39 @@ public com.google.cloud.vision.v1p1beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Feature)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Feature) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -827,51 +922,65 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Feature.Type result = com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p1beta1.Feature.Type result = + com.google.cloud.vision.v1p1beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p1beta1.Feature.Type.UNRECOGNIZED : result; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -879,33 +988,39 @@ public Builder setType(com.google.cloud.vision.v1p1beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -913,30 +1028,36 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of results of this type.
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -944,6 +1065,8 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -951,13 +1074,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -966,6 +1089,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -973,15 +1098,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -989,6 +1113,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -996,20 +1122,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1017,15 +1145,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1033,23 +1164,23 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1190,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Feature) private static final com.google.cloud.vision.v1p1beta1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Feature(); } @@ -1073,16 +1204,16 @@ public static com.google.cloud.vision.v1p1beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1228,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java index a1d7cae6b..27b501642 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p1beta1.Feature.Type type = 1; + * * @return The type. */ com.google.cloud.vision.v1p1beta1.Feature.Type getType(); /** + * + * *
    * Maximum number of results of this type.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -44,10 +71,13 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -55,8 +85,8 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java new file mode 100644 index 000000000..26e223e04 --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/GeometryProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/geometry.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class GeometryProto { + private GeometryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p1beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p1beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"G\n\014Boundin" + + "gPoly\0227\n\010vertices\030\001 \003(\0132%.google.cloud.v" + + "ision.v1p1beta1.Vertex\"+\n\010Position\022\t\n\001x\030" + + "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.googl" + + "e.cloud.vision.v1p1beta1B\rGeometryProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/cloud/vision/v1p1beta1;vision\370\001\001b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", + }); + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Position_descriptor, + new java.lang.String[] { + "X", "Y", "Z", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java index 056f55504..fda846585 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,34 @@ private Image( case 0: done = true; break; - case 10: { - - content_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + case 10: + { + content_ = input.readBytes(); + break; } - source_ = input.readMessage(com.google.cloud.vision.v1p1beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p1beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +105,33 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Image.class, com.google.cloud.vision.v1p1beta1.Image.Builder.class); + com.google.cloud.vision.v1p1beta1.Image.class, + com.google.cloud.vision.v1p1beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -115,6 +139,7 @@ private Image(
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -125,6 +150,8 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.ImageSource source_; /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -132,6 +159,7 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ @java.lang.Override @@ -139,6 +167,8 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -146,13 +176,18 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageSource getSource() { - return source_ == null ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() + : source_; } /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -167,6 +202,7 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -178,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -196,12 +231,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,19 +244,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p1beta1.Image other = (com.google.cloud.vision.v1p1beta1.Image) obj;
 
-    if (!getContent()
-        .equals(other.getContent())) return false;
+    if (!getContent().equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -247,118 +278,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p1beta1.Image parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p1beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Image) com.google.cloud.vision.v1p1beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Image.class, com.google.cloud.vision.v1p1beta1.Image.Builder.class); + com.google.cloud.vision.v1p1beta1.Image.class, + com.google.cloud.vision.v1p1beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Image.newBuilder() @@ -366,16 +406,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Image_descriptor; } @java.lang.Override @@ -412,7 +451,8 @@ public com.google.cloud.vision.v1p1beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Image buildPartial() { - com.google.cloud.vision.v1p1beta1.Image result = new com.google.cloud.vision.v1p1beta1.Image(this); + com.google.cloud.vision.v1p1beta1.Image result = + new com.google.cloud.vision.v1p1beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -427,38 +467,39 @@ public com.google.cloud.vision.v1p1beta1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Image)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Image) other); } else { super.mergeFrom(other); return this; @@ -504,6 +545,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -511,6 +554,7 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -518,6 +562,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -525,19 +571,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -545,10 +594,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -556,8 +606,13 @@ public Builder clearContent() { private com.google.cloud.vision.v1p1beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> sourceBuilder_; + com.google.cloud.vision.v1p1beta1.ImageSource, + com.google.cloud.vision.v1p1beta1.ImageSource.Builder, + com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -565,12 +620,15 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -578,16 +636,21 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return The source. */ public com.google.cloud.vision.v1p1beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -610,6 +673,8 @@ public Builder setSource(com.google.cloud.vision.v1p1beta1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -630,6 +695,8 @@ public Builder setSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -642,7 +709,9 @@ public Builder mergeSource(com.google.cloud.vision.v1p1beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-            com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder(source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -654,6 +723,8 @@ public Builder mergeSource(com.google.cloud.vision.v1p1beta1.ImageSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -674,6 +745,8 @@ public Builder clearSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -683,11 +756,13 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p1beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p1beta1.ImageSource.Builder getSourceBuilder() {
-      
+
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -700,11 +775,14 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null ?
-            com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance() : source_;
+        return source_ == null
+            ? com.google.cloud.vision.v1p1beta1.ImageSource.getDefaultInstance()
+            : source_;
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location. If both `content` and `source`
      * are provided for an image, `content` takes precedence and is
@@ -714,21 +792,24 @@ public com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p1beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.ImageSource,
+            com.google.cloud.vision.v1p1beta1.ImageSource.Builder,
+            com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.ImageSource, com.google.cloud.vision.v1p1beta1.ImageSource.Builder, com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>(
-                getSource(),
-                getParentForChildren(),
-                isClean());
+        sourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.ImageSource,
+                com.google.cloud.vision.v1p1beta1.ImageSource.Builder,
+                com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder>(
+                getSource(), getParentForChildren(), isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -738,12 +819,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Image)
   private static final com.google.cloud.vision.v1p1beta1.Image DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Image();
   }
@@ -752,16 +833,16 @@ public static com.google.cloud.vision.v1p1beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Image parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Image(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Image parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Image(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -776,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p1beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
new file mode 100644
index 000000000..6bd7d0d6a
--- /dev/null
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
@@ -0,0 +1,550 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/vision/v1p1beta1/image_annotator.proto
+
+package com.google.cloud.vision.v1p1beta1;
+
+public final class ImageAnnotatorProto {
+  private ImageAnnotatorProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_Image_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_Property_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n3google/cloud/vision/v1p1beta1/image_an"
+          + "notator.proto\022\035google.cloud.vision.v1p1b"
+          + "eta1\032\034google/api/annotations.proto\032\027goog"
+          + "le/api/client.proto\032\037google/api/field_be"
+          + "havior.proto\032,google/cloud/vision/v1p1be"
+          + "ta1/geometry.proto\0323google/cloud/vision/"
+          + "v1p1beta1/text_annotation.proto\0321google/"
+          + "cloud/vision/v1p1beta1/web_detection.pro"
+          + "to\032\027google/rpc/status.proto\032\027google/type"
+          + "/color.proto\032\030google/type/latlng.proto\"\341"
+          + "\002\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud."
+          + "vision.v1p1beta1.Feature.Type\022\023\n\013max_res"
+          + "ults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TY"
+          + "PE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022"
+          + "LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003"
+          + "\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020"
+          + "\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_S"
+          + "EARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022"
+          + "\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013Im"
+          + "ageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timag"
+          + "e_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n"
+          + "\006source\030\002 \001(\0132*.google.cloud.vision.v1p1"
+          + "beta1.ImageSource\"\233\016\n\016FaceAnnotation\022B\n\r"
+          + "bounding_poly\030\001 \001(\0132+.google.cloud.visio"
+          + "n.v1p1beta1.BoundingPoly\022E\n\020fd_bounding_"
+          + "poly\030\002 \001(\0132+.google.cloud.vision.v1p1bet"
+          + "a1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326.goo"
+          + "gle.cloud.vision.v1p1beta1.FaceAnnotatio"
+          + "n.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_an"
+          + "gle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detecti"
+          + "on_confidence\030\007 \001(\002\022\036\n\026landmarking_confi"
+          + "dence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162).go"
+          + "ogle.cloud.vision.v1p1beta1.Likelihood\022D"
+          + "\n\021sorrow_likelihood\030\n \001(\0162).google.cloud"
+          + ".vision.v1p1beta1.Likelihood\022C\n\020anger_li"
+          + "kelihood\030\013 \001(\0162).google.cloud.vision.v1p"
+          + "1beta1.Likelihood\022F\n\023surprise_likelihood"
+          + "\030\014 \001(\0162).google.cloud.vision.v1p1beta1.L"
+          + "ikelihood\022K\n\030under_exposed_likelihood\030\r "
+          + "\001(\0162).google.cloud.vision.v1p1beta1.Like"
+          + "lihood\022E\n\022blurred_likelihood\030\016 \001(\0162).goo"
+          + "gle.cloud.vision.v1p1beta1.Likelihood\022F\n"
+          + "\023headwear_likelihood\030\017 \001(\0162).google.clou"
+          + "d.vision.v1p1beta1.Likelihood\032\307\007\n\010Landma"
+          + "rk\022I\n\004type\030\003 \001(\0162;.google.cloud.vision.v"
+          + "1p1beta1.FaceAnnotation.Landmark.Type\0229\n"
+          + "\010position\030\004 \001(\0132\'.google.cloud.vision.v1"
+          + "p1beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOWN_LAN"
+          + "DMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024"
+          + "LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_"
+          + "EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026"
+          + "RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BET"
+          + "WEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t"
+          + "\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH"
+          + "_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTO"
+          + "M_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_"
+          + "BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY"
+          + "\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EY"
+          + "E_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_COR"
+          + "NER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIG"
+          + "HT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTO"
+          + "M_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022"
+          + "\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGH"
+          + "T_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_T"
+          + "RAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_"
+          + "EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FORE"
+          + "HEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CH"
+          + "IN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\""
+          + "4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023.googl"
+          + "e.type.LatLng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022"
+          + "\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n"
+          + "\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale"
+          + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005score\030\004 \001"
+          + "(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001"
+          + "(\002\022B\n\rbounding_poly\030\007 \001(\0132+.google.cloud"
+          + ".vision.v1p1beta1.BoundingPoly\022>\n\tlocati"
+          + "ons\030\010 \003(\0132+.google.cloud.vision.v1p1beta"
+          + "1.LocationInfo\022;\n\nproperties\030\t \003(\0132\'.goo"
+          + "gle.cloud.vision.v1p1beta1.Property\"\274\002\n\024"
+          + "SafeSearchAnnotation\0228\n\005adult\030\001 \001(\0162).go"
+          + "ogle.cloud.vision.v1p1beta1.Likelihood\0228"
+          + "\n\005spoof\030\002 \001(\0162).google.cloud.vision.v1p1"
+          + "beta1.Likelihood\022:\n\007medical\030\003 \001(\0162).goog"
+          + "le.cloud.vision.v1p1beta1.Likelihood\022;\n\010"
+          + "violence\030\004 \001(\0162).google.cloud.vision.v1p"
+          + "1beta1.Likelihood\0227\n\004racy\030\t \001(\0162).google"
+          + ".cloud.vision.v1p1beta1.Likelihood\"a\n\013La"
+          + "tLongRect\022(\n\013min_lat_lng\030\001 \001(\0132\023.google."
+          + "type.LatLng\022(\n\013max_lat_lng\030\002 \001(\0132\023.googl"
+          + "e.type.LatLng\"U\n\tColorInfo\022!\n\005color\030\001 \001("
+          + "\0132\022.google.type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016"
+          + "pixel_fraction\030\003 \001(\002\"T\n\030DominantColorsAn"
+          + "notation\0228\n\006colors\030\001 \003(\0132(.google.cloud."
+          + "vision.v1p1beta1.ColorInfo\"c\n\017ImagePrope"
+          + "rties\022P\n\017dominant_colors\030\001 \001(\01327.google."
+          + "cloud.vision.v1p1beta1.DominantColorsAnn"
+          + "otation\"\177\n\010CropHint\022B\n\rbounding_poly\030\001 \001"
+          + "(\0132+.google.cloud.vision.v1p1beta1.Bound"
+          + "ingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n\023importanc"
+          + "e_fraction\030\003 \001(\002\"R\n\023CropHintsAnnotation\022"
+          + ";\n\ncrop_hints\030\001 \003(\0132\'.google.cloud.visio"
+          + "n.v1p1beta1.CropHint\"(\n\017CropHintsParams\022"
+          + "\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebDetectionPa"
+          + "rams\022\033\n\023include_geo_results\030\002 \001(\010\"c\n\023Tex"
+          + "tDetectionParams\022.\n&enable_text_detectio"
+          + "n_confidence_score\030\t \001(\010\022\034\n\024advanced_ocr"
+          + "_options\030\013 \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_l"
+          + "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p"
+          + "1beta1.LatLongRect\022\026\n\016language_hints\030\002 \003"
+          + "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c"
+          + "loud.vision.v1p1beta1.CropHintsParams\022O\n"
+          + "\024web_detection_params\030\006 \001(\01321.google.clo"
+          + "ud.vision.v1p1beta1.WebDetectionParams\022Q"
+          + "\n\025text_detection_params\030\014 \001(\01322.google.c"
+          + "loud.vision.v1p1beta1.TextDetectionParam"
+          + "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001("
+          + "\0132$.google.cloud.vision.v1p1beta1.Image\022"
+          + "8\n\010features\030\002 \003(\0132&.google.cloud.vision."
+          + "v1p1beta1.Feature\022B\n\rimage_context\030\003 \001(\013"
+          + "2+.google.cloud.vision.v1p1beta1.ImageCo"
+          + "ntext\"\302\006\n\025AnnotateImageResponse\022G\n\020face_"
+          + "annotations\030\001 \003(\0132-.google.cloud.vision."
+          + "v1p1beta1.FaceAnnotation\022M\n\024landmark_ann"
+          + "otations\030\002 \003(\0132/.google.cloud.vision.v1p"
+          + "1beta1.EntityAnnotation\022I\n\020logo_annotati"
+          + "ons\030\003 \003(\0132/.google.cloud.vision.v1p1beta"
+          + "1.EntityAnnotation\022J\n\021label_annotations\030"
+          + "\004 \003(\0132/.google.cloud.vision.v1p1beta1.En"
+          + "tityAnnotation\022I\n\020text_annotations\030\005 \003(\013"
+          + "2/.google.cloud.vision.v1p1beta1.EntityA"
+          + "nnotation\022K\n\024full_text_annotation\030\014 \001(\0132"
+          + "-.google.cloud.vision.v1p1beta1.TextAnno"
+          + "tation\022S\n\026safe_search_annotation\030\006 \001(\01323"
+          + ".google.cloud.vision.v1p1beta1.SafeSearc"
+          + "hAnnotation\022S\n\033image_properties_annotati"
+          + "on\030\010 \001(\0132..google.cloud.vision.v1p1beta1"
+          + ".ImageProperties\022Q\n\025crop_hints_annotatio"
+          + "n\030\013 \001(\01322.google.cloud.vision.v1p1beta1."
+          + "CropHintsAnnotation\022B\n\rweb_detection\030\r \001"
+          + "(\0132+.google.cloud.vision.v1p1beta1.WebDe"
+          + "tection\022!\n\005error\030\t \001(\0132\022.google.rpc.Stat"
+          + "us\"h\n\032BatchAnnotateImagesRequest\022J\n\010requ"
+          + "ests\030\001 \003(\01323.google.cloud.vision.v1p1bet"
+          + "a1.AnnotateImageRequestB\003\340A\002\"f\n\033BatchAnn"
+          + "otateImagesResponse\022G\n\tresponses\030\001 \003(\01324"
+          + ".google.cloud.vision.v1p1beta1.AnnotateI"
+          + "mageResponse*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022"
+          + "\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSS"
+          + "IBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\311\002\n\016"
+          + "ImageAnnotator\022\276\001\n\023BatchAnnotateImages\0229"
+          + ".google.cloud.vision.v1p1beta1.BatchAnno"
+          + "tateImagesRequest\032:.google.cloud.vision."
+          + "v1p1beta1.BatchAnnotateImagesResponse\"0\202"
+          + "\323\344\223\002\037\"\032/v1p1beta1/images:annotate:\001*\332A\010r"
+          + "equests\032v\312A\025vision.googleapis.com\322A[http"
+          + "s://www.googleapis.com/auth/cloud-platfo"
+          + "rm,https://www.googleapis.com/auth/cloud"
+          + "-visionB\202\001\n!com.google.cloud.vision.v1p1"
+          + "beta1B\023ImageAnnotatorProtoP\001ZCgoogle.gol"
+          + "ang.org/genproto/googleapis/cloud/vision"
+          + "/v1p1beta1;vision\370\001\001b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(),
+              com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor(),
+              com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor(),
+              com.google.rpc.StatusProto.getDescriptor(),
+              com.google.type.ColorProto.getDescriptor(),
+              com.google.type.LatLngProto.getDescriptor(),
+            });
+    internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_vision_v1p1beta1_Feature_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_Feature_descriptor,
+            new java.lang.String[] {
+              "Type", "MaxResults", "Model",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor,
+            new java.lang.String[] {
+              "GcsImageUri", "ImageUri",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_Image_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_vision_v1p1beta1_Image_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_Image_descriptor,
+            new java.lang.String[] {
+              "Content", "Source",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor,
+            new java.lang.String[] {
+              "BoundingPoly",
+              "FdBoundingPoly",
+              "Landmarks",
+              "RollAngle",
+              "PanAngle",
+              "TiltAngle",
+              "DetectionConfidence",
+              "LandmarkingConfidence",
+              "JoyLikelihood",
+              "SorrowLikelihood",
+              "AngerLikelihood",
+              "SurpriseLikelihood",
+              "UnderExposedLikelihood",
+              "BlurredLikelihood",
+              "HeadwearLikelihood",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor =
+        internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_FaceAnnotation_Landmark_descriptor,
+            new java.lang.String[] {
+              "Type", "Position",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor,
+            new java.lang.String[] {
+              "LatLng",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_Property_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_Property_descriptor,
+            new java.lang.String[] {
+              "Name", "Value", "Uint64Value",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_EntityAnnotation_descriptor,
+            new java.lang.String[] {
+              "Mid",
+              "Locale",
+              "Description",
+              "Score",
+              "Confidence",
+              "Topicality",
+              "BoundingPoly",
+              "Locations",
+              "Properties",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor,
+            new java.lang.String[] {
+              "Adult", "Spoof", "Medical", "Violence", "Racy",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor,
+            new java.lang.String[] {
+              "MinLatLng", "MaxLatLng",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_vision_v1p1beta1_ColorInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_ColorInfo_descriptor,
+            new java.lang.String[] {
+              "Color", "Score", "PixelFraction",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_DominantColorsAnnotation_descriptor,
+            new java.lang.String[] {
+              "Colors",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor,
+            new java.lang.String[] {
+              "DominantColors",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_vision_v1p1beta1_CropHint_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_CropHint_descriptor,
+            new java.lang.String[] {
+              "BoundingPoly", "Confidence", "ImportanceFraction",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_CropHintsAnnotation_descriptor,
+            new java.lang.String[] {
+              "CropHints",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_CropHintsParams_descriptor,
+            new java.lang.String[] {
+              "AspectRatios",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor =
+        getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor,
+            new java.lang.String[] {
+              "IncludeGeoResults",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor =
+        getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor,
+            new java.lang.String[] {
+              "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor =
+        getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor,
+            new java.lang.String[] {
+              "LatLongRect",
+              "LanguageHints",
+              "CropHintsParams",
+              "WebDetectionParams",
+              "TextDetectionParams",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor =
+        getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_AnnotateImageRequest_descriptor,
+            new java.lang.String[] {
+              "Image", "Features", "ImageContext",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor =
+        getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_AnnotateImageResponse_descriptor,
+            new java.lang.String[] {
+              "FaceAnnotations",
+              "LandmarkAnnotations",
+              "LogoAnnotations",
+              "LabelAnnotations",
+              "TextAnnotations",
+              "FullTextAnnotation",
+              "SafeSearchAnnotation",
+              "ImagePropertiesAnnotation",
+              "CropHintsAnnotation",
+              "WebDetection",
+              "Error",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesRequest_descriptor,
+            new java.lang.String[] {
+              "Requests",
+            });
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_vision_v1p1beta1_BatchAnnotateImagesResponse_descriptor,
+            new java.lang.String[] {
+              "Responses",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.TextAnnotationProto.getDescriptor();
+    com.google.cloud.vision.v1p1beta1.WebDetectionProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+    com.google.type.ColorProto.getDescriptor();
+    com.google.type.LatLngProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
similarity index 75%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
index 444455c6e..3df8d6e5a 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContext.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageContext} */ -public final class ImageContext extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageContext) ImageContextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,74 +71,90 @@ private ImageContext( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = input.readMessage(com.google.cloud.vision.v1p1beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; - } - case 34: { - com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; } - webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.CropHintsParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); + case 50: + { + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); + } + webDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); + } + textDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,8 +162,7 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -139,27 +171,33 @@ private ImageContext( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageContext.class, com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageContext.class, + com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.LatLongRect latLongRect_; /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -167,18 +205,25 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
@@ -193,6 +238,8 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -205,13 +252,15 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -224,12 +273,15 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -242,6 +294,7 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -249,6 +302,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -261,22 +316,25 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p1beta1.CropHintsParams cropHintsParams_; /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -284,18 +342,25 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -310,11 +375,14 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p1beta1.WebDetectionParams webDetectionParams_; /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -322,18 +390,25 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } /** + * + * *
    * Parameters for web detection.
    * 
@@ -341,18 +416,22 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p1beta1.TextDetectionParams textDetectionParams_; /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -360,18 +439,25 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
@@ -379,11 +465,13 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,8 +483,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -422,8 +509,7 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -434,16 +520,14 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTextDetectionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,34 +537,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageContext other = (com.google.cloud.vision.v1p1beta1.ImageContext) obj; + com.google.cloud.vision.v1p1beta1.ImageContext other = + (com.google.cloud.vision.v1p1beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect() - .equals(other.getLatLongRect())) return false; + if (!getLatLongRect().equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList() - .equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams() - .equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams() - .equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams() - .equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -518,118 +598,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageContext) com.google.cloud.vision.v1p1beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageContext.class, com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageContext.class, + com.google.cloud.vision.v1p1beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageContext.newBuilder() @@ -637,16 +726,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -680,9 +768,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor; } @java.lang.Override @@ -701,7 +789,8 @@ public com.google.cloud.vision.v1p1beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageContext result = new com.google.cloud.vision.v1p1beta1.ImageContext(this); + com.google.cloud.vision.v1p1beta1.ImageContext result = + new com.google.cloud.vision.v1p1beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -736,38 +825,39 @@ public com.google.cloud.vision.v1p1beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageContext)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageContext) other); } else { super.mergeFrom(other); return this; @@ -826,38 +916,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> latLongRectBuilder_; + com.google.cloud.vision.v1p1beta1.LatLongRect, + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> + latLongRectBuilder_; /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ public com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -878,6 +982,8 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect valu return this; } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -896,6 +1002,8 @@ public Builder setLatLongRect( return this; } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -906,7 +1014,9 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder(latLongRect_) + .mergeFrom(value) + .buildPartial(); } else { latLongRect_ = value; } @@ -918,6 +1028,8 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p1beta1.LatLongRect va return this; } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -936,6 +1048,8 @@ public Builder clearLatLongRect() { return this; } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -943,11 +1057,13 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p1beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -958,11 +1074,14 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null ? - com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p1beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } } /** + * + * *
      * lat/long rectangle that specifies the location of the image.
      * 
@@ -970,27 +1089,34 @@ public com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p1beta1.LatLongRect, + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.LatLongRect, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder>( - getLatLongRect(), - getParentForChildren(), - isClean()); + latLongRectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.LatLongRect, + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder>( + getLatLongRect(), getParentForChildren(), isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1003,13 +1129,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1022,12 +1150,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1040,6 +1171,7 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1047,6 +1179,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1059,14 +1193,16 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1079,21 +1215,23 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints( - int index, java.lang.String value) { + public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1106,20 +1244,22 @@ public Builder setLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints( - java.lang.String value) { + public Builder addLanguageHints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1132,18 +1272,19 @@ public Builder addLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints( - java.lang.Iterable values) { + public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1156,6 +1297,7 @@ public Builder addAllLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1165,6 +1307,8 @@ public Builder clearLanguageHints() { return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1177,15 +1321,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; + * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1194,34 +1338,47 @@ public Builder addLanguageHintsBytes( private com.google.cloud.vision.v1p1beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; + com.google.cloud.vision.v1p1beta1.CropHintsParams, + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> + cropHintsParamsBuilder_; /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1242,6 +1399,8 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsPar return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1260,6 +1419,8 @@ public Builder setCropHintsParams( return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1270,7 +1431,9 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.CropHintsParams.newBuilder(cropHintsParams_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsParams_ = value; } @@ -1282,6 +1445,8 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p1beta1.CropHintsP return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1300,6 +1465,8 @@ public Builder clearCropHintsParams() { return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1307,26 +1474,32 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder + getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null ? - com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p1beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1334,14 +1507,17 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsPa * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.CropHintsParams, + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.CropHintsParams, com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), - getParentForChildren(), - isClean()); + cropHintsParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.CropHintsParams, + com.google.cloud.vision.v1p1beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), getParentForChildren(), isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1349,41 +1525,55 @@ public com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsPa private com.google.cloud.vision.v1p1beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetectionParams, + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> + webDetectionParamsBuilder_; /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { + public Builder setWebDetectionParams( + com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1397,6 +1587,8 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDetect return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1415,17 +1607,22 @@ public Builder setWebDetectionParams( return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams( + com.google.cloud.vision.v1p1beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder(webDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { webDetectionParams_ = value; } @@ -1437,6 +1634,8 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p1beta1.WebDete return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1455,33 +1654,42 @@ public Builder clearWebDetectionParams() { return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder + getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null ? - com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1489,14 +1697,17 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetec * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetectionParams, + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetectionParams, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), - getParentForChildren(), - isClean()); + webDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetectionParams, + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), getParentForChildren(), isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1504,41 +1715,55 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetec private com.google.cloud.vision.v1p1beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; + com.google.cloud.vision.v1p1beta1.TextDetectionParams, + com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> + textDetectionParamsBuilder_; /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { + public Builder setTextDetectionParams( + com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1552,6 +1777,8 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDete return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1570,17 +1797,22 @@ public Builder setTextDetectionParams( return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams( + com.google.cloud.vision.v1p1beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder(textDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { textDetectionParams_ = value; } @@ -1592,6 +1824,8 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p1beta1.TextDe return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1610,33 +1844,42 @@ public Builder clearTextDetectionParams() { return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder + getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null ? - com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1644,21 +1887,24 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder getTextDet * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p1beta1.TextDetectionParams, + com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextDetectionParams, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), - getParentForChildren(), - isClean()); + textDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextDetectionParams, + com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), getParentForChildren(), isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1668,12 +1914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageContext) private static final com.google.cloud.vision.v1p1beta1.ImageContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageContext(); } @@ -1682,16 +1928,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1706,6 +1952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java similarity index 87% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java index ae176ee84..f0006462b 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageContextOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageContextOrBuilder extends +public interface ImageContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
* * .google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ com.google.cloud.vision.v1p1beta1.LatLongRect getLatLongRect(); /** + * + * *
    * lat/long rectangle that specifies the location of the image.
    * 
@@ -35,6 +59,8 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -47,11 +73,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - java.util.List - getLanguageHintsList(); + java.util.List getLanguageHintsList(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -64,10 +92,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ int getLanguageHintsCount(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -80,11 +111,14 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -97,31 +131,39 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString - getLanguageHintsBytes(int index); + com.google.protobuf.ByteString getLanguageHintsBytes(int index); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ com.google.cloud.vision.v1p1beta1.CropHintsParams getCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -131,24 +173,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p1beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ com.google.cloud.vision.v1p1beta1.WebDetectionParams getWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
@@ -158,24 +208,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ com.google.cloud.vision.v1p1beta1.TextDetectionParams getTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java index 028742231..6824970d2 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: as with all `bytes` fields, protobuffers use a pure binary
@@ -15,11 +33,14 @@ public interface ImageOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -27,10 +48,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
@@ -38,10 +62,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.ImageSource source = 2; + * * @return The source. */ com.google.cloud.vision.v1p1beta1.ImageSource getSource(); /** + * + * *
    * Google Cloud Storage image location. If both `content` and `source`
    * are provided for an image, `content` takes precedence and is
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
similarity index 69%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
index 2850e0cd1..f4934c319 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageProperties.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p1beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageProperties} */ -public final class ImageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageProperties) ImagePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageProperties() { - } + + private ImageProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageProperties( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); + } + dominantColors_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; } - dominantColors_ = input.readMessage(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageProperties.class, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageProperties.class, + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominantColors_; /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageProperties other = (com.google.cloud.vision.v1p1beta1.ImageProperties) obj; + com.google.cloud.vision.v1p1beta1.ImageProperties other = + (com.google.cloud.vision.v1p1beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors() - .equals(other.getDominantColors())) return false; + if (!getDominantColors().equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +240,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageProperties) com.google.cloud.vision.v1p1beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageProperties.class, com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageProperties.class, + com.google.cloud.vision.v1p1beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageProperties.newBuilder() @@ -326,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageProperties_descriptor; } @java.lang.Override @@ -370,7 +410,8 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageProperties result = new com.google.cloud.vision.v1p1beta1.ImageProperties(this); + com.google.cloud.vision.v1p1beta1.ImageProperties result = + new com.google.cloud.vision.v1p1beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.vision.v1p1beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageProperties)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageProperties) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.ImageProperties.getDefaultInstance()) + return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -446,7 +489,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +502,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> + dominantColorsBuilder_; /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { + public Builder setDominantColors( + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +564,8 @@ public Builder setDominantColors(com.google.cloud.vision.v1p1beta1.DominantColor return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -524,17 +584,22 @@ public Builder setDominantColors( return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors(com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors( + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.newBuilder(dominantColors_) + .mergeFrom(value) + .buildPartial(); } else { dominantColors_ = value; } @@ -546,6 +611,8 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1p1beta1.DominantCol return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -564,33 +631,42 @@ public Builder clearDominantColors() { return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder + getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null ? - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -598,21 +674,24 @@ public com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder getDo * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), - getParentForChildren(), - isClean()); + dominantColorsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p1beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), getParentForChildren(), isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageProperties) private static final com.google.cloud.vision.v1p1beta1.ImageProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageProperties(); } @@ -636,16 +715,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java index ca186d7d1..86b792273 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImagePropertiesOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImagePropertiesOrBuilder extends +public interface ImagePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p1beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ com.google.cloud.vision.v1p1beta1.DominantColorsAnnotation getDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java index 6649bab9d..24ddf962c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * External image source (Google Cloud Storage image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageSource} */ -public final class ImageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.ImageSource) ImageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -26,16 +44,15 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ImageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageSource.class, com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageSource.class, + com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** + * + * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -113,6 +136,7 @@ private ImageSource(
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ @java.lang.Override @@ -121,14 +145,15 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** + * + * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -139,16 +164,15 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -159,6 +183,8 @@ public java.lang.String getGcsImageUri() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** + * + * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -173,6 +199,7 @@ public java.lang.String getGcsImageUri() {
    * 
* * string image_uri = 2; + * * @return The imageUri. */ @java.lang.Override @@ -181,14 +208,15 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -203,16 +231,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -221,6 +248,7 @@ public java.lang.String getImageUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -263,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.ImageSource other = (com.google.cloud.vision.v1p1beta1.ImageSource) obj; + com.google.cloud.vision.v1p1beta1.ImageSource other = + (com.google.cloud.vision.v1p1beta1.ImageSource) obj; - if (!getGcsImageUri() - .equals(other.getGcsImageUri())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; + if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,118 +320,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * External image source (Google Cloud Storage image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.ImageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.ImageSource) com.google.cloud.vision.v1p1beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.ImageSource.class, com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p1beta1.ImageSource.class, + com.google.cloud.vision.v1p1beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.ImageSource.newBuilder() @@ -413,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_ImageSource_descriptor; } @java.lang.Override @@ -455,7 +489,8 @@ public com.google.cloud.vision.v1p1beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p1beta1.ImageSource result = new com.google.cloud.vision.v1p1beta1.ImageSource(this); + com.google.cloud.vision.v1p1beta1.ImageSource result = + new com.google.cloud.vision.v1p1beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -466,38 +501,39 @@ public com.google.cloud.vision.v1p1beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageSource)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.ImageSource) other); } else { super.mergeFrom(other); return this; @@ -545,6 +581,8 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** + * + * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -555,13 +593,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -570,6 +608,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -580,15 +620,14 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -596,6 +635,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -606,20 +647,22 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri( - java.lang.String value) { + public Builder setGcsImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** + * + * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -630,15 +673,18 @@ public Builder setGcsImageUri(
      * 
* * string gcs_image_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** + * + * *
      * NOTE: For new code `image_uri` below is preferred.
      * Google Cloud Storage image URI, which must be in the following form:
@@ -649,16 +695,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -666,6 +712,8 @@ public Builder setGcsImageUriBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -680,13 +728,13 @@ public Builder setGcsImageUriBytes(
      * 
* * string image_uri = 2; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -695,6 +743,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -709,15 +759,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -725,6 +774,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -739,20 +790,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -767,15 +820,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 2; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * Image URI which supports:
      * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -790,23 +846,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -816,12 +872,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageSource) private static final com.google.cloud.vision.v1p1beta1.ImageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.ImageSource(); } @@ -830,16 +886,16 @@ public static com.google.cloud.vision.v1p1beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java index 6ecdd6db2..f277818d6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface ImageSourceOrBuilder extends +public interface ImageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -18,10 +36,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** + * + * *
    * NOTE: For new code `image_uri` below is preferred.
    * Google Cloud Storage image URI, which must be in the following form:
@@ -32,12 +53,14 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString - getGcsImageUriBytes(); + com.google.protobuf.ByteString getGcsImageUriBytes(); /** + * + * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -52,10 +75,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * Image URI which supports:
    * 1) Google Cloud Storage image URI, which must be in the following form:
@@ -70,8 +96,8 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java index 30513a85c..eb8c51dcc 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRect.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LatLongRect} */ -public final class LatLongRect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.LatLongRect) LatLongRectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLongRect() { - } + + private LatLongRect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private LatLongRect( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); + } + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LatLongRect.class, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p1beta1.LatLongRect.class, + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -127,11 +150,14 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ @java.lang.Override @@ -139,6 +165,8 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** + * + * *
    * Min lat/long pair.
    * 
@@ -153,11 +181,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -165,11 +196,14 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ @java.lang.Override @@ -177,6 +211,8 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** + * + * *
    * Max lat/long pair.
    * 
@@ -189,6 +225,7 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -218,12 +254,10 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +267,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.LatLongRect other = (com.google.cloud.vision.v1p1beta1.LatLongRect) obj; + com.google.cloud.vision.v1p1beta1.LatLongRect other = + (com.google.cloud.vision.v1p1beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng() - .equals(other.getMinLatLng())) return false; + if (!getMinLatLng().equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng() - .equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +307,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LatLongRect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.LatLongRect) com.google.cloud.vision.v1p1beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LatLongRect.class, com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p1beta1.LatLongRect.class, + com.google.cloud.vision.v1p1beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.LatLongRect.newBuilder() @@ -393,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LatLongRect_descriptor; } @java.lang.Override @@ -443,7 +484,8 @@ public com.google.cloud.vision.v1p1beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p1beta1.LatLongRect result = new com.google.cloud.vision.v1p1beta1.LatLongRect(this); + com.google.cloud.vision.v1p1beta1.LatLongRect result = + new com.google.cloud.vision.v1p1beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -462,38 +504,39 @@ public com.google.cloud.vision.v1p1beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.LatLongRect)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.LatLongRect) other); } else { super.mergeFrom(other); return this; @@ -539,24 +582,31 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + minLatLngBuilder_; /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -567,6 +617,8 @@ public com.google.type.LatLng getMinLatLng() { } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -587,14 +639,15 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -605,6 +658,8 @@ public Builder setMinLatLng( return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -615,7 +670,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -627,6 +682,8 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -645,6 +702,8 @@ public Builder clearMinLatLng() { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -652,11 +711,13 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Min lat/long pair.
      * 
@@ -667,11 +728,12 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -679,14 +741,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMinLatLng(), - getParentForChildren(), - isClean()); + minLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -694,24 +756,31 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + maxLatLngBuilder_; /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -722,6 +791,8 @@ public com.google.type.LatLng getMaxLatLng() { } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -742,14 +813,15 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -760,6 +832,8 @@ public Builder setMaxLatLng( return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -770,7 +844,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -782,6 +856,8 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -800,6 +876,8 @@ public Builder clearMaxLatLng() { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -807,11 +885,13 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Max lat/long pair.
      * 
@@ -822,11 +902,12 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -834,21 +915,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMaxLatLng(), - getParentForChildren(), - isClean()); + maxLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LatLongRect) private static final com.google.cloud.vision.v1p1beta1.LatLongRect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.LatLongRect(); } @@ -872,16 +953,16 @@ public static com.google.cloud.vision.v1p1beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java index 5b7a3f94d..5bf3c301c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LatLongRectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface LatLongRectOrBuilder extends +public interface LatLongRectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
@@ -35,24 +59,32 @@ public interface LatLongRectOrBuilder extends com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java index aef339b3b..8777303f3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Likelihood.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p1beta1.Likelihood}
  */
-public enum Likelihood
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unknown likelihood.
    * 
@@ -22,6 +40,8 @@ public enum Likelihood */ UNKNOWN(0), /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -30,6 +50,8 @@ public enum Likelihood */ VERY_UNLIKELY(1), /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -38,6 +60,8 @@ public enum Likelihood */ UNLIKELY(2), /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -46,6 +70,8 @@ public enum Likelihood */ POSSIBLE(3), /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -54,6 +80,8 @@ public enum Likelihood */ LIKELY(4), /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -65,6 +93,8 @@ public enum Likelihood ; /** + * + * *
    * Unknown likelihood.
    * 
@@ -73,6 +103,8 @@ public enum Likelihood */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -81,6 +113,8 @@ public enum Likelihood */ public static final int VERY_UNLIKELY_VALUE = 1; /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -89,6 +123,8 @@ public enum Likelihood */ public static final int UNLIKELY_VALUE = 2; /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -97,6 +133,8 @@ public enum Likelihood */ public static final int POSSIBLE_VALUE = 3; /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -105,6 +143,8 @@ public enum Likelihood */ public static final int LIKELY_VALUE = 4; /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -113,7 +153,6 @@ public enum Likelihood */ public static final int VERY_LIKELY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,52 +177,57 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return VERY_UNLIKELY; - case 2: return UNLIKELY; - case 3: return POSSIBLE; - case 4: return LIKELY; - case 5: return VERY_LIKELY; - default: return null; + case 0: + return UNKNOWN; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Likelihood> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -199,4 +243,3 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p1beta1.Likelihood) } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java index bc899c218..0f5375101 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfo.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LocationInfo} */ -public final class LocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.LocationInfo) LocationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationInfo() { - } + + private LocationInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,27 @@ private LocationInfo( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +96,39 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LocationInfo.class, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p1beta1.LocationInfo.class, + com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -114,11 +136,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -126,6 +151,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * lat/long location coordinates.
    * 
@@ -138,6 +165,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -164,8 +191,7 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.LocationInfo other = (com.google.cloud.vision.v1p1beta1.LocationInfo) obj; + com.google.cloud.vision.v1p1beta1.LocationInfo other = + (com.google.cloud.vision.v1p1beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +233,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.LocationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.LocationInfo) com.google.cloud.vision.v1p1beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.LocationInfo.class, com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p1beta1.LocationInfo.class, + com.google.cloud.vision.v1p1beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.LocationInfo.newBuilder() @@ -326,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_LocationInfo_descriptor; } @java.lang.Override @@ -370,7 +404,8 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p1beta1.LocationInfo result = new com.google.cloud.vision.v1p1beta1.LocationInfo(this); + com.google.cloud.vision.v1p1beta1.LocationInfo result = + new com.google.cloud.vision.v1p1beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -384,38 +419,39 @@ public com.google.cloud.vision.v1p1beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.LocationInfo)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.LocationInfo) other); } else { super.mergeFrom(other); return this; @@ -458,24 +494,31 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -486,6 +529,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -506,14 +551,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -524,6 +570,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -533,8 +581,7 @@ public Builder setLatLng( public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = - com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -546,6 +593,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -564,6 +613,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -571,11 +622,13 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -586,11 +639,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -598,21 +652,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LocationInfo) private static final com.google.cloud.vision.v1p1beta1.LocationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.LocationInfo(); } @@ -636,16 +690,16 @@ public static com.google.cloud.vision.v1p1beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +714,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java index e5cfd64a4..5915942b9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/LocationInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface LocationInfoOrBuilder extends +public interface LocationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java index 6105d55b5..6a24ce75d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Page.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Page} */ -public final class Page extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Page extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Page) PageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,50 +71,57 @@ private Page( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 16: + { + width_ = input.readInt32(); + break; } - - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 24: + { + height_ = input.readInt32(); + break; } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blocks_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +129,7 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -115,27 +138,33 @@ private Page( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Page.class, com.google.cloud.vision.v1p1beta1.Page.Builder.class); + com.google.cloud.vision.v1p1beta1.Page.class, + com.google.cloud.vision.v1p1beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -143,18 +172,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected on the page.
    * 
@@ -162,18 +198,22 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** + * + * *
    * Page width in pixels.
    * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -184,11 +224,14 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** + * + * *
    * Page height in pixels.
    * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -199,6 +242,8 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -210,6 +255,8 @@ public java.util.List getBlocksList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -217,11 +264,13 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -233,6 +282,8 @@ public int getBlocksCount() { return blocks_.size(); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -244,6 +295,8 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { return blocks_.get(index); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -251,19 +304,21 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -272,6 +327,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -310,24 +365,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,7 +387,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Page)) { return super.equals(obj); @@ -346,18 +396,13 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!getBlocksList() - .equals(other.getBlocksList())) return false; + if (!getProperty().equals(other.getProperty())) return false; + } + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getBlocksList().equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,125 +427,133 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Page parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Page} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Page) com.google.cloud.vision.v1p1beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Page.class, com.google.cloud.vision.v1p1beta1.Page.Builder.class); + com.google.cloud.vision.v1p1beta1.Page.class, + com.google.cloud.vision.v1p1beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Page.newBuilder() @@ -508,17 +561,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -544,9 +597,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; } @java.lang.Override @@ -565,7 +618,8 @@ public com.google.cloud.vision.v1p1beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Page buildPartial() { - com.google.cloud.vision.v1p1beta1.Page result = new com.google.cloud.vision.v1p1beta1.Page(this); + com.google.cloud.vision.v1p1beta1.Page result = + new com.google.cloud.vision.v1p1beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -592,38 +646,39 @@ public com.google.cloud.vision.v1p1beta1.Page buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Page)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Page) other); } else { super.mergeFrom(other); return this; @@ -659,9 +714,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlocksFieldBuilder() : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlocksFieldBuilder() + : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -698,45 +754,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -768,17 +841,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -790,6 +868,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -808,33 +888,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -842,26 +931,32 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } - private int width_ ; + private int width_; /** + * + * *
      * Page width in pixels.
      * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -869,42 +964,51 @@ public int getWidth() { return width_; } /** + * + * *
      * Page width in pixels.
      * 
* * int32 width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Page width in pixels.
      * 
* * int32 width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
      * Page height in pixels.
      * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -912,48 +1016,60 @@ public int getHeight() { return height_; } /** + * + * *
      * Page height in pixels.
      * 
* * int32 height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Page height in pixels.
      * 
* * int32 height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder> blocksBuilder_; + com.google.cloud.vision.v1p1beta1.Block, + com.google.cloud.vision.v1p1beta1.Block.Builder, + com.google.cloud.vision.v1p1beta1.BlockOrBuilder> + blocksBuilder_; /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -968,6 +1084,8 @@ public java.util.List getBlocksList() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -982,6 +1100,8 @@ public int getBlocksCount() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -996,14 +1116,15 @@ public com.google.cloud.vision.v1p1beta1.Block getBlocks(int index) { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1p1beta1.Block value) { + public Builder setBlocks(int index, com.google.cloud.vision.v1p1beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1017,6 +1138,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1035,6 +1158,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1055,14 +1180,15 @@ public Builder addBlocks(com.google.cloud.vision.v1p1beta1.Block value) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1p1beta1.Block value) { + public Builder addBlocks(int index, com.google.cloud.vision.v1p1beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1076,14 +1202,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public Builder addBlocks( - com.google.cloud.vision.v1p1beta1.Block.Builder builderForValue) { + public Builder addBlocks(com.google.cloud.vision.v1p1beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1094,6 +1221,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1112,6 +1241,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1122,8 +1253,7 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1131,6 +1261,8 @@ public Builder addAllBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1148,6 +1280,8 @@ public Builder clearBlocks() { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1165,39 +1299,44 @@ public Builder removeBlocks(int index) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.Block.Builder getBlocksBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Block.Builder getBlocksBuilder(int index) { return getBlocksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); } else { + return blocks_.get(index); + } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1205,6 +1344,8 @@ public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1212,54 +1353,62 @@ public com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder( - int index) { - return getBlocksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Block.Builder addBlocksBuilder(int index) { + return getBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - public java.util.List - getBlocksBuilderList() { + public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder> + com.google.cloud.vision.v1p1beta1.Block, + com.google.cloud.vision.v1p1beta1.Block.Builder, + com.google.cloud.vision.v1p1beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Block, com.google.cloud.vision.v1p1beta1.Block.Builder, com.google.cloud.vision.v1p1beta1.BlockOrBuilder>( - blocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Block, + com.google.cloud.vision.v1p1beta1.Block.Builder, + com.google.cloud.vision.v1p1beta1.BlockOrBuilder>( + blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1267,37 +1416,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1307,12 +1462,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Page) private static final com.google.cloud.vision.v1p1beta1.Page DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Page(); } @@ -1321,16 +1476,16 @@ public static com.google.cloud.vision.v1p1beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1345,6 +1500,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java index 59a47d4bc..3f6ae7c67 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PageOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface PageOrBuilder extends +public interface PageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Page) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
@@ -35,35 +59,44 @@ public interface PageOrBuilder extends com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * Page width in pixels.
    * 
* * int32 width = 2; + * * @return The width. */ int getWidth(); /** + * + * *
    * Page height in pixels.
    * 
* * int32 height = 3; + * * @return The height. */ int getHeight(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - java.util.List - getBlocksList(); + java.util.List getBlocksList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -72,6 +105,8 @@ public interface PageOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Block getBlocks(int index); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -80,30 +115,36 @@ public interface PageOrBuilder extends */ int getBlocksCount(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.BlockOrBuilder getBlocksOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java index ce2093bbb..98f13aea7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Paragraph.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Paragraph} */ -public final class Paragraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Paragraph) ParagraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Paragraph( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Word.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - words_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Word.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +144,33 @@ private Paragraph( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Paragraph.class, com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p1beta1.Paragraph.class, + com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
@@ -263,6 +315,8 @@ public java.util.List getWordsList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -270,11 +324,13 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -286,6 +342,8 @@ public int getWordsCount() { return words_.size(); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -297,6 +355,8 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { return words_.get(index); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -304,19 +364,21 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -325,6 +387,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -360,20 +422,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,28 +441,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Paragraph other = (com.google.cloud.vision.v1p1beta1.Paragraph) obj; + com.google.cloud.vision.v1p1beta1.Paragraph other = + (com.google.cloud.vision.v1p1beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,125 +484,133 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Paragraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Paragraph) com.google.cloud.vision.v1p1beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Paragraph.class, com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p1beta1.Paragraph.class, + com.google.cloud.vision.v1p1beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Paragraph.newBuilder() @@ -555,17 +618,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; } @java.lang.Override @@ -614,7 +677,8 @@ public com.google.cloud.vision.v1p1beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p1beta1.Paragraph result = new com.google.cloud.vision.v1p1beta1.Paragraph(this); + com.google.cloud.vision.v1p1beta1.Paragraph result = + new com.google.cloud.vision.v1p1beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -644,38 +708,39 @@ public com.google.cloud.vision.v1p1beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Paragraph)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Paragraph) other); } else { super.mergeFrom(other); return this; @@ -708,9 +773,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -747,45 +813,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,6 +880,8 @@ public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -817,17 +900,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -839,6 +927,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -857,33 +947,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -891,14 +990,17 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -906,8 +1008,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -927,12 +1034,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -952,16 +1062,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -996,6 +1111,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1028,6 +1145,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,7 +1171,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1064,6 +1185,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1096,6 +1219,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1117,11 +1242,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1146,11 +1273,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1172,32 +1302,41 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder> wordsBuilder_;
+            com.google.cloud.vision.v1p1beta1.Word,
+            com.google.cloud.vision.v1p1beta1.Word.Builder,
+            com.google.cloud.vision.v1p1beta1.WordOrBuilder>
+        wordsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of words in this paragraph.
      * 
@@ -1212,6 +1351,8 @@ public java.util.List getWordsList() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1226,6 +1367,8 @@ public int getWordsCount() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1240,14 +1383,15 @@ public com.google.cloud.vision.v1p1beta1.Word getWords(int index) { } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1p1beta1.Word value) { + public Builder setWords(int index, com.google.cloud.vision.v1p1beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1261,6 +1405,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1279,6 +1425,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1299,14 +1447,15 @@ public Builder addWords(com.google.cloud.vision.v1p1beta1.Word value) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1p1beta1.Word value) { + public Builder addWords(int index, com.google.cloud.vision.v1p1beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1320,14 +1469,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public Builder addWords( - com.google.cloud.vision.v1p1beta1.Word.Builder builderForValue) { + public Builder addWords(com.google.cloud.vision.v1p1beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1338,6 +1488,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1356,6 +1508,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1366,8 +1520,7 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1375,6 +1528,8 @@ public Builder addAllWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1392,6 +1547,8 @@ public Builder clearWords() { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1409,39 +1566,44 @@ public Builder removeWords(int index) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.Word.Builder getWordsBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Word.Builder getWordsBuilder(int index) { return getWordsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index) { if (wordsBuilder_ == null) { - return words_.get(index); } else { + return words_.get(index); + } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,6 +1611,8 @@ public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1456,54 +1620,62 @@ public com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder( - int index) { - return getWordsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Word.Builder addWordsBuilder(int index) { + return getWordsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - public java.util.List - getWordsBuilderList() { + public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder> + com.google.cloud.vision.v1p1beta1.Word, + com.google.cloud.vision.v1p1beta1.Word.Builder, + com.google.cloud.vision.v1p1beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Word, com.google.cloud.vision.v1p1beta1.Word.Builder, com.google.cloud.vision.v1p1beta1.WordOrBuilder>( - words_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + wordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Word, + com.google.cloud.vision.v1p1beta1.Word.Builder, + com.google.cloud.vision.v1p1beta1.WordOrBuilder>( + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1511,37 +1683,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1551,12 +1729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Paragraph) private static final com.google.cloud.vision.v1p1beta1.Paragraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Paragraph(); } @@ -1565,16 +1743,16 @@ public static com.google.cloud.vision.v1p1beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1767,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java index 7e8db9054..c191eee90 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ParagraphOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface ParagraphOrBuilder extends +public interface ParagraphOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -35,6 +59,8 @@ public interface ParagraphOrBuilder extends com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface ParagraphOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -121,6 +156,8 @@ public interface ParagraphOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Word getWords(int index); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -129,30 +166,35 @@ public interface ParagraphOrBuilder extends */ int getWordsCount(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - java.util.List - getWordsOrBuilderList(); + java.util.List getWordsOrBuilderList(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Word words = 3; */ - com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.WordOrBuilder getWordsOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java index 02237f241..c5af9392d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Position.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Position}
  */
-public final class Position extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Position extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Position)
     PositionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Position() {
-  }
+
+  private Position() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,28 +70,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            z_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          case 29:
+            {
+              z_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +99,39 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Position.class, com.google.cloud.vision.v1p1beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Position.class,
+            com.google.cloud.vision.v1p1beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -121,11 +142,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -136,11 +160,14 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -149,6 +176,7 @@ public float getZ() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -181,16 +208,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -200,22 +224,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Position other = (com.google.cloud.vision.v1p1beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; + com.google.cloud.vision.v1p1beta1.Position other = + (com.google.cloud.vision.v1p1beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,110 +250,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -340,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Position}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Position)
       com.google.cloud.vision.v1p1beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Position.class, com.google.cloud.vision.v1p1beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Position.class,
+              com.google.cloud.vision.v1p1beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Position.newBuilder()
@@ -362,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -406,7 +433,8 @@ public com.google.cloud.vision.v1p1beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Position result = new com.google.cloud.vision.v1p1beta1.Position(this);
+      com.google.cloud.vision.v1p1beta1.Position result =
+          new com.google.cloud.vision.v1p1beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -418,38 +446,39 @@ public com.google.cloud.vision.v1p1beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Position)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Position) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,13 +525,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -510,42 +542,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -553,42 +594,51 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_ ; + private float z_; /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -596,37 +646,43 @@ public float getZ() { return z_; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Position) private static final com.google.cloud.vision.v1p1beta1.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Position(); } @@ -650,16 +706,16 @@ public static com.google.cloud.vision.v1p1beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java similarity index 50% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java index 2ba8c03f0..c73fbe941 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PositionOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; -public interface PositionOrBuilder extends +public interface PositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Position) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ float getX(); /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ float getY(); /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ float getZ(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java index 497914bdd..2d8bc5132 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Property.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; value_ = ""; @@ -26,16 +44,15 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private Property( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uint64Value_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 24: + { + uint64Value_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Property.class, com.google.cloud.vision.v1p1beta1.Property.Builder.class); + com.google.cloud.vision.v1p1beta1.Property.class, + com.google.cloud.vision.v1p1beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,11 +178,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -167,29 +194,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -200,11 +227,14 @@ public java.lang.String getValue() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -213,6 +243,7 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +281,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,19 +291,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.Property other = (com.google.cloud.vision.v1p1beta1.Property) obj; + com.google.cloud.vision.v1p1beta1.Property other = + (com.google.cloud.vision.v1p1beta1.Property) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getUint64Value() - != other.getUint64Value()) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (getUint64Value() != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,125 +318,133 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Property) com.google.cloud.vision.v1p1beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Property.class, com.google.cloud.vision.v1p1beta1.Property.Builder.class); + com.google.cloud.vision.v1p1beta1.Property.class, + com.google.cloud.vision.v1p1beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Property.newBuilder() @@ -417,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_Property_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p1beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Property buildPartial() { - com.google.cloud.vision.v1p1beta1.Property result = new com.google.cloud.vision.v1p1beta1.Property(this); + com.google.cloud.vision.v1p1beta1.Property result = + new com.google.cloud.vision.v1p1beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -473,38 +508,39 @@ public com.google.cloud.vision.v1p1beta1.Property buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Property)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Property) other); } else { super.mergeFrom(other); return this; @@ -555,18 +591,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,20 +613,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -596,54 +635,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -651,18 +697,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -671,20 +719,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -692,66 +741,76 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_ ; + private long uint64Value_; /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -759,37 +818,43 @@ public long getUint64Value() { return uint64Value_; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Property) private static final com.google.cloud.vision.v1p1beta1.Property DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Property(); } @@ -813,16 +878,16 @@ public static com.google.cloud.vision.v1p1beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java index ce36f3b76..03cdce0c9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/PropertyOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ long getUint64Value(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java index 5dcbbac7d..cfe331235 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -31,16 +49,15 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,43 +76,48 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            adult_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              adult_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spoof_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              spoof_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            medical_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              medical_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            violence_ = rawValue;
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
+              violence_ = rawValue;
+              break;
+            }
+          case 72:
+            {
+              int rawValue = input.readEnum();
 
-            racy_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              racy_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,29 +125,33 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class,
+            com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
+   *
+   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -133,12 +159,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -146,17 +176,22 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The adult. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -164,12 +199,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -177,71 +216,94 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The spoof. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The medical. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The violence. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -250,12 +312,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -264,15 +330,19 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The racy. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -311,24 +380,19 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p1beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,12 +402,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other = + (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -377,96 +442,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -475,21 +548,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p1beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.class,
+              com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.newBuilder()
@@ -497,16 +572,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +619,8 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation result =
+          new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -559,38 +634,39 @@ public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation.getDefaultInstance())
+        return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -633,7 +710,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -645,6 +723,8 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
+     *
+     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -652,12 +732,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -665,16 +749,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -682,15 +769,19 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -698,6 +789,7 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @param value The adult to set. * @return This builder for chaining. */ @@ -705,12 +797,14 @@ public Builder setAdult(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -718,10 +812,11 @@ public Builder setAdult(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -729,6 +824,8 @@ public Builder clearAdult() { private int spoof_ = 0; /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -736,12 +833,16 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -749,16 +850,19 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -766,15 +870,19 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -782,6 +890,7 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @param value The spoof to set. * @return This builder for chaining. */ @@ -789,12 +898,14 @@ public Builder setSpoof(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -802,10 +913,11 @@ public Builder setSpoof(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -813,51 +925,65 @@ public Builder clearSpoof() { private int medical_ = 0; /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @param value The medical to set. * @return This builder for chaining. */ @@ -865,21 +991,24 @@ public Builder setMedical(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -887,51 +1016,65 @@ public Builder clearMedical() { private int violence_ = 0; /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @param value The violence to set. * @return This builder for chaining. */ @@ -939,21 +1082,24 @@ public Builder setViolence(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -961,6 +1107,8 @@ public Builder clearViolence() { private int racy_ = 0; /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -969,12 +1117,16 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -983,16 +1135,19 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1001,15 +1156,19 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.Likelihood result = com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p1beta1.Likelihood result = + com.google.cloud.vision.v1p1beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p1beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1018,6 +1177,7 @@ public com.google.cloud.vision.v1p1beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @param value The racy to set. * @return This builder for chaining. */ @@ -1025,12 +1185,14 @@ public Builder setRacy(com.google.cloud.vision.v1p1beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1039,17 +1201,18 @@ public Builder setRacy(com.google.cloud.vision.v1p1beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation(); } @@ -1073,16 +1236,16 @@ public static com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java index d86304073..3eb92c90c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SafeSearchAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface SafeSearchAnnotationOrBuilder extends +public interface SafeSearchAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -15,10 +33,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -26,11 +47,14 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood adult = 1; + * * @return The adult. */ com.google.cloud.vision.v1p1beta1.Likelihood getAdult(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -38,10 +62,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -49,49 +76,64 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood spoof = 2; + * * @return The spoof. */ com.google.cloud.vision.v1p1beta1.Likelihood getSpoof(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood medical = 3; + * * @return The medical. */ com.google.cloud.vision.v1p1beta1.Likelihood getMedical(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood violence = 4; + * * @return The violence. */ com.google.cloud.vision.v1p1beta1.Likelihood getViolence(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -100,10 +142,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -112,6 +157,7 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.Likelihood racy = 9; + * * @return The racy. */ com.google.cloud.vision.v1p1beta1.Likelihood getRacy(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java index 1f8703351..f386f3c4d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Symbol.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Symbol} */ -public final class Symbol extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symbol extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Symbol) SymbolOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,50 +70,59 @@ private Symbol( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + text_ = s; + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - text_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,34 +130,39 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Symbol.class, com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p1beta1.Symbol.class, + com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -139,18 +170,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -158,13 +196,16 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -184,6 +225,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -191,6 +233,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -210,13 +254,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -245,11 +294,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -258,29 +310,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -291,11 +343,14 @@ public java.lang.String getText() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -304,6 +359,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -339,19 +394,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +413,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Symbol)) { return super.equals(obj); @@ -370,19 +422,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,125 +453,133 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Symbol} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Symbol) com.google.cloud.vision.v1p1beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Symbol.class, com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p1beta1.Symbol.class, + com.google.cloud.vision.v1p1beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Symbol.newBuilder() @@ -531,16 +587,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; } @java.lang.Override @@ -585,7 +640,8 @@ public com.google.cloud.vision.v1p1beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p1beta1.Symbol result = new com.google.cloud.vision.v1p1beta1.Symbol(this); + com.google.cloud.vision.v1p1beta1.Symbol result = + new com.google.cloud.vision.v1p1beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -606,38 +662,39 @@ public com.google.cloud.vision.v1p1beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Symbol)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Symbol) other); } else { super.mergeFrom(other); return this; @@ -690,41 +747,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -738,6 +809,8 @@ public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -756,17 +829,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -778,6 +856,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -796,33 +876,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -830,14 +919,17 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -845,8 +937,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -866,12 +963,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -891,16 +991,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -935,6 +1040,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -967,6 +1074,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,7 +1100,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1003,6 +1114,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1035,6 +1148,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1056,11 +1171,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1085,11 +1202,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,14 +1231,17 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1126,18 +1249,20 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
+     *
+     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1146,20 +1271,21 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -1167,66 +1293,76 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1234,37 +1370,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Symbol) private static final com.google.cloud.vision.v1p1beta1.Symbol DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Symbol(); } @@ -1288,16 +1430,16 @@ public static com.google.cloud.vision.v1p1beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java similarity index 83% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java index 5884bbe30..eee18e020 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/SymbolOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface SymbolOrBuilder extends +public interface SymbolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -35,6 +59,8 @@ public interface SymbolOrBuilder extends com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,31 +136,39 @@ public interface SymbolOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java index 41d265563..f376b624e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation}
  */
-public final class TextAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -33,16 +51,15 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,28 +79,31 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p1beta1.Page.parser(), extensionRegistry));
+              break;
             }
-            pages_.add(
-                input.readMessage(com.google.cloud.vision.v1p1beta1.Page.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            text_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              text_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +111,7 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -101,24 +120,30 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.TextAnnotation.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.class,
+            com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder extends
+  public interface DetectedLanguageOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -126,10 +151,13 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -137,53 +165,58 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); } /** + * + * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,24 +235,25 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,29 +261,33 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -257,6 +295,7 @@ private DetectedLanguage(
      * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -265,14 +304,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -280,16 +320,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -300,11 +339,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -313,6 +355,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -345,8 +387,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,18 +397,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,95 +422,102 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -480,44 +527,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using + // com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,14 +581,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance(); } @java.lang.Override @@ -550,7 +604,8 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage result = + new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -561,46 +616,53 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage)other); + return mergeFrom( + (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other) { - if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage other) { + if (other + == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -627,7 +689,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,6 +703,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -646,13 +712,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -661,6 +727,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -668,15 +736,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -684,6 +751,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -691,20 +760,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,15 +783,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -728,28 +802,31 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -757,34 +834,41 @@ public float getConfidence() { return confidence_; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -797,30 +881,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,77 +918,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DetectedBreakOrBuilder extends + public interface DetectedBreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ boolean getIsPrefix(); } /** + * + * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -921,24 +1019,25 @@ private DetectedBreak( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { + case 8: + { + int rawValue = input.readEnum(); - isPrefix_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 16: + { + isPrefix_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -946,36 +1045,41 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); } /** + * + * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown break label type.
        * 
@@ -984,6 +1088,8 @@ public enum BreakType */ UNKNOWN(0), /** + * + * *
        * Regular space.
        * 
@@ -992,6 +1098,8 @@ public enum BreakType */ SPACE(1), /** + * + * *
        * Sure space (very wide).
        * 
@@ -1000,6 +1108,8 @@ public enum BreakType */ SURE_SPACE(2), /** + * + * *
        * Line-wrapping break.
        * 
@@ -1008,6 +1118,8 @@ public enum BreakType */ EOL_SURE_SPACE(3), /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1017,6 +1129,8 @@ public enum BreakType
        */
       HYPHEN(4),
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1028,6 +1142,8 @@ public enum BreakType ; /** + * + * *
        * Unknown break label type.
        * 
@@ -1036,6 +1152,8 @@ public enum BreakType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
        * Regular space.
        * 
@@ -1044,6 +1162,8 @@ public enum BreakType */ public static final int SPACE_VALUE = 1; /** + * + * *
        * Sure space (very wide).
        * 
@@ -1052,6 +1172,8 @@ public enum BreakType */ public static final int SURE_SPACE_VALUE = 2; /** + * + * *
        * Line-wrapping break.
        * 
@@ -1060,6 +1182,8 @@ public enum BreakType */ public static final int EOL_SURE_SPACE_VALUE = 3; /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1069,6 +1193,8 @@ public enum BreakType
        */
       public static final int HYPHEN_VALUE = 4;
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1077,7 +1203,6 @@ public enum BreakType */ public static final int LINE_BREAK_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1102,52 +1227,57 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return SPACE; - case 2: return SURE_SPACE; - case 3: return EOL_SURE_SPACE; - case 4: return HYPHEN; - case 5: return LINE_BREAK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return SPACE; + case 2: + return SURE_SPACE; + case 3: + return EOL_SURE_SPACE; + case 4: + return HYPHEN; + case 5: + return LINE_BREAK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BreakType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDescriptor() + .getEnumTypes() + .get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1167,38 +1297,52 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1207,6 +1351,7 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1218,9 +1363,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1235,13 +1381,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1251,16 +1397,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() - != other.getIsPrefix()) return false; + if (getIsPrefix() != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1275,95 +1421,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1373,27 +1525,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1401,16 +1558,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1422,13 +1578,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1443,7 +1600,8 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak result = + new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1454,46 +1612,52 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak other) { + if (other + == com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1519,7 +1683,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1531,85 +1697,113 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_ ; + private boolean isPrefix_; /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1617,34 +1811,41 @@ public boolean getIsPrefix() { return isPrefix_; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1657,30 +1858,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1692,119 +1895,153 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextPropertyOrBuilder extends + public interface TextPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ int getDetectedLanguagesCount(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder(); } /** + * + * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1824,35 +2061,45 @@ private TextProperty( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage>(); + mutable_bitField0_ |= 0x00000001; + } + detectedLanguages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.parser(), + extensionRegistry)); + break; } - detectedLanguages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); + case 18: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder subBuilder = + null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); + } + detectedBreak_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); + } + + break; } - detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1860,8 +2107,7 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -1870,87 +2116,117 @@ private TextProperty( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List detectedLanguages_; + private java.util.List + detectedLanguages_; /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { return detectedLanguages_.get(index); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detectedBreak_; /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -1958,18 +2234,25 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1977,11 +2260,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1993,8 +2278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2011,12 +2295,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, detectedLanguages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2026,19 +2309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList() - .equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak() - .equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2065,87 +2347,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2155,27 +2444,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder() @@ -2183,17 +2477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2213,13 +2507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2234,7 +2529,8 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty result = + new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2258,46 +2554,52 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty other) { + if (other + == com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance()) + return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2316,9 +2618,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPr detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetectedLanguagesFieldBuilder() : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetectedLanguagesFieldBuilder() + : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2346,7 +2649,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2355,28 +2660,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List detectedLanguages_ = - java.util.Collections.emptyList(); + private java.util.List + detectedLanguages_ = java.util.Collections.emptyList(); + private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage>( + detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + detectedLanguagesBuilder_; /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2384,11 +2702,15 @@ public java.util.List * A list of detected languages together with confidence. *
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2398,13 +2720,18 @@ public int getDetectedLanguagesCount() { } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2412,11 +2739,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage getDete } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { @@ -2433,14 +2764,20 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( - int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2451,13 +2788,18 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public Builder addDetectedLanguages(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2471,11 +2813,15 @@ public Builder addDetectedLanguages(com.google.cloud.vision.v1p1beta1.TextAnnota return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage value) { @@ -2492,14 +2838,19 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2510,14 +2861,20 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - int index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2528,18 +2885,23 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addAllDetectedLanguages( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage> + values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2547,11 +2909,15 @@ public Builder addAllDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2564,11 +2930,15 @@ public Builder clearDetectedLanguages() { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2581,39 +2951,53 @@ public Builder removeDetectedLanguages(int index) { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + getDetectedLanguagesBuilder(int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); } else { + return detectedLanguages_.get(index); + } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2621,45 +3005,70 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilde } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( - int index) { - return getDetectedLanguagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder(int index) { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder> + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2671,41 +3080,58 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage.Builder private com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> + detectedBreakBuilder_; /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return The detectedBreak. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder setDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2719,11 +3145,14 @@ public Builder setDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotation return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder setDetectedBreak( com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -2737,17 +3166,24 @@ public Builder setDetectedBreak( return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder mergeDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak( + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.newBuilder( + detectedBreak_) + .mergeFrom(value) + .buildPartial(); } else { detectedBreak_ = value; } @@ -2759,11 +3195,14 @@ public Builder mergeDetectedBreak(com.google.cloud.vision.v1p1beta1.TextAnnotati return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -2777,52 +3216,68 @@ public Builder clearDetectedBreak() { return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder + getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), - getParentForChildren(), - isClean()); + detectedBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), getParentForChildren(), isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2835,30 +3290,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstance() { + public static com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2870,15 +3327,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2890,6 +3349,8 @@ public java.util.List getPagesList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2897,11 +3358,13 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2913,6 +3376,8 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2924,6 +3389,8 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2931,19 +3398,21 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ @java.lang.Override @@ -2952,29 +3421,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -2983,6 +3452,7 @@ public java.lang.String getText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2994,8 +3464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3012,8 +3481,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3026,17 +3494,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextAnnotation other = (com.google.cloud.vision.v1p1beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p1beta1.TextAnnotation other = + (com.google.cloud.vision.v1p1beta1.TextAnnotation) obj; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getText() - .equals(other.getText())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getText().equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3059,97 +3526,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3163,21 +3637,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.TextAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextAnnotation)
       com.google.cloud.vision.v1p1beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.TextAnnotation.class, com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p1beta1.TextAnnotation.class,
+              com.google.cloud.vision.v1p1beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.TextAnnotation.newBuilder()
@@ -3185,17 +3661,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3211,9 +3687,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3232,7 +3708,8 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p1beta1.TextAnnotation result = new com.google.cloud.vision.v1p1beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p1beta1.TextAnnotation result =
+          new com.google.cloud.vision.v1p1beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3252,38 +3729,39 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3291,7 +3769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p1beta1.TextAnnotation.getDefaultInstance())
+        return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3310,9 +3789,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3350,21 +3830,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder> pagesBuilder_;
+            com.google.cloud.vision.v1p1beta1.Page,
+            com.google.cloud.vision.v1p1beta1.Page.Builder,
+            com.google.cloud.vision.v1p1beta1.PageOrBuilder>
+        pagesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3379,6 +3866,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3393,6 +3882,8 @@ public int getPagesCount() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3407,14 +3898,15 @@ public com.google.cloud.vision.v1p1beta1.Page getPages(int index) { } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1p1beta1.Page value) { + public Builder setPages(int index, com.google.cloud.vision.v1p1beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3428,6 +3920,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3446,6 +3940,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3466,14 +3962,15 @@ public Builder addPages(com.google.cloud.vision.v1p1beta1.Page value) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1p1beta1.Page value) { + public Builder addPages(int index, com.google.cloud.vision.v1p1beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3487,14 +3984,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public Builder addPages( - com.google.cloud.vision.v1p1beta1.Page.Builder builderForValue) { + public Builder addPages(com.google.cloud.vision.v1p1beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3505,6 +4003,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3523,6 +4023,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3533,8 +4035,7 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3542,6 +4043,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3559,6 +4062,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3576,39 +4081,44 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.Page.Builder getPagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -3616,6 +4126,8 @@ public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3623,42 +4135,47 @@ public com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p1beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder> + com.google.cloud.vision.v1p1beta1.Page, + com.google.cloud.vision.v1p1beta1.Page.Builder, + com.google.cloud.vision.v1p1beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.Page, com.google.cloud.vision.v1p1beta1.Page.Builder, com.google.cloud.vision.v1p1beta1.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.Page, + com.google.cloud.vision.v1p1beta1.Page.Builder, + com.google.cloud.vision.v1p1beta1.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; @@ -3666,18 +4183,20 @@ public com.google.cloud.vision.v1p1beta1.Page.Builder addPagesBuilder( private java.lang.Object text_ = ""; /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -3686,20 +4205,21 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -3707,61 +4227,68 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3771,12 +4298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation) private static final com.google.cloud.vision.v1p1beta1.TextAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextAnnotation(); } @@ -3785,16 +4312,16 @@ public static com.google.cloud.vision.v1p1beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3809,6 +4336,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java index 27dd9b9a4..84e0b3496 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface TextAnnotationOrBuilder extends +public interface TextAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -25,6 +44,8 @@ public interface TextAnnotationOrBuilder extends */ com.google.cloud.vision.v1p1beta1.Page getPages(int index); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -33,41 +54,48 @@ public interface TextAnnotationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p1beta1.Page pages = 1; */ - com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); } diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java new file mode 100644 index 000000000..7e36fe84e --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java @@ -0,0 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/text_annotation.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p1beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p1b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p1beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p1beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p1beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p1beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p1beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p1beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p1beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p1beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p1beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p1b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p1beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p1beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p1beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p1beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p1beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p1beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p1beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p1beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p1beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p1beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p1beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor, + new java.lang.String[] { + "Pages", "Text", + }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { + "Type", "IsPrefix", + }); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { + "DetectedLanguages", "DetectedBreak", + }); + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p1beta1_Page_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Page_descriptor, + new java.lang.String[] { + "Property", "Width", "Height", "Blocks", "Confidence", + }); + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p1beta1_Block_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Block_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", + }); + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p1beta1_Paragraph_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Paragraph_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Words", "Confidence", + }); + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Word_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Symbols", "Confidence", + }); + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p1beta1_Symbol_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_Symbol_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Text", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java index b78d85301..7a53543f6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextDetectionParams() {
     advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72: {
-
-            enableTextDetectionConfidenceScore_ = input.readBool();
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              enableTextDetectionConfidenceScore_ = input.readBool();
+              break;
             }
-            advancedOcrOptions_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              advancedOcrOptions_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private TextDetectionParams(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.TextDetectionParams.class, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p1beta1.TextDetectionParams.class,
+            com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
+   *
+   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -116,6 +138,7 @@ private TextDetectionParams(
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -126,34 +149,42 @@ public boolean getEnableTextDetectionConfidenceScore() { public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList advancedOcrOptions_; /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_; } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -161,20 +192,23 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } @@ -204,8 +237,9 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableTextDetectionConfidenceScore_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, enableTextDetectionConfidenceScore_); } { int dataSize = 0; @@ -223,17 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.TextDetectionParams other = (com.google.cloud.vision.v1p1beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p1beta1.TextDetectionParams other = + (com.google.cloud.vision.v1p1beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() - != other.getEnableTextDetectionConfidenceScore()) return false; - if (!getAdvancedOcrOptionsList() - .equals(other.getAdvancedOcrOptionsList())) return false; + if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) + return false; + if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,8 +280,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableTextDetectionConfidenceScore()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); if (getAdvancedOcrOptionsCount() > 0) { hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); @@ -258,96 +293,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.TextDetectionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -355,21 +398,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.TextDetectionParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.TextDetectionParams)
       com.google.cloud.vision.v1p1beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.TextDetectionParams.class, com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p1beta1.TextDetectionParams.class,
+              com.google.cloud.vision.v1p1beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.TextDetectionParams.newBuilder()
@@ -377,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +463,8 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p1beta1.TextDetectionParams result = new com.google.cloud.vision.v1p1beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p1beta1.TextDetectionParams result =
+          new com.google.cloud.vision.v1p1beta1.TextDetectionParams(this);
       int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -435,38 +480,39 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextDetectionParams)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.TextDetectionParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,7 +520,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p1beta1.TextDetectionParams.getDefaultInstance())
+        return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
@@ -507,7 +554,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p1beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p1beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -516,10 +564,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_ ;
+    private boolean enableTextDetectionConfidenceScore_;
     /**
+     *
+     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -527,6 +578,7 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -534,6 +586,8 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -541,16 +595,19 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -558,51 +615,62 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList advancedOcrOptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_.getUnmodifiableView(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -610,80 +678,90 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index to set the value at. * @param value The advancedOcrOptions to set. * @return This builder for chaining. */ - public Builder setAdvancedOcrOptions( - int index, java.lang.String value) { + public Builder setAdvancedOcrOptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptions( - java.lang.String value) { + public Builder addAdvancedOcrOptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param values The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAllAdvancedOcrOptions( - java.lang.Iterable values) { + public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) { ensureAdvancedOcrOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, advancedOcrOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return This builder for chaining. */ public Builder clearAdvancedOcrOptions() { @@ -693,28 +771,30 @@ public Builder clearAdvancedOcrOptions() { return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The bytes of the advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p1beta1.TextDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.TextDetectionParams(); } @@ -738,16 +818,16 @@ public static com.google.cloud.vision.v1p1beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java index 7c57f4109..df752eec7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; -public interface TextDetectionParamsOrBuilder extends +public interface TextDetectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.TextDetectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -15,48 +33,59 @@ public interface TextDetectionParamsOrBuilder extends
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ boolean getEnableTextDetectionConfidenceScore(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - java.util.List - getAdvancedOcrOptionsList(); + java.util.List getAdvancedOcrOptionsList(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ int getAdvancedOcrOptionsCount(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ java.lang.String getAdvancedOcrOptions(int index); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index); + com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java index ce0045a46..389f91e3c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Vertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/geometry.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p1beta1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p1beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p1beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p1beta1.Vertex.class, com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p1beta1.Vertex.class,
+            com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p1beta1.Vertex other = (com.google.cloud.vision.v1p1beta1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +223,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +328,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p1beta1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Vertex)
       com.google.cloud.vision.v1p1beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p1beta1.Vertex.class, com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p1beta1.Vertex.class,
+              com.google.cloud.vision.v1p1beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p1beta1.Vertex.newBuilder()
@@ -323,16 +352,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -344,9 +372,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p1beta1.GeometryProto.internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p1beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -365,7 +393,8 @@ public com.google.cloud.vision.v1p1beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p1beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p1beta1.Vertex result = new com.google.cloud.vision.v1p1beta1.Vertex(this);
+      com.google.cloud.vision.v1p1beta1.Vertex result =
+          new com.google.cloud.vision.v1p1beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -376,38 +405,39 @@ public com.google.cloud.vision.v1p1beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p1beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p1beta1.Vertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p1beta1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +481,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +498,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +550,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Vertex) private static final com.google.cloud.vision.v1p1beta1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Vertex(); } @@ -562,16 +610,16 @@ public static com.google.cloud.vision.v1p1beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java new file mode 100644 index 000000000..ed852eb54 --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/VertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/geometry.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java index 7e38690ea..1dcb206cb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/web_detection.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection} */ -public final class WebDetection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection) WebDetectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,67 +76,97 @@ private WebDetection( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity>(); + mutable_bitField0_ |= 0x00000001; + } + webEntities_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.parser(), + extensionRegistry)); + break; } - webEntities_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000004; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage>(); + mutable_bitField0_ |= 0x00000008; + } + pagesWithMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.parser(), + extensionRegistry)); + break; } - pagesWithMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000010; + } + visuallySimilarImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - visuallySimilarImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 66: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel>(); + mutable_bitField0_ |= 0x00000020; + } + bestGuessLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.parser(), + extensionRegistry)); + break; } - bestGuessLabels_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,8 +174,7 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -152,90 +198,110 @@ private WebDetection( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.class, com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.class, + com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder extends + public interface WebEntityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ java.lang.String getEntityId(); /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - com.google.protobuf.ByteString - getEntityIdBytes(); + com.google.protobuf.ByteString getEntityIdBytes(); /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebEntity() { entityId_ = ""; description_ = ""; @@ -243,16 +309,15 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -271,30 +336,32 @@ private WebEntity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -302,34 +369,39 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ @java.lang.Override @@ -338,29 +410,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -371,12 +443,15 @@ public java.lang.String getEntityId() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -387,11 +462,14 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -400,29 +478,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -431,6 +509,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +521,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -466,8 +544,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -480,20 +557,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) obj; - if (!getEntityId() - .equals(other.getEntityId())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,8 +583,7 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -518,87 +592,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,27 +689,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebEntity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.newBuilder() @@ -636,16 +722,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +744,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -680,7 +765,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity result = + new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -692,38 +778,41 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) other); } else { super.mergeFrom(other); return this; @@ -731,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()) + return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -762,7 +852,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -774,18 +865,20 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -794,20 +887,21 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -815,67 +909,77 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId( - java.lang.String value) { + public Builder setEntityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -883,32 +987,38 @@ public float getScore() { return score_; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -916,18 +1026,20 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,20 +1048,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -957,58 +1070,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity(); } @@ -1035,16 +1156,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,75 +1180,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebImageOrBuilder extends + public interface WebImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); } /** + * + * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebImage} */ - public static final class WebImage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,24 +1277,25 @@ private WebImage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,34 +1303,39 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -1207,29 +1344,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1240,11 +1377,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1253,6 +1393,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1264,8 +1405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1285,8 +1425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1296,18 +1435,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,95 +1460,101 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,27 +1564,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebImage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebImage) com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.newBuilder() @@ -1448,16 +1597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1469,9 +1617,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1490,7 +1638,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage result = + new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1501,38 +1650,41 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebImage)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) other); } else { super.mergeFrom(other); return this; @@ -1540,7 +1692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1567,7 +1720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1579,18 +1733,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1599,20 +1755,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1620,66 +1777,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1687,34 +1854,41 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebImage(); } @@ -1741,16 +1915,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,113 +1939,143 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebPageOrBuilder extends + public interface WebPageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ java.lang.String getPageTitle(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString - getPageTitleBytes(); + com.google.protobuf.ByteString getPageTitleBytes(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ int getFullMatchingImagesCount(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1879,11 +2083,15 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1891,10 +2099,14 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1902,10 +2114,14 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ int getPartialMatchingImagesCount(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1913,11 +2129,15 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1925,27 +2145,32 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); } /** + * + * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebPage} */ - public static final class WebPage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebPage() { url_ = ""; pageTitle_ = ""; @@ -1955,16 +2180,15 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1984,48 +2208,60 @@ private WebPage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageTitle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + pageTitle_ = s; + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000001; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2033,8 +2269,7 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2046,27 +2281,33 @@ private WebPage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -2075,29 +2316,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2108,11 +2349,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2123,11 +2367,14 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ @java.lang.Override @@ -2136,29 +2383,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2167,73 +2414,95 @@ public java.lang.String getPageTitle() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( + int index) { return fullMatchingImages_.get(index); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2241,13 +2510,18 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullM
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2255,14 +2529,19 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2270,13 +2549,17 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2284,13 +2567,18 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2298,15 +2586,18 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2318,8 +2609,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2348,19 +2638,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2370,24 +2660,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getPageTitle() - .equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2402,8 +2689,7 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2420,87 +2706,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2510,27 +2803,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebPage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebPage) com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.newBuilder() @@ -2538,18 +2836,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2575,9 +2873,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2596,7 +2894,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage result = + new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2627,38 +2926,41 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebPage)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; @@ -2666,7 +2968,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2696,9 +2999,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2722,9 +3026,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -2749,7 +3054,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2758,22 +3064,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object url_ = ""; /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -2782,20 +3091,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2803,66 +3113,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2870,30 +3190,36 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -2901,18 +3227,20 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -2921,20 +3249,21 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2942,80 +3271,98 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle( - java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3023,12 +3370,16 @@ public java.util.List g } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3038,14 +3389,19 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3053,12 +3409,16 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3075,15 +3435,20 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3094,14 +3459,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3115,12 +3485,16 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetect return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3137,12 +3511,16 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3156,15 +3534,20 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3175,19 +3558,23 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3195,12 +3582,16 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3213,12 +3604,16 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3231,42 +3626,56 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3274,48 +3683,70 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3325,19 +3756,27 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3345,9 +3784,12 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3355,6 +3797,8 @@ public java.util.List g } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3362,7 +3806,9 @@ public java.util.List g
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3372,6 +3818,8 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3379,9 +3827,12 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3389,6 +3840,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3396,7 +3849,9 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3413,6 +3868,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3420,10 +3877,13 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3434,6 +3894,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3441,9 +3903,12 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,6 +3922,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDet return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3464,7 +3931,9 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDet
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -3481,6 +3950,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3488,7 +3959,9 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3502,6 +3975,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3509,10 +3984,13 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -3523,6 +4001,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3530,14 +4010,16 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3545,6 +4027,8 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3552,7 +4036,9 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3565,6 +4051,8 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3572,7 +4060,9 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3585,6 +4075,8 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3592,13 +4084,17 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3606,16 +4102,21 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3623,10 +4124,13 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3634,6 +4138,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3641,13 +4147,19 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3655,14 +4167,20 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3670,18 +4188,26 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3690,6 +4216,7 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartia } return partialMatchingImagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3702,12 +4229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebPage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebPage(); } @@ -3716,16 +4243,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,34 +4267,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebLabelOrBuilder extends + public interface WebLabelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3775,10 +4309,13 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3786,27 +4323,30 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } /** + * + * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebLabel() { label_ = ""; languageCode_ = ""; @@ -3814,16 +4354,15 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3842,25 +4381,27 @@ private WebLabel( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3868,34 +4409,39 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ @java.lang.Override @@ -3904,29 +4450,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -3937,6 +4483,8 @@ public java.lang.String getLabel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3944,6 +4492,7 @@ public java.lang.String getLabel() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -3952,14 +4501,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3967,16 +4517,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3985,6 +4534,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3996,8 +4546,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4027,17 +4576,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) obj; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4059,87 +4607,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4149,27 +4704,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection.WebLabel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.newBuilder() @@ -4177,16 +4737,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4198,9 +4757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4219,7 +4778,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4230,38 +4790,41 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) other); } else { super.mergeFrom(other); return this; @@ -4269,7 +4832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4297,7 +4861,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4309,18 +4874,20 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4329,20 +4896,21 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4350,54 +4918,61 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4405,6 +4980,8 @@ public Builder setLabelBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4412,13 +4989,13 @@ public Builder setLabelBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4427,6 +5004,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4434,15 +5013,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4450,6 +5028,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4457,20 +5037,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4478,15 +5060,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4494,20 +5079,21 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4520,12 +5106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel(); } @@ -4534,16 +5120,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4558,12 +5144,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4571,10 +5158,13 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4582,11 +5172,13 @@ public java.util.List * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4598,6 +5190,8 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4609,6 +5203,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4622,321 +5218,424 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List pagesWithMatchingImages_; + private java.util.List + pagesWithMatchingImages_; /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { return pagesWithMatchingImages_.get(index); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List visuallySimilarImages_; + private java.util.List + visuallySimilarImages_; /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { return visuallySimilarImages_.get(index); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4948,8 +5647,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -4978,28 +5676,29 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, pagesWithMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, visuallySimilarImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5009,25 +5708,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetection other = (com.google.cloud.vision.v1p1beta1.WebDetection) obj; - - if (!getWebEntitiesList() - .equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList() - .equals(other.getPagesWithMatchingImagesList())) return false; - if (!getVisuallySimilarImagesList() - .equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList() - .equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p1beta1.WebDetection other = + (com.google.cloud.vision.v1p1beta1.WebDetection) obj; + + if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) + return false; + if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5068,118 +5763,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetection) com.google.cloud.vision.v1p1beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetection.class, com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetection.class, + com.google.cloud.vision.v1p1beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetection.newBuilder() @@ -5187,14 +5891,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5203,6 +5906,7 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5246,9 +5950,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; } @java.lang.Override @@ -5267,7 +5971,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetection result = new com.google.cloud.vision.v1p1beta1.WebDetection(this); + com.google.cloud.vision.v1p1beta1.WebDetection result = + new com.google.cloud.vision.v1p1beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5298,7 +6003,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5331,38 +6037,39 @@ public com.google.cloud.vision.v1p1beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetection) other); } else { super.mergeFrom(other); return this; @@ -5389,9 +6096,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebEntitiesFieldBuilder() : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebEntitiesFieldBuilder() + : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -5415,9 +6123,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -5441,9 +6150,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -5467,9 +6177,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPagesWithMatchingImagesFieldBuilder() : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPagesWithMatchingImagesFieldBuilder() + : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -5493,9 +6204,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVisuallySimilarImagesFieldBuilder() : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVisuallySimilarImagesFieldBuilder() + : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -5519,9 +6231,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBestGuessLabelsFieldBuilder() : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBestGuessLabelsFieldBuilder() + : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -5555,28 +6268,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(webEntities_); + webEntities_ = + new java.util.ArrayList( + webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> + webEntitiesBuilder_; /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -5584,6 +6307,8 @@ public java.util.List } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5598,6 +6323,8 @@ public int getWebEntitiesCount() { } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5612,6 +6339,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(i } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5633,6 +6362,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5640,7 +6371,8 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -5651,6 +6383,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5671,6 +6405,8 @@ public Builder addWebEntities(com.google.cloud.vision.v1p1beta1.WebDetection.Web return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5692,6 +6428,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5710,6 +6448,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5717,7 +6457,8 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -5728,6 +6469,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5735,11 +6478,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -5747,6 +6490,8 @@ public Builder addAllWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5764,6 +6509,8 @@ public Builder clearWebEntities() { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5781,6 +6528,8 @@ public Builder removeWebEntities(int index) { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5792,28 +6541,34 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder + getWebEntitiesOrBuilder(int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); } else { + return webEntities_.get(index); + } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -5821,17 +6576,23 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebE } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder + addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5840,56 +6601,72 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder addWebEn */ public com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + webEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -5897,12 +6674,15 @@ public java.util.List g } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -5912,14 +6692,18 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -5927,12 +6711,15 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -5949,15 +6736,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -5968,14 +6759,18 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5989,12 +6784,15 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetect return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6011,12 +6809,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6030,15 +6831,19 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6049,19 +6854,22 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6069,12 +6877,15 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6087,12 +6898,15 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6105,42 +6919,53 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6148,48 +6973,65 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6199,28 +7041,39 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6228,13 +7081,17 @@ public java.util.List g } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6244,15 +7101,20 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -6260,13 +7122,17 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6283,16 +7149,21 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -6303,15 +7174,20 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6325,13 +7201,17 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p1beta1.WebDet return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6348,13 +7228,17 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6368,16 +7252,21 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -6388,20 +7277,24 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -6409,13 +7302,17 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -6428,13 +7325,17 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6447,45 +7348,59 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6493,51 +7408,71 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6547,26 +7482,37 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addPartia return partialMatchingImagesBuilder_; } - private java.util.List pagesWithMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + pagesWithMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + new java.util.ArrayList( + pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> + pagesWithMatchingImagesBuilder_; /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -6574,11 +7520,15 @@ public java.util.List ge } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6588,13 +7538,18 @@ public int getPagesWithMatchingImagesCount() { } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -6602,11 +7557,15 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchi } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { @@ -6623,11 +7582,15 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6641,13 +7604,18 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6661,11 +7629,15 @@ public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p1beta1.WebD return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage value) { @@ -6682,11 +7654,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6700,11 +7676,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6718,18 +7698,22 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -6737,11 +7721,15 @@ public Builder addAllPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6754,11 +7742,15 @@ public Builder clearPagesWithMatchingImages() { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6771,39 +7763,52 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder + getPagesWithMatchingImagesBuilder(int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); } else { + return pagesWithMatchingImages_.get(index); + } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6811,45 +7816,65 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesW } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( - int index) { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder(int index) { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6859,26 +7884,37 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebPage.Builder addPagesWi return pagesWithMatchingImagesBuilder_; } - private java.util.List visuallySimilarImages_ = - java.util.Collections.emptyList(); + private java.util.List + visuallySimilarImages_ = java.util.Collections.emptyList(); + private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); + visuallySimilarImages_ = + new java.util.ArrayList( + visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + visuallySimilarImagesBuilder_; /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -6886,11 +7922,15 @@ public java.util.List g } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -6900,13 +7940,18 @@ public int getVisuallySimilarImagesCount() { } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -6914,11 +7959,15 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimila } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6935,14 +7984,19 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -6953,13 +8007,18 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages( + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6973,11 +8032,15 @@ public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p1beta1.WebDet return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage value) { @@ -6994,11 +8057,15 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7012,14 +8079,19 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -7030,18 +8102,22 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7049,11 +8125,15 @@ public Builder addAllVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7066,11 +8146,15 @@ public Builder clearVisuallySimilarImages() { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7083,39 +8167,53 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + getVisuallySimilarImagesBuilder(int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); } else { + return visuallySimilarImages_.get(index); + } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7123,45 +8221,65 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisua } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( - int index) { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder(int index) { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7171,26 +8289,36 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebImage.Builder addVisual return visuallySimilarImagesBuilder_; } - private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); + private java.util.List + bestGuessLabels_ = java.util.Collections.emptyList(); + private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); + bestGuessLabels_ = + new java.util.ArrayList( + bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> + bestGuessLabelsBuilder_; /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -7198,11 +8326,14 @@ public java.util.List g } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -7212,11 +8343,14 @@ public int getBestGuessLabelsCount() { } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7226,11 +8360,14 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabel } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { @@ -7247,14 +8384,18 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -7265,13 +8406,17 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public Builder addBestGuessLabels(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels( + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7285,11 +8430,14 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1p1beta1.WebDetection return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel value) { @@ -7306,11 +8454,14 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -7324,14 +8475,18 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( - int index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -7342,18 +8497,21 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addAllBestGuessLabels( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -7361,11 +8519,14 @@ public Builder addAllBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -7378,11 +8539,14 @@ public Builder clearBestGuessLabels() { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7395,39 +8559,50 @@ public Builder removeBestGuessLabels(int index) { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder + getBestGuessLabelsBuilder(int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); } else { + return bestGuessLabels_.get(index); + } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -7435,45 +8610,62 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestG } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( - int index) { - return getBestGuessLabelsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder(int index) { + return getBestGuessLabelsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -7482,9 +8674,9 @@ public com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel.Builder addBestGu } return bestGuessLabelsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7494,12 +8686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection) private static final com.google.cloud.vision.v1p1beta1.WebDetection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetection(); } @@ -7508,16 +8700,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7532,6 +8724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java index 476bc2737..fdf2471d0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/web_detection.proto package com.google.cloud.vision.v1p1beta1; -public interface WebDetectionOrBuilder extends +public interface WebDetectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List - getWebEntitiesList(); + java.util.List getWebEntitiesList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -25,6 +44,8 @@ public interface WebDetectionOrBuilder extends */ com.google.cloud.vision.v1p1beta1.WebDetection.WebEntity getWebEntities(int index); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -33,15 +54,19 @@ public interface WebDetectionOrBuilder extends */ int getWebEntitiesCount(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -52,236 +77,325 @@ com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ int getFullMatchingImagesCount(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ int getPartialMatchingImagesCount(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ int getPagesWithMatchingImagesCount(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ int getVisuallySimilarImagesCount(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index); + com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List - getBestGuessLabelsList(); + java.util.List getBestGuessLabelsList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ int getBestGuessLabelsCount(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p1beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java index 9b87f3a47..9d65c973e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParams.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/image_annotator.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetectionParams} */ -public final class WebDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.WebDetectionParams) WebDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetectionParams() { - } + + private WebDetectionParams() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: { - - includeGeoResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + includeGeoResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** + * + * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p1beta1.WebDetectionParams other = (com.google.cloud.vision.v1p1beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p1beta1.WebDetectionParams other = + (com.google.cloud.vision.v1p1beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() - != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.WebDetectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.WebDetectionParams) com.google.cloud.vision.v1p1beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p1beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p1beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.WebDetectionParams.newBuilder() @@ -291,16 +319,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p1beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -331,7 +358,8 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p1beta1.WebDetectionParams result = new com.google.cloud.vision.v1p1beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p1beta1.WebDetectionParams result = + new com.google.cloud.vision.v1p1beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -341,38 +369,39 @@ public com.google.cloud.vision.v1p1beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetectionParams)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.WebDetectionParams) other); } else { super.mergeFrom(other); return this; @@ -380,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p1beta1.WebDetectionParams.getDefaultInstance()) + return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -403,7 +433,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p1beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p1beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,13 +444,16 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_ ; + private boolean includeGeoResults_; /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -427,37 +461,43 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +507,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p1beta1.WebDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.WebDetectionParams(); } @@ -481,16 +521,16 @@ public static com.google.cloud.vision.v1p1beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +545,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..9019fea28 --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/image_annotator.proto + +package com.google.cloud.vision.v1p1beta1; + +public interface WebDetectionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java new file mode 100644 index 000000000..359b058c0 --- /dev/null +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p1beta1/web_detection.proto + +package com.google.cloud.vision.v1p1beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p1beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p1bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p1beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p1beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p1beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p1" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p1beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p1beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p1beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p1beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p1beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p1beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor, + new java.lang.String[] { + "WebEntities", + "FullMatchingImages", + "PartialMatchingImages", + "PagesWithMatchingImages", + "VisuallySimilarImages", + "BestGuessLabels", + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { + "EntityId", "Score", "Description", + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { + "Url", "Score", + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { + "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", + }); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p1beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { + "Label", "LanguageCode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java index 01d73d0ac..a22f9ac47 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Word.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; /** + * + * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Word} */ -public final class Word extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Word extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p1beta1.Word) WordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Word( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + symbols_.add( + input.readMessage( + com.google.cloud.vision.v1p1beta1.Symbol.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1p1beta1.Symbol.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -118,27 +144,33 @@ private Word( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Word.class, com.google.cloud.vision.v1p1beta1.Word.Builder.class); + com.google.cloud.vision.v1p1beta1.Word.class, + com.google.cloud.vision.v1p1beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the word.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -264,6 +316,8 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -272,11 +326,13 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -289,6 +345,8 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -301,6 +359,8 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -309,19 +369,21 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -330,6 +392,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +404,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,20 +427,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,7 +446,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p1beta1.Word)) { return super.equals(obj); @@ -397,19 +455,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getSymbolsList() - .equals(other.getSymbolsList())) return false; + if (!getSymbolsList().equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,125 +488,133 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p1beta1.Word parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Word parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p1beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p1beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p1beta1.Word} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p1beta1.Word) com.google.cloud.vision.v1p1beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p1beta1.Word.class, com.google.cloud.vision.v1p1beta1.Word.Builder.class); + com.google.cloud.vision.v1p1beta1.Word.class, + com.google.cloud.vision.v1p1beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p1beta1.Word.newBuilder() @@ -560,17 +622,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p1beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p1beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p1beta1_Word_descriptor; } @java.lang.Override @@ -619,7 +681,8 @@ public com.google.cloud.vision.v1p1beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p1beta1.Word buildPartial() { - com.google.cloud.vision.v1p1beta1.Word result = new com.google.cloud.vision.v1p1beta1.Word(this); + com.google.cloud.vision.v1p1beta1.Word result = + new com.google.cloud.vision.v1p1beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -649,38 +712,39 @@ public com.google.cloud.vision.v1p1beta1.Word buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p1beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p1beta1.Word)other); + return mergeFrom((com.google.cloud.vision.v1p1beta1.Word) other); } else { super.mergeFrom(other); return this; @@ -713,9 +777,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymbolsFieldBuilder() : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymbolsFieldBuilder() + : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -752,45 +817,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,6 +884,8 @@ public Builder setProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -822,17 +904,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -844,6 +931,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p1beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -862,33 +951,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -896,14 +994,17 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -911,8 +1012,13 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p1beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p1beta1.BoundingPoly, + com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -932,12 +1038,15 @@ public com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -957,16 +1066,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1001,6 +1115,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1033,6 +1149,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1057,7 +1175,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p1beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1069,6 +1189,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p1beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,6 +1223,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1122,11 +1246,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1151,11 +1277,14 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p1beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1177,32 +1306,41 @@ public com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.BoundingPoly,
+            com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.BoundingPoly, com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.BoundingPoly,
+                com.google.cloud.vision.v1p1beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder> symbolsBuilder_;
+            com.google.cloud.vision.v1p1beta1.Symbol,
+            com.google.cloud.vision.v1p1beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>
+        symbolsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1218,6 +1356,8 @@ public java.util.List getSymbolsList()
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1233,6 +1373,8 @@ public int getSymbolsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1248,6 +1390,8 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1255,8 +1399,7 @@ public com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(
-        int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
+    public Builder setSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1270,6 +1413,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1289,6 +1434,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1310,6 +1457,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1317,8 +1466,7 @@ public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
+    public Builder addSymbols(int index, com.google.cloud.vision.v1p1beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1332,6 +1480,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1339,8 +1489,7 @@ public Builder addSymbols(
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        com.google.cloud.vision.v1p1beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(com.google.cloud.vision.v1p1beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1351,6 +1500,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1370,6 +1521,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1381,8 +1534,7 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1390,6 +1542,8 @@ public Builder addAllSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1408,6 +1562,8 @@ public Builder clearSymbols() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1426,6 +1582,8 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1433,11 +1591,12 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,14 +1604,16 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder getSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);  } else {
+        return symbols_.get(index);
+      } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1460,8 +1621,8 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsOrBuilderList() {
+    public java.util.List
+        getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1469,6 +1630,8 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,10 +1640,12 @@ public com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1488,12 +1653,13 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(
-        int index) {
-      return getSymbolsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(int index) {
+      return getSymbolsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p1beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1501,32 +1667,38 @@ public com.google.cloud.vision.v1p1beta1.Symbol.Builder addSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsBuilderList() {
+    public java.util.List
+        getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder> 
+            com.google.cloud.vision.v1p1beta1.Symbol,
+            com.google.cloud.vision.v1p1beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p1beta1.Symbol, com.google.cloud.vision.v1p1beta1.Symbol.Builder, com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>(
-                symbols_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        symbolsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p1beta1.Symbol,
+                com.google.cloud.vision.v1p1beta1.Symbol.Builder,
+                com.google.cloud.vision.v1p1beta1.SymbolOrBuilder>(
+                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1534,37 +1706,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1574,12 +1752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p1beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Word) private static final com.google.cloud.vision.v1p1beta1.Word DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p1beta1.Word(); } @@ -1588,16 +1766,16 @@ public static com.google.cloud.vision.v1p1beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1790,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p1beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java rename to proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java index 5efeee951..7ece23c77 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java +++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto package com.google.cloud.vision.v1p1beta1; -public interface WordOrBuilder extends +public interface WordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p1beta1.Word) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
@@ -35,6 +59,8 @@ public interface WordOrBuilder extends com.google.cloud.vision.v1p1beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p1beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,6 +136,8 @@ public interface WordOrBuilder extends
   com.google.cloud.vision.v1p1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -111,9 +145,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsList();
+  java.util.List getSymbolsList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -123,6 +158,8 @@ public interface WordOrBuilder extends
    */
   com.google.cloud.vision.v1p1beta1.Symbol getSymbols(int index);
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -132,6 +169,8 @@ public interface WordOrBuilder extends
    */
   int getSymbolsCount();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -139,9 +178,11 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  java.util.List 
+  java.util.List
       getSymbolsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -149,15 +190,17 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p1beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto rename to proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/geometry.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto rename to proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto rename to proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto rename to proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java index da1800f52..b6ba4e600 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,35 +72,43 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null;
-            if (inputConfig_ != null) {
-              subBuilder = inputConfig_.toBuilder();
-            }
-            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(inputConfig_);
-              inputConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null;
+              if (inputConfig_ != null) {
+                subBuilder = inputConfig_.toBuilder();
+              }
+              inputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputConfig_);
+                inputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              responses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            responses_.add(
-                input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                responses_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p2beta1.AnnotateImageResponse>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              responses_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +116,7 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -101,27 +125,33 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class,
+            com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_;
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -129,18 +159,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -155,6 +192,8 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -162,10 +201,13 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -173,11 +215,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -189,6 +233,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -200,6 +246,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -213,6 +261,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -242,12 +290,10 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,20 +303,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) obj; + com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other = + (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,96 +341,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.AnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -393,21 +446,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p2beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.class,
+              com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.newBuilder()
@@ -415,17 +470,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -466,7 +521,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p2beta1.AnnotateFileResponse result =
+          new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -490,38 +546,39 @@ public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateFileResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.getDefaultInstance())
+        return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -551,9 +609,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -578,7 +637,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -587,38 +647,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> inputConfigBuilder_;
+            com.google.cloud.vision.v1p2beta1.InputConfig,
+            com.google.cloud.vision.v1p2beta1.InputConfig.Builder,
+            com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>
+        inputConfigBuilder_;
     /**
+     *
+     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -639,6 +713,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig valu return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -657,6 +733,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -667,7 +745,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -679,6 +759,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -697,6 +779,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -704,11 +788,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p2beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -719,11 +805,14 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -731,39 +820,51 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.InputConfig, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder, + com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.InputConfig, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder, + com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -771,6 +872,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -785,6 +888,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -799,6 +904,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -820,6 +927,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -827,7 +936,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -838,6 +948,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -858,6 +970,8 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -879,6 +993,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -897,6 +1013,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -904,7 +1022,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -915,6 +1034,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -922,11 +1043,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -934,6 +1055,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -951,6 +1074,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -968,6 +1093,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -979,6 +1106,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -988,19 +1117,23 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -1008,6 +1141,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -1015,10 +1150,12 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -1027,37 +1164,43 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +1210,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) private static final com.google.cloud.vision.v1p2beta1.AnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateFileResponse(); } @@ -1081,16 +1224,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateFileResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,6 +1248,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java index 7e8059852..67f6a9f7c 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AnnotateFileResponseOrBuilder extends +public interface AnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateFileResponseOrBuilder extends com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateFileResponseOrBuilder extends */ com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -60,21 +89,24 @@ public interface AnnotateFileResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 2; */ - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java index de64ed09e..cb6ae6eea 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,56 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p2beta1.Image.Builder subBuilder = null;
-            if (image_ != null) {
-              subBuilder = image_.toBuilder();
-            }
-            image_ = input.readMessage(com.google.cloud.vision.v1p2beta1.Image.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(image_);
-              image_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p2beta1.Image.Builder subBuilder = null;
+              if (image_ != null) {
+                subBuilder = image_.toBuilder();
+              }
+              image_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(image_);
+                image_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              features_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            features_.add(
-                input.readMessage(com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null;
-            if (imageContext_ != null) {
-              subBuilder = imageContext_.toBuilder();
-            }
-            imageContext_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(imageContext_);
-              imageContext_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                features_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              features_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null;
+              if (imageContext_ != null) {
+                subBuilder = imageContext_.toBuilder();
+              }
+              imageContext_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(imageContext_);
+                imageContext_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,8 +129,7 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -114,27 +138,33 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class,
+            com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p2beta1.Image image_;
   /**
+   *
+   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -142,11 +172,14 @@ public boolean hasImage() { return image_ != null; } /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -154,6 +187,8 @@ public com.google.cloud.vision.v1p2beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; } /** + * + * *
    * The image to be processed.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Requested features.
    * 
@@ -179,6 +216,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Requested features.
    * 
@@ -186,11 +225,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -202,6 +243,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Requested features.
    * 
@@ -213,6 +256,8 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Requested features.
    * 
@@ -220,19 +265,21 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -240,18 +287,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image.
    * 
@@ -264,6 +318,7 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -296,16 +350,13 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,24 +366,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other = + (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -363,96 +412,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -460,21 +517,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.class,
+              com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.newBuilder()
@@ -482,17 +541,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -518,9 +577,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -539,7 +598,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p2beta1.AnnotateImageRequest result =
+          new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -568,38 +628,39 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,7 +668,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance())
+        return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -629,9 +691,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFeaturesFieldBuilder() : null;
+            featuresBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFeaturesFieldBuilder()
+                    : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -659,7 +722,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,38 +732,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p2beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder> imageBuilder_;
+            com.google.cloud.vision.v1p2beta1.Image,
+            com.google.cloud.vision.v1p2beta1.Image.Builder,
+            com.google.cloud.vision.v1p2beta1.ImageOrBuilder>
+        imageBuilder_;
     /**
+     *
+     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return The image. */ public com.google.cloud.vision.v1p2beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() + : image_; } else { return imageBuilder_.getMessage(); } } /** + * + * *
      * The image to be processed.
      * 
@@ -720,14 +798,15 @@ public Builder setImage(com.google.cloud.vision.v1p2beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; */ - public Builder setImage( - com.google.cloud.vision.v1p2beta1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.vision.v1p2beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -738,6 +817,8 @@ public Builder setImage( return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -748,7 +829,9 @@ public Builder mergeImage(com.google.cloud.vision.v1p2beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p2beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); } else { image_ = value; } @@ -760,6 +843,8 @@ public Builder mergeImage(com.google.cloud.vision.v1p2beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -778,6 +863,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -785,11 +872,13 @@ public Builder clearImage() { * .google.cloud.vision.v1p2beta1.Image image = 1; */ public com.google.cloud.vision.v1p2beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * The image to be processed.
      * 
@@ -800,11 +889,14 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? - com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p2beta1.Image.getDefaultInstance() + : image_; } } /** + * + * *
      * The image to be processed.
      * 
@@ -812,32 +904,41 @@ public com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p2beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder> + com.google.cloud.vision.v1p2beta1.Image, + com.google.cloud.vision.v1p2beta1.Image.Builder, + com.google.cloud.vision.v1p2beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Image, com.google.cloud.vision.v1p2beta1.Image.Builder, com.google.cloud.vision.v1p2beta1.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Image, + com.google.cloud.vision.v1p2beta1.Image.Builder, + com.google.cloud.vision.v1p2beta1.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Requested features.
      * 
@@ -852,6 +953,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Requested features.
      * 
@@ -866,6 +969,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Requested features.
      * 
@@ -880,14 +985,15 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,6 +1007,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -919,6 +1027,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -939,14 +1049,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature value) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,14 +1071,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -978,6 +1090,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -996,6 +1110,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1006,8 +1122,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1015,6 +1130,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1032,6 +1149,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Requested features.
      * 
@@ -1049,39 +1168,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1089,6 +1213,8 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Requested features.
      * 
@@ -1096,42 +1222,48 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1139,34 +1271,47 @@ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1187,6 +1332,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p2beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1205,6 +1352,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1215,7 +1364,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1227,6 +1378,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1245,6 +1398,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1252,11 +1407,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p2beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1267,11 +1424,14 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1279,21 +1439,24 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p2beta1.AnnotateImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateImageRequest(); } @@ -1317,16 +1480,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,6 +1504,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java index f6610bbce..a30d33af6 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AnnotateImageRequestOrBuilder extends +public interface AnnotateImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p2beta1.Image image = 1; + * * @return The image. */ com.google.cloud.vision.v1p2beta1.Image getImage(); /** + * + * *
    * The image to be processed.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateImageRequestOrBuilder extends com.google.cloud.vision.v1p2beta1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateImageRequestOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index); /** + * + * *
    * Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AnnotateImageRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p2beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java similarity index 77% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java index 0d456dc11..753b92ba0 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -29,16 +47,15 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,149 +75,192 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + faceAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.parser(), + extensionRegistry)); + break; } - faceAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.FaceAnnotation.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - labelAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - textAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + textAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } + case 50: + { + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); + } + safeSearchAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.vision.v1p2beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); + } + imagePropertiesAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.ImageProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 74: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + break; } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } - break; - } - case 90: { - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); + break; } + case 90: + { + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 98: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); + break; } + case 98: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 106: { - com.google.cloud.vision.v1p2beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); + break; } + case 106: + { + com.google.cloud.vision.v1p2beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } - break; - } - case 170: { - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); + break; } + case 170: + { + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -208,8 +268,7 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -230,22 +289,27 @@ private AnnotateImageResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -257,6 +321,8 @@ public java.util.List getFaceA return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -264,11 +330,13 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -280,6 +348,8 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -291,6 +361,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -306,6 +378,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -313,10 +387,13 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -324,11 +401,13 @@ public java.util.List getLan * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -340,6 +419,8 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -351,6 +432,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -358,14 +441,16 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -373,10 +458,13 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAn * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -384,11 +472,13 @@ public java.util.List getLog * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -400,6 +490,8 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -411,6 +503,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -426,6 +520,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -433,10 +529,13 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -444,11 +543,13 @@ public java.util.List getLab * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -460,6 +561,8 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -471,6 +574,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -486,6 +591,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -493,10 +600,13 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -504,11 +614,13 @@ public java.util.List getTex * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -520,6 +632,8 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -531,6 +645,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -546,6 +662,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p2beta1.TextAnnotation fullTextAnnotation_; /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -554,6 +672,7 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -561,6 +680,8 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -569,13 +690,18 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -586,18 +712,22 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder
+      getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -605,18 +735,25 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -624,18 +761,22 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p2beta1.ImageProperties imagePropertiesAnnotation_; /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -643,18 +784,25 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -662,18 +810,22 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p2beta1.CropHintsAnnotation cropHintsAnnotation_; /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -681,18 +833,25 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -700,18 +859,22 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p2beta1.WebDetection webDetection_; /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -719,18 +882,25 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection() { - return webDetection_ == null ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() + : webDetection_; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -745,6 +915,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -752,6 +924,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ @java.lang.Override @@ -759,6 +932,8 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -766,6 +941,7 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ @java.lang.Override @@ -773,6 +949,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -789,12 +967,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p2beta1.ImageAnnotationContext context_;
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ @java.lang.Override @@ -802,19 +983,26 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext() { - return context_ == null ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -828,6 +1016,7 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -839,8 +1028,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -887,52 +1075,45 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, landmarkAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getSafeSearchAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getImagePropertiesAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCropHintsAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -942,57 +1123,47 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList()
-        .equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList()
-        .equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList()
-        .equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList()
-        .equals(other.getLabelAnnotationsList())) return false;
-    if (!getTextAnnotationsList()
-        .equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other =
+        (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
+    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation()
-          .equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation()
-          .equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation()
-          .equals(other.getImagePropertiesAnnotation())) return false;
+      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
+        return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation()
-          .equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection()
-          .equals(other.getWebDetection())) return false;
+      if (!getWebDetection().equals(other.getWebDetection())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext()
-          .equals(other.getContext())) return false;
+      if (!getContext().equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1059,117 +1230,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p2beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AnnotateImageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AnnotateImageResponse) com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.newBuilder() @@ -1177,14 +1358,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1192,6 +1372,7 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1271,9 +1452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1292,7 +1473,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse result = + new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1382,38 +1564,39 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageResponse)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) other); } else { super.mergeFrom(other); return this; @@ -1421,7 +1604,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()) + return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1440,9 +1624,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFaceAnnotationsFieldBuilder() : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFaceAnnotationsFieldBuilder() + : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1466,9 +1651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarkAnnotationsFieldBuilder() : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarkAnnotationsFieldBuilder() + : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1492,9 +1678,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogoAnnotationsFieldBuilder() : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoAnnotationsFieldBuilder() + : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1518,9 +1705,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelAnnotationsFieldBuilder() : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1544,9 +1732,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextAnnotationsFieldBuilder() : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1592,7 +1781,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1601,28 +1791,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = + new java.util.ArrayList( + faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.FaceAnnotation, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> + faceAnnotationsBuilder_; /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List getFaceAnnotationsList() { + public java.util.List + getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1630,6 +1830,8 @@ public java.util.List getFaceA } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1644,6 +1846,8 @@ public int getFaceAnnotationsCount() { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1658,6 +1862,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int i } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1679,6 +1885,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1697,6 +1905,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1717,6 +1927,8 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p2beta1.FaceAnnotati return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1738,6 +1950,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1756,6 +1970,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1774,6 +1990,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1784,8 +2002,7 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -1793,6 +2010,8 @@ public Builder addAllFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1810,6 +2029,8 @@ public Builder clearFaceAnnotations() { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1827,6 +2048,8 @@ public Builder removeFaceAnnotations(int index) { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1838,6 +2061,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1847,19 +2072,22 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); } else { + return faceAnnotations_.get(index); + } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -1867,6 +2095,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1874,10 +2104,12 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1886,26 +2118,34 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.FaceAnnotation, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.FaceAnnotation, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1915,26 +2155,36 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + landmarkAnnotations_ = java.util.Collections.emptyList(); + private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); + landmarkAnnotations_ = + new java.util.ArrayList( + landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + landmarkAnnotationsBuilder_; /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -1942,11 +2192,14 @@ public java.util.List getLan } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -1956,11 +2209,14 @@ public int getLandmarkAnnotationsCount() { } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -1970,11 +2226,14 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { @@ -1991,11 +2250,14 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2009,13 +2271,17 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations( + com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2029,11 +2295,14 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p2beta1.EntityAn return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation value) { @@ -2050,11 +2319,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2068,11 +2340,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder builderForValue) { @@ -2086,18 +2361,20 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2105,11 +2382,14 @@ public Builder addAllLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2122,11 +2402,14 @@ public Builder clearLandmarkAnnotations() { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2139,39 +2422,49 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); } else { + return landmarkAnnotations_.get(index); + } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2179,45 +2472,62 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAn } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder + addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2228,25 +2538,34 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = + new java.util.ArrayList( + logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + logoAnnotationsBuilder_; /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2254,6 +2573,8 @@ public java.util.List getLog } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2268,6 +2589,8 @@ public int getLogoAnnotationsCount() { } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2282,6 +2605,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2303,6 +2628,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2321,6 +2648,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2341,6 +2670,8 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnota return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2362,6 +2693,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2380,6 +2713,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2398,6 +2733,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2408,8 +2745,7 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2417,6 +2753,8 @@ public Builder addAllLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2434,6 +2772,8 @@ public Builder clearLogoAnnotations() { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2451,6 +2791,8 @@ public Builder removeLogoAnnotations(int index) { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2462,6 +2804,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2471,19 +2815,22 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); } else { + return logoAnnotations_.get(index); + } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2491,6 +2838,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2498,10 +2847,12 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2510,26 +2861,35 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2540,25 +2900,34 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = + new java.util.ArrayList( + labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + labelAnnotationsBuilder_; /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2566,6 +2935,8 @@ public java.util.List getLab } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2580,6 +2951,8 @@ public int getLabelAnnotationsCount() { } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2594,6 +2967,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(in } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2615,6 +2990,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2633,6 +3010,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2653,6 +3032,8 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnot return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2674,6 +3055,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2692,6 +3075,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2710,6 +3095,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2720,8 +3107,7 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -2729,6 +3115,8 @@ public Builder addAllLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2746,6 +3134,8 @@ public Builder clearLabelAnnotations() { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2763,6 +3153,8 @@ public Builder removeLabelAnnotations(int index) { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2774,6 +3166,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2783,19 +3177,22 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); } else { + return labelAnnotations_.get(index); + } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2803,6 +3200,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2810,10 +3209,12 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2822,26 +3223,35 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -2852,25 +3262,34 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addLabelAnnota } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - textAnnotations_ = new java.util.ArrayList(textAnnotations_); + textAnnotations_ = + new java.util.ArrayList( + textAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + textAnnotationsBuilder_; /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -2878,6 +3297,8 @@ public java.util.List getTex } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2892,6 +3313,8 @@ public int getTextAnnotationsCount() { } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2906,6 +3329,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2927,6 +3352,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2945,6 +3372,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2965,6 +3394,8 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p2beta1.EntityAnnota return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -2986,6 +3417,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3004,6 +3437,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3022,6 +3457,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3032,8 +3469,7 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3041,6 +3477,8 @@ public Builder addAllTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3058,6 +3496,8 @@ public Builder clearTextAnnotations() { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3075,6 +3515,8 @@ public Builder removeTextAnnotations(int index) { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3086,6 +3528,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3095,19 +3539,22 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); } else { + return textAnnotations_.get(index); + } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3115,6 +3562,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3122,10 +3571,12 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3134,26 +3585,35 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.EntityAnnotation, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.EntityAnnotation, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3165,8 +3625,13 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p2beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation, + com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> + fullTextAnnotationBuilder_; /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3175,12 +3640,15 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3189,16 +3657,21 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3222,6 +3695,8 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnnot
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3243,6 +3718,8 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3256,7 +3733,9 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3268,6 +3747,8 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p2beta1.TextAnn
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3289,6 +3770,8 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3299,11 +3782,13 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-      
+
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3313,15 +3798,19 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder
+        getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null ?
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
+        return fullTextAnnotation_ == null
+            ? com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance()
+            : fullTextAnnotation_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3332,14 +3821,17 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnno
      * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.TextAnnotation,
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder,
+            com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.TextAnnotation, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(),
-                getParentForChildren(),
-                isClean());
+        fullTextAnnotationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.TextAnnotation,
+                com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder,
+                com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(), getParentForChildren(), isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3347,41 +3839,55 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnno
 
     private com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation,
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder,
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>
+        safeSearchAnnotationBuilder_;
     /**
+     *
+     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation( + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3395,6 +3901,8 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeSea return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3413,17 +3921,23 @@ public Builder setSafeSearchAnnotation( return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation( + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder( + safeSearchAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3435,6 +3949,8 @@ public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p2beta1.SafeS return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3453,33 +3969,42 @@ public Builder clearSafeSearchAnnotation() { return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder + getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null ? - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3487,14 +4012,17 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSe * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), - getParentForChildren(), - isClean()); + safeSearchAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), getParentForChildren(), isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -3502,41 +4030,55 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSe private com.google.cloud.vision.v1p2beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.ImageProperties, + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> + imagePropertiesAnnotationBuilder_; /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation( + com.google.cloud.vision.v1p2beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3550,6 +4092,8 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1.Im return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3568,17 +4112,23 @@ public Builder setImagePropertiesAnnotation( return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation( + com.google.cloud.vision.v1p2beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder( + imagePropertiesAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -3590,6 +4140,8 @@ public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p2beta1. return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3608,33 +4160,42 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p2beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.ImageProperties.Builder + getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null ? - com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -3642,14 +4203,17 @@ public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImageProper * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageProperties, + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageProperties, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), - getParentForChildren(), - isClean()); + imagePropertiesAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageProperties, + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), getParentForChildren(), isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -3657,41 +4221,55 @@ public com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImageProper private com.google.cloud.vision.v1p2beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> + cropHintsAnnotationBuilder_; /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation( + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3705,6 +4283,8 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHint return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3723,17 +4303,22 @@ public Builder setCropHintsAnnotation( return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation( + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -3745,6 +4330,8 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p2beta1.CropHi return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3763,33 +4350,42 @@ public Builder clearCropHintsAnnotation() { return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder + getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null ? - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -3797,14 +4393,17 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHin * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), - getParentForChildren(), - isClean()); + cropHintsAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), getParentForChildren(), isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -3812,34 +4411,47 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHin private com.google.cloud.vision.v1p2beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> webDetectionBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection, + com.google.cloud.vision.v1p2beta1.WebDetection.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> + webDetectionBuilder_; /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ public com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() + : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3860,6 +4472,8 @@ public Builder setWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection va return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3878,6 +4492,8 @@ public Builder setWebDetection( return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3888,7 +4504,9 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder(webDetection_) + .mergeFrom(value) + .buildPartial(); } else { webDetection_ = value; } @@ -3900,6 +4518,8 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p2beta1.WebDetection return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3918,6 +4538,8 @@ public Builder clearWebDetection() { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3925,11 +4547,13 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p2beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3940,11 +4564,14 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null ? - com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetection.getDefaultInstance() + : webDetection_; } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -3952,14 +4579,17 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection, + com.google.cloud.vision.v1p2beta1.WebDetection.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection, com.google.cloud.vision.v1p2beta1.WebDetection.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder>( - getWebDetection(), - getParentForChildren(), - isClean()); + webDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection, + com.google.cloud.vision.v1p2beta1.WebDetection.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder>( + getWebDetection(), getParentForChildren(), isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -3967,8 +4597,11 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3976,12 +4609,15 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOr
      * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -3989,6 +4625,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -3999,6 +4636,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4021,6 +4660,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4029,8 +4670,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4041,6 +4681,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4052,8 +4694,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4065,6 +4706,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4085,6 +4728,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4094,11 +4739,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4111,11 +4758,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4125,14 +4773,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -4140,36 +4788,49 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p2beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return The context. */ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } else { return contextBuilder_.getMessage(); } } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4191,6 +4852,8 @@ public Builder setContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationConte
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4210,6 +4873,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4221,7 +4886,9 @@ public Builder mergeContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder(context_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           context_ = value;
         }
@@ -4233,6 +4900,8 @@ public Builder mergeContext(com.google.cloud.vision.v1p2beta1.ImageAnnotationCon
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4252,6 +4921,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4260,11 +4931,13 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4276,11 +4949,14 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance() : context_;
+        return context_ == null
+            ? com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance()
+            : context_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4289,21 +4965,24 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.ImageAnnotationContext,
+                com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder,
+                com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4313,12 +4992,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p2beta1.AnnotateImageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AnnotateImageResponse();
   }
@@ -4327,16 +5006,16 @@ public static com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateImageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateImageResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateImageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateImageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4351,6 +5030,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
similarity index 89%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
index c9055eb12..bd3c783d8 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AnnotateImageResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface AnnotateImageResponseOrBuilder extends
+public interface AnnotateImageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - java.util.List - getFaceAnnotationsList(); + java.util.List getFaceAnnotationsList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -25,6 +44,8 @@ public interface AnnotateImageResponseOrBuilder extends */ com.google.cloud.vision.v1p2beta1.FaceAnnotation getFaceAnnotations(int index); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -33,34 +54,40 @@ public interface AnnotateImageResponseOrBuilder extends */ int getFaceAnnotationsCount(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List - getLandmarkAnnotationsList(); + java.util.List getLandmarkAnnotationsList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLandmarkAnnotations(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ int getLandmarkAnnotationsCount(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,15 +129,18 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List - getLogoAnnotationsList(); + java.util.List getLogoAnnotationsList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -113,6 +149,8 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLogoAnnotations(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -121,15 +159,19 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -140,15 +182,18 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - java.util.List - getLabelAnnotationsList(); + java.util.List getLabelAnnotationsList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -157,6 +202,8 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getLabelAnnotations(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -165,15 +212,19 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -184,15 +235,18 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - java.util.List - getTextAnnotationsList(); + java.util.List getTextAnnotationsList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -201,6 +255,8 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ com.google.cloud.vision.v1p2beta1.EntityAnnotation getTextAnnotations(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -209,15 +265,19 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getLabelAnnotationsO */ int getTextAnnotationsCount(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -228,6 +288,8 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -236,10 +298,13 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -248,10 +313,13 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p2beta1.TextAnnotation getFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -264,78 +332,104 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p2beta1.ImageProperties getImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -345,24 +439,32 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ com.google.cloud.vision.v1p2beta1.WebDetection getWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -372,6 +474,8 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -379,10 +483,13 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -390,10 +497,13 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -405,26 +515,34 @@ com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21; + * * @return The context. */ com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
index 2b086d817..8f99b0f7a 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
+ *
+ *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,61 +71,72 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p2beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - features_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1p2beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,8 +144,7 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -126,27 +153,33 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -154,18 +187,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -180,6 +220,8 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -191,6 +233,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -198,11 +242,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -214,6 +260,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -225,6 +273,8 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -232,19 +282,21 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -252,18 +304,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -278,11 +337,14 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -290,18 +352,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -314,6 +383,7 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -349,20 +418,16 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,29 +437,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other = + (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -429,117 +491,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.newBuilder() @@ -547,17 +619,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -610,7 +682,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest result = + new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -644,38 +717,39 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -683,7 +757,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -705,9 +780,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -738,7 +814,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,38 +824,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.InputConfig, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder, + com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -799,6 +890,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig valu return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -817,6 +910,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -827,7 +922,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -839,6 +936,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p2beta1.InputConfig va return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -857,6 +956,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -864,11 +965,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p2beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -879,11 +982,14 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -891,32 +997,41 @@ public com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.InputConfig, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder, + com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.InputConfig, com.google.cloud.vision.v1p2beta1.InputConfig.Builder, com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.InputConfig, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder, + com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -931,6 +1046,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Required. Requested features.
      * 
@@ -945,6 +1062,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -959,14 +1078,15 @@ public com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,6 +1100,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -998,6 +1120,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1018,14 +1142,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p2beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p2beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1039,14 +1164,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p2beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1057,6 +1183,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1075,6 +1203,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1085,8 +1215,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1094,6 +1223,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1111,6 +1242,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1128,39 +1261,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1168,6 +1306,8 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1175,42 +1315,48 @@ public com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Feature, com.google.cloud.vision.v1p2beta1.Feature.Builder, com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Feature, + com.google.cloud.vision.v1p2beta1.Feature.Builder, + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1218,34 +1364,47 @@ public com.google.cloud.vision.v1p2beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p2beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p2beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1266,6 +1425,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p2beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1284,6 +1445,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1294,7 +1457,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1306,6 +1471,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p2beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1324,6 +1491,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1331,11 +1500,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p2beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1346,11 +1517,14 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p2beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1358,14 +1532,17 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageContext, com.google.cloud.vision.v1p2beta1.ImageContext.Builder, com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ImageContext, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder, + com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1373,34 +1550,47 @@ public com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1421,6 +1611,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig va return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1439,6 +1631,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1449,7 +1643,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1461,6 +1657,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1479,6 +1677,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1486,11 +1686,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p2beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1501,11 +1703,14 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1513,21 +1718,24 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,12 +1745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest(); } @@ -1551,16 +1759,16 @@ public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1575,6 +1783,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java index 4052046dc..e8267e787 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AsyncAnnotateFileRequestOrBuilder extends +public interface AsyncAnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p2beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p2beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AsyncAnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Feature features = 2; */ - com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p2beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p2beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,24 +146,32 @@ com.google.cloud.vision.v1p2beta1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java index 58dc4e62a..9ba955e9a 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileResponse() { - } + + private AsyncAnnotateFileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p2beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other = + (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.newBuilder() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -370,7 +409,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse result = + new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) other); } else { super.mergeFrom(other); return this; @@ -423,7 +464,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance()) + return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +488,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +501,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -506,6 +562,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig va return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -524,6 +582,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -534,7 +594,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +608,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p2beta1.OutputConfig return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -564,6 +628,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -571,11 +637,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p2beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -586,11 +654,14 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p2beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -598,21 +669,24 @@ public com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.OutputConfig, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.OutputConfig, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse(); } @@ -636,16 +710,16 @@ public static com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java index a910bcfd7..0d15fea40 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface AsyncAnnotateFileResponseOrBuilder extends +public interface AsyncAnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p2beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1p2beta1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java index 9133d4c8d..4e884bc2c 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,22 +73,27 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              requests_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requests_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requests_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.parser(),
+                      extensionRegistry));
+              break;
             }
-            requests_.add(
-                input.readMessage(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,8 +101,7 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -88,72 +110,97 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
+            com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
+   *
+   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -162,6 +209,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -188,8 +235,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -199,15 +245,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,96 +275,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -326,21 +380,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.class,
+              com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -348,17 +404,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,13 +428,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -393,7 +450,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest result =
+          new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -412,46 +470,50 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other
+          == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
+        return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -470,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFil
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequestsFieldBuilder() : null;
+            requestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequestsFieldBuilder()
+                    : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -497,7 +560,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -506,28 +571,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List requests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ = new java.util.ArrayList(requests_);
+        requests_ =
+            new java.util.ArrayList(
+                requests_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest,
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder,
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>
+        requestsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -535,11 +612,15 @@ public java.util.List * Required. Individual async file annotation requests for this batch. *
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -549,11 +630,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -563,11 +648,15 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(in } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { @@ -584,14 +673,19 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( - int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -602,11 +696,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -622,11 +720,15 @@ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRe return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest value) { @@ -643,11 +745,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -661,14 +767,19 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( - int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -679,18 +790,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -698,11 +813,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -715,11 +834,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -732,39 +855,53 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -772,56 +909,74 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,30 +986,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,9 +1023,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..2780c9b6b --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java index 88364f0ab..6eb6c66be 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +72,27 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +100,7 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +109,27 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -111,10 +138,13 @@ private AsyncBatchAnnotateFilesResponse(
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List getResponsesList() {
+  public java.util.List
+      getResponsesList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -123,11 +153,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -140,6 +173,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -152,6 +187,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -166,6 +203,7 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +215,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +229,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +239,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,135 +269,147 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -396,7 +445,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,46 +465,50 @@ public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse other) { + if (other + == com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFil responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +555,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +566,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, + com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -531,7 +597,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -539,6 +606,8 @@ public java.util.List
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -554,6 +623,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -569,6 +640,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -591,6 +664,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -599,7 +674,8 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -610,6 +686,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -631,6 +709,8 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileR
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -653,6 +733,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -672,6 +754,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -680,7 +764,8 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -691,6 +776,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -699,11 +786,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +798,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -729,6 +818,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -747,6 +838,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -759,6 +852,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -766,14 +861,17 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder
+        getResponsesOrBuilder(int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -781,8 +879,9 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +889,8 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getR
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -797,11 +898,15 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder
+        addResponsesBuilder() {
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -811,10 +916,14 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addRe
      */
     public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -822,27 +931,30 @@ public com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse,
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse,
+                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,30 +964,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
+  public static com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,9 +1001,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index f16c1193c..1d476e0d1 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
index fa3f30598..00e9dbf50 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
+ *
+ *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.parser(), + extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -87,72 +108,95 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -161,6 +205,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -187,8 +231,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +241,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +271,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.newBuilder() @@ -346,17 +399,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -391,7 +445,8 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +465,39 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -468,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -495,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +564,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -533,11 +605,15 @@ public java.util.List ge } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -547,11 +623,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -561,11 +641,15 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int in } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { @@ -582,11 +666,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -600,11 +688,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -620,11 +712,15 @@ public Builder addRequests(com.google.cloud.vision.v1p2beta1.AnnotateImageReques return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest value) { @@ -641,11 +737,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -659,11 +759,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder builderForValue) { @@ -677,18 +781,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -696,11 +804,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -713,11 +825,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -730,39 +846,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -770,56 +899,72 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +974,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest(); } @@ -843,16 +989,16 @@ public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..2db304740 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface BatchAnnotateImagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p2beta1.AnnotateImageRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p2beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p2beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java index bdc96fcca..55a02773d 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -110,10 +136,13 @@ private BatchAnnotateImagesResponse( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -121,11 +150,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -137,6 +168,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,6 +181,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -161,6 +196,7 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -187,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +262,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.newBuilder() @@ -346,17 +390,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -391,7 +436,8 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +456,39 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +496,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -468,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -495,7 +545,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +556,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -533,6 +595,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -547,6 +611,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -561,6 +627,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -582,6 +650,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -589,7 +659,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -600,6 +671,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,6 +693,8 @@ public Builder addResponses(com.google.cloud.vision.v1p2beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -641,6 +716,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,6 +736,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -666,7 +745,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -677,6 +757,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -684,11 +766,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -696,6 +778,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -713,6 +797,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -730,6 +816,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -741,6 +829,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -750,19 +840,23 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +864,8 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -777,10 +873,12 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -789,37 +887,43 @@ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +933,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse(); } @@ -843,16 +948,16 @@ public static com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +972,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java index 3615f5a29..76e8bf1c6 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface BatchAnnotateImagesResponseOrBuilder extends +public interface BatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -25,6 +44,8 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p2beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -33,21 +54,24 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p2beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java similarity index 77% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java index 70eabde18..0d9750a21 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Block.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Block} */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Block extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Block) BlockOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -26,16 +44,15 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,71 @@ private Block( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paragraphs_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Paragraph.parser(), extensionRegistry)); + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + blockType_ = rawValue; + break; } - paragraphs_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Paragraph.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - blockType_ = rawValue; - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,8 +144,7 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -125,29 +153,35 @@ private Block( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Block.class, com.google.cloud.vision.v1p2beta1.Block.Builder.class); + com.google.cloud.vision.v1p2beta1.Block.class, + com.google.cloud.vision.v1p2beta1.Block.Builder.class); } /** + * + * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.Block.BlockType} */ - public enum BlockType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown block type.
      * 
@@ -156,6 +190,8 @@ public enum BlockType */ UNKNOWN(0), /** + * + * *
      * Regular text block.
      * 
@@ -164,6 +200,8 @@ public enum BlockType */ TEXT(1), /** + * + * *
      * Table block.
      * 
@@ -172,6 +210,8 @@ public enum BlockType */ TABLE(2), /** + * + * *
      * Image block.
      * 
@@ -180,6 +220,8 @@ public enum BlockType */ PICTURE(3), /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -188,6 +230,8 @@ public enum BlockType */ RULER(4), /** + * + * *
      * Barcode block.
      * 
@@ -199,6 +243,8 @@ public enum BlockType ; /** + * + * *
      * Unknown block type.
      * 
@@ -207,6 +253,8 @@ public enum BlockType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Regular text block.
      * 
@@ -215,6 +263,8 @@ public enum BlockType */ public static final int TEXT_VALUE = 1; /** + * + * *
      * Table block.
      * 
@@ -223,6 +273,8 @@ public enum BlockType */ public static final int TABLE_VALUE = 2; /** + * + * *
      * Image block.
      * 
@@ -231,6 +283,8 @@ public enum BlockType */ public static final int PICTURE_VALUE = 3; /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -239,6 +293,8 @@ public enum BlockType */ public static final int RULER_VALUE = 4; /** + * + * *
      * Barcode block.
      * 
@@ -247,7 +303,6 @@ public enum BlockType */ public static final int BARCODE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,52 +327,55 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return TEXT; - case 2: return TABLE; - case 3: return PICTURE; - case 4: return RULER; - case 5: return BARCODE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return TEXT; + case 2: + return TABLE; + case 3: + return PICTURE; + case 4: + return RULER; + case 5: + return BARCODE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p2beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,11 +395,14 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -349,18 +410,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the block.
    * 
@@ -368,13 +436,16 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -394,6 +465,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -401,6 +473,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -420,13 +494,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -455,6 +534,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -466,6 +547,8 @@ public java.util.List getParagraphs return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -473,11 +556,13 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -489,6 +574,8 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -500,6 +587,8 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -507,46 +596,57 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Block.BlockType result = com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p2beta1.Block.BlockType result = + com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -555,6 +655,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,8 +667,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -593,24 +693,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p2beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,7 +715,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Block)) { return super.equals(obj); @@ -629,20 +724,16 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getParagraphsList() - .equals(other.getParagraphsList())) return false; + if (!getParagraphsList().equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,125 +760,133 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Block parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Block} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Block) com.google.cloud.vision.v1p2beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Block.class, com.google.cloud.vision.v1p2beta1.Block.Builder.class); + com.google.cloud.vision.v1p2beta1.Block.class, + com.google.cloud.vision.v1p2beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Block.newBuilder() @@ -795,17 +894,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +934,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; } @java.lang.Override @@ -856,7 +955,8 @@ public com.google.cloud.vision.v1p2beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block buildPartial() { - com.google.cloud.vision.v1p2beta1.Block result = new com.google.cloud.vision.v1p2beta1.Block(this); + com.google.cloud.vision.v1p2beta1.Block result = + new com.google.cloud.vision.v1p2beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -887,38 +987,39 @@ public com.google.cloud.vision.v1p2beta1.Block buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Block)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Block) other); } else { super.mergeFrom(other); return this; @@ -951,9 +1052,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParagraphsFieldBuilder() : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParagraphsFieldBuilder() + : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -993,45 +1095,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1045,6 +1162,8 @@ public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1063,17 +1182,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -1085,6 +1209,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1103,33 +1229,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1137,14 +1272,17 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1152,8 +1290,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1173,12 +1316,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1198,16 +1344,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,6 +1393,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1274,6 +1427,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1298,7 +1453,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1310,6 +1467,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1342,6 +1501,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1363,11 +1524,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1392,11 +1555,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1418,32 +1584,42 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ = new java.util.ArrayList(paragraphs_);
+        paragraphs_ =
+            new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> paragraphsBuilder_;
+            com.google.cloud.vision.v1p2beta1.Paragraph,
+            com.google.cloud.vision.v1p2beta1.Paragraph.Builder,
+            com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>
+        paragraphsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1458,6 +1634,8 @@ public java.util.List getParagraphs } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1472,6 +1650,8 @@ public int getParagraphsCount() { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1486,14 +1666,15 @@ public com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index) { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs( - int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { + public Builder setParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,6 +1688,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1525,6 +1708,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1545,14 +1730,15 @@ public Builder addParagraphs(com.google.cloud.vision.v1p2beta1.Paragraph value) return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { + public Builder addParagraphs(int index, com.google.cloud.vision.v1p2beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1566,6 +1752,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1584,6 +1772,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1602,6 +1792,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1612,8 +1804,7 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1621,6 +1812,8 @@ public Builder addAllParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,6 +1831,8 @@ public Builder clearParagraphs() { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1655,39 +1850,44 @@ public Builder removeParagraphs(int index) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.Paragraph.Builder getParagraphsBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Paragraph.Builder getParagraphsBuilder(int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); } else { + return paragraphs_.get(index); + } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,6 +1895,8 @@ public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1702,42 +1904,48 @@ public com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder( - int index) { - return getParagraphsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder(int index) { + return getParagraphsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p2beta1.Paragraph, + com.google.cloud.vision.v1p2beta1.Paragraph.Builder, + com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Paragraph, com.google.cloud.vision.v1p2beta1.Paragraph.Builder, com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>( - paragraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + paragraphsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Paragraph, + com.google.cloud.vision.v1p2beta1.Paragraph.Builder, + com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder>( + paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1745,51 +1953,67 @@ public com.google.cloud.vision.v1p2beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Block.BlockType result = com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); - return result == null ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.Block.BlockType result = + com.google.cloud.vision.v1p2beta1.Block.BlockType.valueOf(blockType_); + return result == null + ? com.google.cloud.vision.v1p2beta1.Block.BlockType.UNRECOGNIZED + : result; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @param value The blockType to set. * @return This builder for chaining. */ @@ -1797,33 +2021,39 @@ public Builder setBlockType(com.google.cloud.vision.v1p2beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1831,37 +2061,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1871,12 +2107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Block) private static final com.google.cloud.vision.v1p2beta1.Block DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Block(); } @@ -1885,16 +2121,16 @@ public static com.google.cloud.vision.v1p2beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1909,6 +2145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java index ef09321b5..268b7964d 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BlockOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface BlockOrBuilder extends +public interface BlockOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Block) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
@@ -35,6 +59,8 @@ public interface BlockOrBuilder extends com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface BlockOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - java.util.List - getParagraphsList(); + java.util.List getParagraphsList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -121,6 +156,8 @@ public interface BlockOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Paragraph getParagraphs(int index); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -129,49 +166,61 @@ public interface BlockOrBuilder extends */ int getParagraphsCount(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ com.google.cloud.vision.v1p2beta1.Block.BlockType getBlockType(); /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java index 68010ef4b..a8c3d87e4 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPoly.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BoundingPoly} */ -public final class BoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.BoundingPoly) BoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,37 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Vertex.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.NormalizedVertex.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +110,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -100,22 +122,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.GeometryProto + .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.GeometryProto + .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BoundingPoly.class, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p2beta1.BoundingPoly.class, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -127,6 +154,8 @@ public java.util.List getVerticesList( return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -134,11 +163,13 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -150,6 +181,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -161,6 +194,8 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -168,14 +203,15 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -183,10 +219,13 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -194,11 +233,13 @@ public java.util.List getNor * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -210,6 +251,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -221,6 +264,8 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -234,6 +279,7 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -263,12 +308,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,17 +322,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.BoundingPoly other = (com.google.cloud.vision.v1p2beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p2beta1.BoundingPoly other = + (com.google.cloud.vision.v1p2beta1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,118 +356,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.BoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.BoundingPoly) com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.GeometryProto + .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.GeometryProto + .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.BoundingPoly.class, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p2beta1.BoundingPoly.class, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder() @@ -432,18 +484,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.GeometryProto + .internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -484,7 +536,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p2beta1.BoundingPoly result = new com.google.cloud.vision.v1p2beta1.BoundingPoly(this); + com.google.cloud.vision.v1p2beta1.BoundingPoly result = + new com.google.cloud.vision.v1p2beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -512,38 +565,39 @@ public com.google.cloud.vision.v1p2beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.BoundingPoly)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -570,9 +624,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -596,9 +651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNormalizedVerticesFieldBuilder() : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNormalizedVerticesFieldBuilder() + : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -632,21 +688,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.vision.v1p2beta1.Vertex, + com.google.cloud.vision.v1p2beta1.Vertex.Builder, + com.google.cloud.vision.v1p2beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -661,6 +724,8 @@ public java.util.List getVerticesList( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -675,6 +740,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -689,14 +756,15 @@ public com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.vision.v1p2beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,6 +778,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -728,6 +798,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -748,14 +820,15 @@ public Builder addVertices(com.google.cloud.vision.v1p2beta1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.vision.v1p2beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.vision.v1p2beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -769,14 +842,15 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public Builder addVertices( - com.google.cloud.vision.v1p2beta1.Vertex.Builder builderForValue) { + public Builder addVertices(com.google.cloud.vision.v1p2beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -787,6 +861,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -805,6 +881,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -815,8 +893,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -824,6 +901,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -841,6 +920,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -858,39 +939,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -898,6 +984,8 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -905,67 +993,83 @@ public com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder> + com.google.cloud.vision.v1p2beta1.Vertex, + com.google.cloud.vision.v1p2beta1.Vertex.Builder, + com.google.cloud.vision.v1p2beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Vertex, com.google.cloud.vision.v1p2beta1.Vertex.Builder, com.google.cloud.vision.v1p2beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Vertex, + com.google.cloud.vision.v1p2beta1.Vertex.Builder, + com.google.cloud.vision.v1p2beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); + normalizedVertices_ = + new java.util.ArrayList( + normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.vision.v1p2beta1.NormalizedVertex, + com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -973,11 +1077,14 @@ public java.util.List getNor } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -987,11 +1094,14 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1001,11 +1111,14 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices( } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { @@ -1022,11 +1135,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1040,11 +1156,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1060,11 +1179,14 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p2beta1.Normalize return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex value) { @@ -1081,11 +1203,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1099,11 +1224,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder builderForValue) { @@ -1117,18 +1245,20 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1136,11 +1266,14 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1153,11 +1286,14 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1170,39 +1306,49 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1210,45 +1356,62 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder getNormalized } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p2beta1.NormalizedVertex, + com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.NormalizedVertex, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.NormalizedVertex, + com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1257,9 +1420,9 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BoundingPoly) private static final com.google.cloud.vision.v1p2beta1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.BoundingPoly(); } @@ -1283,16 +1446,16 @@ public static com.google.cloud.vision.v1p2beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,6 +1470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java index b173fb638..39c943fd8 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,34 +54,40 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List - getNormalizedVerticesList(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( */ com.google.cloud.vision.v1p2beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p2beta1.VertexOrBuilder getVerticesOrBuilder( */ int getNormalizedVerticesCount(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p2beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java index dd9c2689b..05262e2c8 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.ColorInfo}
  */
-public final class ColorInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ColorInfo)
     ColorInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ColorInfo() {
-  }
+
+  private ColorInfo() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,37 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Color.Builder subBuilder = null;
-            if (color_ != null) {
-              subBuilder = color_.toBuilder();
+          case 10:
+            {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
+              }
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(color_);
-              color_ = subBuilder.buildPartial();
+          case 21:
+            {
+              score_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 21: {
-
-            score_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            pixelFraction_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 29:
+            {
+              pixelFraction_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,34 +107,39 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.ColorInfo.class, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p2beta1.ColorInfo.class,
+            com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
+   *
+   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ @java.lang.Override @@ -125,11 +147,14 @@ public boolean hasColor() { return color_ != null; } /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** + * + * *
    * RGB components of the color.
    * 
@@ -151,11 +178,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -166,12 +196,15 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -180,6 +213,7 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -212,16 +245,13 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,24 +261,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ColorInfo other = (com.google.cloud.vision.v1p2beta1.ColorInfo) obj; + com.google.cloud.vision.v1p2beta1.ColorInfo other = + (com.google.cloud.vision.v1p2beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor() - .equals(other.getColor())) return false; + if (!getColor().equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits( - other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,107 +293,112 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -373,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.ColorInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ColorInfo)
       com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.ColorInfo.class, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p2beta1.ColorInfo.class,
+              com.google.cloud.vision.v1p2beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.ColorInfo.newBuilder()
@@ -395,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -443,7 +477,8 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p2beta1.ColorInfo result = new com.google.cloud.vision.v1p2beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p2beta1.ColorInfo result =
+          new com.google.cloud.vision.v1p2beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -459,38 +494,39 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.ColorInfo)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.ColorInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,24 +575,31 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
+            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
+        colorBuilder_;
     /**
+     *
+     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return The color. */ public com.google.type.Color getColor() { @@ -567,6 +610,8 @@ public com.google.type.Color getColor() { } } /** + * + * *
      * RGB components of the color.
      * 
@@ -587,14 +632,15 @@ public Builder setColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor( - com.google.type.Color.Builder builderForValue) { + public Builder setColor(com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -605,6 +651,8 @@ public Builder setColor( return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -614,8 +662,7 @@ public Builder setColor( public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = - com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -627,6 +674,8 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -645,6 +694,8 @@ public Builder clearColor() { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -652,11 +703,13 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** + * + * *
      * RGB components of the color.
      * 
@@ -667,11 +720,12 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? - com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } } /** + * + * *
      * RGB components of the color.
      * 
@@ -679,26 +733,29 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( - getColor(), - getParentForChildren(), - isClean()); + colorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -706,43 +763,52 @@ public float getScore() { return score_; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_ ; + private float pixelFraction_; /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -750,39 +816,45 @@ public float getPixelFraction() { return pixelFraction_; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ColorInfo) private static final com.google.cloud.vision.v1p2beta1.ColorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ColorInfo(); } @@ -806,16 +878,16 @@ public static com.google.cloud.vision.v1p2beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java index f8504f6f4..c4f8a0a15 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ColorInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ColorInfoOrBuilder extends +public interface ColorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ boolean hasColor(); /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ com.google.type.Color getColor(); /** + * + * *
    * RGB components of the color.
    * 
@@ -35,22 +59,28 @@ public interface ColorInfoOrBuilder extends com.google.type.ColorOrBuilder getColorOrBuilder(); /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java index 0c67762e0..45f99819a 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHint.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHint} */ -public final class CropHint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHint) CropHintOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHint() { - } + + private CropHint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,39 @@ private CropHint( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - case 29: { - - importanceFraction_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 29: + { + importanceFraction_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,35 +108,40 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHint.class, com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHint.class, + com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -125,19 +149,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -153,11 +184,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -168,12 +202,15 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -182,6 +219,7 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -214,16 +251,13 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,24 +267,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHint other = (com.google.cloud.vision.v1p2beta1.CropHint) obj; + com.google.cloud.vision.v1p2beta1.CropHint other = + (com.google.cloud.vision.v1p2beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits( - other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,128 +299,135 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHint) com.google.cloud.vision.v1p2beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHint.class, com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHint.class, + com.google.cloud.vision.v1p2beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHint.newBuilder() @@ -396,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; } @java.lang.Override @@ -444,7 +482,8 @@ public com.google.cloud.vision.v1p2beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHint result = new com.google.cloud.vision.v1p2beta1.CropHint(this); + com.google.cloud.vision.v1p2beta1.CropHint result = + new com.google.cloud.vision.v1p2beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -460,38 +499,39 @@ public com.google.cloud.vision.v1p2beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHint)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHint) other); } else { super.mergeFrom(other); return this; @@ -540,36 +580,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -591,6 +644,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -610,6 +665,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -621,7 +678,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -633,6 +692,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -652,6 +713,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -660,11 +723,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -676,11 +741,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -689,26 +757,32 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -716,43 +790,52 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_ ; + private float importanceFraction_; /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -760,39 +843,45 @@ public float getImportanceFraction() { return importanceFraction_; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHint) private static final com.google.cloud.vision.v1p2beta1.CropHint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHint(); } @@ -816,16 +905,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java index dd3ed9e88..c51f34a68 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintOrBuilder extends +public interface CropHintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -38,22 +62,28 @@ public interface CropHintOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java index 1d0643eb5..098cb32e2 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cropHints_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.CropHint.parser(), extensionRegistry)); + break; } - cropHints_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.CropHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -87,22 +105,27 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** + * + * *
    * Crop hint results.
    * 
@@ -114,6 +137,8 @@ public java.util.List getCropHintsLi return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -121,11 +146,13 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -137,6 +164,8 @@ public int getCropHintsCount() { return cropHints_.size(); } /** + * + * *
    * Crop hint results.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** + * + * *
    * Crop hint results.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other = + (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) obj; - if (!getCropHintsList() - .equals(other.getCropHintsList())) return false; + if (!getCropHintsList().equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHintsAnnotation) com.google.cloud.vision.v1p2beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p2beta1.CropHintsAnnotation result = + new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.getDefaultInstance()) + return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCropHintsFieldBuilder() : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCropHintsFieldBuilder() + : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(cropHints_); + cropHints_ = + new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> cropHintsBuilder_; + com.google.cloud.vision.v1p2beta1.CropHint, + com.google.cloud.vision.v1p2beta1.CropHint.Builder, + com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> + cropHintsBuilder_; /** + * + * *
      * Crop hint results.
      * 
@@ -533,6 +585,8 @@ public java.util.List getCropHintsLi } } /** + * + * *
      * Crop hint results.
      * 
@@ -547,6 +601,8 @@ public int getCropHintsCount() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -561,14 +617,15 @@ public com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index) { } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public Builder setCropHints( - int index, com.google.cloud.vision.v1p2beta1.CropHint value) { + public Builder setCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +639,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -600,6 +659,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -620,14 +681,15 @@ public Builder addCropHints(com.google.cloud.vision.v1p2beta1.CropHint value) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public Builder addCropHints( - int index, com.google.cloud.vision.v1p2beta1.CropHint value) { + public Builder addCropHints(int index, com.google.cloud.vision.v1p2beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +703,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -659,6 +723,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -677,6 +743,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -687,8 +755,7 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -696,6 +763,8 @@ public Builder addAllCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -713,6 +782,8 @@ public Builder clearCropHints() { return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -730,39 +801,44 @@ public Builder removeCropHints(int index) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHint.Builder getCropHintsBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.CropHint.Builder getCropHintsBuilder(int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); } else { + return cropHints_.get(index); + } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +846,8 @@ public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** + * + * *
      * Crop hint results.
      * 
@@ -777,49 +855,55 @@ public com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder( - int index) { - return getCropHintsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.CropHint.Builder addCropHintsBuilder(int index) { + return getCropHintsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHint, + com.google.cloud.vision.v1p2beta1.CropHint.Builder, + com.google.cloud.vision.v1p2beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHint, com.google.cloud.vision.v1p2beta1.CropHint.Builder, com.google.cloud.vision.v1p2beta1.CropHintOrBuilder>( - cropHints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cropHintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHint, + com.google.cloud.vision.v1p2beta1.CropHint.Builder, + com.google.cloud.vision.v1p2beta1.CropHintOrBuilder>( + cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cropHints_ = null; } return cropHintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p2beta1.CropHintsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHintsAnnotation(); } @@ -843,16 +927,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java index 5aeb3fb43..64687d241 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintsAnnotationOrBuilder extends +public interface CropHintsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - java.util.List - getCropHintsList(); + java.util.List getCropHintsList(); /** + * + * *
    * Crop hint results.
    * 
@@ -25,6 +44,8 @@ public interface CropHintsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p2beta1.CropHint getCropHints(int index); /** + * + * *
    * Crop hint results.
    * 
@@ -33,21 +54,24 @@ public interface CropHintsAnnotationOrBuilder extends */ int getCropHintsCount(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p2beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java index 9d91ec287..b18ed2a48 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsParams} */ -public final class CropHintsParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.CropHintsParams) CropHintsParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,34 +71,36 @@ private CropHintsParams( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } aspectRatios_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -99,22 +117,27 @@ private CropHintsParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsParams.class, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsParams.class, + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -125,14 +148,16 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List - getAspectRatiosList() { + public java.util.List getAspectRatiosList() { return aspectRatios_; } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -143,12 +168,15 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -159,15 +187,18 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } + private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -204,8 +234,7 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -217,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.CropHintsParams other = (com.google.cloud.vision.v1p2beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p2beta1.CropHintsParams other = + (com.google.cloud.vision.v1p2beta1.CropHintsParams) obj; - if (!getAspectRatiosList() - .equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,117 +276,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.CropHintsParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.CropHintsParams) com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.CropHintsParams.class, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p2beta1.CropHintsParams.class, + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder() @@ -365,16 +403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -405,7 +442,8 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p2beta1.CropHintsParams result = new com.google.cloud.vision.v1p2beta1.CropHintsParams(this); + com.google.cloud.vision.v1p2beta1.CropHintsParams result = + new com.google.cloud.vision.v1p2beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -420,38 +458,39 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsParams)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.CropHintsParams) other); } else { super.mergeFrom(other); return this; @@ -459,7 +498,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance()) + return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -489,7 +529,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,16 +539,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); + private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -518,14 +563,17 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ - public java.util.List - getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; + public java.util.List getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(aspectRatios_) + : aspectRatios_; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -536,12 +584,15 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -552,6 +603,7 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -559,6 +611,8 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -569,18 +623,20 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios( - int index, float value) { + public Builder setAspectRatios(int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -591,6 +647,7 @@ public Builder setAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -601,6 +658,8 @@ public Builder addAspectRatios(float value) { return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -611,18 +670,19 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; + * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios( - java.lang.Iterable values) { + public Builder addAllAspectRatios(java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -633,6 +693,7 @@ public Builder addAllAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -641,9 +702,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsParams) private static final com.google.cloud.vision.v1p2beta1.CropHintsParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.CropHintsParams(); } @@ -667,16 +728,16 @@ public static com.google.cloud.vision.v1p2beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java index 74f0fc357..4d6543639 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/CropHintsParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface CropHintsParamsOrBuilder extends +public interface CropHintsParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -18,10 +36,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -32,10 +53,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -46,6 +70,7 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java index ee8b9f8e0..461ad9774 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + colors_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.ColorInfo.parser(), extensionRegistry)); + break; } - colors_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.ColorInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -87,22 +105,27 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -114,6 +137,8 @@ public java.util.List getColorsList return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -121,11 +146,13 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,6 +164,8 @@ public int getColorsCount() { return colors_.size(); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other = + (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) obj; - if (!getColorsList() - .equals(other.getColorsList())) return false; + if (!getColorsList().equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.DominantColorsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation result = + new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance()) + return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColorsFieldBuilder() : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColorsFieldBuilder() + : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> colorsBuilder_; + com.google.cloud.vision.v1p2beta1.ColorInfo, + com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> + colorsBuilder_; /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -533,6 +584,8 @@ public java.util.List getColorsList } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -547,6 +600,8 @@ public int getColorsCount() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -561,14 +616,15 @@ public com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index) { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder setColors( - int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { + public Builder setColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +638,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,6 +658,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -620,14 +680,15 @@ public Builder addColors(com.google.cloud.vision.v1p2beta1.ColorInfo value) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder addColors( - int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { + public Builder addColors(int index, com.google.cloud.vision.v1p2beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +702,15 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public Builder addColors( - com.google.cloud.vision.v1p2beta1.ColorInfo.Builder builderForValue) { + public Builder addColors(com.google.cloud.vision.v1p2beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -659,6 +721,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -677,6 +741,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -687,8 +753,7 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -696,6 +761,8 @@ public Builder addAllColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -713,6 +780,8 @@ public Builder clearColors() { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -730,39 +799,44 @@ public Builder removeColors(int index) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder getColorsBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder getColorsBuilder(int index) { return getColorsFieldBuilder().getBuilder(index); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { if (colorsBuilder_ == null) { - return colors_.get(index); } else { + return colors_.get(index); + } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +844,8 @@ public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -777,49 +853,55 @@ public com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder( - int index) { - return getColorsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.ColorInfo.Builder addColorsBuilder(int index) { + return getColorsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p2beta1.ColorInfo, + com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ColorInfo, com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder>( - colors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + colorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.ColorInfo, + com.google.cloud.vision.v1p2beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder>( + colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation(); } @@ -843,16 +925,16 @@ public static com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java index 69e28e73e..68ef945d1 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/DominantColorsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface DominantColorsAnnotationOrBuilder extends +public interface DominantColorsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - java.util.List - getColorsList(); + java.util.List getColorsList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -25,6 +44,8 @@ public interface DominantColorsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p2beta1.ColorInfo getColors(int index); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -33,21 +54,24 @@ public interface DominantColorsAnnotationOrBuilder extends */ int getColorsCount(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p2beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java similarity index 79% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java index d7eb4eb89..2fa79c31b 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.EntityAnnotation} */ -public final class EntityAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.EntityAnnotation) EntityAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -29,16 +47,15 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,88 @@ private EntityAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 37: { - - score_ = input.readFloat(); - break; - } - case 45: { + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 53: { + locale_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - topicality_ = input.readFloat(); - break; - } - case 58: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + description_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + confidence_ = input.readFloat(); + break; } - locations_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.LocationInfo.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 53: + { + topicality_ = input.readFloat(); + break; } - properties_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Property.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + properties_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Property.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +164,7 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -149,22 +176,27 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -172,6 +204,7 @@ private EntityAnnotation(
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -180,14 +213,15 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -195,16 +229,15 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -215,12 +248,15 @@ public java.lang.String getMid() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ @java.lang.Override @@ -229,30 +265,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -263,11 +299,14 @@ public java.lang.String getLocale() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -276,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -309,11 +348,14 @@ public java.lang.String getDescription() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -324,6 +366,8 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -333,6 +377,7 @@ public float getScore() {
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -343,6 +388,8 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -352,6 +399,7 @@ public float getConfidence() {
    * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -362,12 +410,15 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -375,19 +426,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -403,6 +461,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -418,6 +478,8 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -429,11 +491,13 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -449,6 +513,8 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -464,6 +530,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -475,14 +543,15 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -495,6 +564,8 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -503,11 +574,13 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -520,6 +593,8 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -532,6 +607,8 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -540,12 +617,12 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -557,8 +634,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -605,28 +681,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -636,37 +706,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p2beta1.EntityAnnotation other = (com.google.cloud.vision.v1p2beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p2beta1.EntityAnnotation other =
+        (com.google.cloud.vision.v1p2beta1.EntityAnnotation) obj;
 
-    if (!getMid()
-        .equals(other.getMid())) return false;
-    if (!getLocale()
-        .equals(other.getLocale())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getMid().equals(other.getMid())) return false;
+    if (!getLocale().equals(other.getLocale())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(
-            other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(
-            other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly()
-          .equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList()
-        .equals(other.getLocationsList())) return false;
-    if (!getPropertiesList()
-        .equals(other.getPropertiesList())) return false;
+    if (!getLocationsList().equals(other.getLocationsList())) return false;
+    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -685,14 +747,11 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -711,117 +770,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.EntityAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.EntityAnnotation) com.google.cloud.vision.v1p2beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.EntityAnnotation.newBuilder() @@ -829,18 +897,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -878,9 +946,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -899,7 +967,8 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.EntityAnnotation result = new com.google.cloud.vision.v1p2beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p2beta1.EntityAnnotation result = + new com.google.cloud.vision.v1p2beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -938,38 +1007,39 @@ public com.google.cloud.vision.v1p2beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.EntityAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.EntityAnnotation) other); } else { super.mergeFrom(other); return this; @@ -977,7 +1047,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.EntityAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1020,9 +1091,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1046,9 +1118,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1073,7 +1146,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1082,10 +1156,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mid_ = ""; /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1093,13 +1170,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1108,6 +1185,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1115,15 +1194,14 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1131,6 +1209,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1138,20 +1218,22 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1159,15 +1241,18 @@ public Builder setMid(
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1175,16 +1260,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1192,19 +1277,21 @@ public Builder setMidBytes( private java.lang.Object locale_ = ""; /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1213,21 +1300,22 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -1235,57 +1323,64 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale( - java.lang.String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1293,18 +1388,20 @@ public Builder setLocaleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1313,20 +1410,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1334,66 +1432,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1401,37 +1509,45 @@ public float getScore() { return score_; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1441,6 +1557,7 @@ public Builder clearScore() {
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1448,6 +1565,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1457,16 +1576,19 @@ public float getConfidence() {
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1476,17 +1598,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_ ; + private float topicality_; /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1496,6 +1621,7 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -1503,6 +1629,8 @@ public float getTopicality() { return topicality_; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1512,16 +1640,19 @@ public float getTopicality() {
      * 
* * float topicality = 6; + * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1531,10 +1662,11 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; + * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1542,36 +1674,49 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1593,6 +1738,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1612,6 +1759,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1623,7 +1772,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1635,6 +1786,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1654,6 +1807,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1662,11 +1817,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1678,11 +1835,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1691,32 +1851,42 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ = new java.util.ArrayList(locations_);
+        locations_ =
+            new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder> locationsBuilder_;
+            com.google.cloud.vision.v1p2beta1.LocationInfo,
+            com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>
+        locationsBuilder_;
 
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1735,6 +1905,8 @@ public java.util.List getLocatio
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1753,6 +1925,8 @@ public int getLocationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1771,6 +1945,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1781,8 +1957,7 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(
-        int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
+    public Builder setLocations(int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1796,6 +1971,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1818,6 +1995,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1842,6 +2021,8 @@ public Builder addLocations(com.google.cloud.vision.v1p2beta1.LocationInfo value
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1852,8 +2033,7 @@ public Builder addLocations(com.google.cloud.vision.v1p2beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
+    public Builder addLocations(int index, com.google.cloud.vision.v1p2beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1867,6 +2047,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1889,6 +2071,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1911,6 +2095,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1925,8 +2111,7 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -1934,6 +2119,8 @@ public Builder addAllLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1955,6 +2142,8 @@ public Builder clearLocations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1976,6 +2165,8 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1986,11 +2177,12 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilder(int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2004,11 +2196,14 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);  } else {
+        return locations_.get(index);
+      } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2019,8 +2214,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsOrBuilderList() {
+    public java.util.List
+        getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2028,6 +2223,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2039,10 +2236,12 @@ public com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2053,12 +2252,13 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder(
-        int index) {
-      return getLocationsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilder(int index) {
+      return getLocationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p2beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2069,38 +2269,48 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsBuilderList() {
+    public java.util.List
+        getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.LocationInfo,
+            com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.LocationInfo, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder, com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>(
-                locations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        locationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.LocationInfo,
+                com.google.cloud.vision.v1p2beta1.LocationInfo.Builder,
+                com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder>(
+                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ = new java.util.ArrayList(properties_);
+        properties_ =
+            new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder> propertiesBuilder_;
+            com.google.cloud.vision.v1p2beta1.Property,
+            com.google.cloud.vision.v1p2beta1.Property.Builder,
+            com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2116,6 +2326,8 @@ public java.util.List getPropertiesL
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2131,6 +2343,8 @@ public int getPropertiesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2146,6 +2360,8 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2153,8 +2369,7 @@ public com.google.cloud.vision.v1p2beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public Builder setProperties(
-        int index, com.google.cloud.vision.v1p2beta1.Property value) {
+    public Builder setProperties(int index, com.google.cloud.vision.v1p2beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2168,6 +2383,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2187,6 +2404,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2208,6 +2427,8 @@ public Builder addProperties(com.google.cloud.vision.v1p2beta1.Property value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2215,8 +2436,7 @@ public Builder addProperties(com.google.cloud.vision.v1p2beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public Builder addProperties(
-        int index, com.google.cloud.vision.v1p2beta1.Property value) {
+    public Builder addProperties(int index, com.google.cloud.vision.v1p2beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2230,6 +2450,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2249,6 +2471,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2268,6 +2492,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2279,8 +2505,7 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2288,6 +2513,8 @@ public Builder addAllProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2306,6 +2533,8 @@ public Builder clearProperties() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2324,6 +2553,8 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2331,11 +2562,12 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2343,14 +2575,16 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder getPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);  } else {
+        return properties_.get(index);
+      } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2358,8 +2592,8 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesOrBuilderList() {
+    public java.util.List
+        getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2367,6 +2601,8 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2375,10 +2611,12 @@ public com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2386,12 +2624,13 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(
-        int index) {
-      return getPropertiesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(int index) {
+      return getPropertiesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p2beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2399,27 +2638,30 @@ public com.google.cloud.vision.v1p2beta1.Property.Builder addPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesBuilderList() {
+    public java.util.List
+        getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.Property,
+            com.google.cloud.vision.v1p2beta1.Property.Builder,
+            com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Property, com.google.cloud.vision.v1p2beta1.Property.Builder, com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>(
-                properties_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        propertiesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.Property,
+                com.google.cloud.vision.v1p2beta1.Property.Builder,
+                com.google.cloud.vision.v1p2beta1.PropertyOrBuilder>(
+                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2429,12 +2671,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p2beta1.EntityAnnotation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.EntityAnnotation();
   }
@@ -2443,16 +2685,16 @@ public static com.google.cloud.vision.v1p2beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public EntityAnnotation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new EntityAnnotation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public EntityAnnotation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new EntityAnnotation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2467,6 +2709,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
index 5d6d50377..a74d6b734 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/EntityAnnotationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
-public interface EntityAnnotationOrBuilder extends
+public interface EntityAnnotationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -15,10 +33,13 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -26,64 +47,79 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ java.lang.String getLocale(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -93,11 +129,14 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -107,31 +146,40 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float topicality = 6; + * * @return The topicality. */ float getTopicality(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -142,6 +190,8 @@ public interface EntityAnnotationOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -152,9 +202,10 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  java.util.List 
-      getLocationsList();
+  java.util.List getLocationsList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -167,6 +218,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   com.google.cloud.vision.v1p2beta1.LocationInfo getLocations(int index);
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -179,6 +232,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   int getLocationsCount();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -189,9 +244,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  java.util.List 
+  java.util.List
       getLocationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -202,10 +259,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -213,9 +271,10 @@ com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  java.util.List 
-      getPropertiesList();
+  java.util.List getPropertiesList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -225,6 +284,8 @@ com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   com.google.cloud.vision.v1p2beta1.Property getProperties(int index);
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -234,6 +295,8 @@ com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -241,9 +304,11 @@ com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  java.util.List 
+  java.util.List
       getPropertiesOrBuilderList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -251,6 +316,5 @@ com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p2beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p2beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
similarity index 77%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
index d82c429d0..e414cdc95 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
+ *
+ *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation} */ -public final class FaceAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.FaceAnnotation) FaceAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -32,16 +50,15 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,115 +78,133 @@ private FaceAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); + } + fdBoundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); + break; } - fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark>(); + mutable_bitField0_ |= 0x00000001; + } + landmarks_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.parser(), + extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + rollAngle_ = input.readFloat(); + break; } - landmarks_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); - break; - } - case 37: { - - rollAngle_ = input.readFloat(); - break; - } - case 45: { - - panAngle_ = input.readFloat(); - break; - } - case 53: { - - tiltAngle_ = input.readFloat(); - break; - } - case 61: { - - detectionConfidence_ = input.readFloat(); - break; - } - case 69: { - - landmarkingConfidence_ = input.readFloat(); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 45: + { + panAngle_ = input.readFloat(); + break; + } + case 53: + { + tiltAngle_ = input.readFloat(); + break; + } + case 61: + { + detectionConfidence_ = input.readFloat(); + break; + } + case 69: + { + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: + { + int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + joyLikelihood_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - sorrowLikelihood_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + sorrowLikelihood_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - angerLikelihood_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + angerLikelihood_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - surpriseLikelihood_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); + surpriseLikelihood_ = rawValue; + break; + } + case 104: + { + int rawValue = input.readEnum(); - underExposedLikelihood_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); + underExposedLikelihood_ = rawValue; + break; + } + case 112: + { + int rawValue = input.readEnum(); - blurredLikelihood_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); + blurredLikelihood_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + headwearLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -177,8 +212,7 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -187,61 +221,79 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder extends + public interface LandmarkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return The position. */ com.google.cloud.vision.v1p2beta1.Position getPosition(); /** + * + * *
      * Face landmark position.
      * 
@@ -251,37 +303,39 @@ public interface LandmarkOrBuilder extends com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder(); } /** + * + * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -300,32 +354,36 @@ private Landmark( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.vision.v1p2beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); + type_ = rawValue; + break; } - position_ = input.readMessage(com.google.cloud.vision.v1p2beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p2beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -333,27 +391,31 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); } /** + * + * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -363,9 +425,10 @@ private Landmark(
      *
      * Protobuf enum {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -374,6 +437,8 @@ public enum Type */ UNKNOWN_LANDMARK(0), /** + * + * *
        * Left eye.
        * 
@@ -382,6 +447,8 @@ public enum Type */ LEFT_EYE(1), /** + * + * *
        * Right eye.
        * 
@@ -390,6 +457,8 @@ public enum Type */ RIGHT_EYE(2), /** + * + * *
        * Left of left eyebrow.
        * 
@@ -398,6 +467,8 @@ public enum Type */ LEFT_OF_LEFT_EYEBROW(3), /** + * + * *
        * Right of left eyebrow.
        * 
@@ -406,6 +477,8 @@ public enum Type */ RIGHT_OF_LEFT_EYEBROW(4), /** + * + * *
        * Left of right eyebrow.
        * 
@@ -414,6 +487,8 @@ public enum Type */ LEFT_OF_RIGHT_EYEBROW(5), /** + * + * *
        * Right of right eyebrow.
        * 
@@ -422,6 +497,8 @@ public enum Type */ RIGHT_OF_RIGHT_EYEBROW(6), /** + * + * *
        * Midpoint between eyes.
        * 
@@ -430,6 +507,8 @@ public enum Type */ MIDPOINT_BETWEEN_EYES(7), /** + * + * *
        * Nose tip.
        * 
@@ -438,6 +517,8 @@ public enum Type */ NOSE_TIP(8), /** + * + * *
        * Upper lip.
        * 
@@ -446,6 +527,8 @@ public enum Type */ UPPER_LIP(9), /** + * + * *
        * Lower lip.
        * 
@@ -454,6 +537,8 @@ public enum Type */ LOWER_LIP(10), /** + * + * *
        * Mouth left.
        * 
@@ -462,6 +547,8 @@ public enum Type */ MOUTH_LEFT(11), /** + * + * *
        * Mouth right.
        * 
@@ -470,6 +557,8 @@ public enum Type */ MOUTH_RIGHT(12), /** + * + * *
        * Mouth center.
        * 
@@ -478,6 +567,8 @@ public enum Type */ MOUTH_CENTER(13), /** + * + * *
        * Nose, bottom right.
        * 
@@ -486,6 +577,8 @@ public enum Type */ NOSE_BOTTOM_RIGHT(14), /** + * + * *
        * Nose, bottom left.
        * 
@@ -494,6 +587,8 @@ public enum Type */ NOSE_BOTTOM_LEFT(15), /** + * + * *
        * Nose, bottom center.
        * 
@@ -502,6 +597,8 @@ public enum Type */ NOSE_BOTTOM_CENTER(16), /** + * + * *
        * Left eye, top boundary.
        * 
@@ -510,6 +607,8 @@ public enum Type */ LEFT_EYE_TOP_BOUNDARY(17), /** + * + * *
        * Left eye, right corner.
        * 
@@ -518,6 +617,8 @@ public enum Type */ LEFT_EYE_RIGHT_CORNER(18), /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -526,6 +627,8 @@ public enum Type */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** + * + * *
        * Left eye, left corner.
        * 
@@ -534,6 +637,8 @@ public enum Type */ LEFT_EYE_LEFT_CORNER(20), /** + * + * *
        * Right eye, top boundary.
        * 
@@ -542,6 +647,8 @@ public enum Type */ RIGHT_EYE_TOP_BOUNDARY(21), /** + * + * *
        * Right eye, right corner.
        * 
@@ -550,6 +657,8 @@ public enum Type */ RIGHT_EYE_RIGHT_CORNER(22), /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -558,6 +667,8 @@ public enum Type */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** + * + * *
        * Right eye, left corner.
        * 
@@ -566,6 +677,8 @@ public enum Type */ RIGHT_EYE_LEFT_CORNER(24), /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -574,6 +687,8 @@ public enum Type */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -582,6 +697,8 @@ public enum Type */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** + * + * *
        * Left ear tragion.
        * 
@@ -590,6 +707,8 @@ public enum Type */ LEFT_EAR_TRAGION(27), /** + * + * *
        * Right ear tragion.
        * 
@@ -598,6 +717,8 @@ public enum Type */ RIGHT_EAR_TRAGION(28), /** + * + * *
        * Left eye pupil.
        * 
@@ -606,6 +727,8 @@ public enum Type */ LEFT_EYE_PUPIL(29), /** + * + * *
        * Right eye pupil.
        * 
@@ -614,6 +737,8 @@ public enum Type */ RIGHT_EYE_PUPIL(30), /** + * + * *
        * Forehead glabella.
        * 
@@ -622,6 +747,8 @@ public enum Type */ FOREHEAD_GLABELLA(31), /** + * + * *
        * Chin gnathion.
        * 
@@ -630,6 +757,8 @@ public enum Type */ CHIN_GNATHION(32), /** + * + * *
        * Chin left gonion.
        * 
@@ -638,6 +767,8 @@ public enum Type */ CHIN_LEFT_GONION(33), /** + * + * *
        * Chin right gonion.
        * 
@@ -649,6 +780,8 @@ public enum Type ; /** + * + * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -657,6 +790,8 @@ public enum Type */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** + * + * *
        * Left eye.
        * 
@@ -665,6 +800,8 @@ public enum Type */ public static final int LEFT_EYE_VALUE = 1; /** + * + * *
        * Right eye.
        * 
@@ -673,6 +810,8 @@ public enum Type */ public static final int RIGHT_EYE_VALUE = 2; /** + * + * *
        * Left of left eyebrow.
        * 
@@ -681,6 +820,8 @@ public enum Type */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** + * + * *
        * Right of left eyebrow.
        * 
@@ -689,6 +830,8 @@ public enum Type */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** + * + * *
        * Left of right eyebrow.
        * 
@@ -697,6 +840,8 @@ public enum Type */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** + * + * *
        * Right of right eyebrow.
        * 
@@ -705,6 +850,8 @@ public enum Type */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** + * + * *
        * Midpoint between eyes.
        * 
@@ -713,6 +860,8 @@ public enum Type */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** + * + * *
        * Nose tip.
        * 
@@ -721,6 +870,8 @@ public enum Type */ public static final int NOSE_TIP_VALUE = 8; /** + * + * *
        * Upper lip.
        * 
@@ -729,6 +880,8 @@ public enum Type */ public static final int UPPER_LIP_VALUE = 9; /** + * + * *
        * Lower lip.
        * 
@@ -737,6 +890,8 @@ public enum Type */ public static final int LOWER_LIP_VALUE = 10; /** + * + * *
        * Mouth left.
        * 
@@ -745,6 +900,8 @@ public enum Type */ public static final int MOUTH_LEFT_VALUE = 11; /** + * + * *
        * Mouth right.
        * 
@@ -753,6 +910,8 @@ public enum Type */ public static final int MOUTH_RIGHT_VALUE = 12; /** + * + * *
        * Mouth center.
        * 
@@ -761,6 +920,8 @@ public enum Type */ public static final int MOUTH_CENTER_VALUE = 13; /** + * + * *
        * Nose, bottom right.
        * 
@@ -769,6 +930,8 @@ public enum Type */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** + * + * *
        * Nose, bottom left.
        * 
@@ -777,6 +940,8 @@ public enum Type */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** + * + * *
        * Nose, bottom center.
        * 
@@ -785,6 +950,8 @@ public enum Type */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** + * + * *
        * Left eye, top boundary.
        * 
@@ -793,6 +960,8 @@ public enum Type */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** + * + * *
        * Left eye, right corner.
        * 
@@ -801,6 +970,8 @@ public enum Type */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -809,6 +980,8 @@ public enum Type */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** + * + * *
        * Left eye, left corner.
        * 
@@ -817,6 +990,8 @@ public enum Type */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** + * + * *
        * Right eye, top boundary.
        * 
@@ -825,6 +1000,8 @@ public enum Type */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** + * + * *
        * Right eye, right corner.
        * 
@@ -833,6 +1010,8 @@ public enum Type */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -841,6 +1020,8 @@ public enum Type */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** + * + * *
        * Right eye, left corner.
        * 
@@ -849,6 +1030,8 @@ public enum Type */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -857,6 +1040,8 @@ public enum Type */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -865,6 +1050,8 @@ public enum Type */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** + * + * *
        * Left ear tragion.
        * 
@@ -873,6 +1060,8 @@ public enum Type */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** + * + * *
        * Right ear tragion.
        * 
@@ -881,6 +1070,8 @@ public enum Type */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** + * + * *
        * Left eye pupil.
        * 
@@ -889,6 +1080,8 @@ public enum Type */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** + * + * *
        * Right eye pupil.
        * 
@@ -897,6 +1090,8 @@ public enum Type */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** + * + * *
        * Forehead glabella.
        * 
@@ -905,6 +1100,8 @@ public enum Type */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** + * + * *
        * Chin gnathion.
        * 
@@ -913,6 +1110,8 @@ public enum Type */ public static final int CHIN_GNATHION_VALUE = 32; /** + * + * *
        * Chin left gonion.
        * 
@@ -921,6 +1120,8 @@ public enum Type */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** + * + * *
        * Chin right gonion.
        * 
@@ -929,7 +1130,6 @@ public enum Type */ public static final int CHIN_RIGHT_GONION_VALUE = 34; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -954,81 +1154,115 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return UNKNOWN_LANDMARK; - case 1: return LEFT_EYE; - case 2: return RIGHT_EYE; - case 3: return LEFT_OF_LEFT_EYEBROW; - case 4: return RIGHT_OF_LEFT_EYEBROW; - case 5: return LEFT_OF_RIGHT_EYEBROW; - case 6: return RIGHT_OF_RIGHT_EYEBROW; - case 7: return MIDPOINT_BETWEEN_EYES; - case 8: return NOSE_TIP; - case 9: return UPPER_LIP; - case 10: return LOWER_LIP; - case 11: return MOUTH_LEFT; - case 12: return MOUTH_RIGHT; - case 13: return MOUTH_CENTER; - case 14: return NOSE_BOTTOM_RIGHT; - case 15: return NOSE_BOTTOM_LEFT; - case 16: return NOSE_BOTTOM_CENTER; - case 17: return LEFT_EYE_TOP_BOUNDARY; - case 18: return LEFT_EYE_RIGHT_CORNER; - case 19: return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: return LEFT_EYE_LEFT_CORNER; - case 21: return RIGHT_EYE_TOP_BOUNDARY; - case 22: return RIGHT_EYE_RIGHT_CORNER; - case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: return RIGHT_EYE_LEFT_CORNER; - case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: return LEFT_EAR_TRAGION; - case 28: return RIGHT_EAR_TRAGION; - case 29: return LEFT_EYE_PUPIL; - case 30: return RIGHT_EYE_PUPIL; - case 31: return FOREHEAD_GLABELLA; - case 32: return CHIN_GNATHION; - case 33: return CHIN_LEFT_GONION; - case 34: return CHIN_RIGHT_GONION; - default: return null; + case 0: + return UNKNOWN_LANDMARK; + case 1: + return LEFT_EYE; + case 2: + return RIGHT_EYE; + case 3: + return LEFT_OF_LEFT_EYEBROW; + case 4: + return RIGHT_OF_LEFT_EYEBROW; + case 5: + return LEFT_OF_RIGHT_EYEBROW; + case 6: + return RIGHT_OF_RIGHT_EYEBROW; + case 7: + return MIDPOINT_BETWEEN_EYES; + case 8: + return NOSE_TIP; + case 9: + return UPPER_LIP; + case 10: + return LOWER_LIP; + case 11: + return MOUTH_LEFT; + case 12: + return MOUTH_RIGHT; + case 13: + return MOUTH_CENTER; + case 14: + return NOSE_BOTTOM_RIGHT; + case 15: + return NOSE_BOTTOM_LEFT; + case 16: + return NOSE_BOTTOM_CENTER; + case 17: + return LEFT_EYE_TOP_BOUNDARY; + case 18: + return LEFT_EYE_RIGHT_CORNER; + case 19: + return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: + return LEFT_EYE_LEFT_CORNER; + case 21: + return RIGHT_EYE_TOP_BOUNDARY; + case 22: + return RIGHT_EYE_RIGHT_CORNER; + case 23: + return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: + return RIGHT_EYE_LEFT_CORNER; + case 25: + return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: + return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: + return LEFT_EAR_TRAGION; + case 28: + return RIGHT_EAR_TRAGION; + case 29: + return LEFT_EYE_PUPIL; + case 30: + return RIGHT_EYE_PUPIL; + case 31: + return FOREHEAD_GLABELLA; + case 32: + return CHIN_GNATHION; + case 33: + return CHIN_LEFT_GONION; + case 34: + return CHIN_RIGHT_GONION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1048,38 +1282,52 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.Position position_; /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return Whether the position field is set. */ @java.lang.Override @@ -1087,18 +1335,25 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Position getPosition() { - return position_ == null ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() + : position_; } /** + * + * *
      * Face landmark position.
      * 
@@ -1111,6 +1366,7 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1122,9 +1378,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1139,13 +1396,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1155,18 +1412,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other = + (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1191,87 +1448,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1281,27 +1545,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.newBuilder() @@ -1309,16 +1578,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1334,9 +1602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1355,7 +1623,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark result = + new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1370,38 +1639,41 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) other); } else { super.mergeFrom(other); return this; @@ -1409,7 +1681,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1435,7 +1708,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1447,51 +1721,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1499,21 +1789,24 @@ public Builder setType(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1521,34 +1814,47 @@ public Builder clearType() { private com.google.cloud.vision.v1p2beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder> positionBuilder_; + com.google.cloud.vision.v1p2beta1.Position, + com.google.cloud.vision.v1p2beta1.Position.Builder, + com.google.cloud.vision.v1p2beta1.PositionOrBuilder> + positionBuilder_; /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p2beta1.Position position = 4; + * * @return The position. */ public com.google.cloud.vision.v1p2beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * Face landmark position.
        * 
@@ -1569,6 +1875,8 @@ public Builder setPosition(com.google.cloud.vision.v1p2beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1587,6 +1895,8 @@ public Builder setPosition( return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1597,7 +1907,9 @@ public Builder mergePosition(com.google.cloud.vision.v1p2beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p2beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.Position.newBuilder(position_) + .mergeFrom(value) + .buildPartial(); } else { position_ = value; } @@ -1609,6 +1921,8 @@ public Builder mergePosition(com.google.cloud.vision.v1p2beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1627,6 +1941,8 @@ public Builder clearPosition() { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1634,11 +1950,13 @@ public Builder clearPosition() { * .google.cloud.vision.v1p2beta1.Position position = 4; */ public com.google.cloud.vision.v1p2beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Face landmark position.
        * 
@@ -1649,11 +1967,14 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p2beta1.Position.getDefaultInstance() + : position_; } } /** + * + * *
        * Face landmark position.
        * 
@@ -1661,18 +1982,22 @@ public com.google.cloud.vision.v1p2beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p2beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder> + com.google.cloud.vision.v1p2beta1.Position, + com.google.cloud.vision.v1p2beta1.Position.Builder, + com.google.cloud.vision.v1p2beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Position, com.google.cloud.vision.v1p2beta1.Position.Builder, com.google.cloud.vision.v1p2beta1.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Position, + com.google.cloud.vision.v1p2beta1.Position.Builder, + com.google.cloud.vision.v1p2beta1.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1685,12 +2010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark(); } @@ -1699,16 +2024,16 @@ public static com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1723,12 +2048,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1740,6 +2066,7 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -1747,6 +2074,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1758,13 +2087,18 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1785,6 +2119,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p2beta1.BoundingPoly fdBoundingPoly_;
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1795,6 +2131,7 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -1802,6 +2139,8 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1812,13 +2151,18 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1838,6 +2182,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
@@ -1845,10 +2191,13 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1856,11 +2205,14 @@ public java.util.List * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1872,6 +2224,8 @@ public int getLandmarksCount() { return landmarks_.size(); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1883,6 +2237,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1898,6 +2254,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -1905,6 +2263,7 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -1915,6 +2274,8 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -1922,6 +2283,7 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -1932,12 +2294,15 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -1948,11 +2313,14 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -1963,11 +2331,14 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -1978,193 +2349,257 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2176,8 +2611,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2214,7 +2648,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (surpriseLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2233,64 +2668,50 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2300,40 +2721,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.FaceAnnotation other = (com.google.cloud.vision.v1p2beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p2beta1.FaceAnnotation other = + (com.google.cloud.vision.v1p2beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly() - .equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList() - .equals(other.getLandmarksList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits( - other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits( - other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits( - other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits( - other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits( - other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2365,20 +2779,15 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2398,118 +2807,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.FaceAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.FaceAnnotation) com.google.cloud.vision.v1p2beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p2beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.FaceAnnotation.newBuilder() @@ -2517,17 +2935,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2577,9 +2995,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -2598,7 +3016,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p2beta1.FaceAnnotation result = new com.google.cloud.vision.v1p2beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p2beta1.FaceAnnotation result = + new com.google.cloud.vision.v1p2beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -2639,38 +3058,39 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.FaceAnnotation) other); } else { super.mergeFrom(other); return this; @@ -2678,7 +3098,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.FaceAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -2703,9 +3124,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarksFieldBuilder() : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -2775,12 +3197,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2792,12 +3220,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2809,16 +3240,21 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2845,6 +3281,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2869,6 +3307,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2885,7 +3325,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -2897,6 +3339,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2921,6 +3365,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2934,11 +3380,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2955,11 +3403,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2973,14 +3424,17 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -2988,8 +3442,13 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p2beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
+        fdBoundingPolyBuilder_;
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3000,12 +3459,15 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3016,16 +3478,21 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3051,6 +3518,8 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3074,6 +3543,8 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3089,7 +3560,9 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3101,6 +3574,8 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p2beta1.BoundingPol
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3124,6 +3599,8 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3136,11 +3613,13 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-      
+
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3156,11 +3635,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
+        return fdBoundingPoly_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : fdBoundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3173,39 +3655,51 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        fdBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(), getParentForChildren(), isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ = new java.util.ArrayList(landmarks_);
+        landmarks_ =
+            new java.util.ArrayList(
+                landmarks_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
+            com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark,
+            com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder,
+            com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>
+        landmarksBuilder_;
 
     /**
+     *
+     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3213,6 +3707,8 @@ public java.util.List } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3227,6 +3723,8 @@ public int getLandmarksCount() { } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3241,6 +3739,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(in } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3262,6 +3762,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3269,7 +3771,8 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3280,6 +3783,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3300,6 +3805,8 @@ public Builder addLandmarks(com.google.cloud.vision.v1p2beta1.FaceAnnotation.Lan return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3321,6 +3828,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3339,6 +3848,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3346,7 +3857,8 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3357,6 +3869,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3364,11 +3878,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3376,6 +3890,8 @@ public Builder addAllLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3393,6 +3909,8 @@ public Builder clearLandmarks() { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3410,6 +3928,8 @@ public Builder removeLandmarks(int index) { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3421,6 +3941,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3430,19 +3952,23 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); } else { + return landmarks_.get(index); + } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3450,6 +3976,8 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3457,10 +3985,13 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3469,37 +4000,46 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_ ; + private float rollAngle_; /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3507,6 +4047,7 @@ public com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -3514,6 +4055,8 @@ public float getRollAngle() { return rollAngle_; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3521,16 +4064,19 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; + * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3538,17 +4084,20 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; + * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_ ; + private float panAngle_; /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3556,6 +4105,7 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -3563,6 +4113,8 @@ public float getPanAngle() { return panAngle_; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3570,16 +4122,19 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; + * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3587,23 +4142,27 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; + * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_ ; + private float tiltAngle_; /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -3611,44 +4170,53 @@ public float getTiltAngle() { return tiltAngle_; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_ ; + private float detectionConfidence_; /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -3656,42 +4224,51 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_ ; + private float landmarkingConfidence_; /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -3699,30 +4276,36 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -3730,51 +4313,65 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -3782,21 +4379,24 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -3804,51 +4404,65 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -3856,21 +4470,24 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -3878,51 +4495,65 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -3930,21 +4561,24 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -3952,51 +4586,65 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4004,21 +4652,24 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p2beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4026,51 +4677,65 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4078,21 +4743,24 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p2beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4100,51 +4768,65 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4152,21 +4834,24 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p2beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4174,51 +4859,65 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4226,28 +4925,31 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p2beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4257,12 +4959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p2beta1.FaceAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.FaceAnnotation(); } @@ -4271,16 +4973,16 @@ public static com.google.cloud.vision.v1p2beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4295,6 +4997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java index 84e2c7755..516577ebe 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FaceAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface FaceAnnotationOrBuilder extends +public interface FaceAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -19,10 +37,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -34,10 +55,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -53,6 +77,8 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -63,10 +89,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -77,10 +106,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -95,15 +127,18 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List - getLandmarksList(); + java.util.List getLandmarksList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -112,6 +147,8 @@ public interface FaceAnnotationOrBuilder extends */ com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark getLandmarks(int index); /** + * + * *
    * Detected face landmarks.
    * 
@@ -120,15 +157,19 @@ public interface FaceAnnotationOrBuilder extends */ int getLandmarksCount(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -139,6 +180,8 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -146,11 +189,14 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ float getRollAngle(); /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -158,170 +204,222 @@ com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ float getPanAngle(); /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ float getTiltAngle(); /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ float getDetectionConfidence(); /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getJoyLikelihood(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getSorrowLikelihood(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getAngerLikelihood(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getSurpriseLikelihood(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getUnderExposedLikelihood(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getBlurredLikelihood(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p2beta1.Likelihood getHeadwearLikelihood(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java index 9c2050f8a..9b70f5a74 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Feature}
  */
-public final class Feature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Feature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Feature)
     FeatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -28,16 +46,15 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,30 +73,32 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            maxResults_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              maxResults_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            model_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              model_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,36 +106,41 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Feature.class, com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Feature.class,
+            com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.Feature.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified feature type.
      * 
@@ -125,6 +149,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Run face detection.
      * 
@@ -133,6 +159,8 @@ public enum Type */ FACE_DETECTION(1), /** + * + * *
      * Run landmark detection.
      * 
@@ -141,6 +169,8 @@ public enum Type */ LANDMARK_DETECTION(2), /** + * + * *
      * Run logo detection.
      * 
@@ -149,6 +179,8 @@ public enum Type */ LOGO_DETECTION(3), /** + * + * *
      * Run label detection.
      * 
@@ -157,6 +189,8 @@ public enum Type */ LABEL_DETECTION(4), /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -167,6 +201,8 @@ public enum Type
      */
     TEXT_DETECTION(5),
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -176,6 +212,8 @@ public enum Type
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -185,6 +223,8 @@ public enum Type
      */
     SAFE_SEARCH_DETECTION(6),
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -194,6 +234,8 @@ public enum Type
      */
     IMAGE_PROPERTIES(7),
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -202,6 +244,8 @@ public enum Type */ CROP_HINTS(9), /** + * + * *
      * Run web detection.
      * 
@@ -213,6 +257,8 @@ public enum Type ; /** + * + * *
      * Unspecified feature type.
      * 
@@ -221,6 +267,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Run face detection.
      * 
@@ -229,6 +277,8 @@ public enum Type */ public static final int FACE_DETECTION_VALUE = 1; /** + * + * *
      * Run landmark detection.
      * 
@@ -237,6 +287,8 @@ public enum Type */ public static final int LANDMARK_DETECTION_VALUE = 2; /** + * + * *
      * Run logo detection.
      * 
@@ -245,6 +297,8 @@ public enum Type */ public static final int LOGO_DETECTION_VALUE = 3; /** + * + * *
      * Run label detection.
      * 
@@ -253,6 +307,8 @@ public enum Type */ public static final int LABEL_DETECTION_VALUE = 4; /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -263,6 +319,8 @@ public enum Type
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -272,6 +330,8 @@ public enum Type
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -281,6 +341,8 @@ public enum Type
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -290,6 +352,8 @@ public enum Type
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -298,6 +362,8 @@ public enum Type */ public static final int CROP_HINTS_VALUE = 9; /** + * + * *
      * Run web detection.
      * 
@@ -306,7 +372,6 @@ public enum Type */ public static final int WEB_DETECTION_VALUE = 10; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -331,57 +396,65 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return FACE_DETECTION; - case 2: return LANDMARK_DETECTION; - case 3: return LOGO_DETECTION; - case 4: return LABEL_DETECTION; - case 5: return TEXT_DETECTION; - case 11: return DOCUMENT_TEXT_DETECTION; - case 6: return SAFE_SEARCH_DETECTION; - case 7: return IMAGE_PROPERTIES; - case 9: return CROP_HINTS; - case 10: return WEB_DETECTION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return FACE_DETECTION; + case 2: + return LANDMARK_DETECTION; + case 3: + return LOGO_DETECTION; + case 4: + return LABEL_DETECTION; + case 5: + return TEXT_DETECTION; + case 11: + return DOCUMENT_TEXT_DETECTION; + case 6: + return SAFE_SEARCH_DETECTION; + case 7: + return IMAGE_PROPERTIES; + case 9: + return CROP_HINTS; + case 10: + return WEB_DETECTION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p2beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,39 +474,51 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Feature.Type result = com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p2beta1.Feature.Type result = + com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p2beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -444,6 +529,8 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -451,6 +538,7 @@ public int getMaxResults() {
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -459,14 +547,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -474,16 +563,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -492,6 +580,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -503,8 +592,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p2beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -524,12 +612,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p2beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -542,18 +628,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Feature other = (com.google.cloud.vision.v1p2beta1.Feature) obj; + com.google.cloud.vision.v1p2beta1.Feature other = + (com.google.cloud.vision.v1p2beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getModel() - .equals(other.getModel())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getModel().equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -576,97 +661,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -675,21 +767,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Feature}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Feature)
       com.google.cloud.vision.v1p2beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Feature.class, com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Feature.class,
+              com.google.cloud.vision.v1p2beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Feature.newBuilder()
@@ -697,16 +791,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -720,9 +813,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -741,7 +834,8 @@ public com.google.cloud.vision.v1p2beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Feature result = new com.google.cloud.vision.v1p2beta1.Feature(this);
+      com.google.cloud.vision.v1p2beta1.Feature result =
+          new com.google.cloud.vision.v1p2beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -753,38 +847,39 @@ public com.google.cloud.vision.v1p2beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Feature)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Feature) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -834,51 +929,65 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Feature.Type result = com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p2beta1.Feature.Type result = + com.google.cloud.vision.v1p2beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p2beta1.Feature.Type.UNRECOGNIZED : result; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -886,34 +995,40 @@ public Builder setType(com.google.cloud.vision.v1p2beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -921,32 +1036,38 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -954,6 +1075,8 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -961,13 +1084,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -976,6 +1099,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -983,15 +1108,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -999,6 +1123,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1006,20 +1132,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1027,15 +1155,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1043,23 +1174,23 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Feature) private static final com.google.cloud.vision.v1p2beta1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Feature(); } @@ -1083,16 +1214,16 @@ public static com.google.cloud.vision.v1p2beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,6 +1238,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java index 92349771e..0eed6b0ec 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java @@ -1,43 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p2beta1.Feature.Type type = 1; + * * @return The type. */ com.google.cloud.vision.v1p2beta1.Feature.Type getType(); /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -45,10 +72,13 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -56,8 +86,8 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java similarity index 75% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java index 45689a4ff..f1a74935f 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsDestination.class, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsDestination.class, + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -112,6 +134,7 @@ private GcsDestination(
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -120,14 +143,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -144,16 +168,15 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -162,6 +185,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -198,15 +221,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.GcsDestination other = (com.google.cloud.vision.v1p2beta1.GcsDestination) obj; + com.google.cloud.vision.v1p2beta1.GcsDestination other = + (com.google.cloud.vision.v1p2beta1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,118 +248,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.GcsDestination) com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsDestination.class, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsDestination.class, + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder() @@ -344,16 +376,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override @@ -384,7 +415,8 @@ public com.google.cloud.vision.v1p2beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p2beta1.GcsDestination result = new com.google.cloud.vision.v1p2beta1.GcsDestination(this); + com.google.cloud.vision.v1p2beta1.GcsDestination result = + new com.google.cloud.vision.v1p2beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -394,38 +426,39 @@ public com.google.cloud.vision.v1p2beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -433,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -469,6 +503,8 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -485,13 +521,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -500,6 +536,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -516,15 +554,14 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -532,6 +569,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -548,20 +587,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -578,15 +619,18 @@ public Builder setUri(
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -603,23 +647,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,12 +673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsDestination) private static final com.google.cloud.vision.v1p2beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.GcsDestination(); } @@ -643,16 +687,16 @@ public static com.google.cloud.vision.v1p2beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java index 43add1f4d..9d30f494e 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -24,10 +42,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -44,8 +65,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java similarity index 70% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java index 35f4b9c6f..fce20fbc2 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsSource.class, com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsSource.class, + com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.GcsSource other = (com.google.cloud.vision.v1p2beta1.GcsSource) obj; + com.google.cloud.vision.v1p2beta1.GcsSource other = + (com.google.cloud.vision.v1p2beta1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.GcsSource) com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.GcsSource.class, com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p2beta1.GcsSource.class, + com.google.cloud.vision.v1p2beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.cloud.vision.v1p2beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p2beta1.GcsSource result = new com.google.cloud.vision.v1p2beta1.GcsSource(this); + com.google.cloud.vision.v1p2beta1.GcsSource result = + new com.google.cloud.vision.v1p2beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.vision.v1p2beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsSource)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -449,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +505,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +528,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a GCS
      * object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsSource) private static final com.google.cloud.vision.v1p2beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.GcsSource(); } @@ -573,16 +616,16 @@ public static com.google.cloud.vision.v1p2beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java index 5a6aa6e02..553bb3a7b 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GcsSourceOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a GCS
    * object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java new file mode 100644 index 000000000..be6983983 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/GeometryProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class GeometryProto { + private GeometryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p2beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p2beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + + "d.vision.v1p2beta1.Vertex\022L\n\023normalized_" + + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + + "2beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B|\n!com.goog" + + "le.cloud.vision.v1p2beta1B\rGeometryProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", "NormalizedVertices", + }); + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Position_descriptor, + new java.lang.String[] { + "X", "Y", "Z", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java index c69354d21..3bca324b5 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,34 @@ private Image( case 0: done = true; break; - case 10: { - - content_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + case 10: + { + content_ = input.readBytes(); + break; } - source_ = input.readMessage(com.google.cloud.vision.v1p2beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p2beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +105,33 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Image.class, com.google.cloud.vision.v1p2beta1.Image.Builder.class); + com.google.cloud.vision.v1p2beta1.Image.class, + com.google.cloud.vision.v1p2beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -115,6 +139,7 @@ private Image(
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -125,6 +150,8 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.ImageSource source_; /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -132,6 +159,7 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ @java.lang.Override @@ -139,6 +167,8 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -146,13 +176,18 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageSource getSource() { - return source_ == null ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() + : source_; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -167,6 +202,7 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -178,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -196,12 +231,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,19 +244,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p2beta1.Image other = (com.google.cloud.vision.v1p2beta1.Image) obj;
 
-    if (!getContent()
-        .equals(other.getContent())) return false;
+    if (!getContent().equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -247,118 +278,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p2beta1.Image parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p2beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Image) com.google.cloud.vision.v1p2beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Image.class, com.google.cloud.vision.v1p2beta1.Image.Builder.class); + com.google.cloud.vision.v1p2beta1.Image.class, + com.google.cloud.vision.v1p2beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Image.newBuilder() @@ -366,16 +406,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; } @java.lang.Override @@ -412,7 +451,8 @@ public com.google.cloud.vision.v1p2beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Image buildPartial() { - com.google.cloud.vision.v1p2beta1.Image result = new com.google.cloud.vision.v1p2beta1.Image(this); + com.google.cloud.vision.v1p2beta1.Image result = + new com.google.cloud.vision.v1p2beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -427,38 +467,39 @@ public com.google.cloud.vision.v1p2beta1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Image)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Image) other); } else { super.mergeFrom(other); return this; @@ -504,6 +545,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -511,6 +554,7 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -518,6 +562,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -525,19 +571,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -545,10 +594,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -556,8 +606,13 @@ public Builder clearContent() { private com.google.cloud.vision.v1p2beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> sourceBuilder_; + com.google.cloud.vision.v1p2beta1.ImageSource, + com.google.cloud.vision.v1p2beta1.ImageSource.Builder, + com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -565,12 +620,15 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -578,16 +636,21 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return The source. */ public com.google.cloud.vision.v1p2beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -610,6 +673,8 @@ public Builder setSource(com.google.cloud.vision.v1p2beta1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -630,6 +695,8 @@ public Builder setSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -642,7 +709,9 @@ public Builder mergeSource(com.google.cloud.vision.v1p2beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-            com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder(source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -654,6 +723,8 @@ public Builder mergeSource(com.google.cloud.vision.v1p2beta1.ImageSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -674,6 +745,8 @@ public Builder clearSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -683,11 +756,13 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p2beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p2beta1.ImageSource.Builder getSourceBuilder() {
-      
+
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -700,11 +775,14 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null ?
-            com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance() : source_;
+        return source_ == null
+            ? com.google.cloud.vision.v1p2beta1.ImageSource.getDefaultInstance()
+            : source_;
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -714,21 +792,24 @@ public com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p2beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.ImageSource,
+            com.google.cloud.vision.v1p2beta1.ImageSource.Builder,
+            com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.ImageSource, com.google.cloud.vision.v1p2beta1.ImageSource.Builder, com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>(
-                getSource(),
-                getParentForChildren(),
-                isClean());
+        sourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.ImageSource,
+                com.google.cloud.vision.v1p2beta1.ImageSource.Builder,
+                com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder>(
+                getSource(), getParentForChildren(), isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -738,12 +819,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Image)
   private static final com.google.cloud.vision.v1p2beta1.Image DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Image();
   }
@@ -752,16 +833,16 @@ public static com.google.cloud.vision.v1p2beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Image parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Image(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Image parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Image(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -776,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p2beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
similarity index 70%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
index 003d2004a..66d7efe85 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
+ *
+ *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageNumber_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageNumber_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class,
+            com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
+   *
+   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -148,12 +171,15 @@ public java.lang.String getUri() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -162,6 +188,7 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other = + (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) obj; - if (!getUri() - .equals(other.getUri())) return false; - if (getPageNumber() - != other.getPageNumber()) return false; + if (!getUri().equals(other.getUri())) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,96 +261,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -334,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p2beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.class,
+              com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.newBuilder()
@@ -356,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +431,8 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p2beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p2beta1.ImageAnnotationContext result =
+          new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -409,38 +443,39 @@ public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageAnnotationContext)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -475,7 +511,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -487,18 +524,20 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -507,20 +546,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -528,67 +568,77 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_ ; + private int pageNumber_; /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -596,39 +646,45 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -638,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p2beta1.ImageAnnotationContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageAnnotationContext(); } @@ -652,16 +708,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java index 52853ae62..92b987576 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotationContextOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageAnnotationContextOrBuilder extends +public interface ImageAnnotationContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..625320e96 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java @@ -0,0 +1,732 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p2beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p2b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032,google/cloud/vision/v1p2be" + + "ta1/geometry.proto\0323google/cloud/vision/" + + "v1p2beta1/text_annotation.proto\0321google/" + + "cloud/vision/v1p2beta1/web_detection.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\037google/protobuf/timestamp.proto\032\027google" + + "/rpc/status.proto\032\027google/type/color.pro" + + "to\032\030google/type/latlng.proto\"\341\002\n\007Feature" + + "\0229\n\004type\030\001 \001(\0162+.google.cloud.vision.v1p" + + "2beta1.Feature.Type\022\023\n\013max_results\030\002 \001(\005" + + "\022\r\n\005model\030\003 \001(\t\"\366\001\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMARK_D" + + "ETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_" + + "DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUM" + + "ENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_DETE" + + "CTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCROP_HI" + + "NTS\020\t\022\021\n\rWEB_DETECTION\020\n\"7\n\013ImageSource\022" + + "\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 \001(" + + "\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014\022:\n\006source\030\002 " + + "\001(\0132*.google.cloud.vision.v1p2beta1.Imag" + + "eSource\"\233\016\n\016FaceAnnotation\022B\n\rbounding_p" + + "oly\030\001 \001(\0132+.google.cloud.vision.v1p2beta" + + "1.BoundingPoly\022E\n\020fd_bounding_poly\030\002 \001(\013" + + "2+.google.cloud.vision.v1p2beta1.Boundin" + + "gPoly\022I\n\tlandmarks\030\003 \003(\01326.google.cloud." + + "vision.v1p2beta1.FaceAnnotation.Landmark" + + "\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan_angle\030\005 \001(\002\022" + + "\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024detection_confide" + + "nce\030\007 \001(\002\022\036\n\026landmarking_confidence\030\010 \001(" + + "\002\022A\n\016joy_likelihood\030\t \001(\0162).google.cloud" + + ".vision.v1p2beta1.Likelihood\022D\n\021sorrow_l" + + "ikelihood\030\n \001(\0162).google.cloud.vision.v1" + + "p2beta1.Likelihood\022C\n\020anger_likelihood\030\013" + + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + + "elihood\022F\n\023surprise_likelihood\030\014 \001(\0162).g" + + "oogle.cloud.vision.v1p2beta1.Likelihood\022" + + "K\n\030under_exposed_likelihood\030\r \001(\0162).goog" + + "le.cloud.vision.v1p2beta1.Likelihood\022E\n\022" + + "blurred_likelihood\030\016 \001(\0162).google.cloud." + + "vision.v1p2beta1.Likelihood\022F\n\023headwear_" + + "likelihood\030\017 \001(\0162).google.cloud.vision.v" + + "1p2beta1.Likelihood\032\307\007\n\010Landmark\022I\n\004type" + + "\030\003 \001(\0162;.google.cloud.vision.v1p2beta1.F" + + "aceAnnotation.Landmark.Type\0229\n\010position\030" + + "\004 \001(\0132\'.google.cloud.vision.v1p2beta1.Po" + + "sition\"\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n" + + "\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LE" + + "FT_EYEBROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022" + + "\031\n\025LEFT_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_R" + + "IGHT_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020" + + "\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_" + + "LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020" + + "\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022" + + "\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CEN" + + "TER\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT" + + "_EYE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_B" + + "OUNDARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026R" + + "IGHT_EYE_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIG" + + "HT_CORNER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY" + + "\020\027\022\031\n\025RIGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EY" + + "EBROW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_" + + "UPPER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025" + + "\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020" + + "\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABE" + + "LLA\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GO" + + "NION\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014Locatio" + + "nInfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type.Lat" + + "Lng\"=\n\010Property\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t\022\024\n\014uint64_value\030\003 \001(\004\"\274\002\n\020EntityAnn" + + "otation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013" + + "description\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\022\n\nconf" + + "idence\030\005 \001(\002\022\022\n\ntopicality\030\006 \001(\002\022B\n\rboun" + + "ding_poly\030\007 \001(\0132+.google.cloud.vision.v1" + + "p2beta1.BoundingPoly\022>\n\tlocations\030\010 \003(\0132" + + "+.google.cloud.vision.v1p2beta1.Location" + + "Info\022;\n\nproperties\030\t \003(\0132\'.google.cloud." + + "vision.v1p2beta1.Property\"\274\002\n\024SafeSearch" + + "Annotation\0228\n\005adult\030\001 \001(\0162).google.cloud" + + ".vision.v1p2beta1.Likelihood\0228\n\005spoof\030\002 " + + "\001(\0162).google.cloud.vision.v1p2beta1.Like" + + "lihood\022:\n\007medical\030\003 \001(\0162).google.cloud.v" + + "ision.v1p2beta1.Likelihood\022;\n\010violence\030\004" + + " \001(\0162).google.cloud.vision.v1p2beta1.Lik" + + "elihood\0227\n\004racy\030\t \001(\0162).google.cloud.vis" + + "ion.v1p2beta1.Likelihood\"a\n\013LatLongRect\022" + + "(\n\013min_lat_lng\030\001 \001(\0132\023.google.type.LatLn" + + "g\022(\n\013max_lat_lng\030\002 \001(\0132\023.google.type.Lat" + + "Lng\"U\n\tColorInfo\022!\n\005color\030\001 \001(\0132\022.google" + + ".type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016pixel_frac" + + "tion\030\003 \001(\002\"T\n\030DominantColorsAnnotation\0228" + + "\n\006colors\030\001 \003(\0132(.google.cloud.vision.v1p" + + "2beta1.ColorInfo\"c\n\017ImageProperties\022P\n\017d" + + "ominant_colors\030\001 \001(\01327.google.cloud.visi" + + "on.v1p2beta1.DominantColorsAnnotation\"\177\n" + + "\010CropHint\022B\n\rbounding_poly\030\001 \001(\0132+.googl" + + "e.cloud.vision.v1p2beta1.BoundingPoly\022\022\n" + + "\nconfidence\030\002 \001(\002\022\033\n\023importance_fraction" + + "\030\003 \001(\002\"R\n\023CropHintsAnnotation\022;\n\ncrop_hi" + + "nts\030\001 \003(\0132\'.google.cloud.vision.v1p2beta" + + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" + + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" + + "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection" + + "Params\022.\n&enable_text_detection_confiden" + + "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013" + + " \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_long_rect\030\001" + + " \001(\0132*.google.cloud.vision.v1p2beta1.Lat" + + "LongRect\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop" + + "_hints_params\030\004 \001(\0132..google.cloud.visio" + + "n.v1p2beta1.CropHintsParams\022O\n\024web_detec" + + "tion_params\030\006 \001(\01321.google.cloud.vision." + + "v1p2beta1.WebDetectionParams\022Q\n\025text_det" + + "ection_params\030\014 \001(\01322.google.cloud.visio" + + "n.v1p2beta1.TextDetectionParams\"\311\001\n\024Anno" + + "tateImageRequest\0223\n\005image\030\001 \001(\0132$.google" + + ".cloud.vision.v1p2beta1.Image\0228\n\010feature" + + "s\030\002 \003(\0132&.google.cloud.vision.v1p2beta1." + + "Feature\022B\n\rimage_context\030\003 \001(\0132+.google." + + "cloud.vision.v1p2beta1.ImageContext\":\n\026I" + + "mageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013pa" + + "ge_number\030\002 \001(\005\"\212\007\n\025AnnotateImageRespons" + + "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo" + + "ud.vision.v1p2beta1.FaceAnnotation\022M\n\024la" + + "ndmark_annotations\030\002 \003(\0132/.google.cloud." + + "vision.v1p2beta1.EntityAnnotation\022I\n\020log" + + "o_annotations\030\003 \003(\0132/.google.cloud.visio" + + "n.v1p2beta1.EntityAnnotation\022J\n\021label_an" + + "notations\030\004 \003(\0132/.google.cloud.vision.v1" + + "p2beta1.EntityAnnotation\022I\n\020text_annotat" + + "ions\030\005 \003(\0132/.google.cloud.vision.v1p2bet" + + "a1.EntityAnnotation\022K\n\024full_text_annotat" + + "ion\030\014 \001(\0132-.google.cloud.vision.v1p2beta" + + "1.TextAnnotation\022S\n\026safe_search_annotati" + + "on\030\006 \001(\01323.google.cloud.vision.v1p2beta1" + + ".SafeSearchAnnotation\022S\n\033image_propertie" + + "s_annotation\030\010 \001(\0132..google.cloud.vision" + + ".v1p2beta1.ImageProperties\022Q\n\025crop_hints" + + "_annotation\030\013 \001(\01322.google.cloud.vision." + + "v1p2beta1.CropHintsAnnotation\022B\n\rweb_det" + + "ection\030\r \001(\0132+.google.cloud.vision.v1p2b" + + "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl" + + "e.rpc.Status\022F\n\007context\030\025 \001(\01325.google.c" + + "loud.vision.v1p2beta1.ImageAnnotationCon" + + "text\"\241\001\n\024AnnotateFileResponse\022@\n\014input_c" + + "onfig\030\001 \001(\0132*.google.cloud.vision.v1p2be" + + "ta1.InputConfig\022G\n\tresponses\030\002 \003(\01324.goo" + + "gle.cloud.vision.v1p2beta1.AnnotateImage" + + "Response\"h\n\032BatchAnnotateImagesRequest\022J" + + "\n\010requests\030\001 \003(\01323.google.cloud.vision.v" + + "1p2beta1.AnnotateImageRequestB\003\340A\002\"f\n\033Ba" + + "tchAnnotateImagesResponse\022G\n\tresponses\030\001" + + " \003(\01324.google.cloud.vision.v1p2beta1.Ann" + + "otateImageResponse\"\236\002\n\030AsyncAnnotateFile" + + "Request\022@\n\014input_config\030\001 \001(\0132*.google.c" + + "loud.vision.v1p2beta1.InputConfig\0228\n\010fea" + + "tures\030\002 \003(\0132&.google.cloud.vision.v1p2be" + + "ta1.Feature\022B\n\rimage_context\030\003 \001(\0132+.goo" + + "gle.cloud.vision.v1p2beta1.ImageContext\022" + + "B\n\routput_config\030\004 \001(\0132+.google.cloud.vi" + + "sion.v1p2beta1.OutputConfig\"_\n\031AsyncAnno" + + "tateFileResponse\022B\n\routput_config\030\001 \001(\0132" + + "+.google.cloud.vision.v1p2beta1.OutputCo" + + "nfig\"p\n\036AsyncBatchAnnotateFilesRequest\022N" + + "\n\010requests\030\001 \003(\01327.google.cloud.vision.v" + + "1p2beta1.AsyncAnnotateFileRequestB\003\340A\002\"n" + + "\n\037AsyncBatchAnnotateFilesResponse\022K\n\tres" + + "ponses\030\001 \003(\01328.google.cloud.vision.v1p2b" + + "eta1.AsyncAnnotateFileResponse\"^\n\013InputC" + + "onfig\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud" + + ".vision.v1p2beta1.GcsSource\022\021\n\tmime_type" + + "\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destinatio" + + "n\030\001 \001(\0132-.google.cloud.vision.v1p2beta1." + + "GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGc" + + "sSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013" + + "\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n\005sta" + + "te\030\001 \001(\01626.google.cloud.vision.v1p2beta1" + + ".OperationMetadata.State\022/\n\013create_time\030" + + "\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CR" + + "EATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCEL" + + "LED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY" + + "_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022" + + "\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016ImageAn" + + "notator\022\276\001\n\023BatchAnnotateImages\0229.google" + + ".cloud.vision.v1p2beta1.BatchAnnotateIma" + + "gesRequest\032:.google.cloud.vision.v1p2bet" + + "a1.BatchAnnotateImagesResponse\"0\202\323\344\223\002\037\"\032" + + "/v1p2beta1/images:annotate:\001*\332A\010requests" + + "\022\351\001\n\027AsyncBatchAnnotateFiles\022=.google.cl" + + "oud.vision.v1p2beta1.AsyncBatchAnnotateF" + + "ilesRequest\032\035.google.longrunning.Operati" + + "on\"p\202\323\344\223\002(\"#/v1p2beta1/files:asyncBatchA" + + "nnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnno" + + "tateFilesResponse\022\021OperationMetadata\032v\312A" + + "\025vision.googleapis.com\322A[https://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/cloud-visionB\202\001\n" + + "!com.google.cloud.vision.v1p2beta1B\023Imag" + + "eAnnotatorProtoP\001ZCgoogle.golang.org/gen" + + "proto/googleapis/cloud/vision/v1p2beta1;" + + "vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Feature_descriptor, + new java.lang.String[] { + "Type", "MaxResults", "Model", + }); + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor, + new java.lang.String[] { + "GcsImageUri", "ImageUri", + }); + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Image_descriptor, + new java.lang.String[] { + "Content", "Source", + }); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor, + new java.lang.String[] { + "BoundingPoly", + "FdBoundingPoly", + "Landmarks", + "RollAngle", + "PanAngle", + "TiltAngle", + "DetectionConfidence", + "LandmarkingConfidence", + "JoyLikelihood", + "SorrowLikelihood", + "AngerLikelihood", + "SurpriseLikelihood", + "UnderExposedLikelihood", + "BlurredLikelihood", + "HeadwearLikelihood", + }); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { + "Type", "Position", + }); + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor, + new java.lang.String[] { + "LatLng", + }); + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Property_descriptor, + new java.lang.String[] { + "Name", "Value", "Uint64Value", + }); + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_EntityAnnotation_descriptor, + new java.lang.String[] { + "Mid", + "Locale", + "Description", + "Score", + "Confidence", + "Topicality", + "BoundingPoly", + "Locations", + "Properties", + }); + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { + "Adult", "Spoof", "Medical", "Violence", "Racy", + }); + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor, + new java.lang.String[] { + "MinLatLng", "MaxLatLng", + }); + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ColorInfo_descriptor, + new java.lang.String[] { + "Color", "Score", "PixelFraction", + }); + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { + "Colors", + }); + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor, + new java.lang.String[] { + "DominantColors", + }); + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p2beta1_CropHint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHint_descriptor, + new java.lang.String[] { + "BoundingPoly", "Confidence", "ImportanceFraction", + }); + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { + "CropHints", + }); + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_CropHintsParams_descriptor, + new java.lang.String[] { + "AspectRatios", + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor, + new java.lang.String[] { + "IncludeGeoResults", + }); + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor, + new java.lang.String[] { + "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", + }); + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor, + new java.lang.String[] { + "LatLongRect", + "LanguageHints", + "CropHintsParams", + "WebDetectionParams", + "TextDetectionParams", + }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { + "Image", "Features", "ImageContext", + }); + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { + "Uri", "PageNumber", + }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { + "FaceAnnotations", + "LandmarkAnnotations", + "LogoAnnotations", + "LabelAnnotations", + "TextAnnotations", + "FullTextAnnotation", + "SafeSearchAnnotation", + "ImagePropertiesAnnotation", + "CropHintsAnnotation", + "WebDetection", + "Error", + "Context", + }); + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { + "InputConfig", "Responses", + }); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { + "InputConfig", "Features", "ImageContext", "OutputConfig", + }); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { + "OutputConfig", + }); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "MimeType", + }); + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BatchSize", + }); + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p2beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "State", "CreateTime", "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java index 9c1a91377..90678ae9c 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContext.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageContext} */ -public final class ImageContext extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageContext) ImageContextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,74 +71,90 @@ private ImageContext( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = input.readMessage(com.google.cloud.vision.v1p2beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; - } - case 34: { - com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; } - webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.CropHintsParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); + case 50: + { + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); + } + webDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); + } + textDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,8 +162,7 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -139,27 +171,33 @@ private ImageContext( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageContext.class, com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageContext.class, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.LatLongRect latLongRect_; /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -167,18 +205,25 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } /** + * + * *
    * Not used.
    * 
@@ -193,6 +238,8 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -205,13 +252,15 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -224,12 +273,15 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -242,6 +294,7 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -249,6 +302,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -261,22 +316,25 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p2beta1.CropHintsParams cropHintsParams_; /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -284,18 +342,25 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -310,11 +375,14 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p2beta1.WebDetectionParams webDetectionParams_; /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -322,18 +390,25 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } /** + * + * *
    * Parameters for web detection.
    * 
@@ -341,18 +416,22 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p2beta1.TextDetectionParams textDetectionParams_; /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -360,18 +439,25 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
@@ -379,11 +465,13 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,8 +483,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -422,8 +509,7 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -434,16 +520,14 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTextDetectionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,34 +537,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageContext other = (com.google.cloud.vision.v1p2beta1.ImageContext) obj; + com.google.cloud.vision.v1p2beta1.ImageContext other = + (com.google.cloud.vision.v1p2beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect() - .equals(other.getLatLongRect())) return false; + if (!getLatLongRect().equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList() - .equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams() - .equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams() - .equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams() - .equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -518,118 +598,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageContext) com.google.cloud.vision.v1p2beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageContext.class, com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageContext.class, + com.google.cloud.vision.v1p2beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageContext.newBuilder() @@ -637,16 +726,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -680,9 +768,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor; } @java.lang.Override @@ -701,7 +789,8 @@ public com.google.cloud.vision.v1p2beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageContext result = new com.google.cloud.vision.v1p2beta1.ImageContext(this); + com.google.cloud.vision.v1p2beta1.ImageContext result = + new com.google.cloud.vision.v1p2beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -736,38 +825,39 @@ public com.google.cloud.vision.v1p2beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageContext)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageContext) other); } else { super.mergeFrom(other); return this; @@ -826,38 +916,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> latLongRectBuilder_; + com.google.cloud.vision.v1p2beta1.LatLongRect, + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> + latLongRectBuilder_; /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ public com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** + * + * *
      * Not used.
      * 
@@ -878,6 +982,8 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect valu return this; } /** + * + * *
      * Not used.
      * 
@@ -896,6 +1002,8 @@ public Builder setLatLongRect( return this; } /** + * + * *
      * Not used.
      * 
@@ -906,7 +1014,9 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder(latLongRect_) + .mergeFrom(value) + .buildPartial(); } else { latLongRect_ = value; } @@ -918,6 +1028,8 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p2beta1.LatLongRect va return this; } /** + * + * *
      * Not used.
      * 
@@ -936,6 +1048,8 @@ public Builder clearLatLongRect() { return this; } /** + * + * *
      * Not used.
      * 
@@ -943,11 +1057,13 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p2beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** + * + * *
      * Not used.
      * 
@@ -958,11 +1074,14 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null ? - com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p2beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } } /** + * + * *
      * Not used.
      * 
@@ -970,27 +1089,34 @@ public com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p2beta1.LatLongRect, + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.LatLongRect, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder>( - getLatLongRect(), - getParentForChildren(), - isClean()); + latLongRectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.LatLongRect, + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder>( + getLatLongRect(), getParentForChildren(), isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1003,13 +1129,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1022,12 +1150,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1040,6 +1171,7 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1047,6 +1179,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1059,14 +1193,16 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1079,21 +1215,23 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints( - int index, java.lang.String value) { + public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1106,20 +1244,22 @@ public Builder setLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints( - java.lang.String value) { + public Builder addLanguageHints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1132,18 +1272,19 @@ public Builder addLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints( - java.lang.Iterable values) { + public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1156,6 +1297,7 @@ public Builder addAllLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1165,6 +1307,8 @@ public Builder clearLanguageHints() { return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1177,15 +1321,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; + * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1194,34 +1338,47 @@ public Builder addLanguageHintsBytes( private com.google.cloud.vision.v1p2beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; + com.google.cloud.vision.v1p2beta1.CropHintsParams, + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> + cropHintsParamsBuilder_; /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1242,6 +1399,8 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsPar return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1260,6 +1419,8 @@ public Builder setCropHintsParams( return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1270,7 +1431,9 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.CropHintsParams.newBuilder(cropHintsParams_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsParams_ = value; } @@ -1282,6 +1445,8 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p2beta1.CropHintsP return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1300,6 +1465,8 @@ public Builder clearCropHintsParams() { return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1307,26 +1474,32 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder + getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null ? - com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p2beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1334,14 +1507,17 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsPa * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.CropHintsParams, + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.CropHintsParams, com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), - getParentForChildren(), - isClean()); + cropHintsParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.CropHintsParams, + com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), getParentForChildren(), isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1349,41 +1525,55 @@ public com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsPa private com.google.cloud.vision.v1p2beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetectionParams, + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> + webDetectionParamsBuilder_; /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { + public Builder setWebDetectionParams( + com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1397,6 +1587,8 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDetect return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1415,17 +1607,22 @@ public Builder setWebDetectionParams( return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams( + com.google.cloud.vision.v1p2beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder(webDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { webDetectionParams_ = value; } @@ -1437,6 +1634,8 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p2beta1.WebDete return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1455,33 +1654,42 @@ public Builder clearWebDetectionParams() { return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder + getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null ? - com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1489,14 +1697,17 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetec * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetectionParams, + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetectionParams, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), - getParentForChildren(), - isClean()); + webDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetectionParams, + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), getParentForChildren(), isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1504,41 +1715,55 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetec private com.google.cloud.vision.v1p2beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; + com.google.cloud.vision.v1p2beta1.TextDetectionParams, + com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> + textDetectionParamsBuilder_; /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { + public Builder setTextDetectionParams( + com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1552,6 +1777,8 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDete return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1570,17 +1797,22 @@ public Builder setTextDetectionParams( return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams( + com.google.cloud.vision.v1p2beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder(textDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { textDetectionParams_ = value; } @@ -1592,6 +1824,8 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p2beta1.TextDe return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1610,33 +1844,42 @@ public Builder clearTextDetectionParams() { return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder + getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null ? - com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1644,21 +1887,24 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder getTextDet * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p2beta1.TextDetectionParams, + com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextDetectionParams, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), - getParentForChildren(), - isClean()); + textDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextDetectionParams, + com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), getParentForChildren(), isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1668,12 +1914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageContext) private static final com.google.cloud.vision.v1p2beta1.ImageContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageContext(); } @@ -1682,16 +1928,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1706,6 +1952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java similarity index 87% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java index c99820b85..34bf53b4a 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageContextOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageContextOrBuilder extends +public interface ImageContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ com.google.cloud.vision.v1p2beta1.LatLongRect getLatLongRect(); /** + * + * *
    * Not used.
    * 
@@ -35,6 +59,8 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -47,11 +73,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - java.util.List - getLanguageHintsList(); + java.util.List getLanguageHintsList(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -64,10 +92,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ int getLanguageHintsCount(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -80,11 +111,14 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -97,31 +131,39 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString - getLanguageHintsBytes(int index); + com.google.protobuf.ByteString getLanguageHintsBytes(int index); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ com.google.cloud.vision.v1p2beta1.CropHintsParams getCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -131,24 +173,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p2beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ com.google.cloud.vision.v1p2beta1.WebDetectionParams getWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
@@ -158,24 +208,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p2beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ com.google.cloud.vision.v1p2beta1.TextDetectionParams getTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java index 4f42706d0..c9abae3ef 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -15,11 +33,14 @@ public interface ImageOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -27,10 +48,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -38,10 +62,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.ImageSource source = 2; + * * @return The source. */ com.google.cloud.vision.v1p2beta1.ImageSource getSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
similarity index 69%
rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
index bb8c98f29..fbde8ee89 100644
--- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageProperties.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p2beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p2beta1;
 
 /**
+ *
+ *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageProperties} */ -public final class ImageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageProperties) ImagePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageProperties() { - } + + private ImageProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageProperties( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); + } + dominantColors_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; } - dominantColors_ = input.readMessage(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageProperties.class, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageProperties.class, + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominantColors_; /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageProperties other = (com.google.cloud.vision.v1p2beta1.ImageProperties) obj; + com.google.cloud.vision.v1p2beta1.ImageProperties other = + (com.google.cloud.vision.v1p2beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors() - .equals(other.getDominantColors())) return false; + if (!getDominantColors().equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +240,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageProperties) com.google.cloud.vision.v1p2beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageProperties.class, com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageProperties.class, + com.google.cloud.vision.v1p2beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageProperties.newBuilder() @@ -326,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageProperties_descriptor; } @java.lang.Override @@ -370,7 +410,8 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageProperties result = new com.google.cloud.vision.v1p2beta1.ImageProperties(this); + com.google.cloud.vision.v1p2beta1.ImageProperties result = + new com.google.cloud.vision.v1p2beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.vision.v1p2beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageProperties)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageProperties) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.ImageProperties.getDefaultInstance()) + return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -446,7 +489,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +502,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> + dominantColorsBuilder_; /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { + public Builder setDominantColors( + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +564,8 @@ public Builder setDominantColors(com.google.cloud.vision.v1p2beta1.DominantColor return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -524,17 +584,22 @@ public Builder setDominantColors( return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors(com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors( + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.newBuilder(dominantColors_) + .mergeFrom(value) + .buildPartial(); } else { dominantColors_ = value; } @@ -546,6 +611,8 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1p2beta1.DominantCol return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -564,33 +631,42 @@ public Builder clearDominantColors() { return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder + getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null ? - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -598,21 +674,24 @@ public com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder getDo * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), - getParentForChildren(), - isClean()); + dominantColorsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p2beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), getParentForChildren(), isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageProperties) private static final com.google.cloud.vision.v1p2beta1.ImageProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageProperties(); } @@ -636,16 +715,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java index f0c47ac28..220625d91 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImagePropertiesOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImagePropertiesOrBuilder extends +public interface ImagePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p2beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation getDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java similarity index 77% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java index 286311c4d..07305f9c4 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageSource} */ -public final class ImageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.ImageSource) ImageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -26,16 +44,15 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ImageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageSource.class, com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageSource.class, + com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -112,6 +135,7 @@ private ImageSource(
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ @java.lang.Override @@ -120,14 +144,15 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -137,16 +162,15 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -157,6 +181,8 @@ public java.lang.String getGcsImageUri() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -175,6 +201,7 @@ public java.lang.String getGcsImageUri() {
    * 
* * string image_uri = 2; + * * @return The imageUri. */ @java.lang.Override @@ -183,14 +210,15 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -209,16 +237,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -227,6 +254,7 @@ public java.lang.String getImageUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -269,17 +296,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.ImageSource other = (com.google.cloud.vision.v1p2beta1.ImageSource) obj; + com.google.cloud.vision.v1p2beta1.ImageSource other = + (com.google.cloud.vision.v1p2beta1.ImageSource) obj; - if (!getGcsImageUri() - .equals(other.getGcsImageUri())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; + if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,118 +326,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.ImageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.ImageSource) com.google.cloud.vision.v1p2beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.ImageSource.class, com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p2beta1.ImageSource.class, + com.google.cloud.vision.v1p2beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.ImageSource.newBuilder() @@ -419,16 +454,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_ImageSource_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p2beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p2beta1.ImageSource result = new com.google.cloud.vision.v1p2beta1.ImageSource(this); + com.google.cloud.vision.v1p2beta1.ImageSource result = + new com.google.cloud.vision.v1p2beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -472,38 +507,39 @@ public com.google.cloud.vision.v1p2beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageSource)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.ImageSource) other); } else { super.mergeFrom(other); return this; @@ -551,6 +587,8 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -560,13 +598,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -575,6 +613,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -584,15 +624,14 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -600,6 +639,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -609,20 +650,22 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri( - java.lang.String value) { + public Builder setGcsImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -632,15 +675,18 @@ public Builder setGcsImageUri(
      * 
* * string gcs_image_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,16 +696,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -667,6 +713,8 @@ public Builder setGcsImageUriBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -685,13 +733,13 @@ public Builder setGcsImageUriBytes(
      * 
* * string image_uri = 2; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -700,6 +748,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -718,15 +768,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -734,6 +783,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -752,20 +803,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -784,15 +837,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 2; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -811,23 +867,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageSource) private static final com.google.cloud.vision.v1p2beta1.ImageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.ImageSource(); } @@ -851,16 +907,16 @@ public static com.google.cloud.vision.v1p2beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java index 9d0c37d2b..004968c2c 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface ImageSourceOrBuilder extends +public interface ImageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -17,10 +35,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -30,12 +51,14 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString - getGcsImageUriBytes(); + com.google.protobuf.ByteString getGcsImageUriBytes(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -54,10 +77,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -76,8 +102,8 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java index 6ed2447f6..ef68d9c85 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } + + break; } - gcsSource_ = input.readMessage(com.google.cloud.vision.v1p2beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,34 +107,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.InputConfig.class, com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.InputConfig.class, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.GcsSource gcsSource_; /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -121,18 +147,25 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() + : gcsSource_; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -147,12 +180,15 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -161,30 +197,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -193,6 +229,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -222,8 +258,7 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); @@ -236,20 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.InputConfig other = (com.google.cloud.vision.v1p2beta1.InputConfig) obj; + com.google.cloud.vision.v1p2beta1.InputConfig other = + (com.google.cloud.vision.v1p2beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; } - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,118 +306,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.InputConfig) com.google.cloud.vision.v1p2beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.InputConfig.class, com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.InputConfig.class, + com.google.cloud.vision.v1p2beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.InputConfig.newBuilder() @@ -391,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_InputConfig_descriptor; } @java.lang.Override @@ -437,7 +479,8 @@ public com.google.cloud.vision.v1p2beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p2beta1.InputConfig result = new com.google.cloud.vision.v1p2beta1.InputConfig(this); + com.google.cloud.vision.v1p2beta1.InputConfig result = + new com.google.cloud.vision.v1p2beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -452,38 +495,39 @@ public com.google.cloud.vision.v1p2beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.InputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -530,34 +574,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1p2beta1.GcsSource, + com.google.cloud.vision.v1p2beta1.GcsSource.Builder, + com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() + : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -578,6 +635,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -596,6 +655,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -606,7 +667,9 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); } else { gcsSource_ = value; } @@ -618,6 +681,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p2beta1.GcsSource value) return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -636,6 +701,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -643,11 +710,13 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p2beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -658,11 +727,14 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null ? - com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p2beta1.GcsSource.getDefaultInstance() + : gcsSource_; } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -670,14 +742,17 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p2beta1.GcsSource, + com.google.cloud.vision.v1p2beta1.GcsSource.Builder, + com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsSource, com.google.cloud.vision.v1p2beta1.GcsSource.Builder, com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder>( - getGcsSource(), - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.GcsSource, + com.google.cloud.vision.v1p2beta1.GcsSource.Builder, + com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -685,19 +760,21 @@ public com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private java.lang.Object mimeType_ = ""; /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -706,21 +783,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -728,64 +806,71 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.InputConfig) private static final com.google.cloud.vision.v1p2beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.InputConfig(); } @@ -809,16 +894,16 @@ public static com.google.cloud.vision.v1p2beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +918,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java index 5a669943d..d396c59df 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/InputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p2beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1p2beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -35,24 +59,29 @@ public interface InputConfigOrBuilder extends com.google.cloud.vision.v1p2beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java index d28d73c98..601603829 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRect.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LatLongRect} */ -public final class LatLongRect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.LatLongRect) LatLongRectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLongRect() { - } + + private LatLongRect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private LatLongRect( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); + } + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LatLongRect.class, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p2beta1.LatLongRect.class, + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -127,11 +150,14 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ @java.lang.Override @@ -139,6 +165,8 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** + * + * *
    * Min lat/long pair.
    * 
@@ -153,11 +181,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -165,11 +196,14 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ @java.lang.Override @@ -177,6 +211,8 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** + * + * *
    * Max lat/long pair.
    * 
@@ -189,6 +225,7 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -218,12 +254,10 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +267,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.LatLongRect other = (com.google.cloud.vision.v1p2beta1.LatLongRect) obj; + com.google.cloud.vision.v1p2beta1.LatLongRect other = + (com.google.cloud.vision.v1p2beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng() - .equals(other.getMinLatLng())) return false; + if (!getMinLatLng().equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng() - .equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +307,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LatLongRect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.LatLongRect) com.google.cloud.vision.v1p2beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LatLongRect.class, com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p2beta1.LatLongRect.class, + com.google.cloud.vision.v1p2beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.LatLongRect.newBuilder() @@ -393,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LatLongRect_descriptor; } @java.lang.Override @@ -443,7 +484,8 @@ public com.google.cloud.vision.v1p2beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p2beta1.LatLongRect result = new com.google.cloud.vision.v1p2beta1.LatLongRect(this); + com.google.cloud.vision.v1p2beta1.LatLongRect result = + new com.google.cloud.vision.v1p2beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -462,38 +504,39 @@ public com.google.cloud.vision.v1p2beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.LatLongRect)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.LatLongRect) other); } else { super.mergeFrom(other); return this; @@ -539,24 +582,31 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + minLatLngBuilder_; /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -567,6 +617,8 @@ public com.google.type.LatLng getMinLatLng() { } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -587,14 +639,15 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -605,6 +658,8 @@ public Builder setMinLatLng( return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -615,7 +670,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -627,6 +682,8 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -645,6 +702,8 @@ public Builder clearMinLatLng() { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -652,11 +711,13 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Min lat/long pair.
      * 
@@ -667,11 +728,12 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -679,14 +741,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMinLatLng(), - getParentForChildren(), - isClean()); + minLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -694,24 +756,31 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + maxLatLngBuilder_; /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -722,6 +791,8 @@ public com.google.type.LatLng getMaxLatLng() { } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -742,14 +813,15 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -760,6 +832,8 @@ public Builder setMaxLatLng( return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -770,7 +844,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -782,6 +856,8 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -800,6 +876,8 @@ public Builder clearMaxLatLng() { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -807,11 +885,13 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Max lat/long pair.
      * 
@@ -822,11 +902,12 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -834,21 +915,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMaxLatLng(), - getParentForChildren(), - isClean()); + maxLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LatLongRect) private static final com.google.cloud.vision.v1p2beta1.LatLongRect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.LatLongRect(); } @@ -872,16 +953,16 @@ public static com.google.cloud.vision.v1p2beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java index 185c7c87d..4d02ae0d0 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LatLongRectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface LatLongRectOrBuilder extends +public interface LatLongRectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
@@ -35,24 +59,32 @@ public interface LatLongRectOrBuilder extends com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java index c71722615..aed4f959f 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p2beta1.Likelihood}
  */
-public enum Likelihood
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unknown likelihood.
    * 
@@ -22,6 +40,8 @@ public enum Likelihood */ UNKNOWN(0), /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -30,6 +50,8 @@ public enum Likelihood */ VERY_UNLIKELY(1), /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -38,6 +60,8 @@ public enum Likelihood */ UNLIKELY(2), /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -46,6 +70,8 @@ public enum Likelihood */ POSSIBLE(3), /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -54,6 +80,8 @@ public enum Likelihood */ LIKELY(4), /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -65,6 +93,8 @@ public enum Likelihood ; /** + * + * *
    * Unknown likelihood.
    * 
@@ -73,6 +103,8 @@ public enum Likelihood */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -81,6 +113,8 @@ public enum Likelihood */ public static final int VERY_UNLIKELY_VALUE = 1; /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -89,6 +123,8 @@ public enum Likelihood */ public static final int UNLIKELY_VALUE = 2; /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -97,6 +133,8 @@ public enum Likelihood */ public static final int POSSIBLE_VALUE = 3; /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -105,6 +143,8 @@ public enum Likelihood */ public static final int LIKELY_VALUE = 4; /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -113,7 +153,6 @@ public enum Likelihood */ public static final int VERY_LIKELY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,52 +177,57 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return VERY_UNLIKELY; - case 2: return UNLIKELY; - case 3: return POSSIBLE; - case 4: return LIKELY; - case 5: return VERY_LIKELY; - default: return null; + case 0: + return UNKNOWN; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Likelihood> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -199,4 +243,3 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p2beta1.Likelihood) } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java index 1e302763a..047662a94 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfo.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LocationInfo} */ -public final class LocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.LocationInfo) LocationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationInfo() { - } + + private LocationInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,27 @@ private LocationInfo( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +96,39 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LocationInfo.class, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p2beta1.LocationInfo.class, + com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -114,11 +136,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -126,6 +151,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * lat/long location coordinates.
    * 
@@ -138,6 +165,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -164,8 +191,7 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.LocationInfo other = (com.google.cloud.vision.v1p2beta1.LocationInfo) obj; + com.google.cloud.vision.v1p2beta1.LocationInfo other = + (com.google.cloud.vision.v1p2beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +233,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.LocationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.LocationInfo) com.google.cloud.vision.v1p2beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.LocationInfo.class, com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p2beta1.LocationInfo.class, + com.google.cloud.vision.v1p2beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.LocationInfo.newBuilder() @@ -326,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_LocationInfo_descriptor; } @java.lang.Override @@ -370,7 +404,8 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p2beta1.LocationInfo result = new com.google.cloud.vision.v1p2beta1.LocationInfo(this); + com.google.cloud.vision.v1p2beta1.LocationInfo result = + new com.google.cloud.vision.v1p2beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -384,38 +419,39 @@ public com.google.cloud.vision.v1p2beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.LocationInfo)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.LocationInfo) other); } else { super.mergeFrom(other); return this; @@ -458,24 +494,31 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -486,6 +529,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -506,14 +551,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -524,6 +570,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -533,8 +581,7 @@ public Builder setLatLng( public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = - com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -546,6 +593,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -564,6 +613,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -571,11 +622,13 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -586,11 +639,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -598,21 +652,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LocationInfo) private static final com.google.cloud.vision.v1p2beta1.LocationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.LocationInfo(); } @@ -636,16 +690,16 @@ public static com.google.cloud.vision.v1p2beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +714,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java index 3504a4c08..6cd11637f 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/LocationInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface LocationInfoOrBuilder extends +public interface LocationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java similarity index 67% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java index f2dc1dea7..09eab1e23 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,23 +70,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,34 +94,39 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.NormalizedVertex.class, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p2beta1.NormalizedVertex.class,
+            com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.NormalizedVertex other = (com.google.cloud.vision.v1p2beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p2beta1.NormalizedVertex other = + (com.google.cloud.vision.v1p2beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -307,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.NormalizedVertex)
       com.google.cloud.vision.v1p2beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.NormalizedVertex.class, com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p2beta1.NormalizedVertex.class,
+              com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.NormalizedVertex.newBuilder()
@@ -329,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -371,7 +398,8 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p2beta1.NormalizedVertex result = new com.google.cloud.vision.v1p2beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p2beta1.NormalizedVertex result =
+          new com.google.cloud.vision.v1p2beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -382,38 +410,39 @@ public com.google.cloud.vision.v1p2beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -421,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.NormalizedVertex.getDefaultInstance())
+        return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -447,7 +477,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -457,13 +488,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -471,42 +505,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -514,37 +557,43 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -554,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p2beta1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.NormalizedVertex(); } @@ -568,16 +617,16 @@ public static com.google.cloud.vision.v1p2beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..b092bf133 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java index f4945b6d3..01c6d272a 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,50 @@ private OperationMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + state_ = rawValue; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +121,41 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OperationMetadata.class, com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p2beta1.OperationMetadata.class, + com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); } /** + * + * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.OperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -137,6 +164,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is received.
      * 
@@ -145,6 +174,8 @@ public enum State */ CREATED(1), /** + * + * *
      * Request is actively being processed.
      * 
@@ -153,6 +184,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The batch processing is done.
      * 
@@ -161,6 +194,8 @@ public enum State */ DONE(3), /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -172,6 +207,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -180,6 +217,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is received.
      * 
@@ -188,6 +227,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * Request is actively being processed.
      * 
@@ -196,6 +237,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The batch processing is done.
      * 
@@ -204,6 +247,8 @@ public enum State */ public static final int DONE_VALUE = 3; /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -212,7 +257,6 @@ public enum State */ public static final int CANCELLED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -237,51 +281,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATED; - case 2: return RUNNING; - case 3: return DONE; - case 4: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.OperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -301,38 +349,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -340,11 +402,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -352,6 +417,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the batch request was received.
    * 
@@ -366,11 +433,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -378,11 +448,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -390,6 +463,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the operation result was last updated.
    * 
@@ -402,6 +477,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,9 +489,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -433,17 +510,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.vision.v1p2beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,23 +529,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.OperationMetadata other = (com.google.cloud.vision.v1p2beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p2beta1.OperationMetadata other = + (com.google.cloud.vision.v1p2beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -498,117 +573,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.OperationMetadata) com.google.cloud.vision.v1p2beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OperationMetadata.class, com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p2beta1.OperationMetadata.class, + com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.OperationMetadata.newBuilder() @@ -616,16 +700,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,9 +730,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -668,7 +751,8 @@ public com.google.cloud.vision.v1p2beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p2beta1.OperationMetadata result = new com.google.cloud.vision.v1p2beta1.OperationMetadata(this); + com.google.cloud.vision.v1p2beta1.OperationMetadata result = + new com.google.cloud.vision.v1p2beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -688,38 +772,39 @@ public com.google.cloud.vision.v1p2beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -727,7 +812,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p2beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -756,7 +842,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,51 +855,67 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p2beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p2beta1.OperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -820,21 +923,24 @@ public Builder setState(com.google.cloud.vision.v1p2beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -842,34 +948,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -890,14 +1009,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -908,6 +1028,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -918,7 +1040,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -930,6 +1052,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -948,6 +1072,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -955,11 +1081,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -970,11 +1098,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -982,14 +1113,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -997,34 +1131,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1045,14 +1192,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1063,6 +1211,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1073,7 +1223,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1085,6 +1235,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1103,6 +1255,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1110,11 +1264,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1125,11 +1281,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1137,21 +1296,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1161,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OperationMetadata) private static final com.google.cloud.vision.v1p2beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.OperationMetadata(); } @@ -1175,16 +1337,16 @@ public static com.google.cloud.vision.v1p2beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java index c13f6c14c..c94dbdea6 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OperationMetadataOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p2beta1.OperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1p2beta1.OperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
@@ -54,24 +84,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java index fc22563ed..5f96b3843 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); + } + + break; } - gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p2beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); + case 16: + { + batchSize_ = input.readInt32(); + break; } - - break; - } - case 16: { - - batchSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,34 +103,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OutputConfig.class, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.OutputConfig.class, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.GcsDestination gcsDestination_; /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -119,18 +143,25 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -145,6 +176,8 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** + * + * *
    * The max number of response protos to put into each output JSON file on GCS.
    * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -157,6 +190,7 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -165,6 +199,7 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +211,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -194,12 +228,10 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,20 +241,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.OutputConfig other = (com.google.cloud.vision.v1p2beta1.OutputConfig) obj; + com.google.cloud.vision.v1p2beta1.OutputConfig other = + (com.google.cloud.vision.v1p2beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; } - if (getBatchSize() - != other.getBatchSize()) return false; + if (getBatchSize() != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -245,118 +276,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.OutputConfig) com.google.cloud.vision.v1p2beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.OutputConfig.class, com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p2beta1.OutputConfig.class, + com.google.cloud.vision.v1p2beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.OutputConfig.newBuilder() @@ -364,16 +404,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override @@ -410,7 +449,8 @@ public com.google.cloud.vision.v1p2beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p2beta1.OutputConfig result = new com.google.cloud.vision.v1p2beta1.OutputConfig(this); + com.google.cloud.vision.v1p2beta1.OutputConfig result = + new com.google.cloud.vision.v1p2beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -425,38 +465,39 @@ public com.google.cloud.vision.v1p2beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -502,34 +543,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.vision.v1p2beta1.GcsDestination, + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ public com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -550,6 +604,8 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinatio return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -568,6 +624,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -578,7 +636,9 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); } else { gcsDestination_ = value; } @@ -590,6 +650,8 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p2beta1.GcsDestinat return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -608,6 +670,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -615,11 +679,13 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p2beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -630,11 +696,14 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null ? - com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p2beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -642,21 +711,26 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p2beta1.GcsDestination, + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.GcsDestination, com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder>( - getGcsDestination(), - getParentForChildren(), - isClean()); + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.GcsDestination, + com.google.cloud.vision.v1p2beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_ ; + private int batchSize_; /** + * + * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -669,6 +743,7 @@ public com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -676,6 +751,8 @@ public int getBatchSize() { return batchSize_; } /** + * + * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -688,16 +765,19 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; + * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** + * + * *
      * The max number of response protos to put into each output JSON file on GCS.
      * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -710,17 +790,18 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; + * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -730,12 +811,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OutputConfig) private static final com.google.cloud.vision.v1p2beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.OutputConfig(); } @@ -744,16 +825,16 @@ public static com.google.cloud.vision.v1p2beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -768,6 +849,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java index 1cf4dce48..3a2e5212d 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.vision.v1p2beta1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -35,6 +59,8 @@ public interface OutputConfigOrBuilder extends com.google.cloud.vision.v1p2beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * The max number of response protos to put into each output JSON file on GCS.
    * The valid range is [1, 100]. If not specified, the default value is 20.
@@ -47,6 +73,7 @@ public interface OutputConfigOrBuilder extends
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ int getBatchSize(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java similarity index 75% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java index 768c6ddcc..19d5cd6bf 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Page.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Page} */ -public final class Page extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Page extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Page) PageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,50 +71,57 @@ private Page( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 16: + { + width_ = input.readInt32(); + break; } - - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 24: + { + height_ = input.readInt32(); + break; } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blocks_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +129,7 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -115,27 +138,33 @@ private Page( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Page.class, com.google.cloud.vision.v1p2beta1.Page.Builder.class); + com.google.cloud.vision.v1p2beta1.Page.class, + com.google.cloud.vision.v1p2beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -143,18 +172,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected on the page.
    * 
@@ -162,19 +198,23 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -185,12 +225,15 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -201,6 +244,8 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -212,6 +257,8 @@ public java.util.List getBlocksList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -219,11 +266,13 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -235,6 +284,8 @@ public int getBlocksCount() { return blocks_.size(); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -246,6 +297,8 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { return blocks_.get(index); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -253,19 +306,21 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -274,6 +329,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -312,24 +367,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,7 +389,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Page)) { return super.equals(obj); @@ -348,18 +398,13 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!getBlocksList() - .equals(other.getBlocksList())) return false; + if (!getProperty().equals(other.getProperty())) return false; + } + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getBlocksList().equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,125 +429,133 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Page parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Page} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Page) com.google.cloud.vision.v1p2beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Page.class, com.google.cloud.vision.v1p2beta1.Page.Builder.class); + com.google.cloud.vision.v1p2beta1.Page.class, + com.google.cloud.vision.v1p2beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Page.newBuilder() @@ -510,17 +563,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; } @java.lang.Override @@ -567,7 +620,8 @@ public com.google.cloud.vision.v1p2beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Page buildPartial() { - com.google.cloud.vision.v1p2beta1.Page result = new com.google.cloud.vision.v1p2beta1.Page(this); + com.google.cloud.vision.v1p2beta1.Page result = + new com.google.cloud.vision.v1p2beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -594,38 +648,39 @@ public com.google.cloud.vision.v1p2beta1.Page buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Page)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Page) other); } else { super.mergeFrom(other); return this; @@ -661,9 +716,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlocksFieldBuilder() : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlocksFieldBuilder() + : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -700,45 +756,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +823,8 @@ public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -770,17 +843,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -792,6 +870,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -810,33 +890,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -844,27 +933,33 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } - private int width_ ; + private int width_; /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -872,45 +967,54 @@ public int getWidth() { return width_; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -918,50 +1022,62 @@ public int getHeight() { return height_; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder> blocksBuilder_; + com.google.cloud.vision.v1p2beta1.Block, + com.google.cloud.vision.v1p2beta1.Block.Builder, + com.google.cloud.vision.v1p2beta1.BlockOrBuilder> + blocksBuilder_; /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -976,6 +1092,8 @@ public java.util.List getBlocksList() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -990,6 +1108,8 @@ public int getBlocksCount() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1004,14 +1124,15 @@ public com.google.cloud.vision.v1p2beta1.Block getBlocks(int index) { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1p2beta1.Block value) { + public Builder setBlocks(int index, com.google.cloud.vision.v1p2beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1025,6 +1146,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1043,6 +1166,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1063,14 +1188,15 @@ public Builder addBlocks(com.google.cloud.vision.v1p2beta1.Block value) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1p2beta1.Block value) { + public Builder addBlocks(int index, com.google.cloud.vision.v1p2beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1084,14 +1210,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public Builder addBlocks( - com.google.cloud.vision.v1p2beta1.Block.Builder builderForValue) { + public Builder addBlocks(com.google.cloud.vision.v1p2beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1102,6 +1229,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1120,6 +1249,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1130,8 +1261,7 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1139,6 +1269,8 @@ public Builder addAllBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1156,6 +1288,8 @@ public Builder clearBlocks() { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1173,39 +1307,44 @@ public Builder removeBlocks(int index) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.Block.Builder getBlocksBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Block.Builder getBlocksBuilder(int index) { return getBlocksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); } else { + return blocks_.get(index); + } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1213,6 +1352,8 @@ public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1220,54 +1361,62 @@ public com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder( - int index) { - return getBlocksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Block.Builder addBlocksBuilder(int index) { + return getBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - public java.util.List - getBlocksBuilderList() { + public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder> + com.google.cloud.vision.v1p2beta1.Block, + com.google.cloud.vision.v1p2beta1.Block.Builder, + com.google.cloud.vision.v1p2beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Block, com.google.cloud.vision.v1p2beta1.Block.Builder, com.google.cloud.vision.v1p2beta1.BlockOrBuilder>( - blocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Block, + com.google.cloud.vision.v1p2beta1.Block.Builder, + com.google.cloud.vision.v1p2beta1.BlockOrBuilder>( + blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1275,37 +1424,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Page) private static final com.google.cloud.vision.v1p2beta1.Page DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Page(); } @@ -1329,16 +1484,16 @@ public static com.google.cloud.vision.v1p2beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java similarity index 76% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java index 4e569749e..5f6fef305 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PageOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface PageOrBuilder extends +public interface PageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Page) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
@@ -35,37 +59,46 @@ public interface PageOrBuilder extends com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ int getWidth(); /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ int getHeight(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - java.util.List - getBlocksList(); + java.util.List getBlocksList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -74,6 +107,8 @@ public interface PageOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Block getBlocks(int index); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -82,30 +117,36 @@ public interface PageOrBuilder extends */ int getBlocksCount(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.BlockOrBuilder getBlocksOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java similarity index 77% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java index 2a133c878..b92eb3e5f 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Paragraph.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Paragraph} */ -public final class Paragraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Paragraph) ParagraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Paragraph( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Word.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - words_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Word.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +144,33 @@ private Paragraph( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Paragraph.class, com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p2beta1.Paragraph.class, + com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
@@ -263,6 +315,8 @@ public java.util.List getWordsList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -270,11 +324,13 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -286,6 +342,8 @@ public int getWordsCount() { return words_.size(); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -297,6 +355,8 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { return words_.get(index); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -304,19 +364,21 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -325,6 +387,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -360,20 +422,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,28 +441,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Paragraph other = (com.google.cloud.vision.v1p2beta1.Paragraph) obj; + com.google.cloud.vision.v1p2beta1.Paragraph other = + (com.google.cloud.vision.v1p2beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,125 +484,133 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Paragraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Paragraph) com.google.cloud.vision.v1p2beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Paragraph.class, com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p2beta1.Paragraph.class, + com.google.cloud.vision.v1p2beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Paragraph.newBuilder() @@ -555,17 +618,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; } @java.lang.Override @@ -614,7 +677,8 @@ public com.google.cloud.vision.v1p2beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p2beta1.Paragraph result = new com.google.cloud.vision.v1p2beta1.Paragraph(this); + com.google.cloud.vision.v1p2beta1.Paragraph result = + new com.google.cloud.vision.v1p2beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -644,38 +708,39 @@ public com.google.cloud.vision.v1p2beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Paragraph)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Paragraph) other); } else { super.mergeFrom(other); return this; @@ -708,9 +773,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -747,45 +813,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,6 +880,8 @@ public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -817,17 +900,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -839,6 +927,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -857,33 +947,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -891,14 +990,17 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -906,8 +1008,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -927,12 +1034,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -952,16 +1062,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -996,6 +1111,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1028,6 +1145,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,7 +1171,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1064,6 +1185,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1096,6 +1219,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1117,11 +1242,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1146,11 +1273,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1172,32 +1302,41 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder> wordsBuilder_;
+            com.google.cloud.vision.v1p2beta1.Word,
+            com.google.cloud.vision.v1p2beta1.Word.Builder,
+            com.google.cloud.vision.v1p2beta1.WordOrBuilder>
+        wordsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of words in this paragraph.
      * 
@@ -1212,6 +1351,8 @@ public java.util.List getWordsList() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1226,6 +1367,8 @@ public int getWordsCount() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1240,14 +1383,15 @@ public com.google.cloud.vision.v1p2beta1.Word getWords(int index) { } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1p2beta1.Word value) { + public Builder setWords(int index, com.google.cloud.vision.v1p2beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1261,6 +1405,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1279,6 +1425,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1299,14 +1447,15 @@ public Builder addWords(com.google.cloud.vision.v1p2beta1.Word value) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1p2beta1.Word value) { + public Builder addWords(int index, com.google.cloud.vision.v1p2beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1320,14 +1469,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public Builder addWords( - com.google.cloud.vision.v1p2beta1.Word.Builder builderForValue) { + public Builder addWords(com.google.cloud.vision.v1p2beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1338,6 +1488,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1356,6 +1508,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1366,8 +1520,7 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1375,6 +1528,8 @@ public Builder addAllWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1392,6 +1547,8 @@ public Builder clearWords() { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1409,39 +1566,44 @@ public Builder removeWords(int index) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.Word.Builder getWordsBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Word.Builder getWordsBuilder(int index) { return getWordsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index) { if (wordsBuilder_ == null) { - return words_.get(index); } else { + return words_.get(index); + } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,6 +1611,8 @@ public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1456,54 +1620,62 @@ public com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder( - int index) { - return getWordsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Word.Builder addWordsBuilder(int index) { + return getWordsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - public java.util.List - getWordsBuilderList() { + public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder> + com.google.cloud.vision.v1p2beta1.Word, + com.google.cloud.vision.v1p2beta1.Word.Builder, + com.google.cloud.vision.v1p2beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Word, com.google.cloud.vision.v1p2beta1.Word.Builder, com.google.cloud.vision.v1p2beta1.WordOrBuilder>( - words_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + wordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Word, + com.google.cloud.vision.v1p2beta1.Word.Builder, + com.google.cloud.vision.v1p2beta1.WordOrBuilder>( + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1511,37 +1683,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1551,12 +1729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Paragraph) private static final com.google.cloud.vision.v1p2beta1.Paragraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Paragraph(); } @@ -1565,16 +1743,16 @@ public static com.google.cloud.vision.v1p2beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1767,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java index e989fcc67..db6c1ac1e 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ParagraphOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface ParagraphOrBuilder extends +public interface ParagraphOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -35,6 +59,8 @@ public interface ParagraphOrBuilder extends com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface ParagraphOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -121,6 +156,8 @@ public interface ParagraphOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Word getWords(int index); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -129,30 +166,35 @@ public interface ParagraphOrBuilder extends */ int getWordsCount(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - java.util.List - getWordsOrBuilderList(); + java.util.List getWordsOrBuilderList(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Word words = 3; */ - com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.WordOrBuilder getWordsOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java similarity index 68% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java index 15b9ceea3..105b80b93 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Position}
  */
-public final class Position extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Position extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Position)
     PositionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Position() {
-  }
+
+  private Position() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,28 +70,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            z_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          case 29:
+            {
+              z_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +99,39 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Position.class, com.google.cloud.vision.v1p2beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Position.class,
+            com.google.cloud.vision.v1p2beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -121,11 +142,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -136,11 +160,14 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -149,6 +176,7 @@ public float getZ() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -181,16 +208,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -200,22 +224,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Position other = (com.google.cloud.vision.v1p2beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; + com.google.cloud.vision.v1p2beta1.Position other = + (com.google.cloud.vision.v1p2beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,110 +250,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -340,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Position}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Position)
       com.google.cloud.vision.v1p2beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Position.class, com.google.cloud.vision.v1p2beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Position.class,
+              com.google.cloud.vision.v1p2beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Position.newBuilder()
@@ -362,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -406,7 +433,8 @@ public com.google.cloud.vision.v1p2beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Position result = new com.google.cloud.vision.v1p2beta1.Position(this);
+      com.google.cloud.vision.v1p2beta1.Position result =
+          new com.google.cloud.vision.v1p2beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -418,38 +446,39 @@ public com.google.cloud.vision.v1p2beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Position)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Position) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,13 +525,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -510,42 +542,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -553,42 +594,51 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_ ; + private float z_; /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -596,37 +646,43 @@ public float getZ() { return z_; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Position) private static final com.google.cloud.vision.v1p2beta1.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Position(); } @@ -650,16 +706,16 @@ public static com.google.cloud.vision.v1p2beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java similarity index 50% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java index 333b07f75..7c6b6a2d7 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PositionOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; -public interface PositionOrBuilder extends +public interface PositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Position) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ float getX(); /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ float getY(); /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ float getZ(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java similarity index 70% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java index e8ee49620..74f922ac0 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Property.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; value_ = ""; @@ -26,16 +44,15 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private Property( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uint64Value_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 24: + { + uint64Value_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Property.class, com.google.cloud.vision.v1p2beta1.Property.Builder.class); + com.google.cloud.vision.v1p2beta1.Property.class, + com.google.cloud.vision.v1p2beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,11 +178,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -167,29 +194,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -200,11 +227,14 @@ public java.lang.String getValue() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -213,6 +243,7 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +281,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,19 +291,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.Property other = (com.google.cloud.vision.v1p2beta1.Property) obj; + com.google.cloud.vision.v1p2beta1.Property other = + (com.google.cloud.vision.v1p2beta1.Property) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getUint64Value() - != other.getUint64Value()) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (getUint64Value() != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,125 +318,133 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Property) com.google.cloud.vision.v1p2beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Property.class, com.google.cloud.vision.v1p2beta1.Property.Builder.class); + com.google.cloud.vision.v1p2beta1.Property.class, + com.google.cloud.vision.v1p2beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Property.newBuilder() @@ -417,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_Property_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p2beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Property buildPartial() { - com.google.cloud.vision.v1p2beta1.Property result = new com.google.cloud.vision.v1p2beta1.Property(this); + com.google.cloud.vision.v1p2beta1.Property result = + new com.google.cloud.vision.v1p2beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -473,38 +508,39 @@ public com.google.cloud.vision.v1p2beta1.Property buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Property)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Property) other); } else { super.mergeFrom(other); return this; @@ -555,18 +591,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,20 +613,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -596,54 +635,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -651,18 +697,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -671,20 +719,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -692,66 +741,76 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_ ; + private long uint64Value_; /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -759,37 +818,43 @@ public long getUint64Value() { return uint64Value_; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Property) private static final com.google.cloud.vision.v1p2beta1.Property DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Property(); } @@ -813,16 +878,16 @@ public static com.google.cloud.vision.v1p2beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java index a6559a942..3bfc54cbb 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/PropertyOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ long getUint64Value(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java similarity index 76% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java index 5bce1f628..18ef2ad4d 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -31,16 +49,15 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,43 +76,48 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            adult_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              adult_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spoof_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              spoof_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            medical_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              medical_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            violence_ = rawValue;
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
+              violence_ = rawValue;
+              break;
+            }
+          case 72:
+            {
+              int rawValue = input.readEnum();
 
-            racy_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              racy_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,29 +125,33 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class,
+            com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
+   *
+   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -133,12 +159,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -146,17 +176,22 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The adult. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -164,12 +199,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -177,71 +216,94 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The spoof. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The medical. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The violence. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -250,12 +312,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -264,15 +330,19 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The racy. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -311,24 +380,19 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p2beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,12 +402,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other = + (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -377,96 +442,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -475,21 +548,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p2beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.class,
+              com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.newBuilder()
@@ -497,16 +572,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +619,8 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation result =
+          new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -559,38 +634,39 @@ public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.getDefaultInstance())
+        return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -633,7 +710,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -645,6 +723,8 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
+     *
+     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -652,12 +732,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -665,16 +749,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -682,15 +769,19 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -698,6 +789,7 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @param value The adult to set. * @return This builder for chaining. */ @@ -705,12 +797,14 @@ public Builder setAdult(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -718,10 +812,11 @@ public Builder setAdult(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -729,6 +824,8 @@ public Builder clearAdult() { private int spoof_ = 0; /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -736,12 +833,16 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -749,16 +850,19 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -766,15 +870,19 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -782,6 +890,7 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @param value The spoof to set. * @return This builder for chaining. */ @@ -789,12 +898,14 @@ public Builder setSpoof(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -802,10 +913,11 @@ public Builder setSpoof(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -813,51 +925,65 @@ public Builder clearSpoof() { private int medical_ = 0; /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @param value The medical to set. * @return This builder for chaining. */ @@ -865,21 +991,24 @@ public Builder setMedical(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -887,51 +1016,65 @@ public Builder clearMedical() { private int violence_ = 0; /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @param value The violence to set. * @return This builder for chaining. */ @@ -939,21 +1082,24 @@ public Builder setViolence(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -961,6 +1107,8 @@ public Builder clearViolence() { private int racy_ = 0; /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -969,12 +1117,16 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -983,16 +1135,19 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1001,15 +1156,19 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.Likelihood result = com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p2beta1.Likelihood result = + com.google.cloud.vision.v1p2beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p2beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1018,6 +1177,7 @@ public com.google.cloud.vision.v1p2beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @param value The racy to set. * @return This builder for chaining. */ @@ -1025,12 +1185,14 @@ public Builder setRacy(com.google.cloud.vision.v1p2beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1039,17 +1201,18 @@ public Builder setRacy(com.google.cloud.vision.v1p2beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation(); } @@ -1073,16 +1236,16 @@ public static com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java index 2f97a54c6..b7959304a 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SafeSearchAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface SafeSearchAnnotationOrBuilder extends +public interface SafeSearchAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -15,10 +33,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -26,11 +47,14 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood adult = 1; + * * @return The adult. */ com.google.cloud.vision.v1p2beta1.Likelihood getAdult(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -38,10 +62,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -49,49 +76,64 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood spoof = 2; + * * @return The spoof. */ com.google.cloud.vision.v1p2beta1.Likelihood getSpoof(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood medical = 3; + * * @return The medical. */ com.google.cloud.vision.v1p2beta1.Likelihood getMedical(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood violence = 4; + * * @return The violence. */ com.google.cloud.vision.v1p2beta1.Likelihood getViolence(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -100,10 +142,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -112,6 +157,7 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.Likelihood racy = 9; + * * @return The racy. */ com.google.cloud.vision.v1p2beta1.Likelihood getRacy(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java similarity index 75% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java index a0ee829c9..11bcca814 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Symbol.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Symbol} */ -public final class Symbol extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symbol extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Symbol) SymbolOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,50 +70,59 @@ private Symbol( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + text_ = s; + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - text_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,34 +130,39 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Symbol.class, com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p2beta1.Symbol.class, + com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -139,18 +170,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -158,13 +196,16 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -184,6 +225,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -191,6 +233,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -210,13 +254,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -245,11 +294,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -258,29 +310,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -291,11 +343,14 @@ public java.lang.String getText() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -304,6 +359,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -339,19 +394,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +413,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Symbol)) { return super.equals(obj); @@ -370,19 +422,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,125 +453,133 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Symbol} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Symbol) com.google.cloud.vision.v1p2beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Symbol.class, com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p2beta1.Symbol.class, + com.google.cloud.vision.v1p2beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Symbol.newBuilder() @@ -531,16 +587,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; } @java.lang.Override @@ -585,7 +640,8 @@ public com.google.cloud.vision.v1p2beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p2beta1.Symbol result = new com.google.cloud.vision.v1p2beta1.Symbol(this); + com.google.cloud.vision.v1p2beta1.Symbol result = + new com.google.cloud.vision.v1p2beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -606,38 +662,39 @@ public com.google.cloud.vision.v1p2beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Symbol)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Symbol) other); } else { super.mergeFrom(other); return this; @@ -690,41 +747,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -738,6 +809,8 @@ public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -756,17 +829,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -778,6 +856,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -796,33 +876,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -830,14 +919,17 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -845,8 +937,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -866,12 +963,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -891,16 +991,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -935,6 +1040,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -967,6 +1074,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,7 +1100,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1003,6 +1114,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1035,6 +1148,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1056,11 +1171,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1085,11 +1202,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,14 +1231,17 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1126,18 +1249,20 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
+     *
+     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1146,20 +1271,21 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -1167,66 +1293,76 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1234,37 +1370,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Symbol) private static final com.google.cloud.vision.v1p2beta1.Symbol DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Symbol(); } @@ -1288,16 +1430,16 @@ public static com.google.cloud.vision.v1p2beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java similarity index 83% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java index a192c7ee7..4203ec3f5 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/SymbolOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface SymbolOrBuilder extends +public interface SymbolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -35,6 +59,8 @@ public interface SymbolOrBuilder extends com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,31 +136,39 @@ public interface SymbolOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java similarity index 70% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java index a75c31a23..90abf3293 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation}
  */
-public final class TextAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -33,16 +51,15 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,28 +79,31 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p2beta1.Page.parser(), extensionRegistry));
+              break;
             }
-            pages_.add(
-                input.readMessage(com.google.cloud.vision.v1p2beta1.Page.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            text_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              text_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +111,7 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -101,24 +120,30 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.TextAnnotation.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.class,
+            com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder extends
+  public interface DetectedLanguageOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -126,10 +151,13 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -137,53 +165,58 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); } /** + * + * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,24 +235,25 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,29 +261,33 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -257,6 +295,7 @@ private DetectedLanguage(
      * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -265,14 +304,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -280,16 +320,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -300,11 +339,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -313,6 +355,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -345,8 +387,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,18 +397,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,95 +422,102 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -480,44 +527,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using + // com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,14 +581,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance(); } @java.lang.Override @@ -550,7 +604,8 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage result = + new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -561,46 +616,53 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage)other); + return mergeFrom( + (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other) { - if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage other) { + if (other + == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -627,7 +689,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,6 +703,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -646,13 +712,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -661,6 +727,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -668,15 +736,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -684,6 +751,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -691,20 +760,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,15 +783,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -728,28 +802,31 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -757,34 +834,41 @@ public float getConfidence() { return confidence_; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -797,30 +881,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,77 +918,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DetectedBreakOrBuilder extends + public interface DetectedBreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ boolean getIsPrefix(); } /** + * + * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -921,24 +1019,25 @@ private DetectedBreak( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { + case 8: + { + int rawValue = input.readEnum(); - isPrefix_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 16: + { + isPrefix_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -946,36 +1045,41 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); } /** + * + * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown break label type.
        * 
@@ -984,6 +1088,8 @@ public enum BreakType */ UNKNOWN(0), /** + * + * *
        * Regular space.
        * 
@@ -992,6 +1098,8 @@ public enum BreakType */ SPACE(1), /** + * + * *
        * Sure space (very wide).
        * 
@@ -1000,6 +1108,8 @@ public enum BreakType */ SURE_SPACE(2), /** + * + * *
        * Line-wrapping break.
        * 
@@ -1008,6 +1118,8 @@ public enum BreakType */ EOL_SURE_SPACE(3), /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1017,6 +1129,8 @@ public enum BreakType
        */
       HYPHEN(4),
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1028,6 +1142,8 @@ public enum BreakType ; /** + * + * *
        * Unknown break label type.
        * 
@@ -1036,6 +1152,8 @@ public enum BreakType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
        * Regular space.
        * 
@@ -1044,6 +1162,8 @@ public enum BreakType */ public static final int SPACE_VALUE = 1; /** + * + * *
        * Sure space (very wide).
        * 
@@ -1052,6 +1172,8 @@ public enum BreakType */ public static final int SURE_SPACE_VALUE = 2; /** + * + * *
        * Line-wrapping break.
        * 
@@ -1060,6 +1182,8 @@ public enum BreakType */ public static final int EOL_SURE_SPACE_VALUE = 3; /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1069,6 +1193,8 @@ public enum BreakType
        */
       public static final int HYPHEN_VALUE = 4;
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1077,7 +1203,6 @@ public enum BreakType */ public static final int LINE_BREAK_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1102,52 +1227,57 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return SPACE; - case 2: return SURE_SPACE; - case 3: return EOL_SURE_SPACE; - case 4: return HYPHEN; - case 5: return LINE_BREAK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return SPACE; + case 2: + return SURE_SPACE; + case 3: + return EOL_SURE_SPACE; + case 4: + return HYPHEN; + case 5: + return LINE_BREAK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BreakType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDescriptor() + .getEnumTypes() + .get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1167,38 +1297,52 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1207,6 +1351,7 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1218,9 +1363,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1235,13 +1381,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1251,16 +1397,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() - != other.getIsPrefix()) return false; + if (getIsPrefix() != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1275,95 +1421,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1373,27 +1525,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1401,16 +1558,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1422,13 +1578,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1443,7 +1600,8 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak result = + new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1454,46 +1612,52 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak other) { + if (other + == com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1519,7 +1683,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1531,85 +1697,113 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_ ; + private boolean isPrefix_; /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1617,34 +1811,41 @@ public boolean getIsPrefix() { return isPrefix_; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1657,30 +1858,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1692,119 +1895,153 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextPropertyOrBuilder extends + public interface TextPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ int getDetectedLanguagesCount(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder(); } /** + * + * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1824,35 +2061,45 @@ private TextProperty( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage>(); + mutable_bitField0_ |= 0x00000001; + } + detectedLanguages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.parser(), + extensionRegistry)); + break; } - detectedLanguages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); + case 18: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder subBuilder = + null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); + } + detectedBreak_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); + } + + break; } - detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1860,8 +2107,7 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -1870,87 +2116,117 @@ private TextProperty( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List detectedLanguages_; + private java.util.List + detectedLanguages_; /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { return detectedLanguages_.get(index); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detectedBreak_; /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -1958,18 +2234,25 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1977,11 +2260,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1993,8 +2278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2011,12 +2295,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, detectedLanguages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2026,19 +2309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList() - .equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak() - .equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2065,87 +2347,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2155,27 +2444,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder() @@ -2183,17 +2477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2213,13 +2507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2234,7 +2529,8 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty result = + new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2258,46 +2554,52 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty other) { + if (other + == com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance()) + return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2316,9 +2618,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPr detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetectedLanguagesFieldBuilder() : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetectedLanguagesFieldBuilder() + : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2346,7 +2649,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2355,28 +2660,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List detectedLanguages_ = - java.util.Collections.emptyList(); + private java.util.List + detectedLanguages_ = java.util.Collections.emptyList(); + private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage>( + detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + detectedLanguagesBuilder_; /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2384,11 +2702,15 @@ public java.util.List * A list of detected languages together with confidence. *
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2398,13 +2720,18 @@ public int getDetectedLanguagesCount() { } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2412,11 +2739,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage getDete } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { @@ -2433,14 +2764,20 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( - int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2451,13 +2788,18 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public Builder addDetectedLanguages(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2471,11 +2813,15 @@ public Builder addDetectedLanguages(com.google.cloud.vision.v1p2beta1.TextAnnota return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage value) { @@ -2492,14 +2838,19 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2510,14 +2861,20 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - int index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2528,18 +2885,23 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addAllDetectedLanguages( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage> + values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2547,11 +2909,15 @@ public Builder addAllDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2564,11 +2930,15 @@ public Builder clearDetectedLanguages() { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2581,39 +2951,53 @@ public Builder removeDetectedLanguages(int index) { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + getDetectedLanguagesBuilder(int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); } else { + return detectedLanguages_.get(index); + } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2621,45 +3005,70 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilde } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( - int index) { - return getDetectedLanguagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder(int index) { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder> + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2671,41 +3080,58 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder private com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> + detectedBreakBuilder_; /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return The detectedBreak. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder setDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2719,11 +3145,14 @@ public Builder setDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotation return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder setDetectedBreak( com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -2737,17 +3166,24 @@ public Builder setDetectedBreak( return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder mergeDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak( + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.newBuilder( + detectedBreak_) + .mergeFrom(value) + .buildPartial(); } else { detectedBreak_ = value; } @@ -2759,11 +3195,14 @@ public Builder mergeDetectedBreak(com.google.cloud.vision.v1p2beta1.TextAnnotati return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -2777,52 +3216,68 @@ public Builder clearDetectedBreak() { return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder + getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), - getParentForChildren(), - isClean()); + detectedBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), getParentForChildren(), isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2835,30 +3290,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstance() { + public static com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2870,15 +3327,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2890,6 +3349,8 @@ public java.util.List getPagesList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2897,11 +3358,13 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2913,6 +3376,8 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2924,6 +3389,8 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2931,19 +3398,21 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ @java.lang.Override @@ -2952,29 +3421,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -2983,6 +3452,7 @@ public java.lang.String getText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2994,8 +3464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3012,8 +3481,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3026,17 +3494,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextAnnotation other = (com.google.cloud.vision.v1p2beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p2beta1.TextAnnotation other = + (com.google.cloud.vision.v1p2beta1.TextAnnotation) obj; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getText() - .equals(other.getText())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getText().equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3059,97 +3526,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3163,21 +3637,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.TextAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextAnnotation)
       com.google.cloud.vision.v1p2beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.TextAnnotation.class, com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p2beta1.TextAnnotation.class,
+              com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.TextAnnotation.newBuilder()
@@ -3185,17 +3661,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3211,9 +3687,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3232,7 +3708,8 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p2beta1.TextAnnotation result = new com.google.cloud.vision.v1p2beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p2beta1.TextAnnotation result =
+          new com.google.cloud.vision.v1p2beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3252,38 +3729,39 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3291,7 +3769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.TextAnnotation.getDefaultInstance())
+        return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3310,9 +3789,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3350,21 +3830,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder> pagesBuilder_;
+            com.google.cloud.vision.v1p2beta1.Page,
+            com.google.cloud.vision.v1p2beta1.Page.Builder,
+            com.google.cloud.vision.v1p2beta1.PageOrBuilder>
+        pagesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3379,6 +3866,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3393,6 +3882,8 @@ public int getPagesCount() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3407,14 +3898,15 @@ public com.google.cloud.vision.v1p2beta1.Page getPages(int index) { } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1p2beta1.Page value) { + public Builder setPages(int index, com.google.cloud.vision.v1p2beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3428,6 +3920,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3446,6 +3940,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3466,14 +3962,15 @@ public Builder addPages(com.google.cloud.vision.v1p2beta1.Page value) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1p2beta1.Page value) { + public Builder addPages(int index, com.google.cloud.vision.v1p2beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3487,14 +3984,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public Builder addPages( - com.google.cloud.vision.v1p2beta1.Page.Builder builderForValue) { + public Builder addPages(com.google.cloud.vision.v1p2beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3505,6 +4003,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3523,6 +4023,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3533,8 +4035,7 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3542,6 +4043,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3559,6 +4062,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3576,39 +4081,44 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.Page.Builder getPagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -3616,6 +4126,8 @@ public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3623,42 +4135,47 @@ public com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p2beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder> + com.google.cloud.vision.v1p2beta1.Page, + com.google.cloud.vision.v1p2beta1.Page.Builder, + com.google.cloud.vision.v1p2beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.Page, com.google.cloud.vision.v1p2beta1.Page.Builder, com.google.cloud.vision.v1p2beta1.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.Page, + com.google.cloud.vision.v1p2beta1.Page.Builder, + com.google.cloud.vision.v1p2beta1.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; @@ -3666,18 +4183,20 @@ public com.google.cloud.vision.v1p2beta1.Page.Builder addPagesBuilder( private java.lang.Object text_ = ""; /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -3686,20 +4205,21 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -3707,61 +4227,68 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3771,12 +4298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation) private static final com.google.cloud.vision.v1p2beta1.TextAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextAnnotation(); } @@ -3785,16 +4312,16 @@ public static com.google.cloud.vision.v1p2beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3809,6 +4336,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java index 993383596..9634db00e 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface TextAnnotationOrBuilder extends +public interface TextAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -25,6 +44,8 @@ public interface TextAnnotationOrBuilder extends */ com.google.cloud.vision.v1p2beta1.Page getPages(int index); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -33,41 +54,48 @@ public interface TextAnnotationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p2beta1.Page pages = 1; */ - com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); } diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java new file mode 100644 index 000000000..8358e73f7 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java @@ -0,0 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/text_annotation.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p2beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p2b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p2beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p2beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p2beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p2beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p2beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p2beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p2beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p2beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p2beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p2b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p2beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p2beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p2beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p2beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p2beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p2beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p2beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p2beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p2beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p2beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p2beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor, + new java.lang.String[] { + "Pages", "Text", + }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { + "Type", "IsPrefix", + }); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { + "DetectedLanguages", "DetectedBreak", + }); + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p2beta1_Page_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Page_descriptor, + new java.lang.String[] { + "Property", "Width", "Height", "Blocks", "Confidence", + }); + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p2beta1_Block_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Block_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", + }); + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p2beta1_Paragraph_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Paragraph_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Words", "Confidence", + }); + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Word_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Symbols", "Confidence", + }); + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p2beta1_Symbol_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_Symbol_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Text", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java similarity index 73% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java index a62c85f83..27ece1398 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextDetectionParams() {
     advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72: {
-
-            enableTextDetectionConfidenceScore_ = input.readBool();
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              enableTextDetectionConfidenceScore_ = input.readBool();
+              break;
             }
-            advancedOcrOptions_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              advancedOcrOptions_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private TextDetectionParams(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.TextDetectionParams.class, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p2beta1.TextDetectionParams.class,
+            com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
+   *
+   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -116,6 +138,7 @@ private TextDetectionParams(
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -126,34 +149,42 @@ public boolean getEnableTextDetectionConfidenceScore() { public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList advancedOcrOptions_; /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_; } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -161,20 +192,23 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } @@ -204,8 +237,9 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableTextDetectionConfidenceScore_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, enableTextDetectionConfidenceScore_); } { int dataSize = 0; @@ -223,17 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.TextDetectionParams other = (com.google.cloud.vision.v1p2beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p2beta1.TextDetectionParams other = + (com.google.cloud.vision.v1p2beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() - != other.getEnableTextDetectionConfidenceScore()) return false; - if (!getAdvancedOcrOptionsList() - .equals(other.getAdvancedOcrOptionsList())) return false; + if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) + return false; + if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,8 +280,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableTextDetectionConfidenceScore()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); if (getAdvancedOcrOptionsCount() > 0) { hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); @@ -258,96 +293,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.TextDetectionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -355,21 +398,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.TextDetectionParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.TextDetectionParams)
       com.google.cloud.vision.v1p2beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.TextDetectionParams.class, com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p2beta1.TextDetectionParams.class,
+              com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.TextDetectionParams.newBuilder()
@@ -377,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +463,8 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p2beta1.TextDetectionParams result = new com.google.cloud.vision.v1p2beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p2beta1.TextDetectionParams result =
+          new com.google.cloud.vision.v1p2beta1.TextDetectionParams(this);
       int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -435,38 +480,39 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextDetectionParams)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.TextDetectionParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,7 +520,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p2beta1.TextDetectionParams.getDefaultInstance())
+        return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
@@ -507,7 +554,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p2beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p2beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -516,10 +564,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_ ;
+    private boolean enableTextDetectionConfidenceScore_;
     /**
+     *
+     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -527,6 +578,7 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -534,6 +586,8 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -541,16 +595,19 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -558,51 +615,62 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList advancedOcrOptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_.getUnmodifiableView(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -610,80 +678,90 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index to set the value at. * @param value The advancedOcrOptions to set. * @return This builder for chaining. */ - public Builder setAdvancedOcrOptions( - int index, java.lang.String value) { + public Builder setAdvancedOcrOptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptions( - java.lang.String value) { + public Builder addAdvancedOcrOptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param values The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAllAdvancedOcrOptions( - java.lang.Iterable values) { + public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) { ensureAdvancedOcrOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, advancedOcrOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return This builder for chaining. */ public Builder clearAdvancedOcrOptions() { @@ -693,28 +771,30 @@ public Builder clearAdvancedOcrOptions() { return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The bytes of the advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p2beta1.TextDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.TextDetectionParams(); } @@ -738,16 +818,16 @@ public static com.google.cloud.vision.v1p2beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java index a4c66feb3..a0a0aac15 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; -public interface TextDetectionParamsOrBuilder extends +public interface TextDetectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.TextDetectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -15,48 +33,59 @@ public interface TextDetectionParamsOrBuilder extends
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ boolean getEnableTextDetectionConfidenceScore(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - java.util.List - getAdvancedOcrOptionsList(); + java.util.List getAdvancedOcrOptionsList(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ int getAdvancedOcrOptionsCount(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ java.lang.String getAdvancedOcrOptions(int index); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index); + com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index); } diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java similarity index 69% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java index 17505587f..f652cd971 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Vertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p2beta1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p2beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p2beta1.Vertex.class, com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p2beta1.Vertex.class,
+            com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p2beta1.Vertex other = (com.google.cloud.vision.v1p2beta1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +223,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +328,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p2beta1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Vertex)
       com.google.cloud.vision.v1p2beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p2beta1.Vertex.class, com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p2beta1.Vertex.class,
+              com.google.cloud.vision.v1p2beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p2beta1.Vertex.newBuilder()
@@ -323,16 +352,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -344,9 +372,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p2beta1.GeometryProto.internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p2beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p2beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -365,7 +393,8 @@ public com.google.cloud.vision.v1p2beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p2beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p2beta1.Vertex result = new com.google.cloud.vision.v1p2beta1.Vertex(this);
+      com.google.cloud.vision.v1p2beta1.Vertex result =
+          new com.google.cloud.vision.v1p2beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -376,38 +405,39 @@ public com.google.cloud.vision.v1p2beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p2beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p2beta1.Vertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p2beta1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +481,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +498,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +550,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Vertex) private static final com.google.cloud.vision.v1p2beta1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Vertex(); } @@ -562,16 +610,16 @@ public static com.google.cloud.vision.v1p2beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java new file mode 100644 index 000000000..e5e920eaa --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/VertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/geometry.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java similarity index 71% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java index ef9fa9675..76c4c2700 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/web_detection.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection} */ -public final class WebDetection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection) WebDetectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,67 +76,97 @@ private WebDetection( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity>(); + mutable_bitField0_ |= 0x00000001; + } + webEntities_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.parser(), + extensionRegistry)); + break; } - webEntities_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000004; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage>(); + mutable_bitField0_ |= 0x00000008; + } + pagesWithMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.parser(), + extensionRegistry)); + break; } - pagesWithMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000010; + } + visuallySimilarImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - visuallySimilarImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 66: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel>(); + mutable_bitField0_ |= 0x00000020; + } + bestGuessLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.parser(), + extensionRegistry)); + break; } - bestGuessLabels_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,8 +174,7 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -152,90 +198,110 @@ private WebDetection( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.class, com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.class, + com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder extends + public interface WebEntityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ java.lang.String getEntityId(); /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - com.google.protobuf.ByteString - getEntityIdBytes(); + com.google.protobuf.ByteString getEntityIdBytes(); /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebEntity() { entityId_ = ""; description_ = ""; @@ -243,16 +309,15 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -271,30 +336,32 @@ private WebEntity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -302,34 +369,39 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ @java.lang.Override @@ -338,29 +410,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -371,12 +443,15 @@ public java.lang.String getEntityId() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -387,11 +462,14 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -400,29 +478,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -431,6 +509,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +521,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -466,8 +544,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -480,20 +557,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) obj; - if (!getEntityId() - .equals(other.getEntityId())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,8 +583,7 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -518,87 +592,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,27 +689,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebEntity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.newBuilder() @@ -636,16 +722,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +744,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -680,7 +765,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity result = + new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -692,38 +778,41 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) other); } else { super.mergeFrom(other); return this; @@ -731,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()) + return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -762,7 +852,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -774,18 +865,20 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -794,20 +887,21 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -815,67 +909,77 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId( - java.lang.String value) { + public Builder setEntityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -883,32 +987,38 @@ public float getScore() { return score_; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -916,18 +1026,20 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,20 +1048,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -957,58 +1070,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity(); } @@ -1035,16 +1156,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,75 +1180,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebImageOrBuilder extends + public interface WebImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); } /** + * + * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebImage} */ - public static final class WebImage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,24 +1277,25 @@ private WebImage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,34 +1303,39 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -1207,29 +1344,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1240,11 +1377,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1253,6 +1393,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1264,8 +1405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1285,8 +1425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1296,18 +1435,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,95 +1460,101 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,27 +1564,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebImage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebImage) com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.newBuilder() @@ -1448,16 +1597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1469,9 +1617,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1490,7 +1638,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage result = + new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1501,38 +1650,41 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebImage)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) other); } else { super.mergeFrom(other); return this; @@ -1540,7 +1692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1567,7 +1720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1579,18 +1733,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1599,20 +1755,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1620,66 +1777,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1687,34 +1854,41 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebImage(); } @@ -1741,16 +1915,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,113 +1939,143 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebPageOrBuilder extends + public interface WebPageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ java.lang.String getPageTitle(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString - getPageTitleBytes(); + com.google.protobuf.ByteString getPageTitleBytes(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ int getFullMatchingImagesCount(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1879,11 +2083,15 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1891,10 +2099,14 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1902,10 +2114,14 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ int getPartialMatchingImagesCount(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1913,11 +2129,15 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1925,27 +2145,32 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); } /** + * + * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebPage} */ - public static final class WebPage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebPage() { url_ = ""; pageTitle_ = ""; @@ -1955,16 +2180,15 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1984,48 +2208,60 @@ private WebPage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageTitle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + pageTitle_ = s; + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000001; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2033,8 +2269,7 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2046,27 +2281,33 @@ private WebPage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -2075,29 +2316,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2108,11 +2349,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2123,11 +2367,14 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ @java.lang.Override @@ -2136,29 +2383,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2167,73 +2414,95 @@ public java.lang.String getPageTitle() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( + int index) { return fullMatchingImages_.get(index); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2241,13 +2510,18 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullM
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2255,14 +2529,19 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2270,13 +2549,17 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2284,13 +2567,18 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2298,15 +2586,18 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2318,8 +2609,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2348,19 +2638,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2370,24 +2660,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getPageTitle() - .equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2402,8 +2689,7 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2420,87 +2706,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2510,27 +2803,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebPage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebPage) com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.newBuilder() @@ -2538,18 +2836,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2575,9 +2873,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2596,7 +2894,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage result = + new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2627,38 +2926,41 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebPage)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; @@ -2666,7 +2968,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2696,9 +2999,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2722,9 +3026,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -2749,7 +3054,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2758,22 +3064,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object url_ = ""; /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -2782,20 +3091,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2803,66 +3113,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2870,30 +3190,36 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -2901,18 +3227,20 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -2921,20 +3249,21 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2942,80 +3271,98 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle( - java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3023,12 +3370,16 @@ public java.util.List g } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3038,14 +3389,19 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3053,12 +3409,16 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3075,15 +3435,20 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3094,14 +3459,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3115,12 +3485,16 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetect return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3137,12 +3511,16 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3156,15 +3534,20 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3175,19 +3558,23 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3195,12 +3582,16 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3213,12 +3604,16 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3231,42 +3626,56 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3274,48 +3683,70 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3325,19 +3756,27 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3345,9 +3784,12 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3355,6 +3797,8 @@ public java.util.List g } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3362,7 +3806,9 @@ public java.util.List g
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3372,6 +3818,8 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3379,9 +3827,12 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3389,6 +3840,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3396,7 +3849,9 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3413,6 +3868,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3420,10 +3877,13 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3434,6 +3894,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3441,9 +3903,12 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,6 +3922,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDet return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3464,7 +3931,9 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDet
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -3481,6 +3950,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3488,7 +3959,9 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3502,6 +3975,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3509,10 +3984,13 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -3523,6 +4001,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3530,14 +4010,16 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3545,6 +4027,8 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3552,7 +4036,9 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3565,6 +4051,8 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3572,7 +4060,9 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3585,6 +4075,8 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3592,13 +4084,17 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3606,16 +4102,21 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3623,10 +4124,13 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3634,6 +4138,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3641,13 +4147,19 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3655,14 +4167,20 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3670,18 +4188,26 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3690,6 +4216,7 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartia } return partialMatchingImagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3702,12 +4229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebPage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebPage(); } @@ -3716,16 +4243,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,34 +4267,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebLabelOrBuilder extends + public interface WebLabelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3775,10 +4309,13 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3786,27 +4323,30 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } /** + * + * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebLabel() { label_ = ""; languageCode_ = ""; @@ -3814,16 +4354,15 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3842,25 +4381,27 @@ private WebLabel( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3868,34 +4409,39 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ @java.lang.Override @@ -3904,29 +4450,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -3937,6 +4483,8 @@ public java.lang.String getLabel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3944,6 +4492,7 @@ public java.lang.String getLabel() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -3952,14 +4501,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3967,16 +4517,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3985,6 +4534,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3996,8 +4546,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4027,17 +4576,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) obj; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4059,87 +4607,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4149,27 +4704,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection.WebLabel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.newBuilder() @@ -4177,16 +4737,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4198,9 +4757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4219,7 +4778,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4230,38 +4790,41 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) other); } else { super.mergeFrom(other); return this; @@ -4269,7 +4832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4297,7 +4861,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4309,18 +4874,20 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4329,20 +4896,21 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4350,54 +4918,61 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4405,6 +4980,8 @@ public Builder setLabelBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4412,13 +4989,13 @@ public Builder setLabelBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4427,6 +5004,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4434,15 +5013,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4450,6 +5028,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4457,20 +5037,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4478,15 +5060,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4494,20 +5079,21 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4520,12 +5106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel(); } @@ -4534,16 +5120,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4558,12 +5144,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4571,10 +5158,13 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4582,11 +5172,13 @@ public java.util.List * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4598,6 +5190,8 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4609,6 +5203,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4622,321 +5218,424 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List pagesWithMatchingImages_; + private java.util.List + pagesWithMatchingImages_; /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { return pagesWithMatchingImages_.get(index); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List visuallySimilarImages_; + private java.util.List + visuallySimilarImages_; /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { return visuallySimilarImages_.get(index); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4948,8 +5647,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -4978,28 +5676,29 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, pagesWithMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, visuallySimilarImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5009,25 +5708,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetection other = (com.google.cloud.vision.v1p2beta1.WebDetection) obj; - - if (!getWebEntitiesList() - .equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList() - .equals(other.getPagesWithMatchingImagesList())) return false; - if (!getVisuallySimilarImagesList() - .equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList() - .equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p2beta1.WebDetection other = + (com.google.cloud.vision.v1p2beta1.WebDetection) obj; + + if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) + return false; + if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5068,118 +5763,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetection) com.google.cloud.vision.v1p2beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetection.class, com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetection.class, + com.google.cloud.vision.v1p2beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetection.newBuilder() @@ -5187,14 +5891,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5203,6 +5906,7 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5246,9 +5950,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; } @java.lang.Override @@ -5267,7 +5971,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetection result = new com.google.cloud.vision.v1p2beta1.WebDetection(this); + com.google.cloud.vision.v1p2beta1.WebDetection result = + new com.google.cloud.vision.v1p2beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5298,7 +6003,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5331,38 +6037,39 @@ public com.google.cloud.vision.v1p2beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetection) other); } else { super.mergeFrom(other); return this; @@ -5389,9 +6096,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebEntitiesFieldBuilder() : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebEntitiesFieldBuilder() + : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -5415,9 +6123,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -5441,9 +6150,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -5467,9 +6177,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPagesWithMatchingImagesFieldBuilder() : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPagesWithMatchingImagesFieldBuilder() + : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -5493,9 +6204,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVisuallySimilarImagesFieldBuilder() : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVisuallySimilarImagesFieldBuilder() + : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -5519,9 +6231,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBestGuessLabelsFieldBuilder() : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBestGuessLabelsFieldBuilder() + : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -5555,28 +6268,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(webEntities_); + webEntities_ = + new java.util.ArrayList( + webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> + webEntitiesBuilder_; /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -5584,6 +6307,8 @@ public java.util.List } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5598,6 +6323,8 @@ public int getWebEntitiesCount() { } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5612,6 +6339,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(i } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5633,6 +6362,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5640,7 +6371,8 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -5651,6 +6383,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5671,6 +6405,8 @@ public Builder addWebEntities(com.google.cloud.vision.v1p2beta1.WebDetection.Web return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5692,6 +6428,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5710,6 +6448,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5717,7 +6457,8 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -5728,6 +6469,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5735,11 +6478,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -5747,6 +6490,8 @@ public Builder addAllWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5764,6 +6509,8 @@ public Builder clearWebEntities() { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5781,6 +6528,8 @@ public Builder removeWebEntities(int index) { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5792,28 +6541,34 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder + getWebEntitiesOrBuilder(int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); } else { + return webEntities_.get(index); + } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -5821,17 +6576,23 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebE } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder + addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5840,56 +6601,72 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder addWebEn */ public com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + webEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -5897,12 +6674,15 @@ public java.util.List g } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -5912,14 +6692,18 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -5927,12 +6711,15 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -5949,15 +6736,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -5968,14 +6759,18 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5989,12 +6784,15 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetect return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6011,12 +6809,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6030,15 +6831,19 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6049,19 +6854,22 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6069,12 +6877,15 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6087,12 +6898,15 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6105,42 +6919,53 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6148,48 +6973,65 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6199,28 +7041,39 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6228,13 +7081,17 @@ public java.util.List g } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6244,15 +7101,20 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -6260,13 +7122,17 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6283,16 +7149,21 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -6303,15 +7174,20 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6325,13 +7201,17 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p2beta1.WebDet return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6348,13 +7228,17 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6368,16 +7252,21 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -6388,20 +7277,24 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -6409,13 +7302,17 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -6428,13 +7325,17 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6447,45 +7348,59 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6493,51 +7408,71 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6547,26 +7482,37 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addPartia return partialMatchingImagesBuilder_; } - private java.util.List pagesWithMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + pagesWithMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + new java.util.ArrayList( + pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> + pagesWithMatchingImagesBuilder_; /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -6574,11 +7520,15 @@ public java.util.List ge } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6588,13 +7538,18 @@ public int getPagesWithMatchingImagesCount() { } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -6602,11 +7557,15 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchi } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { @@ -6623,11 +7582,15 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6641,13 +7604,18 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6661,11 +7629,15 @@ public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p2beta1.WebD return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage value) { @@ -6682,11 +7654,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6700,11 +7676,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6718,18 +7698,22 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -6737,11 +7721,15 @@ public Builder addAllPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6754,11 +7742,15 @@ public Builder clearPagesWithMatchingImages() { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6771,39 +7763,52 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder + getPagesWithMatchingImagesBuilder(int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); } else { + return pagesWithMatchingImages_.get(index); + } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6811,45 +7816,65 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesW } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( - int index) { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder(int index) { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6859,26 +7884,37 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder addPagesWi return pagesWithMatchingImagesBuilder_; } - private java.util.List visuallySimilarImages_ = - java.util.Collections.emptyList(); + private java.util.List + visuallySimilarImages_ = java.util.Collections.emptyList(); + private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); + visuallySimilarImages_ = + new java.util.ArrayList( + visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + visuallySimilarImagesBuilder_; /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -6886,11 +7922,15 @@ public java.util.List g } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -6900,13 +7940,18 @@ public int getVisuallySimilarImagesCount() { } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -6914,11 +7959,15 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimila } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6935,14 +7984,19 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -6953,13 +8007,18 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages( + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6973,11 +8032,15 @@ public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p2beta1.WebDet return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage value) { @@ -6994,11 +8057,15 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7012,14 +8079,19 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -7030,18 +8102,22 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7049,11 +8125,15 @@ public Builder addAllVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7066,11 +8146,15 @@ public Builder clearVisuallySimilarImages() { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7083,39 +8167,53 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + getVisuallySimilarImagesBuilder(int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); } else { + return visuallySimilarImages_.get(index); + } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7123,45 +8221,65 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisua } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( - int index) { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder(int index) { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7171,26 +8289,36 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder addVisual return visuallySimilarImagesBuilder_; } - private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); + private java.util.List + bestGuessLabels_ = java.util.Collections.emptyList(); + private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); + bestGuessLabels_ = + new java.util.ArrayList( + bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> + bestGuessLabelsBuilder_; /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -7198,11 +8326,14 @@ public java.util.List g } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -7212,11 +8343,14 @@ public int getBestGuessLabelsCount() { } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7226,11 +8360,14 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabel } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { @@ -7247,14 +8384,18 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -7265,13 +8406,17 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public Builder addBestGuessLabels(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels( + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7285,11 +8430,14 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1p2beta1.WebDetection return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel value) { @@ -7306,11 +8454,14 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -7324,14 +8475,18 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( - int index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -7342,18 +8497,21 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addAllBestGuessLabels( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -7361,11 +8519,14 @@ public Builder addAllBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -7378,11 +8539,14 @@ public Builder clearBestGuessLabels() { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7395,39 +8559,50 @@ public Builder removeBestGuessLabels(int index) { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder + getBestGuessLabelsBuilder(int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); } else { + return bestGuessLabels_.get(index); + } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -7435,45 +8610,62 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestG } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( - int index) { - return getBestGuessLabelsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder(int index) { + return getBestGuessLabelsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -7482,9 +8674,9 @@ public com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder addBestGu } return bestGuessLabelsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7494,12 +8686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection) private static final com.google.cloud.vision.v1p2beta1.WebDetection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetection(); } @@ -7508,16 +8700,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7532,6 +8724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java index be22ed9f4..462d62839 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/web_detection.proto package com.google.cloud.vision.v1p2beta1; -public interface WebDetectionOrBuilder extends +public interface WebDetectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List - getWebEntitiesList(); + java.util.List getWebEntitiesList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -25,6 +44,8 @@ public interface WebDetectionOrBuilder extends */ com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity getWebEntities(int index); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -33,15 +54,19 @@ public interface WebDetectionOrBuilder extends */ int getWebEntitiesCount(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -52,236 +77,325 @@ com.google.cloud.vision.v1p2beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ int getFullMatchingImagesCount(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ int getPartialMatchingImagesCount(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ int getPagesWithMatchingImagesCount(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ int getVisuallySimilarImagesCount(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index); + com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List - getBestGuessLabelsList(); + java.util.List getBestGuessLabelsList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ int getBestGuessLabelsCount(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p2beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p2beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java similarity index 69% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java index 08326401d..6b53bb692 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParams.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetectionParams} */ -public final class WebDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.WebDetectionParams) WebDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetectionParams() { - } + + private WebDetectionParams() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: { - - includeGeoResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + includeGeoResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** + * + * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p2beta1.WebDetectionParams other = (com.google.cloud.vision.v1p2beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p2beta1.WebDetectionParams other = + (com.google.cloud.vision.v1p2beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() - != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.WebDetectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.WebDetectionParams) com.google.cloud.vision.v1p2beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p2beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.WebDetectionParams.newBuilder() @@ -291,16 +319,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p2beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -331,7 +358,8 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p2beta1.WebDetectionParams result = new com.google.cloud.vision.v1p2beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p2beta1.WebDetectionParams result = + new com.google.cloud.vision.v1p2beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -341,38 +369,39 @@ public com.google.cloud.vision.v1p2beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetectionParams)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.WebDetectionParams) other); } else { super.mergeFrom(other); return this; @@ -380,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p2beta1.WebDetectionParams.getDefaultInstance()) + return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -403,7 +433,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p2beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p2beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,13 +444,16 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_ ; + private boolean includeGeoResults_; /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -427,37 +461,43 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +507,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p2beta1.WebDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.WebDetectionParams(); } @@ -481,16 +521,16 @@ public static com.google.cloud.vision.v1p2beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +545,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..7af5e2d7b --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/image_annotator.proto + +package com.google.cloud.vision.v1p2beta1; + +public interface WebDetectionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java new file mode 100644 index 000000000..e45a62d88 --- /dev/null +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p2beta1/web_detection.proto + +package com.google.cloud.vision.v1p2beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p2beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p2bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p2beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p2beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p2beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p2" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p2beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p2beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p2beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p2beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p2beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor, + new java.lang.String[] { + "WebEntities", + "FullMatchingImages", + "PartialMatchingImages", + "PagesWithMatchingImages", + "VisuallySimilarImages", + "BestGuessLabels", + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { + "EntityId", "Score", "Description", + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { + "Url", "Score", + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { + "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", + }); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p2beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { + "Label", "LanguageCode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java similarity index 77% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java index 35213ba52..f0f94883f 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Word.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; /** + * + * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Word} */ -public final class Word extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Word extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p2beta1.Word) WordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Word( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p2beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + symbols_.add( + input.readMessage( + com.google.cloud.vision.v1p2beta1.Symbol.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1p2beta1.Symbol.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -118,27 +144,33 @@ private Word( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Word.class, com.google.cloud.vision.v1p2beta1.Word.Builder.class); + com.google.cloud.vision.v1p2beta1.Word.class, + com.google.cloud.vision.v1p2beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the word.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -264,6 +316,8 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -272,11 +326,13 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -289,6 +345,8 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -301,6 +359,8 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -309,19 +369,21 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -330,6 +392,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +404,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,20 +427,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,7 +446,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p2beta1.Word)) { return super.equals(obj); @@ -397,19 +455,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getSymbolsList() - .equals(other.getSymbolsList())) return false; + if (!getSymbolsList().equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,125 +488,133 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p2beta1.Word parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Word parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p2beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p2beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p2beta1.Word} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p2beta1.Word) com.google.cloud.vision.v1p2beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p2beta1.Word.class, com.google.cloud.vision.v1p2beta1.Word.Builder.class); + com.google.cloud.vision.v1p2beta1.Word.class, + com.google.cloud.vision.v1p2beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p2beta1.Word.newBuilder() @@ -560,17 +622,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p2beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p2beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p2beta1_Word_descriptor; } @java.lang.Override @@ -619,7 +681,8 @@ public com.google.cloud.vision.v1p2beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p2beta1.Word buildPartial() { - com.google.cloud.vision.v1p2beta1.Word result = new com.google.cloud.vision.v1p2beta1.Word(this); + com.google.cloud.vision.v1p2beta1.Word result = + new com.google.cloud.vision.v1p2beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -649,38 +712,39 @@ public com.google.cloud.vision.v1p2beta1.Word buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p2beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p2beta1.Word)other); + return mergeFrom((com.google.cloud.vision.v1p2beta1.Word) other); } else { super.mergeFrom(other); return this; @@ -713,9 +777,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymbolsFieldBuilder() : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymbolsFieldBuilder() + : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -752,45 +817,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,6 +884,8 @@ public Builder setProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -822,17 +904,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -844,6 +931,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p2beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -862,33 +951,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -896,14 +994,17 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -911,8 +1012,13 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p2beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p2beta1.BoundingPoly, + com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -932,12 +1038,15 @@ public com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -957,16 +1066,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1001,6 +1115,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1033,6 +1149,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1057,7 +1175,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p2beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1069,6 +1189,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p2beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,6 +1223,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1122,11 +1246,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1151,11 +1277,14 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p2beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1177,32 +1306,41 @@ public com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.BoundingPoly,
+            com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.BoundingPoly, com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.BoundingPoly,
+                com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder> symbolsBuilder_;
+            com.google.cloud.vision.v1p2beta1.Symbol,
+            com.google.cloud.vision.v1p2beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>
+        symbolsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1218,6 +1356,8 @@ public java.util.List getSymbolsList()
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1233,6 +1373,8 @@ public int getSymbolsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1248,6 +1390,8 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1255,8 +1399,7 @@ public com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(
-        int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
+    public Builder setSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1270,6 +1413,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1289,6 +1434,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1310,6 +1457,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1317,8 +1466,7 @@ public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
+    public Builder addSymbols(int index, com.google.cloud.vision.v1p2beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1332,6 +1480,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1339,8 +1489,7 @@ public Builder addSymbols(
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        com.google.cloud.vision.v1p2beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(com.google.cloud.vision.v1p2beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1351,6 +1500,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1370,6 +1521,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1381,8 +1534,7 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1390,6 +1542,8 @@ public Builder addAllSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1408,6 +1562,8 @@ public Builder clearSymbols() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1426,6 +1582,8 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1433,11 +1591,12 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,14 +1604,16 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder getSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);  } else {
+        return symbols_.get(index);
+      } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1460,8 +1621,8 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsOrBuilderList() {
+    public java.util.List
+        getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1469,6 +1630,8 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,10 +1640,12 @@ public com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1488,12 +1653,13 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(
-        int index) {
-      return getSymbolsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(int index) {
+      return getSymbolsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p2beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1501,32 +1667,38 @@ public com.google.cloud.vision.v1p2beta1.Symbol.Builder addSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsBuilderList() {
+    public java.util.List
+        getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder> 
+            com.google.cloud.vision.v1p2beta1.Symbol,
+            com.google.cloud.vision.v1p2beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p2beta1.Symbol, com.google.cloud.vision.v1p2beta1.Symbol.Builder, com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>(
-                symbols_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        symbolsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p2beta1.Symbol,
+                com.google.cloud.vision.v1p2beta1.Symbol.Builder,
+                com.google.cloud.vision.v1p2beta1.SymbolOrBuilder>(
+                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1534,37 +1706,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1574,12 +1752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p2beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Word) private static final com.google.cloud.vision.v1p2beta1.Word DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p2beta1.Word(); } @@ -1588,16 +1766,16 @@ public static com.google.cloud.vision.v1p2beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1790,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p2beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java rename to proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java index a02556d31..c656db95c 100644 --- a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java +++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/text_annotation.proto package com.google.cloud.vision.v1p2beta1; -public interface WordOrBuilder extends +public interface WordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.Word) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
@@ -35,6 +59,8 @@ public interface WordOrBuilder extends com.google.cloud.vision.v1p2beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p2beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p2beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,6 +136,8 @@ public interface WordOrBuilder extends
   com.google.cloud.vision.v1p2beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -111,9 +145,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsList();
+  java.util.List getSymbolsList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -123,6 +158,8 @@ public interface WordOrBuilder extends
    */
   com.google.cloud.vision.v1p2beta1.Symbol getSymbols(int index);
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -132,6 +169,8 @@ public interface WordOrBuilder extends
    */
   int getSymbolsCount();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -139,9 +178,11 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  java.util.List 
+  java.util.List
       getSymbolsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -149,15 +190,17 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p2beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p2beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto similarity index 100% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto rename to proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/geometry.proto diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto similarity index 100% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto rename to proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto similarity index 100% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto rename to proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto diff --git a/owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto similarity index 100% rename from owl-bot-staging/v1p2beta1/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto rename to proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java similarity index 64% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java index 56e1397e1..35f2f7b6b 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +44,15 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +144,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,13 +181,18 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -168,31 +201,33 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -201,6 +236,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +278,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,117 +309,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AddProductToProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.newBuilder() @@ -393,16 +437,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +457,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance(); } @@ -435,7 +479,8 @@ public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -446,46 +491,50 @@ public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +562,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +576,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +602,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,60 +628,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -631,20 +702,24 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -653,22 +728,25 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -676,67 +754,80 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,30 +837,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,9 +874,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..c201991af --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface AddProductToProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java index 0f7da8e9b..49bf28320 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,35 +72,43 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null;
-            if (inputConfig_ != null) {
-              subBuilder = inputConfig_.toBuilder();
-            }
-            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(inputConfig_);
-              inputConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null;
+              if (inputConfig_ != null) {
+                subBuilder = inputConfig_.toBuilder();
+              }
+              inputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputConfig_);
+                inputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              responses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            responses_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                responses_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p3beta1.AnnotateImageResponse>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              responses_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +116,7 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -101,27 +125,33 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class,
+            com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_;
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -129,18 +159,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -155,6 +192,8 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -162,10 +201,13 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -173,11 +215,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -189,6 +233,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -200,6 +246,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -213,6 +261,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -242,12 +290,10 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,20 +303,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) obj; + com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other = + (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,96 +341,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -393,21 +446,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p3beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.class,
+              com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.newBuilder()
@@ -415,17 +470,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -466,7 +521,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p3beta1.AnnotateFileResponse result =
+          new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -490,38 +546,39 @@ public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateFileResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.AnnotateFileResponse.getDefaultInstance())
+        return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -551,9 +609,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -578,7 +637,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -587,38 +647,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> inputConfigBuilder_;
+            com.google.cloud.vision.v1p3beta1.InputConfig,
+            com.google.cloud.vision.v1p3beta1.InputConfig.Builder,
+            com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>
+        inputConfigBuilder_;
     /**
+     *
+     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -639,6 +713,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig valu return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -657,6 +733,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -667,7 +745,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -679,6 +759,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -697,6 +779,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -704,11 +788,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p3beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -719,11 +805,14 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -731,39 +820,51 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.InputConfig, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder, + com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.InputConfig, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder, + com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -771,6 +872,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -785,6 +888,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -799,6 +904,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -820,6 +927,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -827,7 +936,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -838,6 +948,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -858,6 +970,8 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -879,6 +993,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -897,6 +1013,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -904,7 +1022,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -915,6 +1034,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -922,11 +1043,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -934,6 +1055,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -951,6 +1074,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -968,6 +1093,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -979,6 +1106,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -988,19 +1117,23 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -1008,6 +1141,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -1015,10 +1150,12 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to images found within the file.
      * 
@@ -1027,37 +1164,43 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to images found within the file.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +1210,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) private static final com.google.cloud.vision.v1p3beta1.AnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateFileResponse(); } @@ -1081,16 +1224,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateFileResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,6 +1248,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java index 4802be97c..0b905ca00 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AnnotateFileResponseOrBuilder extends +public interface AnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateFileResponseOrBuilder extends com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateFileResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to images found within the file.
    * 
@@ -60,21 +89,24 @@ public interface AnnotateFileResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to images found within the file.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2; */ - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java index 859820998..2b224a9b9 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,56 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p3beta1.Image.Builder subBuilder = null;
-            if (image_ != null) {
-              subBuilder = image_.toBuilder();
-            }
-            image_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Image.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(image_);
-              image_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p3beta1.Image.Builder subBuilder = null;
+              if (image_ != null) {
+                subBuilder = image_.toBuilder();
+              }
+              image_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(image_);
+                image_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              features_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            features_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null;
-            if (imageContext_ != null) {
-              subBuilder = imageContext_.toBuilder();
-            }
-            imageContext_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(imageContext_);
-              imageContext_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                features_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              features_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null;
+              if (imageContext_ != null) {
+                subBuilder = imageContext_.toBuilder();
+              }
+              imageContext_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(imageContext_);
+                imageContext_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,8 +129,7 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -114,27 +138,33 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class,
+            com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p3beta1.Image image_;
   /**
+   *
+   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -142,11 +172,14 @@ public boolean hasImage() { return image_ != null; } /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -154,6 +187,8 @@ public com.google.cloud.vision.v1p3beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; } /** + * + * *
    * The image to be processed.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Requested features.
    * 
@@ -179,6 +216,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Requested features.
    * 
@@ -186,11 +225,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -202,6 +243,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Requested features.
    * 
@@ -213,6 +256,8 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Requested features.
    * 
@@ -220,19 +265,21 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -240,18 +287,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image.
    * 
@@ -264,6 +318,7 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -296,16 +350,13 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,24 +366,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other = + (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -363,96 +412,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features.
@@ -460,21 +517,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.class,
+              com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.newBuilder()
@@ -482,17 +541,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -518,9 +577,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -539,7 +598,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p3beta1.AnnotateImageRequest result =
+          new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -568,38 +628,39 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,7 +668,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance())
+        return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -629,9 +691,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFeaturesFieldBuilder() : null;
+            featuresBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFeaturesFieldBuilder()
+                    : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -659,7 +722,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,38 +732,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p3beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder> imageBuilder_;
+            com.google.cloud.vision.v1p3beta1.Image,
+            com.google.cloud.vision.v1p3beta1.Image.Builder,
+            com.google.cloud.vision.v1p3beta1.ImageOrBuilder>
+        imageBuilder_;
     /**
+     *
+     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return The image. */ public com.google.cloud.vision.v1p3beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() + : image_; } else { return imageBuilder_.getMessage(); } } /** + * + * *
      * The image to be processed.
      * 
@@ -720,14 +798,15 @@ public Builder setImage(com.google.cloud.vision.v1p3beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; */ - public Builder setImage( - com.google.cloud.vision.v1p3beta1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.vision.v1p3beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -738,6 +817,8 @@ public Builder setImage( return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -748,7 +829,9 @@ public Builder mergeImage(com.google.cloud.vision.v1p3beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p3beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); } else { image_ = value; } @@ -760,6 +843,8 @@ public Builder mergeImage(com.google.cloud.vision.v1p3beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -778,6 +863,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -785,11 +872,13 @@ public Builder clearImage() { * .google.cloud.vision.v1p3beta1.Image image = 1; */ public com.google.cloud.vision.v1p3beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * The image to be processed.
      * 
@@ -800,11 +889,14 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? - com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p3beta1.Image.getDefaultInstance() + : image_; } } /** + * + * *
      * The image to be processed.
      * 
@@ -812,32 +904,41 @@ public com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p3beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder> + com.google.cloud.vision.v1p3beta1.Image, + com.google.cloud.vision.v1p3beta1.Image.Builder, + com.google.cloud.vision.v1p3beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Image, com.google.cloud.vision.v1p3beta1.Image.Builder, com.google.cloud.vision.v1p3beta1.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Image, + com.google.cloud.vision.v1p3beta1.Image.Builder, + com.google.cloud.vision.v1p3beta1.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Requested features.
      * 
@@ -852,6 +953,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Requested features.
      * 
@@ -866,6 +969,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Requested features.
      * 
@@ -880,14 +985,15 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,6 +1007,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -919,6 +1027,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -939,14 +1049,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature value) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,14 +1071,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -978,6 +1090,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -996,6 +1110,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1006,8 +1122,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1015,6 +1130,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1032,6 +1149,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Requested features.
      * 
@@ -1049,39 +1168,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1089,6 +1213,8 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Requested features.
      * 
@@ -1096,42 +1222,48 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1139,34 +1271,47 @@ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1187,6 +1332,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p3beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1205,6 +1352,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1215,7 +1364,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1227,6 +1378,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1245,6 +1398,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1252,11 +1407,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p3beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1267,11 +1424,14 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1279,21 +1439,24 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p3beta1.AnnotateImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateImageRequest(); } @@ -1317,16 +1480,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,6 +1504,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java index 1d1e24c31..c3c16055a 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AnnotateImageRequestOrBuilder extends +public interface AnnotateImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p3beta1.Image image = 1; + * * @return The image. */ com.google.cloud.vision.v1p3beta1.Image getImage(); /** + * + * *
    * The image to be processed.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateImageRequestOrBuilder extends com.google.cloud.vision.v1p3beta1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateImageRequestOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index); /** + * + * *
    * Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AnnotateImageRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p3beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java index 1a12c846a..078af9152 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,171 +76,223 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + faceAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.parser(), + extensionRegistry)); + break; } - faceAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.FaceAnnotation.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - labelAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - textAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } + case 50: + { + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); + } + safeSearchAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.vision.v1p3beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); + } + imagePropertiesAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImageProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 74: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + break; } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } - break; - } - case 90: { - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); + break; } + case 90: + { + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 98: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); + break; } + case 98: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 106: { - com.google.cloud.vision.v1p3beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); + break; } + case 106: + { + com.google.cloud.vision.v1p3beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } - break; - } - case 114: { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); + break; } + case 114: + { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); + } - break; - } - case 170: { - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); + break; } + case 170: + { + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + break; } - localizedObjectAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 178: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation>(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -231,8 +300,7 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -250,28 +318,34 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -283,6 +357,8 @@ public java.util.List getFaceA return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -290,11 +366,13 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -306,6 +384,8 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -317,6 +397,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -332,6 +414,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -339,10 +423,13 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -350,11 +437,13 @@ public java.util.List getLan * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -366,6 +455,8 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -377,6 +468,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -384,14 +477,16 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -399,10 +494,13 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAn * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -410,11 +508,13 @@ public java.util.List getLog * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -426,6 +526,8 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -437,6 +539,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -452,6 +556,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -459,10 +565,13 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -470,11 +579,13 @@ public java.util.List getLab * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -486,6 +597,8 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -497,6 +610,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -510,73 +625,99 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List localizedObjectAnnotations_; + private java.util.List + localizedObjectAnnotations_; /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index) { return localizedObjectAnnotations_.get(index); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -584,10 +725,13 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getL * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -595,11 +739,13 @@ public java.util.List getTex * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -611,6 +757,8 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -622,6 +770,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -637,6 +787,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p3beta1.TextAnnotation fullTextAnnotation_; /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -645,6 +797,7 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -652,6 +805,8 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -660,13 +815,18 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -677,18 +837,22 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder
+      getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -696,18 +860,25 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -715,18 +886,22 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p3beta1.ImageProperties imagePropertiesAnnotation_; /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -734,18 +909,25 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -753,18 +935,22 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p3beta1.CropHintsAnnotation cropHintsAnnotation_; /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -772,18 +958,25 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -791,18 +984,22 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p3beta1.WebDetection webDetection_; /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -810,18 +1007,25 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection() { - return webDetection_ == null ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() + : webDetection_; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -836,11 +1040,14 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1p3beta1.ProductSearchResults productSearchResults_; /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -848,18 +1055,25 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } /** + * + * *
    * If present, product search has completed successfully.
    * 
@@ -867,13 +1081,16 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchRe * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -881,6 +1098,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProduc
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ @java.lang.Override @@ -888,6 +1106,8 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -895,6 +1115,7 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ @java.lang.Override @@ -902,6 +1123,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -918,12 +1141,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p3beta1.ImageAnnotationContext context_;
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ @java.lang.Override @@ -931,19 +1157,26 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext() { - return context_ == null ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -957,6 +1190,7 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -968,8 +1202,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1022,60 +1255,54 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, landmarkAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getSafeSearchAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getImagePropertiesAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCropHintsAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, getProductSearchResults());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1085,64 +1312,53 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList()
-        .equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList()
-        .equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList()
-        .equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList()
-        .equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList()
-        .equals(other.getLocalizedObjectAnnotationsList())) return false;
-    if (!getTextAnnotationsList()
-        .equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other =
+        (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
+      return false;
+    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation()
-          .equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation()
-          .equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation()
-          .equals(other.getImagePropertiesAnnotation())) return false;
+      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
+        return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation()
-          .equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection()
-          .equals(other.getWebDetection())) return false;
+      if (!getWebDetection().equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults()
-          .equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext()
-          .equals(other.getContext())) return false;
+      if (!getContext().equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1217,117 +1433,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AnnotateImageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AnnotateImageResponse) com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.newBuilder() @@ -1335,14 +1561,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1351,6 +1576,7 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1442,9 +1668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1463,7 +1689,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse result = + new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1503,7 +1730,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1567,38 +1795,39 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) other); } else { super.mergeFrom(other); return this; @@ -1606,7 +1835,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()) + return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1625,9 +1855,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFaceAnnotationsFieldBuilder() : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFaceAnnotationsFieldBuilder() + : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1651,9 +1882,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarkAnnotationsFieldBuilder() : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarkAnnotationsFieldBuilder() + : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1677,9 +1909,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogoAnnotationsFieldBuilder() : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoAnnotationsFieldBuilder() + : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1703,9 +1936,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelAnnotationsFieldBuilder() : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1729,9 +1963,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocalizedObjectAnnotationsFieldBuilder() : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocalizedObjectAnnotationsFieldBuilder() + : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1755,9 +1990,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextAnnotationsFieldBuilder() : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1806,7 +2042,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1815,28 +2052,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = + new java.util.ArrayList( + faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.FaceAnnotation, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> + faceAnnotationsBuilder_; /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List getFaceAnnotationsList() { + public java.util.List + getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1844,6 +2091,8 @@ public java.util.List getFaceA } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1858,6 +2107,8 @@ public int getFaceAnnotationsCount() { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1872,6 +2123,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int i } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1893,6 +2146,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1911,6 +2166,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1931,6 +2188,8 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p3beta1.FaceAnnotati return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1952,6 +2211,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1970,6 +2231,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1988,6 +2251,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1998,8 +2263,7 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2007,6 +2271,8 @@ public Builder addAllFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2024,6 +2290,8 @@ public Builder clearFaceAnnotations() { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2041,6 +2309,8 @@ public Builder removeFaceAnnotations(int index) { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2052,6 +2322,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2061,19 +2333,22 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); } else { + return faceAnnotations_.get(index); + } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2081,6 +2356,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2088,10 +2365,12 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2100,26 +2379,34 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.FaceAnnotation, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.FaceAnnotation, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2129,26 +2416,36 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + landmarkAnnotations_ = java.util.Collections.emptyList(); + private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); + landmarkAnnotations_ = + new java.util.ArrayList( + landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + landmarkAnnotationsBuilder_; /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2156,11 +2453,14 @@ public java.util.List getLan } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2170,11 +2470,14 @@ public int getLandmarkAnnotationsCount() { } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2184,11 +2487,14 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { @@ -2205,11 +2511,14 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2223,13 +2532,17 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations( + com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2243,11 +2556,14 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p3beta1.EntityAn return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation value) { @@ -2264,11 +2580,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2282,11 +2601,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder builderForValue) { @@ -2300,18 +2622,20 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2319,11 +2643,14 @@ public Builder addAllLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2336,11 +2663,14 @@ public Builder clearLandmarkAnnotations() { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2353,39 +2683,49 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); } else { + return landmarkAnnotations_.get(index); + } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2393,45 +2733,62 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAn } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder + addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2442,25 +2799,34 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = + new java.util.ArrayList( + logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + logoAnnotationsBuilder_; /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2468,6 +2834,8 @@ public java.util.List getLog } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2482,6 +2850,8 @@ public int getLogoAnnotationsCount() { } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2496,6 +2866,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2517,6 +2889,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2535,6 +2909,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2555,6 +2931,8 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnota return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2576,6 +2954,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2594,6 +2974,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2612,6 +2994,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2622,8 +3006,7 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2631,6 +3014,8 @@ public Builder addAllLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2648,6 +3033,8 @@ public Builder clearLogoAnnotations() { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2665,6 +3052,8 @@ public Builder removeLogoAnnotations(int index) { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2676,6 +3065,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2685,19 +3076,22 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); } else { + return logoAnnotations_.get(index); + } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2705,6 +3099,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2712,10 +3108,12 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2724,26 +3122,35 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2754,25 +3161,34 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = + new java.util.ArrayList( + labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + labelAnnotationsBuilder_; /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2780,6 +3196,8 @@ public java.util.List getLab } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2794,6 +3212,8 @@ public int getLabelAnnotationsCount() { } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2808,6 +3228,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(in } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2829,6 +3251,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2847,6 +3271,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2867,6 +3293,8 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnot return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2888,6 +3316,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2906,6 +3336,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2924,6 +3356,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2934,8 +3368,7 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -2943,6 +3376,8 @@ public Builder addAllLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2960,6 +3395,8 @@ public Builder clearLabelAnnotations() { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2977,6 +3414,8 @@ public Builder removeLabelAnnotations(int index) { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2988,6 +3427,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2997,19 +3438,22 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); } else { + return labelAnnotations_.get(index); + } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3017,6 +3461,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3024,10 +3470,12 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3036,26 +3484,35 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3065,27 +3522,38 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addLabelAnnota return labelAnnotationsBuilder_; } - private java.util.List localizedObjectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + localizedObjectAnnotations_ = java.util.Collections.emptyList(); + private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + new java.util.ArrayList( + localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> + localizedObjectAnnotationsBuilder_; /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3093,12 +3561,16 @@ public java.util.List * If present, localized object detection has completed successfully. * This will be sorted descending by confidence score. *
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3108,14 +3580,19 @@ public int getLocalizedObjectAnnotationsCount() { } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation + getLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3123,12 +3600,16 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedO } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { @@ -3145,15 +3626,20 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.set(index, builderForValue.build()); @@ -3164,14 +3650,19 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations( + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3185,12 +3676,16 @@ public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p3beta1.L return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation value) { @@ -3207,12 +3702,16 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3226,15 +3725,20 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.add(index, builderForValue.build()); @@ -3245,19 +3749,23 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addAllLocalizedObjectAnnotations( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3265,12 +3773,16 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3283,12 +3795,16 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3301,42 +3817,56 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder + getLocalizedObjectAnnotationsBuilder(int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); } else { + return localizedObjectAnnotations_.get(index); + } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3344,48 +3874,70 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getL } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( - int index) { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder(int index) { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3396,25 +3948,34 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder addLo } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(textAnnotations_); + textAnnotations_ = + new java.util.ArrayList( + textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + textAnnotationsBuilder_; /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3422,6 +3983,8 @@ public java.util.List getTex } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3436,6 +3999,8 @@ public int getTextAnnotationsCount() { } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3450,6 +4015,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3471,6 +4038,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3489,6 +4058,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3509,6 +4080,8 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p3beta1.EntityAnnota return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3530,6 +4103,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3548,6 +4123,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3566,6 +4143,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3576,8 +4155,7 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3585,6 +4163,8 @@ public Builder addAllTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3602,6 +4182,8 @@ public Builder clearTextAnnotations() { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3619,6 +4201,8 @@ public Builder removeTextAnnotations(int index) { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3630,6 +4214,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3639,19 +4225,22 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); } else { + return textAnnotations_.get(index); + } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3659,6 +4248,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3666,10 +4257,12 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3678,26 +4271,35 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.EntityAnnotation, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.EntityAnnotation, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3709,8 +4311,13 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p3beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation, + com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> + fullTextAnnotationBuilder_; /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3719,12 +4326,15 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3733,16 +4343,21 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3766,6 +4381,8 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnnot
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3787,6 +4404,8 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3800,7 +4419,9 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3812,6 +4433,8 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p3beta1.TextAnn
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3833,6 +4456,8 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3843,11 +4468,13 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-      
+
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3857,15 +4484,19 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder
+        getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null ?
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
+        return fullTextAnnotation_ == null
+            ? com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance()
+            : fullTextAnnotation_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3876,14 +4507,17 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnno
      * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.TextAnnotation,
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder,
+            com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.TextAnnotation, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(),
-                getParentForChildren(),
-                isClean());
+        fullTextAnnotationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.TextAnnotation,
+                com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder,
+                com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(), getParentForChildren(), isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3891,41 +4525,55 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnno
 
     private com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation,
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder,
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>
+        safeSearchAnnotationBuilder_;
     /**
+     *
+     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation( + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3939,6 +4587,8 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeSea return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3957,17 +4607,23 @@ public Builder setSafeSearchAnnotation( return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation( + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder( + safeSearchAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3979,6 +4635,8 @@ public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p3beta1.SafeS return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3997,33 +4655,42 @@ public Builder clearSafeSearchAnnotation() { return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder + getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null ? - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4031,14 +4698,17 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSe * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), - getParentForChildren(), - isClean()); + safeSearchAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), getParentForChildren(), isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4046,41 +4716,55 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSe private com.google.cloud.vision.v1p3beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.ImageProperties, + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> + imagePropertiesAnnotationBuilder_; /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation( + com.google.cloud.vision.v1p3beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4094,6 +4778,8 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1.Im return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4112,17 +4798,23 @@ public Builder setImagePropertiesAnnotation( return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation( + com.google.cloud.vision.v1p3beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder( + imagePropertiesAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4134,6 +4826,8 @@ public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p3beta1. return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4152,33 +4846,42 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p3beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.ImageProperties.Builder + getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null ? - com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4186,14 +4889,17 @@ public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImageProper * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageProperties, + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageProperties, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), - getParentForChildren(), - isClean()); + imagePropertiesAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageProperties, + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), getParentForChildren(), isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4201,41 +4907,55 @@ public com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImageProper private com.google.cloud.vision.v1p3beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> + cropHintsAnnotationBuilder_; /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation( + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4249,6 +4969,8 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHint return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4267,17 +4989,22 @@ public Builder setCropHintsAnnotation( return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation( + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4289,6 +5016,8 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p3beta1.CropHi return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4307,33 +5036,42 @@ public Builder clearCropHintsAnnotation() { return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder + getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null ? - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4341,14 +5079,17 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHin * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), - getParentForChildren(), - isClean()); + cropHintsAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), getParentForChildren(), isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -4356,34 +5097,47 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHin private com.google.cloud.vision.v1p3beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> webDetectionBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection, + com.google.cloud.vision.v1p3beta1.WebDetection.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> + webDetectionBuilder_; /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ public com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() + : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4404,6 +5158,8 @@ public Builder setWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection va return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4422,6 +5178,8 @@ public Builder setWebDetection( return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4432,7 +5190,9 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder(webDetection_) + .mergeFrom(value) + .buildPartial(); } else { webDetection_ = value; } @@ -4444,6 +5204,8 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p3beta1.WebDetection return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4462,6 +5224,8 @@ public Builder clearWebDetection() { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4469,11 +5233,13 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p3beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4484,11 +5250,14 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null ? - com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetection.getDefaultInstance() + : webDetection_; } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4496,14 +5265,17 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection, + com.google.cloud.vision.v1p3beta1.WebDetection.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection, com.google.cloud.vision.v1p3beta1.WebDetection.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder>( - getWebDetection(), - getParentForChildren(), - isClean()); + webDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection, + com.google.cloud.vision.v1p3beta1.WebDetection.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder>( + getWebDetection(), getParentForChildren(), isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -4511,41 +5283,55 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.cloud.vision.v1p3beta1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> + productSearchResultsBuilder_; /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public Builder setProductSearchResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { + public Builder setProductSearchResults( + com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4559,6 +5345,8 @@ public Builder setProductSearchResults(com.google.cloud.vision.v1p3beta1.Product return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4577,17 +5365,23 @@ public Builder setProductSearchResults( return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { + public Builder mergeProductSearchResults( + com.google.cloud.vision.v1p3beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder( + productSearchResults_) + .mergeFrom(value) + .buildPartial(); } else { productSearchResults_ = value; } @@ -4599,6 +5393,8 @@ public Builder mergeProductSearchResults(com.google.cloud.vision.v1p3beta1.Produ return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4617,33 +5413,42 @@ public Builder clearProductSearchResults() { return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder + getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null ? - com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4651,14 +5456,17 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProduc * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), - getParentForChildren(), - isClean()); + productSearchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), getParentForChildren(), isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -4666,8 +5474,11 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProduc private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4675,12 +5486,15 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProduc
      * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4688,6 +5502,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -4698,6 +5513,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4720,6 +5537,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4728,8 +5547,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4740,6 +5558,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4751,8 +5571,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4764,6 +5583,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4784,6 +5605,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4793,11 +5616,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4810,11 +5635,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4824,14 +5650,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -4839,36 +5665,49 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p3beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return The context. */ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } else { return contextBuilder_.getMessage(); } } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4890,6 +5729,8 @@ public Builder setContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationConte
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4909,6 +5750,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4920,7 +5763,9 @@ public Builder mergeContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder(context_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           context_ = value;
         }
@@ -4932,6 +5777,8 @@ public Builder mergeContext(com.google.cloud.vision.v1p3beta1.ImageAnnotationCon
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4951,6 +5798,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4959,11 +5808,13 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4975,11 +5826,14 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance() : context_;
+        return context_ == null
+            ? com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance()
+            : context_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4988,21 +5842,24 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.ImageAnnotationContext,
+                com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder,
+                com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5012,12 +5869,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p3beta1.AnnotateImageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AnnotateImageResponse();
   }
@@ -5026,16 +5883,16 @@ public static com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateImageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateImageResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateImageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateImageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5050,6 +5907,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
index 84d2c0a38..13c512f89 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AnnotateImageResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface AnnotateImageResponseOrBuilder extends
+public interface AnnotateImageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - java.util.List - getFaceAnnotationsList(); + java.util.List getFaceAnnotationsList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -25,6 +44,8 @@ public interface AnnotateImageResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.FaceAnnotation getFaceAnnotations(int index); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -33,34 +54,40 @@ public interface AnnotateImageResponseOrBuilder extends */ int getFaceAnnotationsCount(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List - getLandmarkAnnotationsList(); + java.util.List getLandmarkAnnotationsList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLandmarkAnnotations(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ int getLandmarkAnnotationsCount(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,15 +129,18 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List - getLogoAnnotationsList(); + java.util.List getLogoAnnotationsList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -113,6 +149,8 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLogoAnnotations(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -121,15 +159,19 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -140,15 +182,18 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - java.util.List - getLabelAnnotationsList(); + java.util.List getLabelAnnotationsList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -157,6 +202,8 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getLabelAnnotations(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -165,15 +212,19 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -184,64 +235,88 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ int getLocalizedObjectAnnotationsCount(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - java.util.List - getTextAnnotationsList(); + java.util.List getTextAnnotationsList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -250,6 +325,8 @@ com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalize */ com.google.cloud.vision.v1p3beta1.EntityAnnotation getTextAnnotations(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -258,15 +335,19 @@ com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder getLocalize */ int getTextAnnotationsCount(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -277,6 +358,8 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -285,10 +368,13 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -297,10 +383,13 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p3beta1.TextAnnotation getFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -313,78 +402,104 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p3beta1.ImageProperties getImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -394,24 +509,32 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ com.google.cloud.vision.v1p3beta1.WebDetection getWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -421,33 +544,44 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ com.google.cloud.vision.v1p3beta1.ProductSearchResults getProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14; */ - com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); + com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -455,10 +589,13 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -466,10 +603,13 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -481,26 +621,34 @@ com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21; + * * @return The context. */ com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
index 074be7e82..b4b8d1ca5 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,61 +71,72 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p3beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - features_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1p3beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,8 +144,7 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -126,27 +153,33 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -154,18 +187,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -180,6 +220,8 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -191,6 +233,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -198,11 +242,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -214,6 +260,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -225,6 +273,8 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -232,19 +282,21 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -252,18 +304,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -278,11 +337,14 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -290,18 +352,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -314,6 +383,7 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -349,20 +418,16 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,29 +437,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other = + (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -429,117 +491,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.newBuilder() @@ -547,17 +619,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -610,7 +682,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest result = + new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -644,38 +717,39 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -683,7 +757,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -705,9 +780,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -738,7 +814,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,38 +824,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.InputConfig, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder, + com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -799,6 +890,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig valu return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -817,6 +910,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -827,7 +922,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -839,6 +936,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.InputConfig va return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -857,6 +956,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -864,11 +965,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p3beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -879,11 +982,14 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -891,32 +997,41 @@ public com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.InputConfig, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder, + com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.InputConfig, com.google.cloud.vision.v1p3beta1.InputConfig.Builder, com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.InputConfig, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder, + com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -931,6 +1046,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Required. Requested features.
      * 
@@ -945,6 +1062,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -959,14 +1078,15 @@ public com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,6 +1100,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -998,6 +1120,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1018,14 +1142,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p3beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p3beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1039,14 +1164,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p3beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1057,6 +1183,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1075,6 +1203,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1085,8 +1215,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1094,6 +1223,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1111,6 +1242,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1128,39 +1261,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1168,6 +1306,8 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1175,42 +1315,48 @@ public com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Feature, com.google.cloud.vision.v1p3beta1.Feature.Builder, com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Feature, + com.google.cloud.vision.v1p3beta1.Feature.Builder, + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1218,34 +1364,47 @@ public com.google.cloud.vision.v1p3beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p3beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p3beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1266,6 +1425,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p3beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1284,6 +1445,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1294,7 +1457,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1306,6 +1471,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p3beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1324,6 +1491,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1331,11 +1500,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p3beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1346,11 +1517,14 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p3beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1358,14 +1532,17 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageContext, com.google.cloud.vision.v1p3beta1.ImageContext.Builder, com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImageContext, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder, + com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1373,34 +1550,47 @@ public com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1421,6 +1611,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig va return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1439,6 +1631,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1449,7 +1643,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1461,6 +1657,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1479,6 +1677,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1486,11 +1686,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p3beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1501,11 +1703,14 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1513,21 +1718,24 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,12 +1745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest(); } @@ -1551,16 +1759,16 @@ public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1575,6 +1783,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java index bfb260d58..5c6512e7e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AsyncAnnotateFileRequestOrBuilder extends +public interface AsyncAnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p3beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p3beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AsyncAnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Feature features = 2; */ - com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p3beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p3beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,24 +146,32 @@ com.google.cloud.vision.v1p3beta1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java index 412076dc1..5a434e56d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileResponse() { - } + + private AsyncAnnotateFileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other = + (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.newBuilder() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -370,7 +409,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse result = + new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) other); } else { super.mergeFrom(other); return this; @@ -423,7 +464,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance()) + return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +488,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +501,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -506,6 +562,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig va return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -524,6 +582,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -534,7 +594,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +608,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p3beta1.OutputConfig return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -564,6 +628,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -571,11 +637,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p3beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -586,11 +654,14 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -598,21 +669,24 @@ public com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.OutputConfig, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.OutputConfig, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse(); } @@ -636,16 +710,16 @@ public static com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java index 5cf4065ed..858f55504 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface AsyncAnnotateFileResponseOrBuilder extends +public interface AsyncAnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p3beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1p3beta1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java index 0a5f39d1f..d72f205d7 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,22 +73,27 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              requests_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requests_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requests_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.parser(),
+                      extensionRegistry));
+              break;
             }
-            requests_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,8 +101,7 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -88,72 +110,97 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
+            com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
+   *
+   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -162,6 +209,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -188,8 +235,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -199,15 +245,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,96 +275,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -326,21 +380,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.class,
+              com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -348,17 +404,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,13 +428,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -393,7 +450,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest result =
+          new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -412,46 +470,50 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other
+          == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
+        return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -470,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFil
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequestsFieldBuilder() : null;
+            requestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequestsFieldBuilder()
+                    : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -497,7 +560,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -506,28 +571,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List requests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ = new java.util.ArrayList(requests_);
+        requests_ =
+            new java.util.ArrayList(
+                requests_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest,
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder,
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>
+        requestsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -535,11 +612,15 @@ public java.util.List * Required. Individual async file annotation requests for this batch. *
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -549,11 +630,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -563,11 +648,15 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(in } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { @@ -584,14 +673,19 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( - int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -602,11 +696,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -622,11 +720,15 @@ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRe return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest value) { @@ -643,11 +745,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -661,14 +767,19 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( - int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -679,18 +790,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -698,11 +813,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -715,11 +834,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -732,39 +855,53 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -772,56 +909,74 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,30 +986,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,9 +1023,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..858c38964 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java index f4c257d07..bd6dc7aa1 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +72,27 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +100,7 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +109,27 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -111,10 +138,13 @@ private AsyncBatchAnnotateFilesResponse(
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List getResponsesList() {
+  public java.util.List
+      getResponsesList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -123,11 +153,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -140,6 +173,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -152,6 +187,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -166,6 +203,7 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +215,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +229,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +239,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,135 +269,147 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -396,7 +445,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,46 +465,50 @@ public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse other) { + if (other + == com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFil responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +555,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +566,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, + com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -531,7 +597,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -539,6 +606,8 @@ public java.util.List
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -554,6 +623,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -569,6 +640,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -591,6 +664,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -599,7 +674,8 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -610,6 +686,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -631,6 +709,8 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileR
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -653,6 +733,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -672,6 +754,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -680,7 +764,8 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -691,6 +776,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -699,11 +786,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +798,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -729,6 +818,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -747,6 +838,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -759,6 +852,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -766,14 +861,17 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder
+        getResponsesOrBuilder(int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -781,8 +879,9 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +889,8 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getR
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -797,11 +898,15 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder
+        addResponsesBuilder() {
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -811,10 +916,14 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addRe
      */
     public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -822,27 +931,30 @@ public com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse,
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse,
+                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,30 +964,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
+  public static com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,9 +1001,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 67cf67b37..7f5581cfd 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
index e78683043..bfc8f4ccd 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.parser(), + extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -87,72 +108,95 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -161,6 +205,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -187,8 +231,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +241,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +271,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.newBuilder() @@ -346,17 +399,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -391,7 +445,8 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +465,39 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -468,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -495,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +564,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -533,11 +605,15 @@ public java.util.List ge } } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -547,11 +623,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -561,11 +641,15 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int in } } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { @@ -582,11 +666,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -600,11 +688,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -620,11 +712,15 @@ public Builder addRequests(com.google.cloud.vision.v1p3beta1.AnnotateImageReques return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest value) { @@ -641,11 +737,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -659,11 +759,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder builderForValue) { @@ -677,18 +781,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -696,11 +804,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -713,11 +825,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -730,39 +846,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -770,56 +899,72 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getReques } } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +974,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest(); } @@ -843,16 +989,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..a91be685a --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface BatchAnnotateImagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p3beta1.AnnotateImageRequest getRequests(int index); + /** + * + * + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p3beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p3beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java index 658f0d445..593e3733c 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -110,10 +136,13 @@ private BatchAnnotateImagesResponse( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -121,11 +150,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -137,6 +168,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,6 +181,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -161,6 +196,7 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -187,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +262,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.newBuilder() @@ -346,17 +390,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -391,7 +436,8 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +456,39 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +496,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -468,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -495,7 +545,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +556,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -533,6 +595,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -547,6 +611,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -561,6 +627,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -582,6 +650,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -589,7 +659,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -600,6 +671,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,6 +693,8 @@ public Builder addResponses(com.google.cloud.vision.v1p3beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -641,6 +716,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,6 +736,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -666,7 +745,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -677,6 +757,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -684,11 +766,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -696,6 +778,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -713,6 +797,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -730,6 +816,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -741,6 +829,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -750,19 +840,23 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +864,8 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -777,10 +873,12 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -789,37 +887,43 @@ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +933,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse(); } @@ -843,16 +948,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +972,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java index 7b145922c..1380cef10 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface BatchAnnotateImagesResponseOrBuilder extends +public interface BatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -25,6 +44,8 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -33,21 +54,24 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java index 881734218..dcae3480c 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,45 +72,50 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
-            }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+              state_ = rawValue;
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +123,41 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class,
+            com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -139,6 +166,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is actively being processed.
      * 
@@ -147,6 +176,8 @@ public enum State */ PROCESSING(1), /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -156,6 +187,8 @@ public enum State
      */
     SUCCESSFUL(2),
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -164,6 +197,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -177,6 +212,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -185,6 +222,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is actively being processed.
      * 
@@ -193,6 +232,8 @@ public enum State */ public static final int PROCESSING_VALUE = 1; /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -202,6 +243,8 @@ public enum State
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -210,6 +253,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -220,7 +265,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -245,51 +289,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return PROCESSING;
-        case 2: return SUCCESSFUL;
-        case 3: return FAILED;
-        case 4: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return PROCESSING;
+        case 2:
+          return SUCCESSFUL;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -309,38 +357,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -348,11 +410,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -360,6 +425,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -374,6 +441,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -381,6 +450,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -388,6 +458,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -395,6 +467,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -402,6 +475,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -416,6 +491,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -427,9 +503,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (state_ != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (state_
+        != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -447,17 +524,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_ != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, state_);
+    if (state_
+        != com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -467,23 +543,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other = (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other =
+        (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -512,96 +587,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -610,21 +693,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.BatchOperationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
       com.google.cloud.vision.v1p3beta1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.class,
+              com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.newBuilder()
@@ -632,16 +717,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -663,9 +747,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -684,7 +768,8 @@ public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata result = new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1p3beta1.BatchOperationMetadata result =
+          new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -704,38 +789,39 @@ public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchOperationMetadata)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -743,7 +829,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -772,7 +859,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -784,51 +872,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -836,21 +940,24 @@ public Builder setState(com.google.cloud.vision.v1p3beta1.BatchOperationMetadata if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -858,34 +965,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -906,14 +1026,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -924,6 +1045,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -934,7 +1057,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -946,6 +1069,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -964,6 +1089,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -971,11 +1098,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -986,11 +1115,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -998,14 +1130,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1013,8 +1148,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1022,12 +1162,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1035,6 +1178,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1045,6 +1189,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1067,6 +1213,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1075,8 +1223,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1087,6 +1234,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1099,7 +1248,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1111,6 +1260,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1131,6 +1282,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1140,11 +1293,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1157,11 +1312,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1171,21 +1327,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1195,12 +1354,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1p3beta1.BatchOperationMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BatchOperationMetadata();
   }
@@ -1209,16 +1368,16 @@ public static com.google.cloud.vision.v1p3beta1.BatchOperationMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchOperationMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BatchOperationMetadata(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchOperationMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new BatchOperationMetadata(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1233,6 +1392,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
index a85a94371..74f2e8d49 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BatchOperationMetadataOrBuilder.java
@@ -1,50 +1,80 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface BatchOperationMetadataOrBuilder extends
+public interface BatchOperationMetadataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -54,6 +84,8 @@ public interface BatchOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -61,10 +93,13 @@ public interface BatchOperationMetadataOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchOperationMetadataOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
similarity index 77%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
index 2be514108..bae0e4af1 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Block.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/text_annotation.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Block} */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Block extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Block) BlockOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -26,16 +44,15 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,71 @@ private Block( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paragraphs_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Paragraph.parser(), extensionRegistry)); + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + blockType_ = rawValue; + break; } - paragraphs_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Paragraph.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - blockType_ = rawValue; - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,8 +144,7 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -125,29 +153,35 @@ private Block( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Block.class, com.google.cloud.vision.v1p3beta1.Block.Builder.class); + com.google.cloud.vision.v1p3beta1.Block.class, + com.google.cloud.vision.v1p3beta1.Block.Builder.class); } /** + * + * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.Block.BlockType} */ - public enum BlockType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown block type.
      * 
@@ -156,6 +190,8 @@ public enum BlockType */ UNKNOWN(0), /** + * + * *
      * Regular text block.
      * 
@@ -164,6 +200,8 @@ public enum BlockType */ TEXT(1), /** + * + * *
      * Table block.
      * 
@@ -172,6 +210,8 @@ public enum BlockType */ TABLE(2), /** + * + * *
      * Image block.
      * 
@@ -180,6 +220,8 @@ public enum BlockType */ PICTURE(3), /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -188,6 +230,8 @@ public enum BlockType */ RULER(4), /** + * + * *
      * Barcode block.
      * 
@@ -199,6 +243,8 @@ public enum BlockType ; /** + * + * *
      * Unknown block type.
      * 
@@ -207,6 +253,8 @@ public enum BlockType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Regular text block.
      * 
@@ -215,6 +263,8 @@ public enum BlockType */ public static final int TEXT_VALUE = 1; /** + * + * *
      * Table block.
      * 
@@ -223,6 +273,8 @@ public enum BlockType */ public static final int TABLE_VALUE = 2; /** + * + * *
      * Image block.
      * 
@@ -231,6 +283,8 @@ public enum BlockType */ public static final int PICTURE_VALUE = 3; /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -239,6 +293,8 @@ public enum BlockType */ public static final int RULER_VALUE = 4; /** + * + * *
      * Barcode block.
      * 
@@ -247,7 +303,6 @@ public enum BlockType */ public static final int BARCODE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,52 +327,55 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return TEXT; - case 2: return TABLE; - case 3: return PICTURE; - case 4: return RULER; - case 5: return BARCODE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return TEXT; + case 2: + return TABLE; + case 3: + return PICTURE; + case 4: + return RULER; + case 5: + return BARCODE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p3beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,11 +395,14 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -349,18 +410,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the block.
    * 
@@ -368,13 +436,16 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -394,6 +465,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -401,6 +473,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -420,13 +494,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -455,6 +534,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -466,6 +547,8 @@ public java.util.List getParagraphs return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -473,11 +556,13 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -489,6 +574,8 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -500,6 +587,8 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -507,46 +596,57 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Block.BlockType result = com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p3beta1.Block.BlockType result = + com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -555,6 +655,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,8 +667,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -593,24 +693,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p3beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,7 +715,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Block)) { return super.equals(obj); @@ -629,20 +724,16 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getParagraphsList() - .equals(other.getParagraphsList())) return false; + if (!getParagraphsList().equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,125 +760,133 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Block parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Block} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Block) com.google.cloud.vision.v1p3beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Block.class, com.google.cloud.vision.v1p3beta1.Block.Builder.class); + com.google.cloud.vision.v1p3beta1.Block.class, + com.google.cloud.vision.v1p3beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Block.newBuilder() @@ -795,17 +894,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +934,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; } @java.lang.Override @@ -856,7 +955,8 @@ public com.google.cloud.vision.v1p3beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block buildPartial() { - com.google.cloud.vision.v1p3beta1.Block result = new com.google.cloud.vision.v1p3beta1.Block(this); + com.google.cloud.vision.v1p3beta1.Block result = + new com.google.cloud.vision.v1p3beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -887,38 +987,39 @@ public com.google.cloud.vision.v1p3beta1.Block buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Block)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Block) other); } else { super.mergeFrom(other); return this; @@ -951,9 +1052,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParagraphsFieldBuilder() : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParagraphsFieldBuilder() + : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -993,45 +1095,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1045,6 +1162,8 @@ public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1063,17 +1182,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -1085,6 +1209,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1103,33 +1229,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1137,14 +1272,17 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1152,8 +1290,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1173,12 +1316,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1198,16 +1344,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,6 +1393,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1274,6 +1427,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1298,7 +1453,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1310,6 +1467,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1342,6 +1501,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1363,11 +1524,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1392,11 +1555,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1418,32 +1584,42 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ = new java.util.ArrayList(paragraphs_);
+        paragraphs_ =
+            new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> paragraphsBuilder_;
+            com.google.cloud.vision.v1p3beta1.Paragraph,
+            com.google.cloud.vision.v1p3beta1.Paragraph.Builder,
+            com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>
+        paragraphsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1458,6 +1634,8 @@ public java.util.List getParagraphs } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1472,6 +1650,8 @@ public int getParagraphsCount() { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1486,14 +1666,15 @@ public com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index) { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs( - int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { + public Builder setParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,6 +1688,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1525,6 +1708,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1545,14 +1730,15 @@ public Builder addParagraphs(com.google.cloud.vision.v1p3beta1.Paragraph value) return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { + public Builder addParagraphs(int index, com.google.cloud.vision.v1p3beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1566,6 +1752,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1584,6 +1772,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1602,6 +1792,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1612,8 +1804,7 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1621,6 +1812,8 @@ public Builder addAllParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,6 +1831,8 @@ public Builder clearParagraphs() { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1655,39 +1850,44 @@ public Builder removeParagraphs(int index) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.Paragraph.Builder getParagraphsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Paragraph.Builder getParagraphsBuilder(int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); } else { + return paragraphs_.get(index); + } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,6 +1895,8 @@ public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1702,42 +1904,48 @@ public com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder( - int index) { - return getParagraphsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder(int index) { + return getParagraphsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p3beta1.Paragraph, + com.google.cloud.vision.v1p3beta1.Paragraph.Builder, + com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Paragraph, com.google.cloud.vision.v1p3beta1.Paragraph.Builder, com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>( - paragraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + paragraphsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Paragraph, + com.google.cloud.vision.v1p3beta1.Paragraph.Builder, + com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder>( + paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1745,51 +1953,67 @@ public com.google.cloud.vision.v1p3beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Block.BlockType result = com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); - return result == null ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.Block.BlockType result = + com.google.cloud.vision.v1p3beta1.Block.BlockType.valueOf(blockType_); + return result == null + ? com.google.cloud.vision.v1p3beta1.Block.BlockType.UNRECOGNIZED + : result; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @param value The blockType to set. * @return This builder for chaining. */ @@ -1797,33 +2021,39 @@ public Builder setBlockType(com.google.cloud.vision.v1p3beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1831,37 +2061,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1871,12 +2107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Block) private static final com.google.cloud.vision.v1p3beta1.Block DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Block(); } @@ -1885,16 +2121,16 @@ public static com.google.cloud.vision.v1p3beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1909,6 +2145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java index 1a5ecb47b..8bf00ab53 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BlockOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface BlockOrBuilder extends +public interface BlockOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Block) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
@@ -35,6 +59,8 @@ public interface BlockOrBuilder extends com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface BlockOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - java.util.List - getParagraphsList(); + java.util.List getParagraphsList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -121,6 +156,8 @@ public interface BlockOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Paragraph getParagraphs(int index); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -129,49 +166,61 @@ public interface BlockOrBuilder extends */ int getParagraphsCount(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p3beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ com.google.cloud.vision.v1p3beta1.Block.BlockType getBlockType(); /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java index 851eac3e8..377b0d334 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPoly.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BoundingPoly} */ -public final class BoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.BoundingPoly) BoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,37 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Vertex.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.NormalizedVertex.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +110,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -100,22 +122,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.GeometryProto + .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.GeometryProto + .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BoundingPoly.class, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p3beta1.BoundingPoly.class, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -127,6 +154,8 @@ public java.util.List getVerticesList( return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -134,11 +163,13 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -150,6 +181,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -161,6 +194,8 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -168,14 +203,15 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -183,10 +219,13 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -194,11 +233,13 @@ public java.util.List getNor * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -210,6 +251,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -221,6 +264,8 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -234,6 +279,7 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -263,12 +308,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,17 +322,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.BoundingPoly other = (com.google.cloud.vision.v1p3beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p3beta1.BoundingPoly other = + (com.google.cloud.vision.v1p3beta1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,118 +356,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.BoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.BoundingPoly) com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.GeometryProto + .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.GeometryProto + .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.BoundingPoly.class, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p3beta1.BoundingPoly.class, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder() @@ -432,18 +484,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.GeometryProto + .internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -484,7 +536,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p3beta1.BoundingPoly result = new com.google.cloud.vision.v1p3beta1.BoundingPoly(this); + com.google.cloud.vision.v1p3beta1.BoundingPoly result = + new com.google.cloud.vision.v1p3beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -512,38 +565,39 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.BoundingPoly)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -570,9 +624,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -596,9 +651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNormalizedVerticesFieldBuilder() : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNormalizedVerticesFieldBuilder() + : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -632,21 +688,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.vision.v1p3beta1.Vertex, + com.google.cloud.vision.v1p3beta1.Vertex.Builder, + com.google.cloud.vision.v1p3beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -661,6 +724,8 @@ public java.util.List getVerticesList( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -675,6 +740,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -689,14 +756,15 @@ public com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.vision.v1p3beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,6 +778,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -728,6 +798,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -748,14 +820,15 @@ public Builder addVertices(com.google.cloud.vision.v1p3beta1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.vision.v1p3beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.vision.v1p3beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -769,14 +842,15 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public Builder addVertices( - com.google.cloud.vision.v1p3beta1.Vertex.Builder builderForValue) { + public Builder addVertices(com.google.cloud.vision.v1p3beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -787,6 +861,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -805,6 +881,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -815,8 +893,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -824,6 +901,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -841,6 +920,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -858,39 +939,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -898,6 +984,8 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -905,67 +993,83 @@ public com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder> + com.google.cloud.vision.v1p3beta1.Vertex, + com.google.cloud.vision.v1p3beta1.Vertex.Builder, + com.google.cloud.vision.v1p3beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Vertex, com.google.cloud.vision.v1p3beta1.Vertex.Builder, com.google.cloud.vision.v1p3beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Vertex, + com.google.cloud.vision.v1p3beta1.Vertex.Builder, + com.google.cloud.vision.v1p3beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); + normalizedVertices_ = + new java.util.ArrayList( + normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.vision.v1p3beta1.NormalizedVertex, + com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -973,11 +1077,14 @@ public java.util.List getNor } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -987,11 +1094,14 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1001,11 +1111,14 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices( } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { @@ -1022,11 +1135,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1040,11 +1156,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1060,11 +1179,14 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p3beta1.Normalize return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex value) { @@ -1081,11 +1203,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1099,11 +1224,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder builderForValue) { @@ -1117,18 +1245,20 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1136,11 +1266,14 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1153,11 +1286,14 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1170,39 +1306,49 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1210,45 +1356,62 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder getNormalized } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p3beta1.NormalizedVertex, + com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.NormalizedVertex, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.NormalizedVertex, + com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1257,9 +1420,9 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BoundingPoly) private static final com.google.cloud.vision.v1p3beta1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.BoundingPoly(); } @@ -1283,16 +1446,16 @@ public static com.google.cloud.vision.v1p3beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,6 +1470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java index 8fa2aef81..7e03032f3 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,34 +54,40 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List - getNormalizedVerticesList(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( */ com.google.cloud.vision.v1p3beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p3beta1.VertexOrBuilder getVerticesOrBuilder( */ int getNormalizedVerticesCount(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p3beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java index c33bedf34..2763544cb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ColorInfo}
  */
-public final class ColorInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ColorInfo)
     ColorInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ColorInfo() {
-  }
+
+  private ColorInfo() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,37 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Color.Builder subBuilder = null;
-            if (color_ != null) {
-              subBuilder = color_.toBuilder();
+          case 10:
+            {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
+              }
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(color_);
-              color_ = subBuilder.buildPartial();
+          case 21:
+            {
+              score_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 21: {
-
-            score_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            pixelFraction_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 29:
+            {
+              pixelFraction_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,34 +107,39 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ColorInfo.class, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ColorInfo.class,
+            com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
+   *
+   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ @java.lang.Override @@ -125,11 +147,14 @@ public boolean hasColor() { return color_ != null; } /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** + * + * *
    * RGB components of the color.
    * 
@@ -151,11 +178,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -166,12 +196,15 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -180,6 +213,7 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -212,16 +245,13 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,24 +261,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ColorInfo other = (com.google.cloud.vision.v1p3beta1.ColorInfo) obj; + com.google.cloud.vision.v1p3beta1.ColorInfo other = + (com.google.cloud.vision.v1p3beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor() - .equals(other.getColor())) return false; + if (!getColor().equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits( - other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,107 +293,112 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -373,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ColorInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ColorInfo)
       com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ColorInfo.class, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ColorInfo.class,
+              com.google.cloud.vision.v1p3beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ColorInfo.newBuilder()
@@ -395,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -443,7 +477,8 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ColorInfo result = new com.google.cloud.vision.v1p3beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p3beta1.ColorInfo result =
+          new com.google.cloud.vision.v1p3beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -459,38 +494,39 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ColorInfo)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ColorInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,24 +575,31 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
+            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
+        colorBuilder_;
     /**
+     *
+     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return The color. */ public com.google.type.Color getColor() { @@ -567,6 +610,8 @@ public com.google.type.Color getColor() { } } /** + * + * *
      * RGB components of the color.
      * 
@@ -587,14 +632,15 @@ public Builder setColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor( - com.google.type.Color.Builder builderForValue) { + public Builder setColor(com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -605,6 +651,8 @@ public Builder setColor( return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -614,8 +662,7 @@ public Builder setColor( public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = - com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -627,6 +674,8 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -645,6 +694,8 @@ public Builder clearColor() { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -652,11 +703,13 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** + * + * *
      * RGB components of the color.
      * 
@@ -667,11 +720,12 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? - com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } } /** + * + * *
      * RGB components of the color.
      * 
@@ -679,26 +733,29 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( - getColor(), - getParentForChildren(), - isClean()); + colorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -706,43 +763,52 @@ public float getScore() { return score_; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_ ; + private float pixelFraction_; /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -750,39 +816,45 @@ public float getPixelFraction() { return pixelFraction_; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ColorInfo) private static final com.google.cloud.vision.v1p3beta1.ColorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ColorInfo(); } @@ -806,16 +878,16 @@ public static com.google.cloud.vision.v1p3beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java index 9273013cf..aaca36e64 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ColorInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ColorInfoOrBuilder extends +public interface ColorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ boolean hasColor(); /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ com.google.type.Color getColor(); /** + * + * *
    * RGB components of the color.
    * 
@@ -35,22 +59,28 @@ public interface ColorInfoOrBuilder extends com.google.type.ColorOrBuilder getColorOrBuilder(); /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java index beee2d52d..16f47bbcf 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductRequest} */ -public final class CreateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateProductRequest) CreateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -26,16 +44,15 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +115,43 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, + com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,11 +197,16 @@ public java.lang.String getParent() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.Product product_; /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -178,23 +214,34 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { @@ -204,6 +251,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -212,6 +261,7 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * string product_id = 3; + * * @return The productId. */ @java.lang.Override @@ -220,14 +270,15 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -236,16 +287,15 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -254,6 +304,7 @@ public java.lang.String getProductId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -303,22 +352,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateProductRequest other = (com.google.cloud.vision.v1p3beta1.CreateProductRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateProductRequest other = + (com.google.cloud.vision.v1p3beta1.CreateProductRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } - if (!getProductId() - .equals(other.getProductId())) return false; + if (!getProductId().equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -344,117 +391,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateProductRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateProductRequest) com.google.cloud.vision.v1p3beta1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductRequest.class, + com.google.cloud.vision.v1p3beta1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateProductRequest.newBuilder() @@ -462,16 +519,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; } @java.lang.Override @@ -510,7 +566,8 @@ public com.google.cloud.vision.v1p3beta1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateProductRequest result = new com.google.cloud.vision.v1p3beta1.CreateProductRequest(this); + com.google.cloud.vision.v1p3beta1.CreateProductRequest result = + new com.google.cloud.vision.v1p3beta1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -526,38 +583,39 @@ public com.google.cloud.vision.v1p3beta1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -565,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.CreateProductRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +655,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.CreateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,20 +668,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,22 +694,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,60 +720,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,39 +794,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { @@ -762,14 +861,17 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -780,17 +882,23 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -802,11 +910,15 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -820,48 +932,64 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -869,6 +997,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() private java.lang.Object productId_ = ""; /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -877,13 +1007,13 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * string product_id = 3; + * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -892,6 +1022,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -900,15 +1032,14 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @return The bytes for productId. */ - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -916,6 +1047,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -924,20 +1057,22 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId( - java.lang.String value) { + public Builder setProductId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -946,15 +1081,18 @@ public Builder setProductId(
      * 
* * string product_id = 3; + * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -963,23 +1101,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; + * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1127,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) private static final com.google.cloud.vision.v1p3beta1.CreateProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateProductRequest(); } @@ -1003,16 +1141,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java index 9804a4951..e261ebf09 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductRequestOrBuilder.java @@ -1,64 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateProductRequestOrBuilder extends +public interface CreateProductRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -67,10 +108,13 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The productId. */ java.lang.String getProductId(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -79,8 +123,8 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ - com.google.protobuf.ByteString - getProductIdBytes(); + com.google.protobuf.ByteString getProductIdBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java index ea635434a..4f3f30d85 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -26,16 +44,15 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -210,6 +259,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -234,16 +285,15 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getProductSetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other = (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet() - .equals(other.getProductSet())) return false; + if (!getProductSet().equals(other.getProductSet())) return false; } - if (!getProductSetId() - .equals(other.getProductSetId())) return false; + if (!getProductSetId().equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateProductSetRequest) com.google.cloud.vision.v1p3beta1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.newBuilder() @@ -460,16 +517,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -508,7 +564,8 @@ public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest result = new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -524,38 +581,39 @@ public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.CreateProductSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -755,11 +854,15 @@ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p3beta1.ProductSet.Builder builderForValue) { @@ -773,17 +876,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -795,11 +904,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet valu return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -813,48 +926,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -862,6 +991,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil private java.lang.Object productSetId_ = ""; /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -870,13 +1001,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * string product_set_id = 3; + * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -885,6 +1016,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -893,15 +1026,14 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -909,6 +1041,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -917,20 +1051,22 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId( - java.lang.String value) { + public Builder setProductSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -939,15 +1075,18 @@ public Builder setProductSetId(
      * 
* * string product_set_id = 3; + * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -956,23 +1095,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.CreateProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateProductSetRequest(); } @@ -996,16 +1135,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1159,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java index fc0c0172f..6bb87e0fe 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateProductSetRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateProductSetRequestOrBuilder extends +public interface CreateProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -65,10 +106,13 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ java.lang.String getProductSetId(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -77,8 +121,8 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString - getProductSetIdBytes(); + com.google.protobuf.ByteString getProductSetIdBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java index 42b61b891..bf7df291b 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -26,16 +44,15 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); + } + referenceImage_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + referenceImageId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +115,43 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,12 +197,17 @@ public java.lang.String getParent() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ReferenceImage referenceImage_; /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -179,25 +215,36 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage() { - return referenceImage_ == null ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -207,6 +254,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -215,6 +264,7 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ @java.lang.Override @@ -223,14 +273,15 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -239,16 +290,15 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -257,6 +307,7 @@ public java.lang.String getReferenceImageId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +319,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,8 +342,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -306,22 +355,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other = + (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage() - .equals(other.getReferenceImage())) return false; + if (!getReferenceImage().equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId() - .equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,117 +394,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CreateReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.newBuilder() @@ -465,16 +522,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,13 +548,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance(); } @@ -513,7 +570,8 @@ public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest result = + new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -529,38 +587,39 @@ public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -568,7 +627,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -599,7 +660,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,20 +674,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -633,22 +700,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -656,60 +726,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,42 +800,61 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p3beta1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImageBuilder_; + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + referenceImageBuilder_; /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -768,12 +870,16 @@ public Builder setReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImag return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage( com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder builderForValue) { @@ -787,18 +893,24 @@ public Builder setReferenceImage( return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder(referenceImage_) + .mergeFrom(value) + .buildPartial(); } else { referenceImage_ = value; } @@ -810,12 +922,16 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1p3beta1.ReferenceIm return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -829,51 +945,67 @@ public Builder clearReferenceImage() { return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null ? - com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( - getReferenceImage(), - getParentForChildren(), - isClean()); + referenceImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + getReferenceImage(), getParentForChildren(), isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -881,6 +1013,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma private java.lang.Object referenceImageId_ = ""; /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -889,13 +1023,13 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma
      * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -904,6 +1038,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -912,15 +1048,14 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -928,6 +1063,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -936,20 +1073,22 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId( - java.lang.String value) { + public Builder setReferenceImageId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -958,15 +1097,18 @@ public Builder setReferenceImageId(
      * 
* * string reference_image_id = 3; + * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -975,23 +1117,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes( - com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,12 +1143,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) - private static final com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest(); } @@ -1015,16 +1158,16 @@ public static com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,6 +1182,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java index 25fdcd678..77b1a7577 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CreateReferenceImageRequestOrBuilder.java @@ -1,67 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface CreateReferenceImageRequestOrBuilder extends +public interface CreateReferenceImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product in which to create the reference image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -70,10 +111,13 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -82,8 +126,8 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString - getReferenceImageIdBytes(); + com.google.protobuf.ByteString getReferenceImageIdBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java index 4446c72f0..264d4cd4e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHint.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHint} */ -public final class CropHint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHint) CropHintOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHint() { - } + + private CropHint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,39 @@ private CropHint( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - case 29: { - - importanceFraction_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 29: + { + importanceFraction_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,35 +108,40 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHint.class, com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHint.class, + com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -125,19 +149,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -153,11 +184,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -168,12 +202,15 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -182,6 +219,7 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -214,16 +251,13 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,24 +267,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHint other = (com.google.cloud.vision.v1p3beta1.CropHint) obj; + com.google.cloud.vision.v1p3beta1.CropHint other = + (com.google.cloud.vision.v1p3beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits( - other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,128 +299,135 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHint) com.google.cloud.vision.v1p3beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHint.class, com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHint.class, + com.google.cloud.vision.v1p3beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHint.newBuilder() @@ -396,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; } @java.lang.Override @@ -444,7 +482,8 @@ public com.google.cloud.vision.v1p3beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHint result = new com.google.cloud.vision.v1p3beta1.CropHint(this); + com.google.cloud.vision.v1p3beta1.CropHint result = + new com.google.cloud.vision.v1p3beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -460,38 +499,39 @@ public com.google.cloud.vision.v1p3beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHint)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHint) other); } else { super.mergeFrom(other); return this; @@ -540,36 +580,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -591,6 +644,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -610,6 +665,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -621,7 +678,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -633,6 +692,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -652,6 +713,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -660,11 +723,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -676,11 +741,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale, as returned in `ImageParams`.
@@ -689,26 +757,32 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -716,43 +790,52 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_ ; + private float importanceFraction_; /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -760,39 +843,45 @@ public float getImportanceFraction() { return importanceFraction_; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHint) private static final com.google.cloud.vision.v1p3beta1.CropHint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHint(); } @@ -816,16 +905,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java index bfc39c882..2a5482582 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintOrBuilder extends +public interface CropHintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale, as returned in `ImageParams`.
@@ -38,22 +62,28 @@ public interface CropHintOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java index d34e538fd..d425a204a 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cropHints_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.CropHint.parser(), extensionRegistry)); + break; } - cropHints_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.CropHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -87,22 +105,27 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** + * + * *
    * Crop hint results.
    * 
@@ -114,6 +137,8 @@ public java.util.List getCropHintsLi return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -121,11 +146,13 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -137,6 +164,8 @@ public int getCropHintsCount() { return cropHints_.size(); } /** + * + * *
    * Crop hint results.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** + * + * *
    * Crop hint results.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other = + (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) obj; - if (!getCropHintsList() - .equals(other.getCropHintsList())) return false; + if (!getCropHintsList().equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHintsAnnotation) com.google.cloud.vision.v1p3beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p3beta1.CropHintsAnnotation result = + new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.CropHintsAnnotation.getDefaultInstance()) + return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCropHintsFieldBuilder() : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCropHintsFieldBuilder() + : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(cropHints_); + cropHints_ = + new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> cropHintsBuilder_; + com.google.cloud.vision.v1p3beta1.CropHint, + com.google.cloud.vision.v1p3beta1.CropHint.Builder, + com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> + cropHintsBuilder_; /** + * + * *
      * Crop hint results.
      * 
@@ -533,6 +585,8 @@ public java.util.List getCropHintsLi } } /** + * + * *
      * Crop hint results.
      * 
@@ -547,6 +601,8 @@ public int getCropHintsCount() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -561,14 +617,15 @@ public com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index) { } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public Builder setCropHints( - int index, com.google.cloud.vision.v1p3beta1.CropHint value) { + public Builder setCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +639,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -600,6 +659,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -620,14 +681,15 @@ public Builder addCropHints(com.google.cloud.vision.v1p3beta1.CropHint value) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public Builder addCropHints( - int index, com.google.cloud.vision.v1p3beta1.CropHint value) { + public Builder addCropHints(int index, com.google.cloud.vision.v1p3beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +703,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -659,6 +723,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -677,6 +743,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -687,8 +755,7 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -696,6 +763,8 @@ public Builder addAllCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -713,6 +782,8 @@ public Builder clearCropHints() { return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -730,39 +801,44 @@ public Builder removeCropHints(int index) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHint.Builder getCropHintsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.CropHint.Builder getCropHintsBuilder(int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); } else { + return cropHints_.get(index); + } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +846,8 @@ public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** + * + * *
      * Crop hint results.
      * 
@@ -777,49 +855,55 @@ public com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder( - int index) { - return getCropHintsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.CropHint.Builder addCropHintsBuilder(int index) { + return getCropHintsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHint, + com.google.cloud.vision.v1p3beta1.CropHint.Builder, + com.google.cloud.vision.v1p3beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHint, com.google.cloud.vision.v1p3beta1.CropHint.Builder, com.google.cloud.vision.v1p3beta1.CropHintOrBuilder>( - cropHints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cropHintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHint, + com.google.cloud.vision.v1p3beta1.CropHint.Builder, + com.google.cloud.vision.v1p3beta1.CropHintOrBuilder>( + cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cropHints_ = null; } return cropHintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p3beta1.CropHintsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHintsAnnotation(); } @@ -843,16 +927,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java index 9192acbf2..f4bac2f8a 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintsAnnotationOrBuilder extends +public interface CropHintsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - java.util.List - getCropHintsList(); + java.util.List getCropHintsList(); /** + * + * *
    * Crop hint results.
    * 
@@ -25,6 +44,8 @@ public interface CropHintsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p3beta1.CropHint getCropHints(int index); /** + * + * *
    * Crop hint results.
    * 
@@ -33,21 +54,24 @@ public interface CropHintsAnnotationOrBuilder extends */ int getCropHintsCount(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p3beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java index 35f411c11..87c797acf 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsParams} */ -public final class CropHintsParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.CropHintsParams) CropHintsParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,34 +71,36 @@ private CropHintsParams( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } aspectRatios_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -99,22 +117,27 @@ private CropHintsParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsParams.class, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsParams.class, + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -125,14 +148,16 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List - getAspectRatiosList() { + public java.util.List getAspectRatiosList() { return aspectRatios_; } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -143,12 +168,15 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -159,15 +187,18 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } + private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -204,8 +234,7 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -217,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.CropHintsParams other = (com.google.cloud.vision.v1p3beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p3beta1.CropHintsParams other = + (com.google.cloud.vision.v1p3beta1.CropHintsParams) obj; - if (!getAspectRatiosList() - .equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,117 +276,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.CropHintsParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.CropHintsParams) com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.CropHintsParams.class, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p3beta1.CropHintsParams.class, + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder() @@ -365,16 +403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -405,7 +442,8 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p3beta1.CropHintsParams result = new com.google.cloud.vision.v1p3beta1.CropHintsParams(this); + com.google.cloud.vision.v1p3beta1.CropHintsParams result = + new com.google.cloud.vision.v1p3beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -420,38 +458,39 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsParams)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.CropHintsParams) other); } else { super.mergeFrom(other); return this; @@ -459,7 +498,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance()) + return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -489,7 +529,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,16 +539,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); + private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -518,14 +563,17 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ - public java.util.List - getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; + public java.util.List getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(aspectRatios_) + : aspectRatios_; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -536,12 +584,15 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -552,6 +603,7 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -559,6 +611,8 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -569,18 +623,20 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios( - int index, float value) { + public Builder setAspectRatios(int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -591,6 +647,7 @@ public Builder setAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -601,6 +658,8 @@ public Builder addAspectRatios(float value) { return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -611,18 +670,19 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; + * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios( - java.lang.Iterable values) { + public Builder addAllAspectRatios(java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -633,6 +693,7 @@ public Builder addAllAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -641,9 +702,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsParams) private static final com.google.cloud.vision.v1p3beta1.CropHintsParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.CropHintsParams(); } @@ -667,16 +728,16 @@ public static com.google.cloud.vision.v1p3beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java index a653d0de7..8d8ffc963 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/CropHintsParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface CropHintsParamsOrBuilder extends +public interface CropHintsParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -18,10 +36,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -32,10 +53,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -46,6 +70,7 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java index 719318c2a..c3f304c10 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductRequest} */ -public final class DeleteProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteProductRequest) DeleteProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteProductRequest other = (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteProductRequest other = + (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteProductRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteProductRequest) com.google.cloud.vision.v1p3beta1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteProductRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteProductRequest result = new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteProductRequest result = + new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.DeleteProductRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.DeleteProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) private static final com.google.cloud.vision.v1p3beta1.DeleteProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteProductRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..0a995a990 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java index 8235fd8f9..8241bf6f6 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other = (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) com.google.cloud.vision.v1p3beta1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest result = new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..7dcbe72cc --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java index 8a6f19c9c..afba79bde 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other = + (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest result = + new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +629,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - private static final com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest(); } @@ -580,16 +644,16 @@ public static com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +668,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..c5a646c78 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface DeleteReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java index 8ea9a6af6..fce51d52e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + colors_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.ColorInfo.parser(), extensionRegistry)); + break; } - colors_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.ColorInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -87,22 +105,27 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -114,6 +137,8 @@ public java.util.List getColorsList return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -121,11 +146,13 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,6 +164,8 @@ public int getColorsCount() { return colors_.size(); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other = + (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) obj; - if (!getColorsList() - .equals(other.getColorsList())) return false; + if (!getColorsList().equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.DominantColorsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation result = + new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance()) + return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColorsFieldBuilder() : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColorsFieldBuilder() + : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> colorsBuilder_; + com.google.cloud.vision.v1p3beta1.ColorInfo, + com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> + colorsBuilder_; /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -533,6 +584,8 @@ public java.util.List getColorsList } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -547,6 +600,8 @@ public int getColorsCount() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -561,14 +616,15 @@ public com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index) { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder setColors( - int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { + public Builder setColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +638,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,6 +658,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -620,14 +680,15 @@ public Builder addColors(com.google.cloud.vision.v1p3beta1.ColorInfo value) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder addColors( - int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { + public Builder addColors(int index, com.google.cloud.vision.v1p3beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +702,15 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public Builder addColors( - com.google.cloud.vision.v1p3beta1.ColorInfo.Builder builderForValue) { + public Builder addColors(com.google.cloud.vision.v1p3beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -659,6 +721,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -677,6 +741,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -687,8 +753,7 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -696,6 +761,8 @@ public Builder addAllColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -713,6 +780,8 @@ public Builder clearColors() { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -730,39 +799,44 @@ public Builder removeColors(int index) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder getColorsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder getColorsBuilder(int index) { return getColorsFieldBuilder().getBuilder(index); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { if (colorsBuilder_ == null) { - return colors_.get(index); } else { + return colors_.get(index); + } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +844,8 @@ public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -777,49 +853,55 @@ public com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder( - int index) { - return getColorsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ColorInfo.Builder addColorsBuilder(int index) { + return getColorsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p3beta1.ColorInfo, + com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ColorInfo, com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder>( - colors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + colorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ColorInfo, + com.google.cloud.vision.v1p3beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder>( + colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation(); } @@ -843,16 +925,16 @@ public static com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java index 56cf0dfcc..6bf850b19 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/DominantColorsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface DominantColorsAnnotationOrBuilder extends +public interface DominantColorsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - java.util.List - getColorsList(); + java.util.List getColorsList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -25,6 +44,8 @@ public interface DominantColorsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ColorInfo getColors(int index); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -33,21 +54,24 @@ public interface DominantColorsAnnotationOrBuilder extends */ int getColorsCount(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java similarity index 79% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java index b3aa0bcc4..39ffe2992 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.EntityAnnotation} */ -public final class EntityAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.EntityAnnotation) EntityAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -29,16 +47,15 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,88 @@ private EntityAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 37: { - - score_ = input.readFloat(); - break; - } - case 45: { + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 53: { + locale_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - topicality_ = input.readFloat(); - break; - } - case 58: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + description_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + confidence_ = input.readFloat(); + break; } - locations_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.LocationInfo.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 53: + { + topicality_ = input.readFloat(); + break; } - properties_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Property.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + properties_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Property.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +164,7 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -149,22 +176,27 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -172,6 +204,7 @@ private EntityAnnotation(
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -180,14 +213,15 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -195,16 +229,15 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -215,12 +248,15 @@ public java.lang.String getMid() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ @java.lang.Override @@ -229,30 +265,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -263,11 +299,14 @@ public java.lang.String getLocale() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -276,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -309,11 +348,14 @@ public java.lang.String getDescription() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -324,6 +366,8 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -333,6 +377,7 @@ public float getScore() {
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -343,6 +388,8 @@ public float getConfidence() { public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -352,6 +399,7 @@ public float getConfidence() {
    * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -362,12 +410,15 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -375,19 +426,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -403,6 +461,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -418,6 +478,8 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -429,11 +491,13 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -449,6 +513,8 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -464,6 +530,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -475,14 +543,15 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -495,6 +564,8 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -503,11 +574,13 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -520,6 +593,8 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -532,6 +607,8 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -540,12 +617,12 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -557,8 +634,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -605,28 +681,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -636,37 +706,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.EntityAnnotation other = (com.google.cloud.vision.v1p3beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p3beta1.EntityAnnotation other =
+        (com.google.cloud.vision.v1p3beta1.EntityAnnotation) obj;
 
-    if (!getMid()
-        .equals(other.getMid())) return false;
-    if (!getLocale()
-        .equals(other.getLocale())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getMid().equals(other.getMid())) return false;
+    if (!getLocale().equals(other.getLocale())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(
-            other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(
-            other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly()
-          .equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList()
-        .equals(other.getLocationsList())) return false;
-    if (!getPropertiesList()
-        .equals(other.getPropertiesList())) return false;
+    if (!getLocationsList().equals(other.getLocationsList())) return false;
+    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -685,14 +747,11 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -711,117 +770,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.EntityAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.EntityAnnotation) com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.EntityAnnotation.newBuilder() @@ -829,18 +897,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -878,9 +946,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -899,7 +967,8 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.EntityAnnotation result = new com.google.cloud.vision.v1p3beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p3beta1.EntityAnnotation result = + new com.google.cloud.vision.v1p3beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -938,38 +1007,39 @@ public com.google.cloud.vision.v1p3beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.EntityAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.EntityAnnotation) other); } else { super.mergeFrom(other); return this; @@ -977,7 +1047,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.EntityAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1020,9 +1091,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1046,9 +1118,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1073,7 +1146,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1082,10 +1156,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mid_ = ""; /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1093,13 +1170,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1108,6 +1185,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1115,15 +1194,14 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1131,6 +1209,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1138,20 +1218,22 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1159,15 +1241,18 @@ public Builder setMid(
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1175,16 +1260,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1192,19 +1277,21 @@ public Builder setMidBytes( private java.lang.Object locale_ = ""; /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1213,21 +1300,22 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -1235,57 +1323,64 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale( - java.lang.String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1293,18 +1388,20 @@ public Builder setLocaleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1313,20 +1410,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1334,66 +1432,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1401,37 +1509,45 @@ public float getScore() { return score_; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1441,6 +1557,7 @@ public Builder clearScore() {
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1448,6 +1565,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1457,16 +1576,19 @@ public float getConfidence() {
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1476,17 +1598,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float topicality_ ; + private float topicality_; /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1496,6 +1621,7 @@ public Builder clearConfidence() {
      * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -1503,6 +1629,8 @@ public float getTopicality() { return topicality_; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1512,16 +1640,19 @@ public float getTopicality() {
      * 
* * float topicality = 6; + * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1531,10 +1662,11 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; + * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1542,36 +1674,49 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1593,6 +1738,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1612,6 +1759,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1623,7 +1772,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1635,6 +1786,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1654,6 +1807,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1662,11 +1817,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1678,11 +1835,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1691,32 +1851,42 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ = new java.util.ArrayList(locations_);
+        locations_ =
+            new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder> locationsBuilder_;
+            com.google.cloud.vision.v1p3beta1.LocationInfo,
+            com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>
+        locationsBuilder_;
 
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1735,6 +1905,8 @@ public java.util.List getLocatio
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1753,6 +1925,8 @@ public int getLocationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1771,6 +1945,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1781,8 +1957,7 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(
-        int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
+    public Builder setLocations(int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1796,6 +1971,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1818,6 +1995,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1842,6 +2021,8 @@ public Builder addLocations(com.google.cloud.vision.v1p3beta1.LocationInfo value
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1852,8 +2033,7 @@ public Builder addLocations(com.google.cloud.vision.v1p3beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
+    public Builder addLocations(int index, com.google.cloud.vision.v1p3beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1867,6 +2047,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1889,6 +2071,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1911,6 +2095,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1925,8 +2111,7 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -1934,6 +2119,8 @@ public Builder addAllLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1955,6 +2142,8 @@ public Builder clearLocations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1976,6 +2165,8 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1986,11 +2177,12 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilder(int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2004,11 +2196,14 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);  } else {
+        return locations_.get(index);
+      } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2019,8 +2214,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsOrBuilderList() {
+    public java.util.List
+        getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2028,6 +2223,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2039,10 +2236,12 @@ public com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2053,12 +2252,13 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder(
-        int index) {
-      return getLocationsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilder(int index) {
+      return getLocationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p3beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2069,38 +2269,48 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsBuilderList() {
+    public java.util.List
+        getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.LocationInfo,
+            com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.LocationInfo, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder, com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>(
-                locations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        locationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.LocationInfo,
+                com.google.cloud.vision.v1p3beta1.LocationInfo.Builder,
+                com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder>(
+                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ = new java.util.ArrayList(properties_);
+        properties_ =
+            new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder> propertiesBuilder_;
+            com.google.cloud.vision.v1p3beta1.Property,
+            com.google.cloud.vision.v1p3beta1.Property.Builder,
+            com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2116,6 +2326,8 @@ public java.util.List getPropertiesL
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2131,6 +2343,8 @@ public int getPropertiesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2146,6 +2360,8 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2153,8 +2369,7 @@ public com.google.cloud.vision.v1p3beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public Builder setProperties(
-        int index, com.google.cloud.vision.v1p3beta1.Property value) {
+    public Builder setProperties(int index, com.google.cloud.vision.v1p3beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2168,6 +2383,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2187,6 +2404,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2208,6 +2427,8 @@ public Builder addProperties(com.google.cloud.vision.v1p3beta1.Property value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2215,8 +2436,7 @@ public Builder addProperties(com.google.cloud.vision.v1p3beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public Builder addProperties(
-        int index, com.google.cloud.vision.v1p3beta1.Property value) {
+    public Builder addProperties(int index, com.google.cloud.vision.v1p3beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2230,6 +2450,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2249,6 +2471,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2268,6 +2492,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2279,8 +2505,7 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2288,6 +2513,8 @@ public Builder addAllProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2306,6 +2533,8 @@ public Builder clearProperties() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2324,6 +2553,8 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2331,11 +2562,12 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2343,14 +2575,16 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder getPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);  } else {
+        return properties_.get(index);
+      } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2358,8 +2592,8 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesOrBuilderList() {
+    public java.util.List
+        getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2367,6 +2601,8 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2375,10 +2611,12 @@ public com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2386,12 +2624,13 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(
-        int index) {
-      return getPropertiesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(int index) {
+      return getPropertiesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p3beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2399,27 +2638,30 @@ public com.google.cloud.vision.v1p3beta1.Property.Builder addPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesBuilderList() {
+    public java.util.List
+        getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.Property,
+            com.google.cloud.vision.v1p3beta1.Property.Builder,
+            com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Property, com.google.cloud.vision.v1p3beta1.Property.Builder, com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>(
-                properties_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        propertiesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.Property,
+                com.google.cloud.vision.v1p3beta1.Property.Builder,
+                com.google.cloud.vision.v1p3beta1.PropertyOrBuilder>(
+                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2429,12 +2671,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p3beta1.EntityAnnotation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.EntityAnnotation();
   }
@@ -2443,16 +2685,16 @@ public static com.google.cloud.vision.v1p3beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public EntityAnnotation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new EntityAnnotation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public EntityAnnotation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new EntityAnnotation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2467,6 +2709,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
index a8b7a9b69..08df3bf07 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/EntityAnnotationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface EntityAnnotationOrBuilder extends
+public interface EntityAnnotationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -15,10 +33,13 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -26,64 +47,79 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ java.lang.String getLocale(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -93,11 +129,14 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -107,31 +146,40 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float topicality = 6; + * * @return The topicality. */ float getTopicality(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -142,6 +190,8 @@ public interface EntityAnnotationOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -152,9 +202,10 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  java.util.List 
-      getLocationsList();
+  java.util.List getLocationsList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -167,6 +218,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   com.google.cloud.vision.v1p3beta1.LocationInfo getLocations(int index);
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -179,6 +232,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   int getLocationsCount();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -189,9 +244,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  java.util.List 
+  java.util.List
       getLocationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -202,10 +259,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -213,9 +271,10 @@ com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  java.util.List 
-      getPropertiesList();
+  java.util.List getPropertiesList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -225,6 +284,8 @@ com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   com.google.cloud.vision.v1p3beta1.Property getProperties(int index);
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -234,6 +295,8 @@ com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -241,9 +304,11 @@ com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  java.util.List 
+  java.util.List
       getPropertiesOrBuilderList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -251,6 +316,5 @@ com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p3beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p3beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
similarity index 77%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
index 2df9bc020..8d1e5cc90 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation} */ -public final class FaceAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.FaceAnnotation) FaceAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -32,16 +50,15 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,115 +78,133 @@ private FaceAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); + } + fdBoundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); + break; } - fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark>(); + mutable_bitField0_ |= 0x00000001; + } + landmarks_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.parser(), + extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + rollAngle_ = input.readFloat(); + break; } - landmarks_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); - break; - } - case 37: { - - rollAngle_ = input.readFloat(); - break; - } - case 45: { - - panAngle_ = input.readFloat(); - break; - } - case 53: { - - tiltAngle_ = input.readFloat(); - break; - } - case 61: { - - detectionConfidence_ = input.readFloat(); - break; - } - case 69: { - - landmarkingConfidence_ = input.readFloat(); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 45: + { + panAngle_ = input.readFloat(); + break; + } + case 53: + { + tiltAngle_ = input.readFloat(); + break; + } + case 61: + { + detectionConfidence_ = input.readFloat(); + break; + } + case 69: + { + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: + { + int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + joyLikelihood_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - sorrowLikelihood_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + sorrowLikelihood_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - angerLikelihood_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + angerLikelihood_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - surpriseLikelihood_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); + surpriseLikelihood_ = rawValue; + break; + } + case 104: + { + int rawValue = input.readEnum(); - underExposedLikelihood_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); + underExposedLikelihood_ = rawValue; + break; + } + case 112: + { + int rawValue = input.readEnum(); - blurredLikelihood_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); + blurredLikelihood_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + headwearLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -177,8 +212,7 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -187,61 +221,79 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder extends + public interface LandmarkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return The position. */ com.google.cloud.vision.v1p3beta1.Position getPosition(); /** + * + * *
      * Face landmark position.
      * 
@@ -251,37 +303,39 @@ public interface LandmarkOrBuilder extends com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder(); } /** + * + * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -300,32 +354,36 @@ private Landmark( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.vision.v1p3beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); + type_ = rawValue; + break; } - position_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p3beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -333,27 +391,31 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); } /** + * + * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -363,9 +425,10 @@ private Landmark(
      *
      * Protobuf enum {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -374,6 +437,8 @@ public enum Type */ UNKNOWN_LANDMARK(0), /** + * + * *
        * Left eye.
        * 
@@ -382,6 +447,8 @@ public enum Type */ LEFT_EYE(1), /** + * + * *
        * Right eye.
        * 
@@ -390,6 +457,8 @@ public enum Type */ RIGHT_EYE(2), /** + * + * *
        * Left of left eyebrow.
        * 
@@ -398,6 +467,8 @@ public enum Type */ LEFT_OF_LEFT_EYEBROW(3), /** + * + * *
        * Right of left eyebrow.
        * 
@@ -406,6 +477,8 @@ public enum Type */ RIGHT_OF_LEFT_EYEBROW(4), /** + * + * *
        * Left of right eyebrow.
        * 
@@ -414,6 +487,8 @@ public enum Type */ LEFT_OF_RIGHT_EYEBROW(5), /** + * + * *
        * Right of right eyebrow.
        * 
@@ -422,6 +497,8 @@ public enum Type */ RIGHT_OF_RIGHT_EYEBROW(6), /** + * + * *
        * Midpoint between eyes.
        * 
@@ -430,6 +507,8 @@ public enum Type */ MIDPOINT_BETWEEN_EYES(7), /** + * + * *
        * Nose tip.
        * 
@@ -438,6 +517,8 @@ public enum Type */ NOSE_TIP(8), /** + * + * *
        * Upper lip.
        * 
@@ -446,6 +527,8 @@ public enum Type */ UPPER_LIP(9), /** + * + * *
        * Lower lip.
        * 
@@ -454,6 +537,8 @@ public enum Type */ LOWER_LIP(10), /** + * + * *
        * Mouth left.
        * 
@@ -462,6 +547,8 @@ public enum Type */ MOUTH_LEFT(11), /** + * + * *
        * Mouth right.
        * 
@@ -470,6 +557,8 @@ public enum Type */ MOUTH_RIGHT(12), /** + * + * *
        * Mouth center.
        * 
@@ -478,6 +567,8 @@ public enum Type */ MOUTH_CENTER(13), /** + * + * *
        * Nose, bottom right.
        * 
@@ -486,6 +577,8 @@ public enum Type */ NOSE_BOTTOM_RIGHT(14), /** + * + * *
        * Nose, bottom left.
        * 
@@ -494,6 +587,8 @@ public enum Type */ NOSE_BOTTOM_LEFT(15), /** + * + * *
        * Nose, bottom center.
        * 
@@ -502,6 +597,8 @@ public enum Type */ NOSE_BOTTOM_CENTER(16), /** + * + * *
        * Left eye, top boundary.
        * 
@@ -510,6 +607,8 @@ public enum Type */ LEFT_EYE_TOP_BOUNDARY(17), /** + * + * *
        * Left eye, right corner.
        * 
@@ -518,6 +617,8 @@ public enum Type */ LEFT_EYE_RIGHT_CORNER(18), /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -526,6 +627,8 @@ public enum Type */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** + * + * *
        * Left eye, left corner.
        * 
@@ -534,6 +637,8 @@ public enum Type */ LEFT_EYE_LEFT_CORNER(20), /** + * + * *
        * Right eye, top boundary.
        * 
@@ -542,6 +647,8 @@ public enum Type */ RIGHT_EYE_TOP_BOUNDARY(21), /** + * + * *
        * Right eye, right corner.
        * 
@@ -550,6 +657,8 @@ public enum Type */ RIGHT_EYE_RIGHT_CORNER(22), /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -558,6 +667,8 @@ public enum Type */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** + * + * *
        * Right eye, left corner.
        * 
@@ -566,6 +677,8 @@ public enum Type */ RIGHT_EYE_LEFT_CORNER(24), /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -574,6 +687,8 @@ public enum Type */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -582,6 +697,8 @@ public enum Type */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** + * + * *
        * Left ear tragion.
        * 
@@ -590,6 +707,8 @@ public enum Type */ LEFT_EAR_TRAGION(27), /** + * + * *
        * Right ear tragion.
        * 
@@ -598,6 +717,8 @@ public enum Type */ RIGHT_EAR_TRAGION(28), /** + * + * *
        * Left eye pupil.
        * 
@@ -606,6 +727,8 @@ public enum Type */ LEFT_EYE_PUPIL(29), /** + * + * *
        * Right eye pupil.
        * 
@@ -614,6 +737,8 @@ public enum Type */ RIGHT_EYE_PUPIL(30), /** + * + * *
        * Forehead glabella.
        * 
@@ -622,6 +747,8 @@ public enum Type */ FOREHEAD_GLABELLA(31), /** + * + * *
        * Chin gnathion.
        * 
@@ -630,6 +757,8 @@ public enum Type */ CHIN_GNATHION(32), /** + * + * *
        * Chin left gonion.
        * 
@@ -638,6 +767,8 @@ public enum Type */ CHIN_LEFT_GONION(33), /** + * + * *
        * Chin right gonion.
        * 
@@ -649,6 +780,8 @@ public enum Type ; /** + * + * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -657,6 +790,8 @@ public enum Type */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** + * + * *
        * Left eye.
        * 
@@ -665,6 +800,8 @@ public enum Type */ public static final int LEFT_EYE_VALUE = 1; /** + * + * *
        * Right eye.
        * 
@@ -673,6 +810,8 @@ public enum Type */ public static final int RIGHT_EYE_VALUE = 2; /** + * + * *
        * Left of left eyebrow.
        * 
@@ -681,6 +820,8 @@ public enum Type */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** + * + * *
        * Right of left eyebrow.
        * 
@@ -689,6 +830,8 @@ public enum Type */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** + * + * *
        * Left of right eyebrow.
        * 
@@ -697,6 +840,8 @@ public enum Type */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** + * + * *
        * Right of right eyebrow.
        * 
@@ -705,6 +850,8 @@ public enum Type */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** + * + * *
        * Midpoint between eyes.
        * 
@@ -713,6 +860,8 @@ public enum Type */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** + * + * *
        * Nose tip.
        * 
@@ -721,6 +870,8 @@ public enum Type */ public static final int NOSE_TIP_VALUE = 8; /** + * + * *
        * Upper lip.
        * 
@@ -729,6 +880,8 @@ public enum Type */ public static final int UPPER_LIP_VALUE = 9; /** + * + * *
        * Lower lip.
        * 
@@ -737,6 +890,8 @@ public enum Type */ public static final int LOWER_LIP_VALUE = 10; /** + * + * *
        * Mouth left.
        * 
@@ -745,6 +900,8 @@ public enum Type */ public static final int MOUTH_LEFT_VALUE = 11; /** + * + * *
        * Mouth right.
        * 
@@ -753,6 +910,8 @@ public enum Type */ public static final int MOUTH_RIGHT_VALUE = 12; /** + * + * *
        * Mouth center.
        * 
@@ -761,6 +920,8 @@ public enum Type */ public static final int MOUTH_CENTER_VALUE = 13; /** + * + * *
        * Nose, bottom right.
        * 
@@ -769,6 +930,8 @@ public enum Type */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** + * + * *
        * Nose, bottom left.
        * 
@@ -777,6 +940,8 @@ public enum Type */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** + * + * *
        * Nose, bottom center.
        * 
@@ -785,6 +950,8 @@ public enum Type */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** + * + * *
        * Left eye, top boundary.
        * 
@@ -793,6 +960,8 @@ public enum Type */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** + * + * *
        * Left eye, right corner.
        * 
@@ -801,6 +970,8 @@ public enum Type */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -809,6 +980,8 @@ public enum Type */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** + * + * *
        * Left eye, left corner.
        * 
@@ -817,6 +990,8 @@ public enum Type */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** + * + * *
        * Right eye, top boundary.
        * 
@@ -825,6 +1000,8 @@ public enum Type */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** + * + * *
        * Right eye, right corner.
        * 
@@ -833,6 +1010,8 @@ public enum Type */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -841,6 +1020,8 @@ public enum Type */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** + * + * *
        * Right eye, left corner.
        * 
@@ -849,6 +1030,8 @@ public enum Type */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -857,6 +1040,8 @@ public enum Type */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -865,6 +1050,8 @@ public enum Type */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** + * + * *
        * Left ear tragion.
        * 
@@ -873,6 +1060,8 @@ public enum Type */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** + * + * *
        * Right ear tragion.
        * 
@@ -881,6 +1070,8 @@ public enum Type */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** + * + * *
        * Left eye pupil.
        * 
@@ -889,6 +1080,8 @@ public enum Type */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** + * + * *
        * Right eye pupil.
        * 
@@ -897,6 +1090,8 @@ public enum Type */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** + * + * *
        * Forehead glabella.
        * 
@@ -905,6 +1100,8 @@ public enum Type */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** + * + * *
        * Chin gnathion.
        * 
@@ -913,6 +1110,8 @@ public enum Type */ public static final int CHIN_GNATHION_VALUE = 32; /** + * + * *
        * Chin left gonion.
        * 
@@ -921,6 +1120,8 @@ public enum Type */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** + * + * *
        * Chin right gonion.
        * 
@@ -929,7 +1130,6 @@ public enum Type */ public static final int CHIN_RIGHT_GONION_VALUE = 34; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -954,81 +1154,115 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return UNKNOWN_LANDMARK; - case 1: return LEFT_EYE; - case 2: return RIGHT_EYE; - case 3: return LEFT_OF_LEFT_EYEBROW; - case 4: return RIGHT_OF_LEFT_EYEBROW; - case 5: return LEFT_OF_RIGHT_EYEBROW; - case 6: return RIGHT_OF_RIGHT_EYEBROW; - case 7: return MIDPOINT_BETWEEN_EYES; - case 8: return NOSE_TIP; - case 9: return UPPER_LIP; - case 10: return LOWER_LIP; - case 11: return MOUTH_LEFT; - case 12: return MOUTH_RIGHT; - case 13: return MOUTH_CENTER; - case 14: return NOSE_BOTTOM_RIGHT; - case 15: return NOSE_BOTTOM_LEFT; - case 16: return NOSE_BOTTOM_CENTER; - case 17: return LEFT_EYE_TOP_BOUNDARY; - case 18: return LEFT_EYE_RIGHT_CORNER; - case 19: return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: return LEFT_EYE_LEFT_CORNER; - case 21: return RIGHT_EYE_TOP_BOUNDARY; - case 22: return RIGHT_EYE_RIGHT_CORNER; - case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: return RIGHT_EYE_LEFT_CORNER; - case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: return LEFT_EAR_TRAGION; - case 28: return RIGHT_EAR_TRAGION; - case 29: return LEFT_EYE_PUPIL; - case 30: return RIGHT_EYE_PUPIL; - case 31: return FOREHEAD_GLABELLA; - case 32: return CHIN_GNATHION; - case 33: return CHIN_LEFT_GONION; - case 34: return CHIN_RIGHT_GONION; - default: return null; + case 0: + return UNKNOWN_LANDMARK; + case 1: + return LEFT_EYE; + case 2: + return RIGHT_EYE; + case 3: + return LEFT_OF_LEFT_EYEBROW; + case 4: + return RIGHT_OF_LEFT_EYEBROW; + case 5: + return LEFT_OF_RIGHT_EYEBROW; + case 6: + return RIGHT_OF_RIGHT_EYEBROW; + case 7: + return MIDPOINT_BETWEEN_EYES; + case 8: + return NOSE_TIP; + case 9: + return UPPER_LIP; + case 10: + return LOWER_LIP; + case 11: + return MOUTH_LEFT; + case 12: + return MOUTH_RIGHT; + case 13: + return MOUTH_CENTER; + case 14: + return NOSE_BOTTOM_RIGHT; + case 15: + return NOSE_BOTTOM_LEFT; + case 16: + return NOSE_BOTTOM_CENTER; + case 17: + return LEFT_EYE_TOP_BOUNDARY; + case 18: + return LEFT_EYE_RIGHT_CORNER; + case 19: + return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: + return LEFT_EYE_LEFT_CORNER; + case 21: + return RIGHT_EYE_TOP_BOUNDARY; + case 22: + return RIGHT_EYE_RIGHT_CORNER; + case 23: + return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: + return RIGHT_EYE_LEFT_CORNER; + case 25: + return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: + return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: + return LEFT_EAR_TRAGION; + case 28: + return RIGHT_EAR_TRAGION; + case 29: + return LEFT_EYE_PUPIL; + case 30: + return RIGHT_EYE_PUPIL; + case 31: + return FOREHEAD_GLABELLA; + case 32: + return CHIN_GNATHION; + case 33: + return CHIN_LEFT_GONION; + case 34: + return CHIN_RIGHT_GONION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1048,38 +1282,52 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.Position position_; /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return Whether the position field is set. */ @java.lang.Override @@ -1087,18 +1335,25 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Position getPosition() { - return position_ == null ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() + : position_; } /** + * + * *
      * Face landmark position.
      * 
@@ -1111,6 +1366,7 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1122,9 +1378,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1139,13 +1396,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1155,18 +1412,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other = + (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1191,87 +1448,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1281,27 +1545,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.newBuilder() @@ -1309,16 +1578,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1334,9 +1602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1355,7 +1623,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark result = + new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1370,38 +1639,41 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) other); } else { super.mergeFrom(other); return this; @@ -1409,7 +1681,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1435,7 +1708,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1447,51 +1721,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1499,21 +1789,24 @@ public Builder setType(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1521,34 +1814,47 @@ public Builder clearType() { private com.google.cloud.vision.v1p3beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder> positionBuilder_; + com.google.cloud.vision.v1p3beta1.Position, + com.google.cloud.vision.v1p3beta1.Position.Builder, + com.google.cloud.vision.v1p3beta1.PositionOrBuilder> + positionBuilder_; /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p3beta1.Position position = 4; + * * @return The position. */ public com.google.cloud.vision.v1p3beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * Face landmark position.
        * 
@@ -1569,6 +1875,8 @@ public Builder setPosition(com.google.cloud.vision.v1p3beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1587,6 +1895,8 @@ public Builder setPosition( return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1597,7 +1907,9 @@ public Builder mergePosition(com.google.cloud.vision.v1p3beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p3beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.Position.newBuilder(position_) + .mergeFrom(value) + .buildPartial(); } else { position_ = value; } @@ -1609,6 +1921,8 @@ public Builder mergePosition(com.google.cloud.vision.v1p3beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1627,6 +1941,8 @@ public Builder clearPosition() { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1634,11 +1950,13 @@ public Builder clearPosition() { * .google.cloud.vision.v1p3beta1.Position position = 4; */ public com.google.cloud.vision.v1p3beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Face landmark position.
        * 
@@ -1649,11 +1967,14 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p3beta1.Position.getDefaultInstance() + : position_; } } /** + * + * *
        * Face landmark position.
        * 
@@ -1661,18 +1982,22 @@ public com.google.cloud.vision.v1p3beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p3beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder> + com.google.cloud.vision.v1p3beta1.Position, + com.google.cloud.vision.v1p3beta1.Position.Builder, + com.google.cloud.vision.v1p3beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Position, com.google.cloud.vision.v1p3beta1.Position.Builder, com.google.cloud.vision.v1p3beta1.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Position, + com.google.cloud.vision.v1p3beta1.Position.Builder, + com.google.cloud.vision.v1p3beta1.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1685,12 +2010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark(); } @@ -1699,16 +2024,16 @@ public static com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1723,12 +2048,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1740,6 +2066,7 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -1747,6 +2074,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1758,13 +2087,18 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -1785,6 +2119,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p3beta1.BoundingPoly fdBoundingPoly_;
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1795,6 +2131,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -1802,6 +2139,8 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1812,13 +2151,18 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1838,6 +2182,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
@@ -1845,10 +2191,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1856,11 +2205,14 @@ public java.util.List * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1872,6 +2224,8 @@ public int getLandmarksCount() { return landmarks_.size(); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1883,6 +2237,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1898,6 +2254,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -1905,6 +2263,7 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -1915,6 +2274,8 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -1922,6 +2283,7 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -1932,12 +2294,15 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -1948,11 +2313,14 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -1963,11 +2331,14 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -1978,193 +2349,257 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2176,8 +2611,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2214,7 +2648,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (surpriseLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2233,64 +2668,50 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2300,40 +2721,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.FaceAnnotation other = (com.google.cloud.vision.v1p3beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p3beta1.FaceAnnotation other = + (com.google.cloud.vision.v1p3beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly() - .equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList() - .equals(other.getLandmarksList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits( - other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits( - other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits( - other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits( - other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits( - other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2365,20 +2779,15 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2398,118 +2807,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.FaceAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.FaceAnnotation) com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.FaceAnnotation.newBuilder() @@ -2517,17 +2935,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2577,9 +2995,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -2598,7 +3016,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.FaceAnnotation result = new com.google.cloud.vision.v1p3beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p3beta1.FaceAnnotation result = + new com.google.cloud.vision.v1p3beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -2639,38 +3058,39 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.FaceAnnotation) other); } else { super.mergeFrom(other); return this; @@ -2678,7 +3098,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.FaceAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -2703,9 +3124,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarksFieldBuilder() : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -2775,12 +3197,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2792,12 +3220,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2809,16 +3240,21 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2845,6 +3281,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2869,6 +3307,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2885,7 +3325,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -2897,6 +3339,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2921,6 +3365,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2934,11 +3380,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2955,11 +3403,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale, as returned in `ImageParams`.
@@ -2973,14 +3424,17 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -2988,8 +3442,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p3beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+        fdBoundingPolyBuilder_;
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3000,12 +3459,15 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3016,16 +3478,21 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3051,6 +3518,8 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3074,6 +3543,8 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3089,7 +3560,9 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3101,6 +3574,8 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPol
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3124,6 +3599,8 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3136,11 +3613,13 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-      
+
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3156,11 +3635,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
+        return fdBoundingPoly_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : fdBoundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3173,39 +3655,51 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        fdBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(), getParentForChildren(), isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ = new java.util.ArrayList(landmarks_);
+        landmarks_ =
+            new java.util.ArrayList(
+                landmarks_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
+            com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark,
+            com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder,
+            com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>
+        landmarksBuilder_;
 
     /**
+     *
+     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3213,6 +3707,8 @@ public java.util.List } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3227,6 +3723,8 @@ public int getLandmarksCount() { } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3241,6 +3739,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(in } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3262,6 +3762,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3269,7 +3771,8 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3280,6 +3783,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3300,6 +3805,8 @@ public Builder addLandmarks(com.google.cloud.vision.v1p3beta1.FaceAnnotation.Lan return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3321,6 +3828,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3339,6 +3848,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3346,7 +3857,8 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3357,6 +3869,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3364,11 +3878,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3376,6 +3890,8 @@ public Builder addAllLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3393,6 +3909,8 @@ public Builder clearLandmarks() { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3410,6 +3928,8 @@ public Builder removeLandmarks(int index) { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3421,6 +3941,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3430,19 +3952,23 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); } else { + return landmarks_.get(index); + } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3450,6 +3976,8 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3457,10 +3985,13 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3469,37 +4000,46 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_ ; + private float rollAngle_; /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3507,6 +4047,7 @@ public com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -3514,6 +4055,8 @@ public float getRollAngle() { return rollAngle_; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3521,16 +4064,19 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; + * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3538,17 +4084,20 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; + * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_ ; + private float panAngle_; /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3556,6 +4105,7 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -3563,6 +4113,8 @@ public float getPanAngle() { return panAngle_; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3570,16 +4122,19 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; + * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3587,23 +4142,27 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; + * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_ ; + private float tiltAngle_; /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -3611,44 +4170,53 @@ public float getTiltAngle() { return tiltAngle_; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_ ; + private float detectionConfidence_; /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -3656,42 +4224,51 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_ ; + private float landmarkingConfidence_; /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -3699,30 +4276,36 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -3730,51 +4313,65 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -3782,21 +4379,24 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -3804,51 +4404,65 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -3856,21 +4470,24 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -3878,51 +4495,65 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -3930,21 +4561,24 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -3952,51 +4586,65 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4004,21 +4652,24 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p3beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4026,51 +4677,65 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4078,21 +4743,24 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p3beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4100,51 +4768,65 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4152,21 +4834,24 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p3beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4174,51 +4859,65 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4226,28 +4925,31 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p3beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4257,12 +4959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p3beta1.FaceAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.FaceAnnotation(); } @@ -4271,16 +4973,16 @@ public static com.google.cloud.vision.v1p3beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4295,6 +4997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java index 575709920..677c0767b 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FaceAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface FaceAnnotationOrBuilder extends +public interface FaceAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -19,10 +37,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -34,10 +55,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale, as returned in `ImageParams`.
@@ -53,6 +77,8 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -63,10 +89,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -77,10 +106,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -95,15 +127,18 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List - getLandmarksList(); + java.util.List getLandmarksList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -112,6 +147,8 @@ public interface FaceAnnotationOrBuilder extends */ com.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark getLandmarks(int index); /** + * + * *
    * Detected face landmarks.
    * 
@@ -120,15 +157,19 @@ public interface FaceAnnotationOrBuilder extends */ int getLandmarksCount(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -139,6 +180,8 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -146,11 +189,14 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ float getRollAngle(); /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -158,170 +204,222 @@ com.google.cloud.vision.v1p3beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ float getPanAngle(); /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ float getTiltAngle(); /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ float getDetectionConfidence(); /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getJoyLikelihood(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getSorrowLikelihood(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getAngerLikelihood(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getSurpriseLikelihood(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getUnderExposedLikelihood(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getBlurredLikelihood(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p3beta1.Likelihood getHeadwearLikelihood(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java index 19af408e7..bdd7408b0 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Feature}
  */
-public final class Feature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Feature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Feature)
     FeatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -28,16 +46,15 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,30 +73,32 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            maxResults_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              maxResults_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            model_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              model_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,36 +106,41 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Feature.class, com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Feature.class,
+            com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.Feature.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified feature type.
      * 
@@ -125,6 +149,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Run face detection.
      * 
@@ -133,6 +159,8 @@ public enum Type */ FACE_DETECTION(1), /** + * + * *
      * Run landmark detection.
      * 
@@ -141,6 +169,8 @@ public enum Type */ LANDMARK_DETECTION(2), /** + * + * *
      * Run logo detection.
      * 
@@ -149,6 +179,8 @@ public enum Type */ LOGO_DETECTION(3), /** + * + * *
      * Run label detection.
      * 
@@ -157,6 +189,8 @@ public enum Type */ LABEL_DETECTION(4), /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -167,6 +201,8 @@ public enum Type
      */
     TEXT_DETECTION(5),
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -176,6 +212,8 @@ public enum Type
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -185,6 +223,8 @@ public enum Type
      */
     SAFE_SEARCH_DETECTION(6),
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -194,6 +234,8 @@ public enum Type
      */
     IMAGE_PROPERTIES(7),
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -202,6 +244,8 @@ public enum Type */ CROP_HINTS(9), /** + * + * *
      * Run web detection.
      * 
@@ -210,6 +254,8 @@ public enum Type */ WEB_DETECTION(10), /** + * + * *
      * Run Product Search.
      * 
@@ -218,6 +264,8 @@ public enum Type */ PRODUCT_SEARCH(12), /** + * + * *
      * Run localizer for object detection.
      * 
@@ -229,6 +277,8 @@ public enum Type ; /** + * + * *
      * Unspecified feature type.
      * 
@@ -237,6 +287,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Run face detection.
      * 
@@ -245,6 +297,8 @@ public enum Type */ public static final int FACE_DETECTION_VALUE = 1; /** + * + * *
      * Run landmark detection.
      * 
@@ -253,6 +307,8 @@ public enum Type */ public static final int LANDMARK_DETECTION_VALUE = 2; /** + * + * *
      * Run logo detection.
      * 
@@ -261,6 +317,8 @@ public enum Type */ public static final int LOGO_DETECTION_VALUE = 3; /** + * + * *
      * Run label detection.
      * 
@@ -269,6 +327,8 @@ public enum Type */ public static final int LABEL_DETECTION_VALUE = 4; /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -279,6 +339,8 @@ public enum Type
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -288,6 +350,8 @@ public enum Type
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -297,6 +361,8 @@ public enum Type
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -306,6 +372,8 @@ public enum Type
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -314,6 +382,8 @@ public enum Type */ public static final int CROP_HINTS_VALUE = 9; /** + * + * *
      * Run web detection.
      * 
@@ -322,6 +392,8 @@ public enum Type */ public static final int WEB_DETECTION_VALUE = 10; /** + * + * *
      * Run Product Search.
      * 
@@ -330,6 +402,8 @@ public enum Type */ public static final int PRODUCT_SEARCH_VALUE = 12; /** + * + * *
      * Run localizer for object detection.
      * 
@@ -338,7 +412,6 @@ public enum Type */ public static final int OBJECT_LOCALIZATION_VALUE = 19; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -363,59 +436,69 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return FACE_DETECTION; - case 2: return LANDMARK_DETECTION; - case 3: return LOGO_DETECTION; - case 4: return LABEL_DETECTION; - case 5: return TEXT_DETECTION; - case 11: return DOCUMENT_TEXT_DETECTION; - case 6: return SAFE_SEARCH_DETECTION; - case 7: return IMAGE_PROPERTIES; - case 9: return CROP_HINTS; - case 10: return WEB_DETECTION; - case 12: return PRODUCT_SEARCH; - case 19: return OBJECT_LOCALIZATION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return FACE_DETECTION; + case 2: + return LANDMARK_DETECTION; + case 3: + return LOGO_DETECTION; + case 4: + return LABEL_DETECTION; + case 5: + return TEXT_DETECTION; + case 11: + return DOCUMENT_TEXT_DETECTION; + case 6: + return SAFE_SEARCH_DETECTION; + case 7: + return IMAGE_PROPERTIES; + case 9: + return CROP_HINTS; + case 10: + return WEB_DETECTION; + case 12: + return PRODUCT_SEARCH; + case 19: + return OBJECT_LOCALIZATION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p3beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -435,39 +518,51 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Feature.Type result = com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p3beta1.Feature.Type result = + com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p3beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -478,6 +573,8 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -485,6 +582,7 @@ public int getMaxResults() {
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -493,14 +591,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -508,16 +607,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -526,6 +624,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -537,8 +636,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p3beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -558,12 +656,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p3beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -576,18 +672,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Feature other = (com.google.cloud.vision.v1p3beta1.Feature) obj; + com.google.cloud.vision.v1p3beta1.Feature other = + (com.google.cloud.vision.v1p3beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getModel() - .equals(other.getModel())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getModel().equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -610,97 +705,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -709,21 +811,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Feature}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Feature)
       com.google.cloud.vision.v1p3beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Feature.class, com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Feature.class,
+              com.google.cloud.vision.v1p3beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Feature.newBuilder()
@@ -731,16 +835,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -754,9 +857,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -775,7 +878,8 @@ public com.google.cloud.vision.v1p3beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Feature result = new com.google.cloud.vision.v1p3beta1.Feature(this);
+      com.google.cloud.vision.v1p3beta1.Feature result =
+          new com.google.cloud.vision.v1p3beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -787,38 +891,39 @@ public com.google.cloud.vision.v1p3beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Feature)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Feature) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -868,51 +973,65 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Feature.Type result = com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p3beta1.Feature.Type result = + com.google.cloud.vision.v1p3beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p3beta1.Feature.Type.UNRECOGNIZED : result; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -920,34 +1039,40 @@ public Builder setType(com.google.cloud.vision.v1p3beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -955,32 +1080,38 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -988,6 +1119,8 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -995,13 +1128,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1010,6 +1143,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1017,15 +1152,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1033,6 +1167,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1040,20 +1176,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1061,15 +1199,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1077,23 +1218,23 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Feature) private static final com.google.cloud.vision.v1p3beta1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Feature(); } @@ -1117,16 +1258,16 @@ public static com.google.cloud.vision.v1p3beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java index 513131677..47fdca977 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java @@ -1,43 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p3beta1.Feature.Type type = 1; + * * @return The type. */ com.google.cloud.vision.v1p3beta1.Feature.Type getType(); /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -45,10 +72,13 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -56,8 +86,8 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java index 13ad7742f..34049189b 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsDestination.class, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsDestination.class, + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -112,6 +134,7 @@ private GcsDestination(
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -120,14 +143,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -144,16 +168,15 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -162,6 +185,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -198,15 +221,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GcsDestination other = (com.google.cloud.vision.v1p3beta1.GcsDestination) obj; + com.google.cloud.vision.v1p3beta1.GcsDestination other = + (com.google.cloud.vision.v1p3beta1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,118 +248,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GcsDestination) com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsDestination.class, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsDestination.class, + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder() @@ -344,16 +376,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -384,7 +415,8 @@ public com.google.cloud.vision.v1p3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p3beta1.GcsDestination result = new com.google.cloud.vision.v1p3beta1.GcsDestination(this); + com.google.cloud.vision.v1p3beta1.GcsDestination result = + new com.google.cloud.vision.v1p3beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -394,38 +426,39 @@ public com.google.cloud.vision.v1p3beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -433,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -469,6 +503,8 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -485,13 +521,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -500,6 +536,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -516,15 +554,14 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -532,6 +569,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -548,20 +587,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -578,15 +619,18 @@ public Builder setUri(
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI where the results will be stored. Results will
      * be in JSON format and preceded by its corresponding input URI. This field
@@ -603,23 +647,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,12 +673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsDestination) private static final com.google.cloud.vision.v1p3beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GcsDestination(); } @@ -643,16 +687,16 @@ public static com.google.cloud.vision.v1p3beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java index a1c55c5f6..3626164dd 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -24,10 +42,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI where the results will be stored. Results will
    * be in JSON format and preceded by its corresponding input URI. This field
@@ -44,8 +65,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java similarity index 70% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java index ee6f2fd82..9eb0c7834 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsSource.class, com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsSource.class, + com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GcsSource other = (com.google.cloud.vision.v1p3beta1.GcsSource) obj; + com.google.cloud.vision.v1p3beta1.GcsSource other = + (com.google.cloud.vision.v1p3beta1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GcsSource) com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GcsSource.class, com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p3beta1.GcsSource.class, + com.google.cloud.vision.v1p3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.cloud.vision.v1p3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p3beta1.GcsSource result = new com.google.cloud.vision.v1p3beta1.GcsSource(this); + com.google.cloud.vision.v1p3beta1.GcsSource result = + new com.google.cloud.vision.v1p3beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.vision.v1p3beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsSource)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -449,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +505,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +528,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsSource) private static final com.google.cloud.vision.v1p3beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GcsSource(); } @@ -573,16 +616,16 @@ public static com.google.cloud.vision.v1p3beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java similarity index 53% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java index 72e211a1b..d909e4c25 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GcsSourceOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java new file mode 100644 index 000000000..ccd4dcd18 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GeometryProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class GeometryProto { + private GeometryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p3beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p3beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + + "d.vision.v1p3beta1.Vertex\022L\n\023normalized_" + + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + + "3beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.goo" + + "gle.cloud.vision.v1p3beta1B\rGeometryProt" + + "oP\001ZCgoogle.golang.org/genproto/googleap" + + "is/cloud/vision/v1p3beta1;vision\370\001\001\242\002\004GC" + + "VNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", "NormalizedVertices", + }); + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Position_descriptor, + new java.lang.String[] { + "X", "Y", "Z", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java index 9a085c0ab..bc8cfe1bb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `GetProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductRequest} */ -public final class GetProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetProductRequest) GetProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductRequest.class, com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductRequest.class, + com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetProductRequest other = (com.google.cloud.vision.v1p3beta1.GetProductRequest) obj; + com.google.cloud.vision.v1p3beta1.GetProductRequest other = + (com.google.cloud.vision.v1p3beta1.GetProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetProductRequest) com.google.cloud.vision.v1p3beta1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductRequest.class, com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductRequest.class, + com.google.cloud.vision.v1p3beta1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetProductRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1p3beta1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetProductRequest result = new com.google.cloud.vision.v1p3beta1.GetProductRequest(this); + com.google.cloud.vision.v1p3beta1.GetProductRequest result = + new com.google.cloud.vision.v1p3beta1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1p3beta1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.GetProductRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.GetProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.GetProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductRequest) private static final com.google.cloud.vision.v1p3beta1.GetProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetProductRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.vision.v1p3beta1.GetProductRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..87c9a2f93 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java index f2c4da83b..0801f7a3f 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductSetRequest} */ -public final class GetProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetProductSetRequest) GetProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetProductSetRequest other = (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.GetProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetProductSetRequest) com.google.cloud.vision.v1p3beta1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetProductSetRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p3beta1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetProductSetRequest result = new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.GetProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p3beta1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.GetProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.GetProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) private static final com.google.cloud.vision.v1p3beta1.GetProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetProductSetRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p3beta1.GetProductSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..df58ab37d --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java index 9aa221b1e..4e1fa3843 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other = (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other = + (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.GetReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) com.google.cloud.vision.v1p3beta1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest result = new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest result = + new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..288ae8874 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface GetReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java index 7e3f7392c..aa5bc90e6 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,34 @@ private Image( case 0: done = true; break; - case 10: { - - content_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + case 10: + { + content_ = input.readBytes(); + break; } - source_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p3beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +105,33 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Image.class, com.google.cloud.vision.v1p3beta1.Image.Builder.class); + com.google.cloud.vision.v1p3beta1.Image.class, + com.google.cloud.vision.v1p3beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -115,6 +139,7 @@ private Image(
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -125,6 +150,8 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ImageSource source_; /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -132,6 +159,7 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ @java.lang.Override @@ -139,6 +167,8 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -146,13 +176,18 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageSource getSource() { - return source_ == null ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() + : source_; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -167,6 +202,7 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -178,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -196,12 +231,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,19 +244,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p3beta1.Image other = (com.google.cloud.vision.v1p3beta1.Image) obj;
 
-    if (!getContent()
-        .equals(other.getContent())) return false;
+    if (!getContent().equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -247,118 +278,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.Image parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Image) com.google.cloud.vision.v1p3beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Image.class, com.google.cloud.vision.v1p3beta1.Image.Builder.class); + com.google.cloud.vision.v1p3beta1.Image.class, + com.google.cloud.vision.v1p3beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Image.newBuilder() @@ -366,16 +406,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; } @java.lang.Override @@ -412,7 +451,8 @@ public com.google.cloud.vision.v1p3beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Image buildPartial() { - com.google.cloud.vision.v1p3beta1.Image result = new com.google.cloud.vision.v1p3beta1.Image(this); + com.google.cloud.vision.v1p3beta1.Image result = + new com.google.cloud.vision.v1p3beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -427,38 +467,39 @@ public com.google.cloud.vision.v1p3beta1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Image)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Image) other); } else { super.mergeFrom(other); return this; @@ -504,6 +545,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -511,6 +554,7 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -518,6 +562,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -525,19 +571,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -545,10 +594,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -556,8 +606,13 @@ public Builder clearContent() { private com.google.cloud.vision.v1p3beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> sourceBuilder_; + com.google.cloud.vision.v1p3beta1.ImageSource, + com.google.cloud.vision.v1p3beta1.ImageSource.Builder, + com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -565,12 +620,15 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -578,16 +636,21 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return The source. */ public com.google.cloud.vision.v1p3beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -610,6 +673,8 @@ public Builder setSource(com.google.cloud.vision.v1p3beta1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -630,6 +695,8 @@ public Builder setSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -642,7 +709,9 @@ public Builder mergeSource(com.google.cloud.vision.v1p3beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-            com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder(source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -654,6 +723,8 @@ public Builder mergeSource(com.google.cloud.vision.v1p3beta1.ImageSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -674,6 +745,8 @@ public Builder clearSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -683,11 +756,13 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p3beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p3beta1.ImageSource.Builder getSourceBuilder() {
-      
+
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -700,11 +775,14 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null ?
-            com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance() : source_;
+        return source_ == null
+            ? com.google.cloud.vision.v1p3beta1.ImageSource.getDefaultInstance()
+            : source_;
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -714,21 +792,24 @@ public com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p3beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.ImageSource,
+            com.google.cloud.vision.v1p3beta1.ImageSource.Builder,
+            com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImageSource, com.google.cloud.vision.v1p3beta1.ImageSource.Builder, com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>(
-                getSource(),
-                getParentForChildren(),
-                isClean());
+        sourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.ImageSource,
+                com.google.cloud.vision.v1p3beta1.ImageSource.Builder,
+                com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder>(
+                getSource(), getParentForChildren(), isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -738,12 +819,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Image)
   private static final com.google.cloud.vision.v1p3beta1.Image DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Image();
   }
@@ -752,16 +833,16 @@ public static com.google.cloud.vision.v1p3beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Image parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Image(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Image parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Image(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -776,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
similarity index 70%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
index c2df44d8e..ffae56643 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageNumber_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageNumber_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class,
+            com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
+   *
+   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -148,12 +171,15 @@ public java.lang.String getUri() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -162,6 +188,7 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other = + (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) obj; - if (!getUri() - .equals(other.getUri())) return false; - if (getPageNumber() - != other.getPageNumber()) return false; + if (!getUri().equals(other.getUri())) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,96 +261,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -334,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p3beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.class,
+              com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.newBuilder()
@@ -356,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +431,8 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p3beta1.ImageAnnotationContext result =
+          new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -409,38 +443,39 @@ public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageAnnotationContext)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ImageAnnotationContext.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -475,7 +511,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -487,18 +524,20 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -507,20 +546,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -528,67 +568,77 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_ ; + private int pageNumber_; /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -596,39 +646,45 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -638,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p3beta1.ImageAnnotationContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageAnnotationContext(); } @@ -652,16 +708,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java index 07bbbabad..8ad293339 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotationContextOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageAnnotationContextOrBuilder extends +public interface ImageAnnotationContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..4de97a561 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java @@ -0,0 +1,762 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p3beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p3b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032,google/cloud/vision/v1p3be" + + "ta1/geometry.proto\0322google/cloud/vision/" + + "v1p3beta1/product_search.proto\0323google/c" + + "loud/vision/v1p3beta1/text_annotation.pr" + + "oto\0321google/cloud/vision/v1p3beta1/web_d" + + "etection.proto\032#google/longrunning/opera" + + "tions.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\032\027google/ty" + + "pe/color.proto\032\030google/type/latlng.proto" + + "\"\216\003\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.clou" + + "d.vision.v1p3beta1.Feature.Type\022\023\n\013max_r" + + "esults\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020" + + "TYPE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026" + + "\n\022LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION" + + "\020\003\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTIO" + + "N\020\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE" + + "_SEARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020" + + "\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016" + + "PRODUCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020" + + "\023\"7\n\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022" + + "\021\n\timage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001" + + " \001(\014\022:\n\006source\030\002 \001(\0132*.google.cloud.visi" + + "on.v1p3beta1.ImageSource\"\233\016\n\016FaceAnnotat" + + "ion\022B\n\rbounding_poly\030\001 \001(\0132+.google.clou" + + "d.vision.v1p3beta1.BoundingPoly\022E\n\020fd_bo" + + "unding_poly\030\002 \001(\0132+.google.cloud.vision." + + "v1p3beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(" + + "\01326.google.cloud.vision.v1p3beta1.FaceAn" + + "notation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n" + + "\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024" + + "detection_confidence\030\007 \001(\002\022\036\n\026landmarkin" + + "g_confidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001" + + "(\0162).google.cloud.vision.v1p3beta1.Likel" + + "ihood\022D\n\021sorrow_likelihood\030\n \001(\0162).googl" + + "e.cloud.vision.v1p3beta1.Likelihood\022C\n\020a" + + "nger_likelihood\030\013 \001(\0162).google.cloud.vis" + + "ion.v1p3beta1.Likelihood\022F\n\023surprise_lik" + + "elihood\030\014 \001(\0162).google.cloud.vision.v1p3" + + "beta1.Likelihood\022K\n\030under_exposed_likeli" + + "hood\030\r \001(\0162).google.cloud.vision.v1p3bet" + + "a1.Likelihood\022E\n\022blurred_likelihood\030\016 \001(" + + "\0162).google.cloud.vision.v1p3beta1.Likeli" + + "hood\022F\n\023headwear_likelihood\030\017 \001(\0162).goog" + + "le.cloud.vision.v1p3beta1.Likelihood\032\307\007\n" + + "\010Landmark\022I\n\004type\030\003 \001(\0162;.google.cloud.v" + + "ision.v1p3beta1.FaceAnnotation.Landmark." + + "Type\0229\n\010position\030\004 \001(\0132\'.google.cloud.vi" + + "sion.v1p3beta1.Position\"\264\006\n\004Type\022\024\n\020UNKN" + + "OWN_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EY" + + "E\020\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_O" + + "F_LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBRO" + + "W\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPO" + + "INT_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPE" + + "R_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017" + + "\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOS" + + "E_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026" + + "\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_B" + + "OUNDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030" + + "LEFT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_L" + + "EFT_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025" + + "\022\032\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EY" + + "E_BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CO" + + "RNER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022" + + " \n\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEF" + + "T_EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022" + + "\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022" + + "\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020" + + " \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GO" + + "NION\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132" + + "\023.google.type.LatLng\"=\n\010Property\022\014\n\004name" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 " + + "\001(\004\"\274\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n" + + "\006locale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005sc" + + "ore\030\004 \001(\002\022\022\n\nconfidence\030\005 \001(\002\022\022\n\ntopical" + + "ity\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.googl" + + "e.cloud.vision.v1p3beta1.BoundingPoly\022>\n" + + "\tlocations\030\010 \003(\0132+.google.cloud.vision.v" + + "1p3beta1.LocationInfo\022;\n\nproperties\030\t \003(" + + "\0132\'.google.cloud.vision.v1p3beta1.Proper" + + "ty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mid\030" + + "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003 \001" + + "(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001(\013" + + "2+.google.cloud.vision.v1p3beta1.Boundin" + + "gPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adult\030" + + "\001 \001(\0162).google.cloud.vision.v1p3beta1.Li" + + "kelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud.v" + + "ision.v1p3beta1.Likelihood\022:\n\007medical\030\003 " + + "\001(\0162).google.cloud.vision.v1p3beta1.Like" + + "lihood\022;\n\010violence\030\004 \001(\0162).google.cloud." + + "vision.v1p3beta1.Likelihood\0227\n\004racy\030\t \001(" + + "\0162).google.cloud.vision.v1p3beta1.Likeli" + + "hood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001(\013" + + "2\023.google.type.LatLng\022(\n\013max_lat_lng\030\002 \001" + + "(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!\n\005" + + "color\030\001 \001(\0132\022.google.type.Color\022\r\n\005score" + + "\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domina" + + "ntColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.goo" + + "gle.cloud.vision.v1p3beta1.ColorInfo\"c\n\017" + + "ImageProperties\022P\n\017dominant_colors\030\001 \001(\013" + + "27.google.cloud.vision.v1p3beta1.Dominan" + + "tColorsAnnotation\"\177\n\010CropHint\022B\n\rboundin" + + "g_poly\030\001 \001(\0132+.google.cloud.vision.v1p3b" + + "eta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022\033\n" + + "\023importance_fraction\030\003 \001(\002\"R\n\023CropHintsA" + + "nnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google.c" + + "loud.vision.v1p3beta1.CropHint\"(\n\017CropHi" + + "ntsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebD" + + "etectionParams\022\033\n\023include_geo_results\030\002 " + + "\001(\010\"c\n\023TextDetectionParams\022.\n&enable_tex" + + "t_detection_confidence_score\030\t \001(\010\022\034\n\024ad" + + "vanced_ocr_options\030\013 \003(\t\"\253\003\n\014ImageContex" + + "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud." + + "vision.v1p3beta1.LatLongRect\022\026\n\016language" + + "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132" + + "..google.cloud.vision.v1p3beta1.CropHint" + + "sParams\022Q\n\025product_search_params\030\005 \001(\01322" + + ".google.cloud.vision.v1p3beta1.ProductSe" + + "archParams\022O\n\024web_detection_params\030\006 \001(\013" + + "21.google.cloud.vision.v1p3beta1.WebDete" + + "ctionParams\022Q\n\025text_detection_params\030\014 \001" + + "(\01322.google.cloud.vision.v1p3beta1.TextD" + + "etectionParams\"\311\001\n\024AnnotateImageRequest\022" + + "3\n\005image\030\001 \001(\0132$.google.cloud.vision.v1p" + + "3beta1.Image\0228\n\010features\030\002 \003(\0132&.google." + + "cloud.vision.v1p3beta1.Feature\022B\n\rimage_" + + "context\030\003 \001(\0132+.google.cloud.vision.v1p3" + + "beta1.ImageContext\":\n\026ImageAnnotationCon" + + "text\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001(\005\"\277" + + "\010\n\025AnnotateImageResponse\022G\n\020face_annotat" + + "ions\030\001 \003(\0132-.google.cloud.vision.v1p3bet" + + "a1.FaceAnnotation\022M\n\024landmark_annotation" + + "s\030\002 \003(\0132/.google.cloud.vision.v1p3beta1." + + "EntityAnnotation\022I\n\020logo_annotations\030\003 \003" + + "(\0132/.google.cloud.vision.v1p3beta1.Entit" + + "yAnnotation\022J\n\021label_annotations\030\004 \003(\0132/" + + ".google.cloud.vision.v1p3beta1.EntityAnn" + + "otation\022^\n\034localized_object_annotations\030" + + "\026 \003(\01328.google.cloud.vision.v1p3beta1.Lo" + + "calizedObjectAnnotation\022I\n\020text_annotati" + + "ons\030\005 \003(\0132/.google.cloud.vision.v1p3beta" + + "1.EntityAnnotation\022K\n\024full_text_annotati" + + "on\030\014 \001(\0132-.google.cloud.vision.v1p3beta1" + + ".TextAnnotation\022S\n\026safe_search_annotatio" + + "n\030\006 \001(\01323.google.cloud.vision.v1p3beta1." + + "SafeSearchAnnotation\022S\n\033image_properties" + + "_annotation\030\010 \001(\0132..google.cloud.vision." + + "v1p3beta1.ImageProperties\022Q\n\025crop_hints_" + + "annotation\030\013 \001(\01322.google.cloud.vision.v" + + "1p3beta1.CropHintsAnnotation\022B\n\rweb_dete" + + "ction\030\r \001(\0132+.google.cloud.vision.v1p3be" + + "ta1.WebDetection\022S\n\026product_search_resul" + + "ts\030\016 \001(\01323.google.cloud.vision.v1p3beta1" + + ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g" + + "oogle.rpc.Status\022F\n\007context\030\025 \001(\01325.goog" + + "le.cloud.vision.v1p3beta1.ImageAnnotatio" + + "nContext\"\241\001\n\024AnnotateFileResponse\022@\n\014inp" + + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + + "p3beta1.InputConfig\022G\n\tresponses\030\002 \003(\01324" + + ".google.cloud.vision.v1p3beta1.AnnotateI" + + "mageResponse\"h\n\032BatchAnnotateImagesReque" + + "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi" + + "on.v1p3beta1.AnnotateImageRequestB\003\340A\002\"f" + + "\n\033BatchAnnotateImagesResponse\022G\n\trespons" + + "es\030\001 \003(\01324.google.cloud.vision.v1p3beta1" + + ".AnnotateImageResponse\"\236\002\n\030AsyncAnnotate" + + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + + "le.cloud.vision.v1p3beta1.InputConfig\0228\n" + + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + + "p3beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.ImageCont" + + "ext\022B\n\routput_config\030\004 \001(\0132+.google.clou" + + "d.vision.v1p3beta1.OutputConfig\"_\n\031Async" + + "AnnotateFileResponse\022B\n\routput_config\030\001 " + + "\001(\0132+.google.cloud.vision.v1p3beta1.Outp" + + "utConfig\"p\n\036AsyncBatchAnnotateFilesReque" + + "st\022N\n\010requests\030\001 \003(\01327.google.cloud.visi" + + "on.v1p3beta1.AsyncAnnotateFileRequestB\003\340" + + "A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K\n" + + "\tresponses\030\001 \003(\01328.google.cloud.vision.v" + + "1p3beta1.AsyncAnnotateFileResponse\"^\n\013In" + + "putConfig\022<\n\ngcs_source\030\001 \001(\0132(.google.c" + + "loud.vision.v1p3beta1.GcsSource\022\021\n\tmime_" + + "type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destin" + + "ation\030\001 \001(\0132-.google.cloud.vision.v1p3be" + + "ta1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030" + + "\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinati" + + "on\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n" + + "\005state\030\001 \001(\01626.google.cloud.vision.v1p3b" + + "eta1.OperationMetadata.State\022/\n\013create_t" + + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" + + "\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCA" + + "NCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\r" + + "VERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBL" + + "E\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016Ima" + + "geAnnotator\022\276\001\n\023BatchAnnotateImages\0229.go" + + "ogle.cloud.vision.v1p3beta1.BatchAnnotat" + + "eImagesRequest\032:.google.cloud.vision.v1p" + + "3beta1.BatchAnnotateImagesResponse\"0\202\323\344\223" + + "\002\037\"\032/v1p3beta1/images:annotate:\001*\332A\010requ" + + "ests\022\351\001\n\027AsyncBatchAnnotateFiles\022=.googl" + + "e.cloud.vision.v1p3beta1.AsyncBatchAnnot" + + "ateFilesRequest\032\035.google.longrunning.Ope" + + "ration\"p\202\323\344\223\002(\"#/v1p3beta1/files:asyncBa" + + "tchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatch" + + "AnnotateFilesResponse\022\021OperationMetadata" + + "\032v\312A\025vision.googleapis.com\322A[https://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/cloud-vision" + + "B\202\001\n!com.google.cloud.vision.v1p3beta1B\023" + + "ImageAnnotatorProtoP\001ZCgoogle.golang.org" + + "/genproto/googleapis/cloud/vision/v1p3be" + + "ta1;vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Feature_descriptor, + new java.lang.String[] { + "Type", "MaxResults", "Model", + }); + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor, + new java.lang.String[] { + "GcsImageUri", "ImageUri", + }); + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Image_descriptor, + new java.lang.String[] { + "Content", "Source", + }); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor, + new java.lang.String[] { + "BoundingPoly", + "FdBoundingPoly", + "Landmarks", + "RollAngle", + "PanAngle", + "TiltAngle", + "DetectionConfidence", + "LandmarkingConfidence", + "JoyLikelihood", + "SorrowLikelihood", + "AngerLikelihood", + "SurpriseLikelihood", + "UnderExposedLikelihood", + "BlurredLikelihood", + "HeadwearLikelihood", + }); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { + "Type", "Position", + }); + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor, + new java.lang.String[] { + "LatLng", + }); + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Property_descriptor, + new java.lang.String[] { + "Name", "Value", "Uint64Value", + }); + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_EntityAnnotation_descriptor, + new java.lang.String[] { + "Mid", + "Locale", + "Description", + "Score", + "Confidence", + "Topicality", + "BoundingPoly", + "Locations", + "Properties", + }); + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor, + new java.lang.String[] { + "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", + }); + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { + "Adult", "Spoof", "Medical", "Violence", "Racy", + }); + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor, + new java.lang.String[] { + "MinLatLng", "MaxLatLng", + }); + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ColorInfo_descriptor, + new java.lang.String[] { + "Color", "Score", "PixelFraction", + }); + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { + "Colors", + }); + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor, + new java.lang.String[] { + "DominantColors", + }); + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p3beta1_CropHint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHint_descriptor, + new java.lang.String[] { + "BoundingPoly", "Confidence", "ImportanceFraction", + }); + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { + "CropHints", + }); + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CropHintsParams_descriptor, + new java.lang.String[] { + "AspectRatios", + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor, + new java.lang.String[] { + "IncludeGeoResults", + }); + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor, + new java.lang.String[] { + "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", + }); + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor, + new java.lang.String[] { + "LatLongRect", + "LanguageHints", + "CropHintsParams", + "ProductSearchParams", + "WebDetectionParams", + "TextDetectionParams", + }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { + "Image", "Features", "ImageContext", + }); + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { + "Uri", "PageNumber", + }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { + "FaceAnnotations", + "LandmarkAnnotations", + "LogoAnnotations", + "LabelAnnotations", + "LocalizedObjectAnnotations", + "TextAnnotations", + "FullTextAnnotation", + "SafeSearchAnnotation", + "ImagePropertiesAnnotation", + "CropHintsAnnotation", + "WebDetection", + "ProductSearchResults", + "Error", + "Context", + }); + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { + "InputConfig", "Responses", + }); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { + "InputConfig", "Features", "ImageContext", "OutputConfig", + }); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { + "OutputConfig", + }); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "MimeType", + }); + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BatchSize", + }); + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p3beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "State", "CreateTime", "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.ProductSearchProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java index f6ca3fd2e..16341e35d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContext.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageContext} */ -public final class ImageContext extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageContext) ImageContextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,87 +71,107 @@ private ImageContext( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = input.readMessage(com.google.cloud.vision.v1p3beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; - } - case 34: { - com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; } - productSearchParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; } - - break; - } - case 50: { - com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); + case 34: + { + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.CropHintsParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; } - webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); + } + productSearchParams_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSearchParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); + case 50: + { + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); + } + webDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); + } + textDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -142,8 +179,7 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -152,27 +188,33 @@ private ImageContext( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageContext.class, com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageContext.class, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.LatLongRect latLongRect_; /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -180,18 +222,25 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } /** + * + * *
    * Not used.
    * 
@@ -206,6 +255,8 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -218,13 +269,15 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -237,12 +290,15 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -255,6 +311,7 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -262,6 +319,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -274,22 +333,25 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p3beta1.CropHintsParams cropHintsParams_; /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -297,18 +359,25 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -323,11 +392,14 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p3beta1.ProductSearchParams productSearchParams_; /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -335,18 +407,25 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } /** + * + * *
    * Parameters for product search.
    * 
@@ -354,18 +433,22 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchPar * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder + getProductSearchParamsOrBuilder() { return getProductSearchParams(); } public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p3beta1.WebDetectionParams webDetectionParams_; /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -373,18 +456,25 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } /** + * + * *
    * Parameters for web detection.
    * 
@@ -392,18 +482,22 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p3beta1.TextDetectionParams textDetectionParams_; /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -411,18 +505,25 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
@@ -430,11 +531,13 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -446,8 +549,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -476,8 +578,7 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -488,20 +589,17 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } if (textDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTextDetectionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -511,39 +609,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageContext other = (com.google.cloud.vision.v1p3beta1.ImageContext) obj; + com.google.cloud.vision.v1p3beta1.ImageContext other = + (com.google.cloud.vision.v1p3beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect() - .equals(other.getLatLongRect())) return false; + if (!getLatLongRect().equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList() - .equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams() - .equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams() - .equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams() - .equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams() - .equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -585,118 +678,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageContext) com.google.cloud.vision.v1p3beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageContext.class, com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageContext.class, + com.google.cloud.vision.v1p3beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageContext.newBuilder() @@ -704,16 +806,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -753,9 +854,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor; } @java.lang.Override @@ -774,7 +875,8 @@ public com.google.cloud.vision.v1p3beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageContext result = new com.google.cloud.vision.v1p3beta1.ImageContext(this); + com.google.cloud.vision.v1p3beta1.ImageContext result = + new com.google.cloud.vision.v1p3beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -814,38 +916,39 @@ public com.google.cloud.vision.v1p3beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageContext)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageContext) other); } else { super.mergeFrom(other); return this; @@ -907,38 +1010,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> latLongRectBuilder_; + com.google.cloud.vision.v1p3beta1.LatLongRect, + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> + latLongRectBuilder_; /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ public com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** + * + * *
      * Not used.
      * 
@@ -959,6 +1076,8 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect valu return this; } /** + * + * *
      * Not used.
      * 
@@ -977,6 +1096,8 @@ public Builder setLatLongRect( return this; } /** + * + * *
      * Not used.
      * 
@@ -987,7 +1108,9 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder(latLongRect_) + .mergeFrom(value) + .buildPartial(); } else { latLongRect_ = value; } @@ -999,6 +1122,8 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p3beta1.LatLongRect va return this; } /** + * + * *
      * Not used.
      * 
@@ -1017,6 +1142,8 @@ public Builder clearLatLongRect() { return this; } /** + * + * *
      * Not used.
      * 
@@ -1024,11 +1151,13 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p3beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** + * + * *
      * Not used.
      * 
@@ -1039,11 +1168,14 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null ? - com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p3beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } } /** + * + * *
      * Not used.
      * 
@@ -1051,27 +1183,34 @@ public com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p3beta1.LatLongRect, + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.LatLongRect, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder>( - getLatLongRect(), - getParentForChildren(), - isClean()); + latLongRectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.LatLongRect, + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder>( + getLatLongRect(), getParentForChildren(), isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1084,13 +1223,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1103,12 +1244,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1121,6 +1265,7 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1128,6 +1273,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1140,14 +1287,16 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1160,21 +1309,23 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints( - int index, java.lang.String value) { + public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1187,20 +1338,22 @@ public Builder setLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints( - java.lang.String value) { + public Builder addLanguageHints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1213,18 +1366,19 @@ public Builder addLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints( - java.lang.Iterable values) { + public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1237,6 +1391,7 @@ public Builder addAllLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1246,6 +1401,8 @@ public Builder clearLanguageHints() { return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1258,15 +1415,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; + * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1275,34 +1432,47 @@ public Builder addLanguageHintsBytes( private com.google.cloud.vision.v1p3beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; + com.google.cloud.vision.v1p3beta1.CropHintsParams, + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> + cropHintsParamsBuilder_; /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1323,6 +1493,8 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsPar return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1341,6 +1513,8 @@ public Builder setCropHintsParams( return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1351,7 +1525,9 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.CropHintsParams.newBuilder(cropHintsParams_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsParams_ = value; } @@ -1363,6 +1539,8 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p3beta1.CropHintsP return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1381,6 +1559,8 @@ public Builder clearCropHintsParams() { return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1388,26 +1568,32 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder + getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null ? - com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p3beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1415,14 +1601,17 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsPa * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.CropHintsParams, + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.CropHintsParams, com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), - getParentForChildren(), - isClean()); + cropHintsParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.CropHintsParams, + com.google.cloud.vision.v1p3beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), getParentForChildren(), isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1430,41 +1619,55 @@ public com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsPa private com.google.cloud.vision.v1p3beta1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchParams, + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> + productSearchParamsBuilder_; /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ public com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public Builder setProductSearchParams(com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { + public Builder setProductSearchParams( + com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1478,6 +1681,8 @@ public Builder setProductSearchParams(com.google.cloud.vision.v1p3beta1.ProductS return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1496,17 +1701,22 @@ public Builder setProductSearchParams( return this; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public Builder mergeProductSearchParams(com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { + public Builder mergeProductSearchParams( + com.google.cloud.vision.v1p3beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder(productSearchParams_) + .mergeFrom(value) + .buildPartial(); } else { productSearchParams_ = value; } @@ -1518,6 +1728,8 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1p3beta1.Produc return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1536,33 +1748,42 @@ public Builder clearProductSearchParams() { return this; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder getProductSearchParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder + getProductSearchParamsBuilder() { + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder + getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null ? - com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } } /** + * + * *
      * Parameters for product search.
      * 
@@ -1570,14 +1791,17 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProduct * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchParams, + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchParams, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), - getParentForChildren(), - isClean()); + productSearchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchParams, + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), getParentForChildren(), isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -1585,41 +1809,55 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProduct private com.google.cloud.vision.v1p3beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetectionParams, + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> + webDetectionParamsBuilder_; /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { + public Builder setWebDetectionParams( + com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1633,6 +1871,8 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDetect return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1651,17 +1891,22 @@ public Builder setWebDetectionParams( return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams( + com.google.cloud.vision.v1p3beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder(webDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { webDetectionParams_ = value; } @@ -1673,6 +1918,8 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p3beta1.WebDete return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1691,33 +1938,42 @@ public Builder clearWebDetectionParams() { return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder + getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null ? - com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1725,14 +1981,17 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetec * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetectionParams, + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetectionParams, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), - getParentForChildren(), - isClean()); + webDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetectionParams, + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), getParentForChildren(), isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1740,41 +1999,55 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetec private com.google.cloud.vision.v1p3beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; + com.google.cloud.vision.v1p3beta1.TextDetectionParams, + com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> + textDetectionParamsBuilder_; /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { + public Builder setTextDetectionParams( + com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1788,6 +2061,8 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDete return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1806,17 +2081,22 @@ public Builder setTextDetectionParams( return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams( + com.google.cloud.vision.v1p3beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder(textDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { textDetectionParams_ = value; } @@ -1828,6 +2108,8 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p3beta1.TextDe return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1846,33 +2128,42 @@ public Builder clearTextDetectionParams() { return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder + getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null ? - com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -1880,21 +2171,24 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder getTextDet * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p3beta1.TextDetectionParams, + com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextDetectionParams, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), - getParentForChildren(), - isClean()); + textDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextDetectionParams, + com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), getParentForChildren(), isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1904,12 +2198,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageContext) private static final com.google.cloud.vision.v1p3beta1.ImageContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageContext(); } @@ -1918,16 +2212,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1942,6 +2236,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java similarity index 88% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java index 2e2e5fc02..80b60914d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageContextOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageContextOrBuilder extends +public interface ImageContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p3beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ com.google.cloud.vision.v1p3beta1.LatLongRect getLatLongRect(); /** + * + * *
    * Not used.
    * 
@@ -35,6 +59,8 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -47,11 +73,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - java.util.List - getLanguageHintsList(); + java.util.List getLanguageHintsList(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -64,10 +92,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ int getLanguageHintsCount(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -80,11 +111,14 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -97,31 +131,39 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString - getLanguageHintsBytes(int index); + com.google.protobuf.ByteString getLanguageHintsBytes(int index); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p3beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ com.google.cloud.vision.v1p3beta1.CropHintsParams getCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -131,24 +173,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p3beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p3beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ com.google.cloud.vision.v1p3beta1.ProductSearchParams getProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
@@ -158,24 +208,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p3beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ com.google.cloud.vision.v1p3beta1.WebDetectionParams getWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
@@ -185,24 +243,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p3beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ com.google.cloud.vision.v1p3beta1.TextDetectionParams getTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java index f4b4b6f0e..2c41067ba 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -15,11 +33,14 @@ public interface ImageOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -27,10 +48,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -38,10 +62,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.ImageSource source = 2; + * * @return The source. */ com.google.cloud.vision.v1p3beta1.ImageSource getSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
similarity index 69%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
index 7772d5dc3..82e6bc10c 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageProperties.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageProperties} */ -public final class ImageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageProperties) ImagePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageProperties() { - } + + private ImageProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageProperties( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); + } + dominantColors_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; } - dominantColors_ = input.readMessage(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageProperties.class, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageProperties.class, + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominantColors_; /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageProperties other = (com.google.cloud.vision.v1p3beta1.ImageProperties) obj; + com.google.cloud.vision.v1p3beta1.ImageProperties other = + (com.google.cloud.vision.v1p3beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors() - .equals(other.getDominantColors())) return false; + if (!getDominantColors().equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +240,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageProperties) com.google.cloud.vision.v1p3beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageProperties.class, com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageProperties.class, + com.google.cloud.vision.v1p3beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageProperties.newBuilder() @@ -326,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageProperties_descriptor; } @java.lang.Override @@ -370,7 +410,8 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageProperties result = new com.google.cloud.vision.v1p3beta1.ImageProperties(this); + com.google.cloud.vision.v1p3beta1.ImageProperties result = + new com.google.cloud.vision.v1p3beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.vision.v1p3beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageProperties)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageProperties) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ImageProperties.getDefaultInstance()) + return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -446,7 +489,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +502,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> + dominantColorsBuilder_; /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { + public Builder setDominantColors( + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +564,8 @@ public Builder setDominantColors(com.google.cloud.vision.v1p3beta1.DominantColor return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -524,17 +584,22 @@ public Builder setDominantColors( return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors(com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors( + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.newBuilder(dominantColors_) + .mergeFrom(value) + .buildPartial(); } else { dominantColors_ = value; } @@ -546,6 +611,8 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1p3beta1.DominantCol return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -564,33 +631,42 @@ public Builder clearDominantColors() { return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder + getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null ? - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -598,21 +674,24 @@ public com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder getDo * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), - getParentForChildren(), - isClean()); + dominantColorsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), getParentForChildren(), isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageProperties) private static final com.google.cloud.vision.v1p3beta1.ImageProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageProperties(); } @@ -636,16 +715,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java index 51261f94c..437fd97fc 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImagePropertiesOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImagePropertiesOrBuilder extends +public interface ImagePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p3beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ com.google.cloud.vision.v1p3beta1.DominantColorsAnnotation getDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java similarity index 77% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java index bdbdb8302..f27f49515 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageSource} */ -public final class ImageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImageSource) ImageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -26,16 +44,15 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ImageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageSource.class, com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageSource.class, + com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -112,6 +135,7 @@ private ImageSource(
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ @java.lang.Override @@ -120,14 +144,15 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -137,16 +162,15 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -157,6 +181,8 @@ public java.lang.String getGcsImageUri() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -175,6 +201,7 @@ public java.lang.String getGcsImageUri() {
    * 
* * string image_uri = 2; + * * @return The imageUri. */ @java.lang.Override @@ -183,14 +210,15 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -209,16 +237,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -227,6 +254,7 @@ public java.lang.String getImageUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -269,17 +296,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImageSource other = (com.google.cloud.vision.v1p3beta1.ImageSource) obj; + com.google.cloud.vision.v1p3beta1.ImageSource other = + (com.google.cloud.vision.v1p3beta1.ImageSource) obj; - if (!getGcsImageUri() - .equals(other.getGcsImageUri())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; + if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,118 +326,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImageSource) com.google.cloud.vision.v1p3beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImageSource.class, com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p3beta1.ImageSource.class, + com.google.cloud.vision.v1p3beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImageSource.newBuilder() @@ -419,16 +454,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_ImageSource_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p3beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p3beta1.ImageSource result = new com.google.cloud.vision.v1p3beta1.ImageSource(this); + com.google.cloud.vision.v1p3beta1.ImageSource result = + new com.google.cloud.vision.v1p3beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -472,38 +507,39 @@ public com.google.cloud.vision.v1p3beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageSource)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImageSource) other); } else { super.mergeFrom(other); return this; @@ -551,6 +587,8 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -560,13 +598,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -575,6 +613,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -584,15 +624,14 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -600,6 +639,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -609,20 +650,22 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri( - java.lang.String value) { + public Builder setGcsImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -632,15 +675,18 @@ public Builder setGcsImageUri(
      * 
* * string gcs_image_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,16 +696,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -667,6 +713,8 @@ public Builder setGcsImageUriBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -685,13 +733,13 @@ public Builder setGcsImageUriBytes(
      * 
* * string image_uri = 2; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -700,6 +748,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -718,15 +768,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -734,6 +783,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -752,20 +803,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -784,15 +837,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 2; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -811,23 +867,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageSource) private static final com.google.cloud.vision.v1p3beta1.ImageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImageSource(); } @@ -851,16 +907,16 @@ public static com.google.cloud.vision.v1p3beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java index feacbe05b..08de78c58 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface ImageSourceOrBuilder extends +public interface ImageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -17,10 +35,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -30,12 +51,14 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString - getGcsImageUriBytes(); + com.google.protobuf.ByteString getGcsImageUriBytes(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -54,10 +77,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -76,8 +102,8 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java similarity index 82% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java index 3e48dda77..b57102baf 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            csvFileUri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              csvFileUri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class,
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
+   *
+   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -146,6 +168,7 @@ private ImportProductSetsGcsSource(
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ @java.lang.Override @@ -154,14 +177,15 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -211,16 +235,15 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -229,6 +252,7 @@ public java.lang.String getCsvFileUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -265,15 +288,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other = + (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri() - .equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,96 +316,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -390,21 +421,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.class,
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder()
@@ -412,16 +445,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -431,13 +463,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource
+        getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
     }
 
@@ -452,7 +485,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource result =
+          new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -462,38 +496,39 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -501,7 +536,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance())
+        return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -525,7 +562,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -537,6 +575,8 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
+     *
+     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -586,13 +626,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -601,6 +641,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -650,15 +692,14 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -666,6 +707,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -715,20 +758,22 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri( - java.lang.String value) { + public Builder setCsvFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -778,15 +823,18 @@ public Builder setCsvFileUri(
      * 
* * string csv_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -836,23 +884,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -862,12 +910,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) - private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource(); } @@ -876,16 +925,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java similarity index 88% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java index 0b064fea9..cf34cf8eb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ImportProductSetsGcsSourceOrBuilder extends +public interface ImportProductSetsGcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -57,10 +75,13 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -110,8 +131,8 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString - getCsvFileUriBytes(); + com.google.protobuf.ByteString getCsvFileUriBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java similarity index 68% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java index 3dcc0104a..e37aa3e70 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsInputConfig() { - } + + private ImportProductSetsInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,34 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder subBuilder = + null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_) + .toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +103,39 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -123,30 +151,35 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -154,22 +187,27 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -178,14 +216,16 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource
    * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
+  public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder
+      getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_;
+      return (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,10 +237,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
-      output.writeMessage(1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
+      output.writeMessage(
+          1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
     }
     unknownFields.writeTo(output);
   }
@@ -212,8 +252,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -223,18 +264,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other =
+        (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -264,117 +305,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder() @@ -382,16 +433,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,13 +451,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance(); } @@ -422,7 +473,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig result = + new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -439,38 +491,39 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) other); } else { super.mergeFrom(other); return this; @@ -478,15 +531,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig other) { - if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -507,7 +564,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -516,12 +575,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -531,16 +590,21 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, + com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -548,12 +612,15 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -571,6 +638,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource } } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -578,7 +647,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
+    public Builder setGcsSource(
+        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -592,6 +662,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSetsG
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -611,6 +683,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -618,12 +692,18 @@ public Builder setGcsSource(
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
+    public Builder mergeGcsSource(
+        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_
+                != com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource
+                    .getDefaultInstance()) {
+          source_ =
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.newBuilder(
+                      (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -639,6 +719,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.ImportProductSet
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -663,6 +745,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -670,10 +754,13 @@ public Builder clearGcsSource() {
      *
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder getGcsSourceBuilder() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder
+        getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -682,7 +769,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder getG
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     @java.lang.Override
-    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
+    public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder
+        getGcsSourceOrBuilder() {
       if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
@@ -693,6 +781,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder get
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -701,26 +791,33 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder get
      * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource,
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder,
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
-          source_ = com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
+          source_ =
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource,
+                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.Builder,
+                com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -730,30 +827,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
-  private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig();
   }
 
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstance() {
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsInputConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -765,9 +864,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
index e41acb199..f7716186b 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ImportProductSetsInputConfigOrBuilder extends
+public interface ImportProductSetsInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
similarity index 63%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
index aa8b67459..e71aa4c9e 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,38 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + parent_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder subBuilder = + null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +109,42 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +153,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +189,16 @@ public java.lang.String getParent() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig inputConfig_; /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -169,30 +206,43 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other = + (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) com.google.cloud.vision.v1p3beta1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.newBuilder() @@ -391,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -437,7 +493,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest result = + new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -452,38 +509,39 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +577,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +590,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +615,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +640,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,41 +711,61 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { + public Builder setInputConfig( + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +779,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductSet return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -697,17 +801,25 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { + public Builder mergeInputConfig( + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.newBuilder( + inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -719,11 +831,15 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p3beta1.ImportProductS return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -737,55 +853,73 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { - + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder + getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest(); } @@ -809,16 +943,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..85a9db2e1 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface ImportProductSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputConfig. + */ + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig getInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java similarity index 79% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java index 52a83bf53..d080e4ac7 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -31,16 +49,15 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,31 +77,35 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              referenceImages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                referenceImages_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              referenceImages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(),
+                      extensionRegistry));
+              break;
             }
-            referenceImages_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              statuses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                statuses_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+              break;
             }
-            statuses_.add(
-                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +113,7 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -105,22 +125,27 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class,
+            com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -132,6 +157,8 @@ public java.util.List getRefer return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -139,11 +166,13 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -155,6 +184,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -181,6 +214,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -196,6 +231,8 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -207,11 +244,12 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List 
-      getStatusesOrBuilderList() {
+  public java.util.List getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -227,6 +265,8 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -242,6 +282,8 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -253,12 +295,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -270,8 +312,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -288,12 +329,10 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -303,17 +342,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other = (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other =
+        (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList()
-        .equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList()
-        .equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList().equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -339,96 +377,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -440,21 +486,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ImportProductSetsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
       com.google.cloud.vision.v1p3beta1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.class,
+              com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.newBuilder()
@@ -462,18 +510,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +541,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -514,7 +562,8 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse result = new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse result =
+          new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -542,38 +591,39 @@ public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -581,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse.getDefaultInstance())
+        return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -600,9 +651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResp
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReferenceImagesFieldBuilder() : null;
+            referenceImagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReferenceImagesFieldBuilder()
+                    : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -626,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ImportProductSetsResp
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStatusesFieldBuilder() : null;
+            statusesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStatusesFieldBuilder()
+                    : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -653,7 +706,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -662,28 +716,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ = new java.util.ArrayList(referenceImages_);
+        referenceImages_ =
+            new java.util.ArrayList(
+                referenceImages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImagesBuilder_;
+            com.google.cloud.vision.v1p3beta1.ReferenceImage,
+            com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder,
+            com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>
+        referenceImagesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List getReferenceImagesList() { + public java.util.List + getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -691,6 +755,8 @@ public java.util.List getRefer } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -705,6 +771,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -719,6 +787,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -740,6 +810,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -758,6 +830,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -778,6 +852,8 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p3beta1.ReferenceIma return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -799,6 +875,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -817,6 +895,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -835,6 +915,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -845,8 +927,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -854,6 +935,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -871,6 +954,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -888,6 +973,8 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -899,6 +986,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -908,19 +997,22 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -928,6 +1020,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -935,10 +1029,12 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -947,26 +1043,34 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -976,19 +1080,22 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private java.util.List statuses_ = - java.util.Collections.emptyList(); + private java.util.List statuses_ = java.util.Collections.emptyList(); + private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusesBuilder_; /** + * + * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1007,6 +1114,8 @@ public java.util.List getStatusesList() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1025,6 +1134,8 @@ public int getStatusesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1043,6 +1154,8 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1053,8 +1166,7 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder setStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1068,6 +1180,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1078,8 +1192,7 @@ public Builder setStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1090,6 +1203,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1114,6 +1229,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1124,8 +1241,7 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder addStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1139,6 +1255,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1149,8 +1267,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1161,6 +1278,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1171,8 +1290,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1183,6 +1301,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1193,12 +1313,10 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(
-        java.lang.Iterable values) {
+    public Builder addAllStatuses(java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1206,6 +1324,8 @@ public Builder addAllStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1227,6 +1347,8 @@ public Builder clearStatuses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1248,6 +1370,8 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1258,11 +1382,12 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1273,14 +1398,16 @@ public com.google.rpc.Status.Builder getStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);  } else {
+        return statuses_.get(index);
+      } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1291,8 +1418,7 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesOrBuilderList() {
+    public java.util.List getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1300,6 +1426,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1311,10 +1439,11 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1325,12 +1454,13 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(
-        int index) {
-      return getStatusesFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
+      return getStatusesFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1341,27 +1471,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesBuilderList() {
+    public java.util.List getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                statuses_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        statusesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1371,12 +1501,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse();
   }
@@ -1385,16 +1515,16 @@ public static com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1409,6 +1539,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
index cc734e56a..827a2307e 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ImportProductSetsResponseOrBuilder extends
+public interface ImportProductSetsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -25,6 +44,8 @@ public interface ImportProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -33,25 +54,30 @@ public interface ImportProductSetsResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -62,9 +88,10 @@ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesList();
+  java.util.List getStatusesList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -77,6 +104,8 @@ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    */
   com.google.rpc.Status getStatuses(int index);
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -89,6 +118,8 @@ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    */
   int getStatusesCount();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -99,9 +130,10 @@ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesOrBuilderList();
+  java.util.List getStatusesOrBuilderList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -112,6 +144,5 @@ com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
similarity index 71%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
index 78c39ced7..7f3bc74da 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfig.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } + + break; } - gcsSource_ = input.readMessage(com.google.cloud.vision.v1p3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,34 +107,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.InputConfig.class, com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.InputConfig.class, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.GcsSource gcsSource_; /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -121,18 +147,25 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() + : gcsSource_; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -147,12 +180,15 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -161,30 +197,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -193,6 +229,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -222,8 +258,7 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); @@ -236,20 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.InputConfig other = (com.google.cloud.vision.v1p3beta1.InputConfig) obj; + com.google.cloud.vision.v1p3beta1.InputConfig other = + (com.google.cloud.vision.v1p3beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; } - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,118 +306,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.InputConfig) com.google.cloud.vision.v1p3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.InputConfig.class, com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.InputConfig.class, + com.google.cloud.vision.v1p3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.InputConfig.newBuilder() @@ -391,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_InputConfig_descriptor; } @java.lang.Override @@ -437,7 +479,8 @@ public com.google.cloud.vision.v1p3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.InputConfig result = new com.google.cloud.vision.v1p3beta1.InputConfig(this); + com.google.cloud.vision.v1p3beta1.InputConfig result = + new com.google.cloud.vision.v1p3beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -452,38 +495,39 @@ public com.google.cloud.vision.v1p3beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.InputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -530,34 +574,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1p3beta1.GcsSource, + com.google.cloud.vision.v1p3beta1.GcsSource.Builder, + com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() + : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -578,6 +635,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -596,6 +655,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -606,7 +667,9 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); } else { gcsSource_ = value; } @@ -618,6 +681,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p3beta1.GcsSource value) return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -636,6 +701,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -643,11 +710,13 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p3beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -658,11 +727,14 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null ? - com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p3beta1.GcsSource.getDefaultInstance() + : gcsSource_; } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -670,14 +742,17 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p3beta1.GcsSource, + com.google.cloud.vision.v1p3beta1.GcsSource.Builder, + com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsSource, com.google.cloud.vision.v1p3beta1.GcsSource.Builder, com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder>( - getGcsSource(), - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.GcsSource, + com.google.cloud.vision.v1p3beta1.GcsSource.Builder, + com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -685,19 +760,21 @@ public com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private java.lang.Object mimeType_ = ""; /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -706,21 +783,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -728,64 +806,71 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf" and "image/tiff"
      * are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.InputConfig) private static final com.google.cloud.vision.v1p3beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.InputConfig(); } @@ -809,16 +894,16 @@ public static com.google.cloud.vision.v1p3beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +918,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java index f7b7456d3..b6874b22e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/InputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1p3beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -35,24 +59,29 @@ public interface InputConfigOrBuilder extends com.google.cloud.vision.v1p3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The type of the file. Currently only "application/pdf" and "image/tiff"
    * are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java index 472166170..826d29cec 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRect.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LatLongRect} */ -public final class LatLongRect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LatLongRect) LatLongRectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLongRect() { - } + + private LatLongRect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private LatLongRect( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); + } + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LatLongRect.class, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p3beta1.LatLongRect.class, + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -127,11 +150,14 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ @java.lang.Override @@ -139,6 +165,8 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** + * + * *
    * Min lat/long pair.
    * 
@@ -153,11 +181,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -165,11 +196,14 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ @java.lang.Override @@ -177,6 +211,8 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** + * + * *
    * Max lat/long pair.
    * 
@@ -189,6 +225,7 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -218,12 +254,10 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +267,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LatLongRect other = (com.google.cloud.vision.v1p3beta1.LatLongRect) obj; + com.google.cloud.vision.v1p3beta1.LatLongRect other = + (com.google.cloud.vision.v1p3beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng() - .equals(other.getMinLatLng())) return false; + if (!getMinLatLng().equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng() - .equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +307,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LatLongRect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LatLongRect) com.google.cloud.vision.v1p3beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LatLongRect.class, com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p3beta1.LatLongRect.class, + com.google.cloud.vision.v1p3beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LatLongRect.newBuilder() @@ -393,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LatLongRect_descriptor; } @java.lang.Override @@ -443,7 +484,8 @@ public com.google.cloud.vision.v1p3beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p3beta1.LatLongRect result = new com.google.cloud.vision.v1p3beta1.LatLongRect(this); + com.google.cloud.vision.v1p3beta1.LatLongRect result = + new com.google.cloud.vision.v1p3beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -462,38 +504,39 @@ public com.google.cloud.vision.v1p3beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LatLongRect)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LatLongRect) other); } else { super.mergeFrom(other); return this; @@ -539,24 +582,31 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + minLatLngBuilder_; /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -567,6 +617,8 @@ public com.google.type.LatLng getMinLatLng() { } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -587,14 +639,15 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -605,6 +658,8 @@ public Builder setMinLatLng( return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -615,7 +670,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -627,6 +682,8 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -645,6 +702,8 @@ public Builder clearMinLatLng() { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -652,11 +711,13 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Min lat/long pair.
      * 
@@ -667,11 +728,12 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -679,14 +741,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMinLatLng(), - getParentForChildren(), - isClean()); + minLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -694,24 +756,31 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + maxLatLngBuilder_; /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -722,6 +791,8 @@ public com.google.type.LatLng getMaxLatLng() { } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -742,14 +813,15 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -760,6 +832,8 @@ public Builder setMaxLatLng( return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -770,7 +844,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -782,6 +856,8 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -800,6 +876,8 @@ public Builder clearMaxLatLng() { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -807,11 +885,13 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Max lat/long pair.
      * 
@@ -822,11 +902,12 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -834,21 +915,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMaxLatLng(), - getParentForChildren(), - isClean()); + maxLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LatLongRect) private static final com.google.cloud.vision.v1p3beta1.LatLongRect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LatLongRect(); } @@ -872,16 +953,16 @@ public static com.google.cloud.vision.v1p3beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java index e9f0fe155..b487ae933 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LatLongRectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LatLongRectOrBuilder extends +public interface LatLongRectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
@@ -35,24 +59,32 @@ public interface LatLongRectOrBuilder extends com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java index d3ec51d01..71a2187fb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Likelihood.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p3beta1.Likelihood}
  */
-public enum Likelihood
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unknown likelihood.
    * 
@@ -22,6 +40,8 @@ public enum Likelihood */ UNKNOWN(0), /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -30,6 +50,8 @@ public enum Likelihood */ VERY_UNLIKELY(1), /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -38,6 +60,8 @@ public enum Likelihood */ UNLIKELY(2), /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -46,6 +70,8 @@ public enum Likelihood */ POSSIBLE(3), /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -54,6 +80,8 @@ public enum Likelihood */ LIKELY(4), /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -65,6 +93,8 @@ public enum Likelihood ; /** + * + * *
    * Unknown likelihood.
    * 
@@ -73,6 +103,8 @@ public enum Likelihood */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
    * It is very unlikely that the image belongs to the specified vertical.
    * 
@@ -81,6 +113,8 @@ public enum Likelihood */ public static final int VERY_UNLIKELY_VALUE = 1; /** + * + * *
    * It is unlikely that the image belongs to the specified vertical.
    * 
@@ -89,6 +123,8 @@ public enum Likelihood */ public static final int UNLIKELY_VALUE = 2; /** + * + * *
    * It is possible that the image belongs to the specified vertical.
    * 
@@ -97,6 +133,8 @@ public enum Likelihood */ public static final int POSSIBLE_VALUE = 3; /** + * + * *
    * It is likely that the image belongs to the specified vertical.
    * 
@@ -105,6 +143,8 @@ public enum Likelihood */ public static final int LIKELY_VALUE = 4; /** + * + * *
    * It is very likely that the image belongs to the specified vertical.
    * 
@@ -113,7 +153,6 @@ public enum Likelihood */ public static final int VERY_LIKELY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,52 +177,57 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return VERY_UNLIKELY; - case 2: return UNLIKELY; - case 3: return POSSIBLE; - case 4: return LIKELY; - case 5: return VERY_LIKELY; - default: return null; + case 0: + return UNKNOWN; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Likelihood> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -199,4 +243,3 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p3beta1.Likelihood) } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java similarity index 69% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java index 6d934e0cf..0f490a4c9 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,11 +184,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,11 +202,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -184,29 +218,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -250,8 +284,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -264,19 +297,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other = (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other = + (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductSetsRequest) com.google.cloud.vision.v1p3beta1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.newBuilder() @@ -418,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -462,7 +502,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest result = new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest result = + new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -474,38 +515,39 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -544,7 +587,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,19 +600,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -577,21 +625,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -599,69 +650,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -669,30 +736,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -700,18 +773,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -720,20 +795,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -741,61 +817,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +888,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) private static final com.google.cloud.vision.v1p3beta1.ListProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductSetsRequest(); } @@ -819,16 +902,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java index cd3c24f41..e0d3ffda7 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductSetsRequestOrBuilder extends +public interface ListProductSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java index 0805ca2bf..7351f36ae 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productSets_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry)); + break; } - productSets_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -94,22 +114,27 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** + * + * *
    * List of ProductSets.
    * 
@@ -121,6 +146,8 @@ public java.util.List getProductSe return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -128,11 +155,13 @@ public java.util.List getProductSe * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -144,6 +173,8 @@ public int getProductSetsCount() { return productSets_.size(); } /** + * + * *
    * List of ProductSets.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** + * + * *
    * List of ProductSets.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other = (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other = + (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) obj; - if (!getProductSetsList() - .equals(other.getProductSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductSetsList().equals(other.getProductSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductSetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductSetsResponse) com.google.cloud.vision.v1p3beta1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductSetsResponse result = new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductSetsResponse result = + new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductSetsResponse.getDefaultInstance()) + return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductSetsRespon productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductSetsFieldBuilder() : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductSetsFieldBuilder() + : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(productSets_); + productSets_ = + new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + productSetsBuilder_; /** + * + * *
      * List of ProductSets.
      * 
@@ -605,6 +661,8 @@ public java.util.List getProductSe } } /** + * + * *
      * List of ProductSets.
      * 
@@ -619,6 +677,8 @@ public int getProductSetsCount() { } } /** + * + * *
      * List of ProductSets.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index) { } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public Builder setProductSets( - int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { + public Builder setProductSets(int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -672,6 +735,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -692,14 +757,15 @@ public Builder addProductSets(com.google.cloud.vision.v1p3beta1.ProductSet value return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public Builder addProductSets( - int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { + public Builder addProductSets(int index, com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -731,6 +799,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -749,6 +819,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -759,8 +831,7 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -785,6 +858,8 @@ public Builder clearProductSets() { return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -802,17 +877,20 @@ public Builder removeProductSets(int index) { return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilder(int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of ProductSets.
      * 
@@ -822,19 +900,22 @@ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetsBuilde public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); } else { + return productSets_.get(index); + } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +923,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBui } } /** + * + * *
      * List of ProductSets.
      * 
@@ -849,42 +932,48 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBui * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder( - int index) { - return getProductSetsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilder(int index) { + return getProductSetsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - productSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); productSets_ = null; } return productSetsBuilder_; @@ -892,19 +981,21 @@ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder addProductSetsBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1004,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1027,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) private static final com.google.cloud.vision.v1p3beta1.ListProductSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductSetsResponse(); } @@ -1016,16 +1115,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java index e82e82db1..85ab69a84 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductSetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductSetsResponseOrBuilder extends +public interface ListProductSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - java.util.List - getProductSetsList(); + java.util.List getProductSetsList(); /** + * + * *
    * List of ProductSets.
    * 
@@ -25,6 +44,8 @@ public interface ListProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSets(int index); /** + * + * *
    * List of ProductSets.
    * 
@@ -33,43 +54,51 @@ public interface ListProductSetsResponseOrBuilder extends */ int getProductSetsCount(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java index 84283be7a..dbd349895 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +105,43 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -123,31 +150,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -158,11 +187,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +205,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +221,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -252,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,134 +334,145 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.Builder.class); } - // Construct using com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,13 +486,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance(); } @@ -464,7 +508,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,46 +521,50 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -546,7 +595,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +609,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,22 +635,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -603,72 +661,88 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +750,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +787,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +809,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +831,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,30 +902,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,9 +939,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java index 279289c11..d409ec3bb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsInProductSetRequestOrBuilder extends +public interface ListProductsInProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java index e72c1a92c..6fad5ddad 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,31 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +114,27 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * The list of Products.
    * 
@@ -121,6 +146,8 @@ public java.util.List getProductsList return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -128,11 +155,13 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -144,6 +173,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * The list of Products.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * The list of Products.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other = + (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +326,147 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +482,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +505,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse build( @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse result = + new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +526,51 @@ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse)other); + return mergeFrom( + (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse other) { + if (other + == com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + .getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsInProduct productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -567,7 +621,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +632,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * The list of Products.
      * 
@@ -605,6 +668,8 @@ public java.util.List getProductsList } } /** + * + * *
      * The list of Products.
      * 
@@ -619,6 +684,8 @@ public int getProductsCount() { } } /** + * + * *
      * The list of Products.
      * 
@@ -633,14 +700,15 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +722,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -672,6 +742,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -692,14 +764,15 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +786,15 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +805,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -749,6 +825,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -759,8 +837,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +845,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -785,6 +864,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * The list of Products.
      * 
@@ -802,39 +883,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +928,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * The list of Products.
      * 
@@ -849,42 +937,48 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +986,21 @@ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1009,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1032,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1106,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) - private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse(); } - public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1143,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java index 74d59602c..00fac1a44 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsInProductSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsInProductSetResponseOrBuilder extends +public interface ListProductsInProductSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * The list of Products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Product getProducts(int index); /** + * + * *
    * The list of Products.
    * 
@@ -33,43 +54,51 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java similarity index 69% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java index 8c5c19bb4..96b2f83c8 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsRequest} */ -public final class ListProductsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsRequest) ListProductsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +204,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +220,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +251,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -252,8 +286,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsRequest other = (com.google.cloud.vision.v1p3beta1.ListProductsRequest) obj; + com.google.cloud.vision.v1p3beta1.ListProductsRequest other = + (com.google.cloud.vision.v1p3beta1.ListProductsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,117 +333,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsRequest) com.google.cloud.vision.v1p3beta1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsRequest.class, + com.google.cloud.vision.v1p3beta1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductsRequest.newBuilder() @@ -420,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; } @java.lang.Override @@ -464,7 +504,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsRequest result = new com.google.cloud.vision.v1p3beta1.ListProductsRequest(this); + com.google.cloud.vision.v1p3beta1.ListProductsRequest result = + new com.google.cloud.vision.v1p3beta1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +517,39 @@ public com.google.cloud.vision.v1p3beta1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsRequest) other); } else { super.mergeFrom(other); return this; @@ -515,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -546,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +602,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -580,22 +628,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -603,72 +654,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +743,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +780,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +802,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +824,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) private static final com.google.cloud.vision.v1p3beta1.ListProductsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsRequest(); } @@ -826,16 +909,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +933,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java index bd256296d..af7aae358 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsRequestOrBuilder extends +public interface ListProductsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java index 246d0991d..787bbc4cb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsResponse} */ -public final class ListProductsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListProductsResponse) ListProductsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListProductsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +113,27 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * List of products.
    * 
@@ -121,6 +145,8 @@ public java.util.List getProductsList return products_; } /** + * + * *
    * List of products.
    * 
@@ -128,11 +154,13 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * List of products.
    * 
@@ -144,6 +172,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * List of products.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * List of products.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListProductsResponse other = (com.google.cloud.vision.v1p3beta1.ListProductsResponse) obj; + com.google.cloud.vision.v1p3beta1.ListProductsResponse other = + (com.google.cloud.vision.v1p3beta1.ListProductsResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListProductsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListProductsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListProductsResponse) com.google.cloud.vision.v1p3beta1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListProductsResponse.class, + com.google.cloud.vision.v1p3beta1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListProductsResponse.newBuilder() @@ -411,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; } @java.lang.Override @@ -458,7 +500,8 @@ public com.google.cloud.vision.v1p3beta1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListProductsResponse result = new com.google.cloud.vision.v1p3beta1.ListProductsResponse(this); + com.google.cloud.vision.v1p3beta1.ListProductsResponse result = + new com.google.cloud.vision.v1p3beta1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +521,39 @@ public com.google.cloud.vision.v1p3beta1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListProductsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ListProductsResponse.getDefaultInstance()) + return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +581,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListProductsResponse productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -567,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListProductsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListProductsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +623,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * List of products.
      * 
@@ -605,6 +659,8 @@ public java.util.List getProductsList } } /** + * + * *
      * List of products.
      * 
@@ -619,6 +675,8 @@ public int getProductsCount() { } } /** + * + * *
      * List of products.
      * 
@@ -633,14 +691,15 @@ public com.google.cloud.vision.v1p3beta1.Product getProducts(int index) { } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +713,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -672,6 +733,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -692,14 +755,15 @@ public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1p3beta1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1p3beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +777,15 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +796,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -749,6 +816,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -759,8 +828,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +836,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -785,6 +855,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * List of products.
      * 
@@ -802,39 +874,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +919,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * List of products.
      * 
@@ -849,42 +928,48 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +977,21 @@ public com.google.cloud.vision.v1p3beta1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1000,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1023,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) private static final com.google.cloud.vision.v1p3beta1.ListProductsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListProductsResponse(); } @@ -1016,16 +1111,16 @@ public static com.google.cloud.vision.v1p3beta1.ListProductsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java index f631a84f3..bea8af9bf 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListProductsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListProductsResponseOrBuilder extends +public interface ListProductsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * List of products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Product getProducts(int index); /** + * + * *
    * List of products.
    * 
@@ -33,43 +54,51 @@ public interface ListProductsResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Product products = 1; */ - com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java similarity index 69% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java index b9d939375..7a433dcdb 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +204,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -180,6 +213,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -188,14 +222,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -203,16 +238,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -256,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other = + (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +337,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance(); } @@ -468,7 +509,8 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest result = + new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -480,38 +522,39 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +562,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,20 +608,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -584,22 +634,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -607,72 +660,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -680,30 +749,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -711,6 +786,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -718,13 +795,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -733,6 +810,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -740,15 +819,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -756,6 +834,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -763,20 +843,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -784,15 +866,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -800,23 +885,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +911,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) - private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest(); } @@ -840,16 +926,16 @@ public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java index 4b55938d6..96d14e012 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListReferenceImagesRequestOrBuilder extends +public interface ListReferenceImagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -49,10 +79,13 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -60,8 +93,8 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java index 1d504986d..760f12e55 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,38 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + referenceImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), + extensionRegistry)); + break; } - referenceImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.ReferenceImage.parser(), extensionRegistry)); - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +111,7 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -99,22 +120,27 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** + * + * *
    * The list of reference images.
    * 
@@ -126,6 +152,8 @@ public java.util.List getRefer return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -133,11 +161,13 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -149,6 +179,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference images.
    * 
@@ -160,6 +192,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** + * + * *
    * The list of reference images.
    * 
@@ -175,11 +209,14 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,11 +227,14 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -203,29 +243,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,6 +274,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -266,12 +306,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -284,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other = + (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList() - .equals(other.getReferenceImagesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,117 +358,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ListReferenceImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.newBuilder() @@ -440,17 +486,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,13 +514,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance(); } @@ -489,7 +536,8 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse result = + new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -510,38 +558,39 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -549,7 +598,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse other) { - if (other == com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse.getDefaultInstance()) + return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -568,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ListReferenceImagesRe referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReferenceImagesFieldBuilder() : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReferenceImagesFieldBuilder() + : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -602,7 +654,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,28 +665,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(referenceImages_); + referenceImages_ = + new java.util.ArrayList( + referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> referenceImagesBuilder_; + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + referenceImagesBuilder_; /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List getReferenceImagesList() { + public java.util.List + getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -640,6 +704,8 @@ public java.util.List getRefer } } /** + * + * *
      * The list of reference images.
      * 
@@ -654,6 +720,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference images.
      * 
@@ -668,6 +736,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int i } } /** + * + * *
      * The list of reference images.
      * 
@@ -689,6 +759,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -707,6 +779,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -727,6 +801,8 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p3beta1.ReferenceIma return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -748,6 +824,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -766,6 +844,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -784,6 +864,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -794,8 +876,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -803,6 +884,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -820,6 +903,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -837,6 +922,8 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -848,6 +935,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference images.
      * 
@@ -857,19 +946,22 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -877,6 +969,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma } } /** + * + * *
      * The list of reference images.
      * 
@@ -884,10 +978,12 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
@@ -896,26 +992,34 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ReferenceImage, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ReferenceImage, + com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -925,13 +1029,16 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -939,30 +1046,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -970,18 +1083,20 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -990,20 +1105,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1011,61 +1127,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +1198,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) - private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse(); } @@ -1089,16 +1213,16 @@ public static com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java index 534781926..d3b5eb07d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ListReferenceImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ListReferenceImagesResponseOrBuilder extends +public interface ListReferenceImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference images.
    * 
@@ -25,6 +44,8 @@ public interface ListReferenceImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference images.
    * 
@@ -33,51 +54,62 @@ public interface ListReferenceImagesResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java index 3be306bf3..00e4ed945 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -27,16 +45,15 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,49 +72,55 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 42: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + name_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } + case 42: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +128,39 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -141,29 +169,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -174,6 +202,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -181,6 +211,7 @@ public java.lang.String getMid() {
    * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -189,14 +220,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -204,16 +236,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -224,11 +255,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -237,29 +271,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -270,11 +304,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -285,11 +322,14 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -297,18 +337,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -321,6 +368,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +380,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -368,12 +415,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,26 +428,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other = + (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -422,8 +463,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -434,117 +474,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.newBuilder() @@ -552,16 +602,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -604,7 +653,8 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation result = + new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -622,38 +672,39 @@ public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) other); } else { super.mergeFrom(other); return this; @@ -661,7 +712,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -699,7 +751,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,18 +764,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -731,20 +786,21 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -752,54 +808,61 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -807,6 +870,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -814,13 +879,13 @@ public Builder setMidBytes(
      * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -829,6 +894,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -836,15 +903,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -852,6 +918,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -859,20 +927,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -880,15 +950,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -896,16 +969,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -913,18 +986,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -933,20 +1008,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -954,66 +1030,76 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1021,30 +1107,36 @@ public float getScore() { return score_; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1052,34 +1144,47 @@ public Builder clearScore() { private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1100,6 +1205,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1118,6 +1225,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1128,7 +1237,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -1140,6 +1251,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1158,6 +1271,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1165,11 +1280,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1180,11 +1297,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1192,21 +1312,24 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1339,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation(); } @@ -1230,16 +1353,16 @@ public static com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java index ea1bae037..364b77b0b 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocalizedObjectAnnotationOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LocalizedObjectAnnotationOrBuilder extends +public interface LocalizedObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -35,10 +58,13 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -46,60 +72,76 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java index c96641fbc..14313a7f3 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfo.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocationInfo} */ -public final class LocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.LocationInfo) LocationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationInfo() { - } + + private LocationInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,27 @@ private LocationInfo( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +96,39 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocationInfo.class, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p3beta1.LocationInfo.class, + com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -114,11 +136,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -126,6 +151,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * lat/long location coordinates.
    * 
@@ -138,6 +165,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -164,8 +191,7 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.LocationInfo other = (com.google.cloud.vision.v1p3beta1.LocationInfo) obj; + com.google.cloud.vision.v1p3beta1.LocationInfo other = + (com.google.cloud.vision.v1p3beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +233,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.LocationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.LocationInfo) com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.LocationInfo.class, com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p3beta1.LocationInfo.class, + com.google.cloud.vision.v1p3beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.LocationInfo.newBuilder() @@ -326,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_LocationInfo_descriptor; } @java.lang.Override @@ -370,7 +404,8 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p3beta1.LocationInfo result = new com.google.cloud.vision.v1p3beta1.LocationInfo(this); + com.google.cloud.vision.v1p3beta1.LocationInfo result = + new com.google.cloud.vision.v1p3beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -384,38 +419,39 @@ public com.google.cloud.vision.v1p3beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.LocationInfo)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.LocationInfo) other); } else { super.mergeFrom(other); return this; @@ -458,24 +494,31 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -486,6 +529,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -506,14 +551,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -524,6 +570,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -533,8 +581,7 @@ public Builder setLatLng( public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = - com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -546,6 +593,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -564,6 +613,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -571,11 +622,13 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -586,11 +639,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -598,21 +652,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocationInfo) private static final com.google.cloud.vision.v1p3beta1.LocationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.LocationInfo(); } @@ -636,16 +690,16 @@ public static com.google.cloud.vision.v1p3beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +714,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java index 56b58f709..013fae86c 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface LocationInfoOrBuilder extends +public interface LocationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java index 8d6bb76b5..625f8e6ae 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,23 +70,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,34 +94,39 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.NormalizedVertex.class, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p3beta1.NormalizedVertex.class,
+            com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.NormalizedVertex other = (com.google.cloud.vision.v1p3beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p3beta1.NormalizedVertex other = + (com.google.cloud.vision.v1p3beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -307,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.NormalizedVertex)
       com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.NormalizedVertex.class, com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p3beta1.NormalizedVertex.class,
+              com.google.cloud.vision.v1p3beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.NormalizedVertex.newBuilder()
@@ -329,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -371,7 +398,8 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p3beta1.NormalizedVertex result = new com.google.cloud.vision.v1p3beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p3beta1.NormalizedVertex result =
+          new com.google.cloud.vision.v1p3beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -382,38 +410,39 @@ public com.google.cloud.vision.v1p3beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -421,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.NormalizedVertex.getDefaultInstance())
+        return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -447,7 +477,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -457,13 +488,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -471,42 +505,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -514,37 +557,43 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -554,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p3beta1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.NormalizedVertex(); } @@ -568,16 +617,16 @@ public static com.google.cloud.vision.v1p3beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..ffd21a731 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java index 85f49d721..6a0ce0c43 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,50 @@ private OperationMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + state_ = rawValue; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +121,41 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OperationMetadata.class, com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p3beta1.OperationMetadata.class, + com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); } /** + * + * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.OperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -137,6 +164,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is received.
      * 
@@ -145,6 +174,8 @@ public enum State */ CREATED(1), /** + * + * *
      * Request is actively being processed.
      * 
@@ -153,6 +184,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The batch processing is done.
      * 
@@ -161,6 +194,8 @@ public enum State */ DONE(3), /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -172,6 +207,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -180,6 +217,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is received.
      * 
@@ -188,6 +227,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * Request is actively being processed.
      * 
@@ -196,6 +237,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The batch processing is done.
      * 
@@ -204,6 +247,8 @@ public enum State */ public static final int DONE_VALUE = 3; /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -212,7 +257,6 @@ public enum State */ public static final int CANCELLED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -237,51 +281,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATED; - case 2: return RUNNING; - case 3: return DONE; - case 4: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.OperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -301,38 +349,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -340,11 +402,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -352,6 +417,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the batch request was received.
    * 
@@ -366,11 +433,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -378,11 +448,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -390,6 +463,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the operation result was last updated.
    * 
@@ -402,6 +477,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,9 +489,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -433,17 +510,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.vision.v1p3beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,23 +529,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.OperationMetadata other = (com.google.cloud.vision.v1p3beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p3beta1.OperationMetadata other = + (com.google.cloud.vision.v1p3beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -498,117 +573,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.OperationMetadata) com.google.cloud.vision.v1p3beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OperationMetadata.class, com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p3beta1.OperationMetadata.class, + com.google.cloud.vision.v1p3beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.OperationMetadata.newBuilder() @@ -616,16 +700,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,9 +730,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -668,7 +751,8 @@ public com.google.cloud.vision.v1p3beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p3beta1.OperationMetadata result = new com.google.cloud.vision.v1p3beta1.OperationMetadata(this); + com.google.cloud.vision.v1p3beta1.OperationMetadata result = + new com.google.cloud.vision.v1p3beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -688,38 +772,39 @@ public com.google.cloud.vision.v1p3beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -727,7 +812,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p3beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -756,7 +842,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,51 +855,67 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p3beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p3beta1.OperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -820,21 +923,24 @@ public Builder setState(com.google.cloud.vision.v1p3beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -842,34 +948,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -890,14 +1009,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -908,6 +1028,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -918,7 +1040,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -930,6 +1052,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -948,6 +1072,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -955,11 +1081,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -970,11 +1098,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -982,14 +1113,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -997,34 +1131,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1045,14 +1192,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1063,6 +1211,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1073,7 +1223,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1085,6 +1235,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1103,6 +1255,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1110,11 +1264,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1125,11 +1281,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1137,21 +1296,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1161,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OperationMetadata) private static final com.google.cloud.vision.v1p3beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.OperationMetadata(); } @@ -1175,16 +1337,16 @@ public static com.google.cloud.vision.v1p3beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java index 7e482eb97..9ffddbc58 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OperationMetadataOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p3beta1.OperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1p3beta1.OperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
@@ -54,24 +84,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java index a56e3cbd7..0e514a27e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); + } + + break; } - gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p3beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); + case 16: + { + batchSize_ = input.readInt32(); + break; } - - break; - } - case 16: { - - batchSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,34 +103,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OutputConfig.class, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.OutputConfig.class, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.GcsDestination gcsDestination_; /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -119,18 +143,25 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -145,6 +176,8 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -158,6 +191,7 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -166,6 +200,7 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -195,12 +229,10 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,20 +242,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.OutputConfig other = (com.google.cloud.vision.v1p3beta1.OutputConfig) obj; + com.google.cloud.vision.v1p3beta1.OutputConfig other = + (com.google.cloud.vision.v1p3beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; } - if (getBatchSize() - != other.getBatchSize()) return false; + if (getBatchSize() != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,118 +277,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.OutputConfig) com.google.cloud.vision.v1p3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.OutputConfig.class, com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p3beta1.OutputConfig.class, + com.google.cloud.vision.v1p3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.OutputConfig.newBuilder() @@ -365,16 +405,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -411,7 +450,8 @@ public com.google.cloud.vision.v1p3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p3beta1.OutputConfig result = new com.google.cloud.vision.v1p3beta1.OutputConfig(this); + com.google.cloud.vision.v1p3beta1.OutputConfig result = + new com.google.cloud.vision.v1p3beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -426,38 +466,39 @@ public com.google.cloud.vision.v1p3beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -503,34 +544,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.vision.v1p3beta1.GcsDestination, + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ public com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -551,6 +605,8 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinatio return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -569,6 +625,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -579,7 +637,9 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); } else { gcsDestination_ = value; } @@ -591,6 +651,8 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p3beta1.GcsDestinat return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -609,6 +671,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -616,11 +680,13 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p3beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -631,11 +697,14 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null ? - com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p3beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -643,21 +712,26 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p3beta1.GcsDestination, + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.GcsDestination, com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder>( - getGcsDestination(), - getParentForChildren(), - isClean()); + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.GcsDestination, + com.google.cloud.vision.v1p3beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_ ; + private int batchSize_; /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -671,6 +745,7 @@ public com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -678,6 +753,8 @@ public int getBatchSize() { return batchSize_; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -691,16 +768,19 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; + * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -714,17 +794,18 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; + * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OutputConfig) private static final com.google.cloud.vision.v1p3beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.OutputConfig(); } @@ -748,16 +829,16 @@ public static com.google.cloud.vision.v1p3beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +853,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java index 413dd4f7b..d1fecfd54 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.vision.v1p3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -35,6 +59,8 @@ public interface OutputConfigOrBuilder extends com.google.cloud.vision.v1p3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -48,6 +74,7 @@ public interface OutputConfigOrBuilder extends
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ int getBatchSize(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java index 5f3c9a444..617344766 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Page.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Page} */ -public final class Page extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Page extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Page) PageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,50 +71,57 @@ private Page( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 16: + { + width_ = input.readInt32(); + break; } - - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 24: + { + height_ = input.readInt32(); + break; } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blocks_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +129,7 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -115,27 +138,33 @@ private Page( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Page.class, com.google.cloud.vision.v1p3beta1.Page.Builder.class); + com.google.cloud.vision.v1p3beta1.Page.class, + com.google.cloud.vision.v1p3beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -143,18 +172,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected on the page.
    * 
@@ -162,19 +198,23 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -185,12 +225,15 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -201,6 +244,8 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -212,6 +257,8 @@ public java.util.List getBlocksList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -219,11 +266,13 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -235,6 +284,8 @@ public int getBlocksCount() { return blocks_.size(); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -246,6 +297,8 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { return blocks_.get(index); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -253,19 +306,21 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -274,6 +329,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -312,24 +367,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,7 +389,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Page)) { return super.equals(obj); @@ -348,18 +398,13 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!getBlocksList() - .equals(other.getBlocksList())) return false; + if (!getProperty().equals(other.getProperty())) return false; + } + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getBlocksList().equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,125 +429,133 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Page parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Page} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Page) com.google.cloud.vision.v1p3beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Page.class, com.google.cloud.vision.v1p3beta1.Page.Builder.class); + com.google.cloud.vision.v1p3beta1.Page.class, + com.google.cloud.vision.v1p3beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Page.newBuilder() @@ -510,17 +563,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; } @java.lang.Override @@ -567,7 +620,8 @@ public com.google.cloud.vision.v1p3beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Page buildPartial() { - com.google.cloud.vision.v1p3beta1.Page result = new com.google.cloud.vision.v1p3beta1.Page(this); + com.google.cloud.vision.v1p3beta1.Page result = + new com.google.cloud.vision.v1p3beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -594,38 +648,39 @@ public com.google.cloud.vision.v1p3beta1.Page buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Page)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Page) other); } else { super.mergeFrom(other); return this; @@ -661,9 +716,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlocksFieldBuilder() : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlocksFieldBuilder() + : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -700,45 +756,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +823,8 @@ public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -770,17 +843,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -792,6 +870,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -810,33 +890,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -844,27 +933,33 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } - private int width_ ; + private int width_; /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -872,45 +967,54 @@ public int getWidth() { return width_; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -918,50 +1022,62 @@ public int getHeight() { return height_; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder> blocksBuilder_; + com.google.cloud.vision.v1p3beta1.Block, + com.google.cloud.vision.v1p3beta1.Block.Builder, + com.google.cloud.vision.v1p3beta1.BlockOrBuilder> + blocksBuilder_; /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -976,6 +1092,8 @@ public java.util.List getBlocksList() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -990,6 +1108,8 @@ public int getBlocksCount() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1004,14 +1124,15 @@ public com.google.cloud.vision.v1p3beta1.Block getBlocks(int index) { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1p3beta1.Block value) { + public Builder setBlocks(int index, com.google.cloud.vision.v1p3beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1025,6 +1146,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1043,6 +1166,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1063,14 +1188,15 @@ public Builder addBlocks(com.google.cloud.vision.v1p3beta1.Block value) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1p3beta1.Block value) { + public Builder addBlocks(int index, com.google.cloud.vision.v1p3beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1084,14 +1210,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public Builder addBlocks( - com.google.cloud.vision.v1p3beta1.Block.Builder builderForValue) { + public Builder addBlocks(com.google.cloud.vision.v1p3beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1102,6 +1229,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1120,6 +1249,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1130,8 +1261,7 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1139,6 +1269,8 @@ public Builder addAllBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1156,6 +1288,8 @@ public Builder clearBlocks() { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1173,39 +1307,44 @@ public Builder removeBlocks(int index) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.Block.Builder getBlocksBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Block.Builder getBlocksBuilder(int index) { return getBlocksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); } else { + return blocks_.get(index); + } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1213,6 +1352,8 @@ public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1220,54 +1361,62 @@ public com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder( - int index) { - return getBlocksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Block.Builder addBlocksBuilder(int index) { + return getBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - public java.util.List - getBlocksBuilderList() { + public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder> + com.google.cloud.vision.v1p3beta1.Block, + com.google.cloud.vision.v1p3beta1.Block.Builder, + com.google.cloud.vision.v1p3beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Block, com.google.cloud.vision.v1p3beta1.Block.Builder, com.google.cloud.vision.v1p3beta1.BlockOrBuilder>( - blocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Block, + com.google.cloud.vision.v1p3beta1.Block.Builder, + com.google.cloud.vision.v1p3beta1.BlockOrBuilder>( + blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1275,37 +1424,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Page) private static final com.google.cloud.vision.v1p3beta1.Page DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Page(); } @@ -1329,16 +1484,16 @@ public static com.google.cloud.vision.v1p3beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java similarity index 76% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java index 56bbe5781..92b5baf86 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PageOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface PageOrBuilder extends +public interface PageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Page) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
@@ -35,37 +59,46 @@ public interface PageOrBuilder extends com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ int getWidth(); /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ int getHeight(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - java.util.List - getBlocksList(); + java.util.List getBlocksList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -74,6 +107,8 @@ public interface PageOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Block getBlocks(int index); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -82,30 +117,36 @@ public interface PageOrBuilder extends */ int getBlocksCount(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.BlockOrBuilder getBlocksOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java similarity index 77% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java index 3442ff17f..11bf30641 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Paragraph.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Paragraph} */ -public final class Paragraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Paragraph) ParagraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Paragraph( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Word.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - words_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Word.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +144,33 @@ private Paragraph( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Paragraph.class, com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p3beta1.Paragraph.class, + com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
@@ -263,6 +315,8 @@ public java.util.List getWordsList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -270,11 +324,13 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -286,6 +342,8 @@ public int getWordsCount() { return words_.size(); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -297,6 +355,8 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { return words_.get(index); } /** + * + * *
    * List of words in this paragraph.
    * 
@@ -304,19 +364,21 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -325,6 +387,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -360,20 +422,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,28 +441,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Paragraph other = (com.google.cloud.vision.v1p3beta1.Paragraph) obj; + com.google.cloud.vision.v1p3beta1.Paragraph other = + (com.google.cloud.vision.v1p3beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,125 +484,133 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Paragraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Paragraph) com.google.cloud.vision.v1p3beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Paragraph.class, com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p3beta1.Paragraph.class, + com.google.cloud.vision.v1p3beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Paragraph.newBuilder() @@ -555,17 +618,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; } @java.lang.Override @@ -614,7 +677,8 @@ public com.google.cloud.vision.v1p3beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p3beta1.Paragraph result = new com.google.cloud.vision.v1p3beta1.Paragraph(this); + com.google.cloud.vision.v1p3beta1.Paragraph result = + new com.google.cloud.vision.v1p3beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -644,38 +708,39 @@ public com.google.cloud.vision.v1p3beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Paragraph)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Paragraph) other); } else { super.mergeFrom(other); return this; @@ -708,9 +773,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -747,45 +813,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,6 +880,8 @@ public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -817,17 +900,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -839,6 +927,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -857,33 +947,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -891,14 +990,17 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -906,8 +1008,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -927,12 +1034,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -952,16 +1062,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -996,6 +1111,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1028,6 +1145,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,7 +1171,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1064,6 +1185,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1096,6 +1219,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1117,11 +1242,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1146,11 +1273,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1172,32 +1302,41 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder> wordsBuilder_;
+            com.google.cloud.vision.v1p3beta1.Word,
+            com.google.cloud.vision.v1p3beta1.Word.Builder,
+            com.google.cloud.vision.v1p3beta1.WordOrBuilder>
+        wordsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of words in this paragraph.
      * 
@@ -1212,6 +1351,8 @@ public java.util.List getWordsList() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1226,6 +1367,8 @@ public int getWordsCount() { } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1240,14 +1383,15 @@ public com.google.cloud.vision.v1p3beta1.Word getWords(int index) { } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1p3beta1.Word value) { + public Builder setWords(int index, com.google.cloud.vision.v1p3beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1261,6 +1405,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1279,6 +1425,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1299,14 +1447,15 @@ public Builder addWords(com.google.cloud.vision.v1p3beta1.Word value) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1p3beta1.Word value) { + public Builder addWords(int index, com.google.cloud.vision.v1p3beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1320,14 +1469,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public Builder addWords( - com.google.cloud.vision.v1p3beta1.Word.Builder builderForValue) { + public Builder addWords(com.google.cloud.vision.v1p3beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1338,6 +1488,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1356,6 +1508,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1366,8 +1520,7 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1375,6 +1528,8 @@ public Builder addAllWords( return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1392,6 +1547,8 @@ public Builder clearWords() { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1409,39 +1566,44 @@ public Builder removeWords(int index) { return this; } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.Word.Builder getWordsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Word.Builder getWordsBuilder(int index) { return getWordsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index) { if (wordsBuilder_ == null) { - return words_.get(index); } else { + return words_.get(index); + } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,6 +1611,8 @@ public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( } } /** + * + * *
      * List of words in this paragraph.
      * 
@@ -1456,54 +1620,62 @@ public com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder( - int index) { - return getWordsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Word.Builder addWordsBuilder(int index) { + return getWordsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - public java.util.List - getWordsBuilderList() { + public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder> + com.google.cloud.vision.v1p3beta1.Word, + com.google.cloud.vision.v1p3beta1.Word.Builder, + com.google.cloud.vision.v1p3beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Word, com.google.cloud.vision.v1p3beta1.Word.Builder, com.google.cloud.vision.v1p3beta1.WordOrBuilder>( - words_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + wordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Word, + com.google.cloud.vision.v1p3beta1.Word.Builder, + com.google.cloud.vision.v1p3beta1.WordOrBuilder>( + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1511,37 +1683,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1551,12 +1729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Paragraph) private static final com.google.cloud.vision.v1p3beta1.Paragraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Paragraph(); } @@ -1565,16 +1743,16 @@ public static com.google.cloud.vision.v1p3beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1767,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java index 1cfb7f3a0..644dda006 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ParagraphOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface ParagraphOrBuilder extends +public interface ParagraphOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -35,6 +59,8 @@ public interface ParagraphOrBuilder extends com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface ParagraphOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -121,6 +156,8 @@ public interface ParagraphOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Word getWords(int index); /** + * + * *
    * List of words in this paragraph.
    * 
@@ -129,30 +166,35 @@ public interface ParagraphOrBuilder extends */ int getWordsCount(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - java.util.List - getWordsOrBuilderList(); + java.util.List getWordsOrBuilderList(); /** + * + * *
    * List of words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Word words = 3; */ - com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.WordOrBuilder getWordsOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java similarity index 68% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java index 896bf0e4f..22d6467f4 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Position.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Position}
  */
-public final class Position extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Position extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Position)
     PositionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Position() {
-  }
+
+  private Position() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,28 +70,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            z_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          case 29:
+            {
+              z_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +99,39 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Position.class, com.google.cloud.vision.v1p3beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Position.class,
+            com.google.cloud.vision.v1p3beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -121,11 +142,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -136,11 +160,14 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -149,6 +176,7 @@ public float getZ() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -181,16 +208,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -200,22 +224,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Position other = (com.google.cloud.vision.v1p3beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; + com.google.cloud.vision.v1p3beta1.Position other = + (com.google.cloud.vision.v1p3beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,110 +250,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -340,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Position}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Position)
       com.google.cloud.vision.v1p3beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Position.class, com.google.cloud.vision.v1p3beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Position.class,
+              com.google.cloud.vision.v1p3beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Position.newBuilder()
@@ -362,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -406,7 +433,8 @@ public com.google.cloud.vision.v1p3beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Position result = new com.google.cloud.vision.v1p3beta1.Position(this);
+      com.google.cloud.vision.v1p3beta1.Position result =
+          new com.google.cloud.vision.v1p3beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -418,38 +446,39 @@ public com.google.cloud.vision.v1p3beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Position)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Position) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,13 +525,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -510,42 +542,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -553,42 +594,51 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_ ; + private float z_; /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -596,37 +646,43 @@ public float getZ() { return z_; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Position) private static final com.google.cloud.vision.v1p3beta1.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Position(); } @@ -650,16 +706,16 @@ public static com.google.cloud.vision.v1p3beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java similarity index 50% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java index f539aa66e..c972abf63 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PositionOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/geometry.proto package com.google.cloud.vision.v1p3beta1; -public interface PositionOrBuilder extends +public interface PositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Position) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ float getX(); /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ float getY(); /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ float getZ(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java similarity index 78% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java index 34bb9a42e..2d51c008e 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Product.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product} */ -public final class Product extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Product extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Product) ProductOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Product() { name_ = ""; displayName_ = ""; @@ -29,16 +47,15 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,46 +75,54 @@ private Product( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + productCategory_ = s; + break; } - productLabels_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Product.KeyValue.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.KeyValue.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +130,7 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -115,83 +139,100 @@ private Product( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.class, com.google.cloud.vision.v1p3beta1.Product.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.class, + com.google.cloud.vision.v1p3beta1.Product.Builder.class); } - public interface KeyValueOrBuilder extends + public interface KeyValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product.KeyValue} */ - public static final class KeyValue extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KeyValue() { key_ = ""; value_ = ""; @@ -199,16 +240,15 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -227,25 +267,27 @@ private KeyValue( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -253,35 +295,40 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, + com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ @java.lang.Override @@ -290,30 +337,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -324,12 +371,15 @@ public java.lang.String getKey() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -338,30 +388,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -370,6 +420,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +432,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -412,17 +462,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Product.KeyValue other = (com.google.cloud.vision.v1p3beta1.Product.KeyValue) obj; + com.google.cloud.vision.v1p3beta1.Product.KeyValue other = + (com.google.cloud.vision.v1p3beta1.Product.KeyValue) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,87 +493,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -534,27 +589,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product.KeyValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Product.KeyValue) com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.KeyValue.class, + com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Product.KeyValue.newBuilder() @@ -562,16 +622,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; } @java.lang.Override @@ -604,7 +663,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1p3beta1.Product.KeyValue result = new com.google.cloud.vision.v1p3beta1.Product.KeyValue(this); + com.google.cloud.vision.v1p3beta1.Product.KeyValue result = + new com.google.cloud.vision.v1p3beta1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -615,38 +675,41 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Product.KeyValue)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Product.KeyValue) other); } else { super.mergeFrom(other); return this; @@ -654,7 +717,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Product.KeyValue other) { - if (other == com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance()) + return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -682,7 +746,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.Product.KeyValue) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.Product.KeyValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,19 +759,21 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -715,21 +782,22 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -737,57 +805,64 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -795,19 +870,21 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -816,21 +893,22 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -838,61 +916,69 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -905,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) private static final com.google.cloud.vision.v1p3beta1.Product.KeyValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Product.KeyValue(); } @@ -919,16 +1005,16 @@ public static com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,12 +1029,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -957,6 +1044,7 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getDefaultInstanceForT
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -965,14 +1053,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -981,16 +1070,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1001,12 +1089,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1015,30 +1106,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1049,12 +1140,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -1063,30 +1157,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1097,6 +1191,8 @@ public java.lang.String getDescription() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1105,6 +1201,7 @@ public java.lang.String getDescription() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ @java.lang.Override @@ -1113,14 +1210,15 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1129,16 +1227,15 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1149,6 +1246,8 @@ public java.lang.String getProductCategory() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1166,6 +1265,8 @@ public java.util.List getPro
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1179,11 +1280,13 @@ public java.util.List getPro
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1201,6 +1304,8 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1218,6 +1323,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int i
     return productLabels_.get(index);
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1237,6 +1344,7 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1248,8 +1356,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1287,8 +1394,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1298,23 +1404,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Product)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.Product other = (com.google.cloud.vision.v1p3beta1.Product) obj;
-
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getProductCategory()
-        .equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList()
-        .equals(other.getProductLabelsList())) return false;
+    com.google.cloud.vision.v1p3beta1.Product other =
+        (com.google.cloud.vision.v1p3beta1.Product) obj;
+
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getProductCategory().equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1343,118 +1445,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.Product parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Product} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Product) com.google.cloud.vision.v1p3beta1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Product.class, com.google.cloud.vision.v1p3beta1.Product.Builder.class); + com.google.cloud.vision.v1p3beta1.Product.class, + com.google.cloud.vision.v1p3beta1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Product.newBuilder() @@ -1462,17 +1573,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1494,9 +1605,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; } @java.lang.Override @@ -1515,7 +1626,8 @@ public com.google.cloud.vision.v1p3beta1.Product build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product buildPartial() { - com.google.cloud.vision.v1p3beta1.Product result = new com.google.cloud.vision.v1p3beta1.Product(this); + com.google.cloud.vision.v1p3beta1.Product result = + new com.google.cloud.vision.v1p3beta1.Product(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1538,38 +1650,39 @@ public com.google.cloud.vision.v1p3beta1.Product buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Product) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Product)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Product) other); } else { super.mergeFrom(other); return this; @@ -1612,9 +1725,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductLabelsFieldBuilder() : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductLabelsFieldBuilder() + : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1648,10 +1762,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1660,13 +1777,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1675,6 +1792,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1683,15 +1802,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1699,6 +1817,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1707,20 +1827,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1729,15 +1851,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1746,16 +1871,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1763,19 +1888,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1784,21 +1911,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1806,57 +1934,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1864,19 +1999,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1885,21 +2022,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1907,57 +2045,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1965,6 +2110,8 @@ public Builder setDescriptionBytes( private java.lang.Object productCategory_ = ""; /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1973,13 +2120,13 @@ public Builder setDescriptionBytes(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -1988,6 +2135,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -1996,15 +2145,14 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2012,6 +2160,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2020,20 +2170,22 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory( - java.lang.String value) { + public Builder setProductCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2042,15 +2194,18 @@ public Builder setProductCategory(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image. This should
      * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -2059,34 +2214,42 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(productLabels_); + productLabels_ = + new java.util.ArrayList( + productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> productLabelsBuilder_; + com.google.cloud.vision.v1p3beta1.Product.KeyValue, + com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, + com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> + productLabelsBuilder_; /** + * + * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2099,7 +2262,8 @@ private void ensureProductLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List getProductLabelsList() {
+    public java.util.List
+        getProductLabelsList() {
       if (productLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(productLabels_);
       } else {
@@ -2107,6 +2271,8 @@ public java.util.List getPro
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2127,6 +2293,8 @@ public int getProductLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2147,6 +2315,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int i
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2174,6 +2344,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2198,6 +2370,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2224,6 +2398,8 @@ public Builder addProductLabels(com.google.cloud.vision.v1p3beta1.Product.KeyVal
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2251,6 +2427,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2275,6 +2453,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2299,6 +2479,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2315,8 +2497,7 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2324,6 +2505,8 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2347,6 +2530,8 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2370,6 +2555,8 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2387,6 +2574,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder getProductLabe
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2402,11 +2591,14 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder getProductLabe
     public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);  } else {
+        return productLabels_.get(index);
+      } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2419,8 +2611,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsOrBuilderList() {
+    public java.util.List
+        getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2428,6 +2620,8 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2441,10 +2635,12 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLab
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2459,10 +2655,13 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
      */
     public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabelsBuilder(
         int index) {
-      return getProductLabelsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.vision.v1p3beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2475,16 +2674,22 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
      *
      * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsBuilderList() {
+    public java.util.List
+        getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.Product.KeyValue,
+            com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder,
+            com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Product.KeyValue, com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.Product.KeyValue,
+                com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder,
+                com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2493,9 +2698,9 @@ public com.google.cloud.vision.v1p3beta1.Product.KeyValue.Builder addProductLabe
       }
       return productLabelsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2505,12 +2710,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product)
   private static final com.google.cloud.vision.v1p3beta1.Product DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Product();
   }
@@ -2519,16 +2724,16 @@ public static com.google.cloud.vision.v1p3beta1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Product parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Product(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Product parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Product(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2543,6 +2748,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
similarity index 100%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
index 6bd8499fb..8798bb1a9 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ProductOrBuilder extends
+public interface ProductOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the product.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -28,56 +49,68 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -86,10 +119,13 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ java.lang.String getProductCategory(); /** + * + * *
    * Immutable. The category for the product identified by the reference image. This should
    * be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
@@ -98,12 +134,14 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString - getProductCategoryBytes(); + com.google.protobuf.ByteString getProductCategoryBytes(); /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -116,9 +154,10 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
-      getProductLabelsList();
+  java.util.List getProductLabelsList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -133,6 +172,8 @@ public interface ProductOrBuilder extends
    */
   com.google.cloud.vision.v1p3beta1.Product.KeyValue getProductLabels(int index);
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -147,6 +188,8 @@ public interface ProductOrBuilder extends
    */
   int getProductLabelsCount();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -159,9 +202,11 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
+  java.util.List
       getProductLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -174,6 +219,5 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p3beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
similarity index 78%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
index 831ade070..6ac655aeb 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParams.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchParams} */ -public final class ProductSearchParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchParams) ProductSearchParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,53 @@ private ProductSearchParams( case 0: done = true; break; - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + productSet_ = s; + break; } - productCategories_.add(s); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 74: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productCategories_.add(s); + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; } + case 74: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +127,7 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -114,28 +136,34 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -143,19 +171,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -171,6 +206,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
+   *
+   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -178,6 +215,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ @java.lang.Override @@ -186,14 +224,15 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** + * + * *
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -201,16 +240,15 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -221,6 +259,8 @@ public java.lang.String getProductSet() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -232,13 +272,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_; } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -250,12 +292,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -267,6 +312,7 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -274,6 +320,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -285,17 +333,19 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -307,6 +357,7 @@ public java.lang.String getProductCategories(int index) {
    * 
* * string filter = 8; + * * @return The filter. */ @java.lang.Override @@ -315,14 +366,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -334,16 +386,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -352,6 +403,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +415,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -401,8 +452,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,24 +462,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchParams other = (com.google.cloud.vision.v1p3beta1.ProductSearchParams) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchParams other = + (com.google.cloud.vision.v1p3beta1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; - } - if (!getProductSet() - .equals(other.getProductSet())) return false; - if (!getProductCategoriesList() - .equals(other.getProductCategoriesList())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + } + if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -459,117 +506,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchParams) com.google.cloud.vision.v1p3beta1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchParams.class, + com.google.cloud.vision.v1p3beta1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchParams.newBuilder() @@ -577,16 +634,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +662,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; } @java.lang.Override @@ -627,7 +683,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchParams result = new com.google.cloud.vision.v1p3beta1.ProductSearchParams(this); + com.google.cloud.vision.v1p3beta1.ProductSearchParams result = + new com.google.cloud.vision.v1p3beta1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -649,38 +706,39 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchParams)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchParams) other); } else { super.mergeFrom(other); return this; @@ -688,7 +746,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchParams other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchParams.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -729,7 +788,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ProductSearchParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -738,40 +798,54 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -793,6 +867,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -812,6 +888,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -823,7 +901,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -835,6 +915,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -854,6 +936,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -862,11 +946,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -878,11 +964,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -891,14 +980,17 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -906,6 +998,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private java.lang.Object productSet_ = "";
     /**
+     *
+     *
      * 
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -913,13 +1007,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -928,6 +1022,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -935,15 +1031,14 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -951,6 +1046,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -958,20 +1055,22 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet( - java.lang.String value) { + public Builder setProductSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -979,15 +1078,18 @@ public Builder setProductSet(
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** + * + * *
      * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
      * Format is:
@@ -995,29 +1097,33 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList productCategories_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1029,13 +1135,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1047,12 +1155,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1064,6 +1175,7 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1071,6 +1183,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1082,14 +1196,16 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1101,21 +1217,23 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories( - int index, java.lang.String value) { + public Builder setProductCategories(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1127,20 +1245,22 @@ public Builder setProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories( - java.lang.String value) { + public Builder addProductCategories(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1152,18 +1272,19 @@ public Builder addProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories( - java.lang.Iterable values) { + public Builder addAllProductCategories(java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1175,6 +1296,7 @@ public Builder addAllProductCategories(
      * 
* * repeated string product_categories = 7; + * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1184,6 +1306,8 @@ public Builder clearProductCategories() { return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1195,15 +1319,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; + * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes( - com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1212,6 +1336,8 @@ public Builder addProductCategoriesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1223,13 +1349,13 @@ public Builder addProductCategoriesBytes(
      * 
* * string filter = 8; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1238,6 +1364,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1249,15 +1377,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1265,6 +1392,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1276,20 +1405,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1301,15 +1432,18 @@ public Builder setFilter(
      * 
* * string filter = 8; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1321,23 +1455,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1347,12 +1481,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) private static final com.google.cloud.vision.v1p3beta1.ProductSearchParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchParams(); } @@ -1361,16 +1495,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSearchParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1385,6 +1519,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java index 33e89992c..e798327c6 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchParamsOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; -public interface ProductSearchParamsOrBuilder extends +public interface ProductSearchParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -38,6 +62,8 @@ public interface ProductSearchParamsOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -45,10 +71,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ java.lang.String getProductSet(); /** + * + * *
    * The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
    * Format is:
@@ -56,12 +85,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - com.google.protobuf.ByteString - getProductSetBytes(); + com.google.protobuf.ByteString getProductSetBytes(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -73,11 +104,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - java.util.List - getProductCategoriesList(); + java.util.List getProductCategoriesList(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -89,10 +122,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ int getProductCategoriesCount(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -104,11 +140,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -120,13 +159,15 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString - getProductCategoriesBytes(int index); + com.google.protobuf.ByteString getProductCategoriesBytes(int index); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -138,10 +179,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -153,8 +197,8 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java new file mode 100644 index 000000000..5518a1acc --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchProto.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/vision/v1p3beta1/product_" + + "search.proto\022\035google.cloud.vision.v1p3be" + + "ta1\032\031google/api/resource.proto\032,google/c" + + "loud/vision/v1p3beta1/geometry.proto\032:go" + + "ogle/cloud/vision/v1p3beta1/product_sear" + + "ch_service.proto\032\037google/protobuf/timest" + + "amp.proto\"\301\001\n\023ProductSearchParams\022B\n\rbou" + + "nding_poly\030\t \001(\0132+.google.cloud.vision.v" + + "1p3beta1.BoundingPoly\022:\n\013product_set\030\006 \001" + + "(\tB%\372A\"\n vision.googleapis.com/ProductSe" + + "t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006filter\030" + + "\010 \001(\t\"\262\005\n\024ProductSearchResults\022.\n\nindex_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022K" + + "\n\007results\030\005 \003(\0132:.google.cloud.vision.v1" + + "p3beta1.ProductSearchResults.Result\022b\n\027p" + + "roduct_grouped_results\030\006 \003(\0132A.google.cl" + + "oud.vision.v1p3beta1.ProductSearchResult" + + "s.GroupedResult\032_\n\006Result\0227\n\007product\030\001 \001" + + "(\0132&.google.cloud.vision.v1p3beta1.Produ" + + "ct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020Obje" + + "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" + + "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002" + + "\n\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.BoundingP" + + "oly\022K\n\007results\030\002 \003(\0132:.google.cloud.visi" + + "on.v1p3beta1.ProductSearchResults.Result" + + "\022`\n\022object_annotations\030\003 \003(\0132D.google.cl" + + "oud.vision.v1p3beta1.ProductSearchResult" + + "s.ObjectAnnotationB\210\001\n!com.google.cloud." + + "vision.v1p3beta1B\022ProductSearchProtoP\001ZC" + + "google.golang.org/genproto/googleapis/cl" + + "oud/vision/v1p3beta1;vision\370\001\001\242\002\004GCVNb\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchParams_descriptor, + new java.lang.String[] { + "BoundingPoly", "ProductSet", "ProductCategories", "Filter", + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor, + new java.lang.String[] { + "IndexTime", "Results", "ProductGroupedResults", + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor, + new java.lang.String[] { + "Product", "Score", "Image", + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor, + new java.lang.String[] { + "Mid", "LanguageCode", "Name", "Score", + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor, + new java.lang.String[] { + "BoundingPoly", "Results", "ObjectAnnotations", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java similarity index 70% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java index 052e0b198..cc0650251 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResults.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Results for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults} */ -public final class ProductSearchResults extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults) ProductSearchResultsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,56 @@ private ProductSearchResults( case 0: done = true; break; - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); + } + indexTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - results_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), + extensionRegistry)); + break; } - productGroupedResults_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult>(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,8 +129,7 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -113,42 +141,54 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder extends + public interface ResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** + * + * *
      * The Product.
      * 
@@ -158,70 +198,80 @@ public interface ResultOrBuilder extends com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); } /** + * + * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Result extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -240,37 +290,41 @@ private Result( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } + + break; } - product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + case 21: + { + score_ = input.readFloat(); + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + image_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,34 +332,39 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.Product product_; /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return Whether the product field is set. */ @java.lang.Override @@ -313,18 +372,25 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
      * The Product.
      * 
@@ -339,12 +405,15 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -355,12 +424,15 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ @java.lang.Override @@ -369,30 +441,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -401,6 +473,7 @@ public java.lang.String getImage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +485,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -433,12 +505,10 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -451,23 +521,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getImage() - .equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getImage().equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,8 +552,7 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -494,87 +561,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -584,27 +658,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.Result} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.newBuilder() @@ -612,16 +691,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -639,13 +717,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance(); } @@ -660,7 +739,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result result = + new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -676,46 +756,52 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result other) { + if (other + == com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -745,7 +831,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -757,34 +845,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; + * * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
        * The Product.
        * 
@@ -805,14 +906,15 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p3beta1.Product product = 1; */ - public Builder setProduct( - com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -823,6 +925,8 @@ public Builder setProduct( return this; } /** + * + * *
        * The Product.
        * 
@@ -833,7 +937,9 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -845,6 +951,8 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
@@ -863,6 +971,8 @@ public Builder clearProduct() { return this; } /** + * + * *
        * The Product.
        * 
@@ -870,11 +980,13 @@ public Builder clearProduct() { * .google.cloud.vision.v1p3beta1.Product product = 1; */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
        * The Product.
        * 
@@ -885,11 +997,14 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
        * The Product.
        * 
@@ -897,27 +1012,33 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() * .google.cloud.vision.v1p3beta1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; } - private float score_ ; + private float score_; /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -925,32 +1046,38 @@ public float getScore() { return score_; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -958,19 +1085,21 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -979,21 +1108,22 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1001,61 +1131,69 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1068,30 +1206,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,37 +1243,45 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ObjectAnnotationOrBuilder extends + public interface ObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1141,10 +1289,13 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1152,57 +1303,68 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ float getScore(); } /** + * + * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1211,16 +1373,15 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1239,36 +1400,39 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 37: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1276,34 +1440,40 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -1312,29 +1482,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1345,6 +1515,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1352,6 +1524,7 @@ public java.lang.String getMid() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -1360,14 +1533,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1375,16 +1549,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1395,11 +1568,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -1408,29 +1584,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1441,11 +1617,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1454,6 +1633,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1465,8 +1645,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1498,8 +1677,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1509,22 +1687,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)) { + if (!(obj + instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1543,95 +1719,102 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1641,44 +1824,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); } - // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1694,19 +1883,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation build() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1714,8 +1906,10 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation b } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(this); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + buildPartial() { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation result = + new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1728,46 +1922,54 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation)other); + if (other + instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) { + return mergeFrom( + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation other) { + if (other + == com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1798,11 +2000,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parsedMessage = null; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1814,18 +2019,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1834,20 +2041,21 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1855,54 +2063,61 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1910,6 +2125,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1917,13 +2134,13 @@ public Builder setMidBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1932,6 +2149,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1939,15 +2158,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1955,6 +2173,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1962,20 +2182,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1983,15 +2205,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1999,16 +2224,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2016,18 +2241,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2036,20 +2263,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2057,66 +2285,76 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -2124,34 +2362,41 @@ public float getScore() { return score_; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2164,30 +2409,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(); + DEFAULT_INSTANCE = + new com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2199,35 +2447,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GroupedResultOrBuilder extends + public interface GroupedResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2237,15 +2494,18 @@ public interface GroupedResultOrBuilder extends com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2254,6 +2514,8 @@ public interface GroupedResultOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2262,15 +2524,19 @@ public interface GroupedResultOrBuilder extends */ int getResultsCount(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2281,50 +2547,75 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List getObjectAnnotationsList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ int getObjectAnnotationsCount(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); } /** + * + * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2332,15 +2623,16 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2348,16 +2640,15 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2377,44 +2668,59 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null;
-              if (boundingPoly_ != null) {
-                subBuilder = boundingPoly_.toBuilder();
-              }
-              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(boundingPoly_);
-                boundingPoly_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null;
+                if (boundingPoly_ != null) {
+                  subBuilder = boundingPoly_.toBuilder();
+                }
+                boundingPoly_ =
+                    input.readMessage(
+                        com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(boundingPoly_);
+                  boundingPoly_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  results_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                results_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(),
+                        extensionRegistry));
+                break;
               }
-              results_.add(
-                  input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.parser(), extensionRegistry));
-              break;
-            }
-            case 26: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                objectAnnotations_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 26:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  objectAnnotations_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1p3beta1.ProductSearchResults
+                              .ObjectAnnotation>();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                objectAnnotations_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation
+                            .parser(),
+                        extensionRegistry));
+                break;
               }
-              objectAnnotations_.add(
-                  input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2422,8 +2728,7 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2435,27 +2740,33 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class,
+              com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_;
     /**
+     *
+     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2463,18 +2774,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2489,6 +2807,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2496,10 +2816,13 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List + getResultsList() { return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2507,11 +2830,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2523,6 +2849,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2534,6 +2862,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2541,72 +2871,98 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { return results_.get(index); } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List objectAnnotations_; + private java.util.List + objectAnnotations_; /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { return objectAnnotations_.get(index); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2618,8 +2974,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2639,16 +2994,14 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, objectAnnotations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2658,22 +3011,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList() - .equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2703,87 +3054,95 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2793,6 +3152,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about the products similar to a single product in a query
      * image.
@@ -2800,40 +3161,44 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.class,
+                com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
-      // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.newBuilder()
+      // Construct using
+      // com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2859,19 +3224,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
-        return com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance();
+      public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
+          getDefaultInstanceForType() {
+        return com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult build() {
-        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result = buildPartial();
+        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2880,7 +3248,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buil
 
       @java.lang.Override
       public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult result =
+            new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -2913,46 +3282,53 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult buil
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) {
-          return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)other);
+          return mergeFrom(
+              (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other) {
-        if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult other) {
+        if (other
+            == com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult
+                .getDefaultInstance()) return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -2974,9 +3350,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getResultsFieldBuilder() : null;
+              resultsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getResultsFieldBuilder()
+                      : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3000,9 +3377,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults.
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getObjectAnnotationsFieldBuilder() : null;
+              objectAnnotationsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getObjectAnnotationsFieldBuilder()
+                      : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3027,7 +3405,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3036,38 +3416,52 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
+              com.google.cloud.vision.v1p3beta1.BoundingPoly,
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+              com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
+          boundingPolyBuilder_;
       /**
+       *
+       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3088,6 +3482,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly va return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3106,6 +3502,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3116,7 +3514,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -3128,6 +3528,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p3beta1.BoundingPoly return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3146,6 +3548,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3153,11 +3557,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3168,11 +3574,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3180,39 +3589,52 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - private java.util.List results_ = - java.util.Collections.emptyList(); + private java.util.List + results_ = java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + resultsBuilder_; /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3220,11 +3642,14 @@ public java.util.List * List of results, one for each product match. *
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -3234,11 +3659,14 @@ public int getResultsCount() { } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index) { if (resultsBuilder_ == null) { @@ -3248,11 +3676,14 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder setResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { @@ -3269,14 +3700,18 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder setResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3287,13 +3722,17 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public Builder addResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { + public Builder addResults( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3307,11 +3746,14 @@ public Builder addResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result value) { @@ -3328,11 +3770,14 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { @@ -3346,14 +3791,18 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3364,18 +3813,22 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result> + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3383,11 +3836,14 @@ public Builder addAllResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -3400,11 +3856,14 @@ public Builder clearResults() { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -3417,39 +3876,50 @@ public Builder removeResults(int index) { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder getResultsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder + getResultsBuilder(int index) { return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3457,74 +3927,103 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder + addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder( - int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder + addResultsBuilder(int index) { + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List objectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation> + objectAnnotations_ = java.util.Collections.emptyList(); + private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation>( + objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + objectAnnotationsBuilder_; /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -3532,11 +4031,15 @@ public java.util.List * List of generic predictions for the object in the bounding box. *
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -3546,13 +4049,18 @@ public int getObjectAnnotationsCount() { } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -3560,14 +4068,19 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation g } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3581,14 +4094,20 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -3599,13 +4118,18 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public Builder addObjectAnnotations(com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3619,14 +4143,19 @@ public Builder addObjectAnnotations(com.google.cloud.vision.v1p3beta1.ProductSea return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3640,14 +4169,19 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -3658,14 +4192,20 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -3676,18 +4216,23 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addAllObjectAnnotations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation> + values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -3695,11 +4240,15 @@ public Builder addAllObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -3712,11 +4261,15 @@ public Builder clearObjectAnnotations() { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -3729,39 +4282,54 @@ public Builder removeObjectAnnotations(int index) { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + getObjectAnnotationsBuilder(int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); } else { + return objectAnnotations_.get(index); + } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3769,45 +4337,70 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOr } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( - int index) { - return getObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder> + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3816,6 +4409,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation.B } return objectAnnotationsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3828,30 +4422,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3863,15 +4459,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3879,6 +4477,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getD
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -3886,6 +4485,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3893,6 +4494,7 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ @java.lang.Override @@ -3900,6 +4502,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3916,6 +4520,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
@@ -3923,10 +4529,13 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List + getResultsList() { return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3934,11 +4543,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3950,6 +4562,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3961,6 +4575,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3974,8 +4590,11 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List productGroupedResults_; + private java.util.List + productGroupedResults_; /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3983,13 +4602,18 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { return productGroupedResults_; } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3997,14 +4621,19 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder>
       getProductGroupedResultsOrBuilderList() {
     return productGroupedResults_;
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4012,13 +4641,17 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
   public int getProductGroupedResultsCount() {
     return productGroupedResults_.size();
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4026,13 +4659,18 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + getProductGroupedResults(int index) { return productGroupedResults_.get(index); } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4040,15 +4678,18 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getP
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4060,8 +4701,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4081,16 +4721,15 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, productGroupedResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4100,22 +4739,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ProductSearchResults other = (com.google.cloud.vision.v1p3beta1.ProductSearchResults) obj; + com.google.cloud.vision.v1p3beta1.ProductSearchResults other = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime() - .equals(other.getIndexTime())) return false; + if (!getIndexTime().equals(other.getIndexTime())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList() - .equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4145,117 +4782,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSearchResults prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSearchResults} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSearchResults) com.google.cloud.vision.v1p3beta1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.class, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.ProductSearchResults.newBuilder() @@ -4263,18 +4910,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4300,9 +4947,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p3beta1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4321,7 +4968,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1p3beta1.ProductSearchResults result = new com.google.cloud.vision.v1p3beta1.ProductSearchResults(this); + com.google.cloud.vision.v1p3beta1.ProductSearchResults result = + new com.google.cloud.vision.v1p3beta1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -4354,38 +5002,39 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSearchResults) other); } else { super.mergeFrom(other); return this; @@ -4393,7 +5042,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.ProductSearchResults.getDefaultInstance()) + return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -4415,9 +5065,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -4441,9 +5092,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ProductSearchResults productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductGroupedResultsFieldBuilder() : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductGroupedResultsFieldBuilder() + : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -4468,7 +5120,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.ProductSearchResults) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.ProductSearchResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4477,12 +5130,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4490,12 +5149,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4503,6 +5165,7 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -4513,6 +5176,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4535,6 +5200,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4543,8 +5210,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -4555,6 +5221,8 @@ public Builder setIndexTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4567,7 +5235,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -4579,6 +5247,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4599,6 +5269,8 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4608,11 +5280,13 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-      
+
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4625,11 +5299,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4639,39 +5314,51 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(),
-                getParentForChildren(),
-                isClean());
+        indexTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(), getParentForChildren(), isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
+            com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result,
+            com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder,
+            com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -4679,6 +5366,8 @@ public java.util.List * List of results, one for each product match. *
@@ -4693,6 +5382,8 @@ public int getResultsCount() { } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4707,6 +5398,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults( } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4728,6 +5421,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4735,7 +5430,8 @@ public Builder setResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder setResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -4746,6 +5442,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4766,6 +5464,8 @@ public Builder addResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4787,6 +5487,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4805,6 +5507,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4812,7 +5516,8 @@ public Builder addResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder addResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -4823,6 +5528,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4830,11 +5537,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -4842,6 +5549,8 @@ public Builder addAllResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4859,6 +5568,8 @@ public Builder clearResults() { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4876,6 +5587,8 @@ public Builder removeResults(int index) { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4887,28 +5600,34 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder get return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -4916,17 +5635,23 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder ge } } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder + addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4935,48 +5660,64 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder add */ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List productGroupedResults_ = - java.util.Collections.emptyList(); + private java.util.List + productGroupedResults_ = java.util.Collections.emptyList(); + private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); + productGroupedResults_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult>( + productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + productGroupedResultsBuilder_; /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -4984,9 +5725,12 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -4994,6 +5738,8 @@ public java.util.List * List of results grouped by products detected in the query image. Each entry * corresponds to one bounding polygon in the query image, and contains the @@ -5001,7 +5747,9 @@ public java.util.List * - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5011,6 +5759,8 @@ public int getProductGroupedResultsCount() { } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5018,9 +5768,12 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + getProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5028,6 +5781,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getP } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5035,7 +5790,9 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getP
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { @@ -5052,6 +5809,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5059,10 +5818,14 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5073,6 +5836,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5080,9 +5845,12 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public Builder addProductGroupedResults(com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5096,6 +5864,8 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1p3beta1.Produc return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5103,7 +5873,9 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1p3beta1.Produc
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult value) { @@ -5120,6 +5892,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5127,10 +5901,13 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(builderForValue.build()); @@ -5141,6 +5918,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5148,10 +5927,14 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( - int index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5162,6 +5945,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5169,14 +5954,17 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addAllProductGroupedResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult> + values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5184,6 +5972,8 @@ public Builder addAllProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5191,7 +5981,9 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5204,6 +5996,8 @@ public Builder clearProductGroupedResults() { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5211,7 +6005,9 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -5224,6 +6020,8 @@ public Builder removeProductGroupedResults(int index) { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5231,13 +6029,17 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + getProductGroupedResultsBuilder(int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5245,16 +6047,21 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); } else { + return productGroupedResults_.get(index); + } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5262,10 +6069,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBui
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -5273,6 +6083,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBui } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5280,13 +6092,20 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBui
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + .getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5294,14 +6113,21 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( - int index) { - return getProductGroupedResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder(int index) { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult + .getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5309,18 +6135,27 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder> + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5329,9 +6164,9 @@ public com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult.Buil } return productGroupedResultsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5341,12 +6176,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) private static final com.google.cloud.vision.v1p3beta1.ProductSearchResults DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSearchResults(); } @@ -5355,16 +6190,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSearchResults getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5379,6 +6214,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java index 257811bbb..6802c4873 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchResultsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search.proto package com.google.cloud.vision.v1p3beta1; -public interface ProductSearchResultsOrBuilder extends +public interface ProductSearchResultsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -15,10 +33,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -26,10 +47,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -41,15 +65,18 @@ public interface ProductSearchResultsOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -58,6 +85,8 @@ public interface ProductSearchResultsOrBuilder extends */ com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result getResults(int index); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -66,15 +95,19 @@ public interface ProductSearchResultsOrBuilder extends */ int getResultsCount(); /** + * + * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -85,6 +118,8 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -92,11 +127,15 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List getProductGroupedResultsList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -104,10 +143,15 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult getProductGroupedResults( + int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -115,10 +159,14 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ int getProductGroupedResultsCount(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -126,11 +174,16 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsOrBuilderList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -138,8 +191,10 @@ com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java new file mode 100644 index 000000000..7f363e347 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchServiceProto.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/vision/v1p3beta1/product_" + + "search_service.proto\022\035google.cloud.visio" + + "n.v1p3beta1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032,google/cloud/vision/v1p3beta1/ge" + + "ometry.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + + "3beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + + "gleapis.com/Product\022:projects/{project}/" + + "locations/{location}/products/{product}\"" + + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + + "on.googleapis.com/ProductSet\022Aprojects/{" + + "project}/locations/{location}/productSet" + + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + + "olys\030\003 \003(\0132+.google.cloud.vision.v1p3bet" + + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + + "leapis.com/ReferenceImage\022\\projects/{pro" + + "ject}/locations/{location}/products/{pro" + + "duct}/referenceImages/{reference_image}\"" + + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + + "on.v1p3beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + + "ts\030\001 \003(\0132&.google.cloud.vision.v1p3beta1" + + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + + "loud.vision.v1p3beta1.ProductB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + + "oud.vision.v1p3beta1.ProductSetB\003\340A\002\022\026\n\016" + + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + + "le.cloud.vision.v1p3beta1.ProductSet\022\027\n\017" + + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + + "cloud.vision.v1p3beta1.ProductSetB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + + "ProductSet\"\275\001\n\033CreateReferenceImageReque" + + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + + "eapis.com/Product\022K\n\017reference_image\030\002 \001" + + "(\0132-.google.cloud.vision.v1p3beta1.Refer" + + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + + "\n\020reference_images\030\001 \003(\0132-.google.cloud." + + "vision.v1p3beta1.ReferenceImage\022\021\n\tpage_" + + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + + "ReferenceImage\"\217\001\n\035AddProductToProductSe" + + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"u\n ListProductsInProductSetResponse\0228" + + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + + "1p3beta1.Product\022\027\n\017next_page_token\030\002 \001(" + + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + + ".vision.v1p3beta1.ImportProductSetsGcsSo" + + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022V\n\014input_config" + + "\030\002 \001(\0132;.google.cloud.vision.v1p3beta1.I" + + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + + "ortProductSetsResponse\022G\n\020reference_imag" + + "es\030\001 \003(\0132-.google.cloud.vision.v1p3beta1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + + "p3beta1.BatchOperationMetadata.State\022/\n\013" + + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + + "AILED\020\003\022\r\n\tCANCELLED\020\0042\353\036\n\rProductSearch" + + "\022\346\001\n\020CreateProductSet\0226.google.cloud.vis" + + "ion.v1p3beta1.CreateProductSetRequest\032)." + + "google.cloud.vision.v1p3beta1.ProductSet" + + "\"o\202\323\344\223\002E\"6/v1p3beta1/{parent=projects/*/" + + "locations/*}/productSets:\013product_set\332A!" + + "parent,product_set,product_set_id\022\311\001\n\017Li" + + "stProductSets\0225.google.cloud.vision.v1p3" + + "beta1.ListProductSetsRequest\0326.google.cl" + + "oud.vision.v1p3beta1.ListProductSetsResp" + + "onse\"G\202\323\344\223\0028\0226/v1p3beta1/{parent=project" + + "s/*/locations/*}/productSets\332A\006parent\022\266\001" + + "\n\rGetProductSet\0223.google.cloud.vision.v1" + + "p3beta1.GetProductSetRequest\032).google.cl" + + "oud.vision.v1p3beta1.ProductSet\"E\202\323\344\223\0028\022" + + "6/v1p3beta1/{name=projects/*/locations/*" + + "/productSets/*}\332A\004name\022\350\001\n\020UpdateProduct" + + "Set\0226.google.cloud.vision.v1p3beta1.Upda" + + "teProductSetRequest\032).google.cloud.visio" + + "n.v1p3beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p3bet" + + "a1/{product_set.name=projects/*/location" + + "s/*/productSets/*}:\013product_set\332A\027produc" + + "t_set,update_mask\022\251\001\n\020DeleteProductSet\0226" + + ".google.cloud.vision.v1p3beta1.DeletePro" + + "ductSetRequest\032\026.google.protobuf.Empty\"E" + + "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/loca" + + "tions/*/productSets/*}\332A\004name\022\316\001\n\rCreate" + + "Product\0223.google.cloud.vision.v1p3beta1." + + "CreateProductRequest\032&.google.cloud.visi" + + "on.v1p3beta1.Product\"`\202\323\344\223\002>\"3/v1p3beta1" + + "/{parent=projects/*/locations/*}/product" + + "s:\007product\332A\031parent,product,product_id\022\275" + + "\001\n\014ListProducts\0222.google.cloud.vision.v1" + + "p3beta1.ListProductsRequest\0323.google.clo" + + "ud.vision.v1p3beta1.ListProductsResponse" + + "\"D\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/" + + "locations/*}/products\332A\006parent\022\252\001\n\nGetPr" + + "oduct\0220.google.cloud.vision.v1p3beta1.Ge" + + "tProductRequest\032&.google.cloud.vision.v1" + + "p3beta1.Product\"B\202\323\344\223\0025\0223/v1p3beta1/{nam" + + "e=projects/*/locations/*/products/*}\332A\004n" + + "ame\022\320\001\n\rUpdateProduct\0223.google.cloud.vis" + + "ion.v1p3beta1.UpdateProductRequest\032&.goo" + + "gle.cloud.vision.v1p3beta1.Product\"b\202\323\344\223" + + "\002F2;/v1p3beta1/{product.name=projects/*/" + + "locations/*/products/*}:\007product\332A\023produ" + + "ct,update_mask\022\240\001\n\rDeleteProduct\0223.googl" + + "e.cloud.vision.v1p3beta1.DeleteProductRe" + + "quest\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*3/" + + "v1p3beta1/{name=projects/*/locations/*/p" + + "roducts/*}\332A\004name\022\216\002\n\024CreateReferenceIma" + + "ge\022:.google.cloud.vision.v1p3beta1.Creat" + + "eReferenceImageRequest\032-.google.cloud.vi" + + "sion.v1p3beta1.ReferenceImage\"\212\001\202\323\344\223\002X\"E" + + "/v1p3beta1/{parent=projects/*/locations/" + + "*/products/*}/referenceImages:\017reference" + + "_image\332A)parent,reference_image,referenc" + + "e_image_id\022\300\001\n\024DeleteReferenceImage\022:.go" + + "ogle.cloud.vision.v1p3beta1.DeleteRefere" + + "nceImageRequest\032\026.google.protobuf.Empty\"" + + "T\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/loc" + + "ations/*/products/*/referenceImages/*}\332A" + + "\004name\022\344\001\n\023ListReferenceImages\0229.google.c" + + "loud.vision.v1p3beta1.ListReferenceImage" + + "sRequest\032:.google.cloud.vision.v1p3beta1" + + ".ListReferenceImagesResponse\"V\202\323\344\223\002G\022E/v" + + "1p3beta1/{parent=projects/*/locations/*/" + + "products/*}/referenceImages\332A\006parent\022\321\001\n" + + "\021GetReferenceImage\0227.google.cloud.vision" + + ".v1p3beta1.GetReferenceImageRequest\032-.go" + + "ogle.cloud.vision.v1p3beta1.ReferenceIma" + + "ge\"T\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/" + + "locations/*/products/*/referenceImages/*" + + "}\332A\004name\022\313\001\n\026AddProductToProductSet\022<.go" + + "ogle.cloud.vision.v1p3beta1.AddProductTo" + + "ProductSetRequest\032\026.google.protobuf.Empt" + + "y\"[\202\323\344\223\002F\"A/v1p3beta1/{name=projects/*/l" + + "ocations/*/productSets/*}:addProduct:\001*\332" + + "A\014name,product\022\330\001\n\033RemoveProductFromProd" + + "uctSet\022A.google.cloud.vision.v1p3beta1.R" + + "emoveProductFromProductSetRequest\032\026.goog" + + "le.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p3beta1/{n" + + "ame=projects/*/locations/*/productSets/*" + + "}:removeProduct:\001*\332A\014name,product\022\353\001\n\030Li" + + "stProductsInProductSet\022>.google.cloud.vi" + + "sion.v1p3beta1.ListProductsInProductSetR" + + "equest\032?.google.cloud.vision.v1p3beta1.L" + + "istProductsInProductSetResponse\"N\202\323\344\223\002A\022" + + "?/v1p3beta1/{name=projects/*/locations/*" + + "/productSets/*}/products\332A\004name\022\202\002\n\021Impo" + + "rtProductSets\0227.google.cloud.vision.v1p3" + + "beta1.ImportProductSetsRequest\032\035.google." + + "longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p3bet" + + "a1/{parent=projects/*/locations/*}/produ" + + "ctSets:import:\001*\332A\023parent,input_config\312A" + + "3\n\031ImportProductSetsResponse\022\026BatchOpera" + + "tionMetadata\032v\312A\025vision.googleapis.com\322A" + + "[https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-visionB\210\001\n!com.google.cloud.vision" + + ".v1p3beta1B\031ProductSearchServiceProtoP\001Z" + + "Cgoogle.golang.org/genproto/googleapis/c" + + "loud/vision/v1p3beta1;vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Product_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", + }); + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor = + internal_static_google_cloud_vision_v1p3beta1_Product_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Product_KeyValue_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "IndexTime", "IndexError", + }); + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor, + new java.lang.String[] { + "Name", "Uri", "BoundingPolys", + }); + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateProductRequest_descriptor, + new java.lang.String[] { + "Parent", "Product", "ProductId", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsResponse_descriptor, + new java.lang.String[] { + "Products", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetProductRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor, + new java.lang.String[] { + "Product", "UpdateMask", + }); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteProductRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateProductSetRequest_descriptor, + new java.lang.String[] { + "Parent", "ProductSet", "ProductSetId", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductSetsResponse_descriptor, + new java.lang.String[] { + "ProductSets", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetProductSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor, + new java.lang.String[] { + "ProductSet", "UpdateMask", + }); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteProductSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_CreateReferenceImageRequest_descriptor, + new java.lang.String[] { + "Parent", "ReferenceImage", "ReferenceImageId", + }); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListReferenceImagesResponse_descriptor, + new java.lang.String[] { + "ReferenceImages", "PageSize", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_GetReferenceImageRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_DeleteReferenceImageRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_AddProductToProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "Product", + }); + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "Product", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ListProductsInProductSetResponse_descriptor, + new java.lang.String[] { + "Products", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsGcsSource_descriptor, + new java.lang.String[] { + "CsvFileUri", + }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "InputConfig", + }); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_ImportProductSetsResponse_descriptor, + new java.lang.String[] { + "ReferenceImages", "Statuses", + }); + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_BatchOperationMetadata_descriptor, + new java.lang.String[] { + "State", "SubmitTime", "EndTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java index 2817b79b5..a77cb467c 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A ProductSet contains Products. A ProductSet can contain a maximum of 1
  * million reference images. If the limit is exceeded, periodic indexing will
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSet}
  */
-public final class ProductSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ProductSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ProductSet)
     ProductSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ProductSet.newBuilder() to construct.
   private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ProductSet() {
     name_ = "";
     displayName_ = "";
@@ -28,16 +46,15 @@ private ProductSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ProductSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ProductSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,51 +73,56 @@ private ProductSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (indexTime_ != null) {
-              subBuilder = indexTime_.toBuilder();
-            }
-            indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(indexTime_);
-              indexTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (indexError_ != null) {
-              subBuilder = indexError_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(indexError_);
-              indexError_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (indexTime_ != null) {
+                subBuilder = indexTime_.toBuilder();
+              }
+              indexTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(indexTime_);
+                indexTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (indexError_ != null) {
+                subBuilder = indexError_.toBuilder();
+              }
+              indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(indexError_);
+                indexError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,29 +130,33 @@ private ProductSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ProductSet.class, com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ProductSet.class,
+            com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -139,6 +165,7 @@ private ProductSet(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -147,14 +174,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -163,16 +191,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -183,12 +210,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -197,30 +227,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -231,6 +261,8 @@ public java.lang.String getDisplayName() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -238,7 +270,9 @@ public java.lang.String getDisplayName() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -246,6 +280,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -253,7 +289,9 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ @java.lang.Override @@ -261,6 +299,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -268,7 +308,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -278,6 +319,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -285,6 +328,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ @java.lang.Override @@ -292,6 +336,8 @@ public boolean hasIndexError() { return indexError_ != null; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -299,6 +345,7 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ @java.lang.Override @@ -306,6 +353,8 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -320,6 +369,7 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -331,8 +381,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -361,12 +410,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,26 +423,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ProductSet)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.ProductSet other = (com.google.cloud.vision.v1p3beta1.ProductSet) obj;
+    com.google.cloud.vision.v1p3beta1.ProductSet other =
+        (com.google.cloud.vision.v1p3beta1.ProductSet) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime()
-          .equals(other.getIndexTime())) return false;
+      if (!getIndexTime().equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError()
-          .equals(other.getIndexError())) return false;
+      if (!getIndexError().equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -425,97 +469,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -524,21 +575,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ProductSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ProductSet)
       com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ProductSet.class, com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ProductSet.class,
+              com.google.cloud.vision.v1p3beta1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder()
@@ -546,16 +599,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -579,9 +631,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -600,7 +652,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ProductSet result = new com.google.cloud.vision.v1p3beta1.ProductSet(this);
+      com.google.cloud.vision.v1p3beta1.ProductSet result =
+          new com.google.cloud.vision.v1p3beta1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -621,38 +674,39 @@ public com.google.cloud.vision.v1p3beta1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSet)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ProductSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -706,6 +760,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -714,13 +770,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -729,6 +785,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -737,15 +795,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -753,6 +810,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -761,20 +820,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -783,15 +844,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -800,16 +864,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -817,19 +881,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -838,21 +904,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -860,57 +927,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -918,8 +992,13 @@ public Builder setDisplayNameBytes( private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -927,13 +1006,17 @@ public Builder setDisplayNameBytes(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -941,7 +1024,9 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -952,6 +1037,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -959,7 +1046,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -975,6 +1063,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -982,10 +1072,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setIndexTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -996,6 +1086,8 @@ public Builder setIndexTime( return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1003,13 +1095,14 @@ public Builder setIndexTime(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1021,6 +1114,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1028,7 +1123,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1042,6 +1138,8 @@ public Builder clearIndexTime() { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1049,14 +1147,17 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1064,17 +1165,19 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1082,17 +1185,21 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), - getParentForChildren(), - isClean()); + indexTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), getParentForChildren(), isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1100,8 +1207,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + indexErrorBuilder_; /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1109,12 +1219,15 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1122,6 +1235,7 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1132,6 +1246,8 @@ public com.google.rpc.Status getIndexError() { } } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1154,6 +1270,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1162,8 +1280,7 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1174,6 +1291,8 @@ public Builder setIndexError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1186,7 +1305,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1198,6 +1317,8 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1218,6 +1339,8 @@ public Builder clearIndexError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1227,11 +1350,13 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-      
+
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1244,11 +1369,12 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1258,21 +1384,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getIndexError(),
-                getParentForChildren(),
-                isClean());
+        indexErrorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1282,12 +1408,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSet)
   private static final com.google.cloud.vision.v1p3beta1.ProductSet DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ProductSet();
   }
@@ -1296,16 +1422,16 @@ public static com.google.cloud.vision.v1p3beta1.ProductSet getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ProductSet parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ProductSet(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ProductSet parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ProductSet(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1320,6 +1446,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
similarity index 100%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
index 1976bf7ae..53760feec 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface ProductSetOrBuilder extends
+public interface ProductSetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -28,34 +49,41 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -63,11 +91,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -75,11 +107,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -87,11 +123,14 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -99,10 +138,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -110,10 +152,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
similarity index 70%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
index 1172fb053..9c0de4837 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Property.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; value_ = ""; @@ -26,16 +44,15 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private Property( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uint64Value_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 24: + { + uint64Value_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Property.class, com.google.cloud.vision.v1p3beta1.Property.Builder.class); + com.google.cloud.vision.v1p3beta1.Property.class, + com.google.cloud.vision.v1p3beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,11 +178,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -167,29 +194,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -200,11 +227,14 @@ public java.lang.String getValue() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -213,6 +243,7 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +281,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,19 +291,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.Property other = (com.google.cloud.vision.v1p3beta1.Property) obj; + com.google.cloud.vision.v1p3beta1.Property other = + (com.google.cloud.vision.v1p3beta1.Property) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getUint64Value() - != other.getUint64Value()) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (getUint64Value() != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,125 +318,133 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Property) com.google.cloud.vision.v1p3beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Property.class, com.google.cloud.vision.v1p3beta1.Property.Builder.class); + com.google.cloud.vision.v1p3beta1.Property.class, + com.google.cloud.vision.v1p3beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Property.newBuilder() @@ -417,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_Property_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p3beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Property buildPartial() { - com.google.cloud.vision.v1p3beta1.Property result = new com.google.cloud.vision.v1p3beta1.Property(this); + com.google.cloud.vision.v1p3beta1.Property result = + new com.google.cloud.vision.v1p3beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -473,38 +508,39 @@ public com.google.cloud.vision.v1p3beta1.Property buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Property)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Property) other); } else { super.mergeFrom(other); return this; @@ -555,18 +591,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,20 +613,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -596,54 +635,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -651,18 +697,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -671,20 +719,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -692,66 +741,76 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_ ; + private long uint64Value_; /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -759,37 +818,43 @@ public long getUint64Value() { return uint64Value_; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Property) private static final com.google.cloud.vision.v1p3beta1.Property DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Property(); } @@ -813,16 +878,16 @@ public static com.google.cloud.vision.v1p3beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java index 928b9afa8..8c362df56 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/PropertyOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ long getUint64Value(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java index 6f68eac1a..29f84c0df 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.ReferenceImage}
  */
-public final class ReferenceImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.ReferenceImage)
     ReferenceImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -28,16 +46,15 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,34 +74,39 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingPolys_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              uri_ = s;
+              break;
             }
-            boundingPolys_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingPolys_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              boundingPolys_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +114,7 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -102,22 +123,27 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.ReferenceImage.class, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
+            com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -126,6 +152,7 @@ private ReferenceImage(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -134,14 +161,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -150,16 +178,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,12 +197,15 @@ public java.lang.String getName() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -184,30 +214,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -218,6 +248,8 @@ public java.lang.String getUri() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -228,13 +260,17 @@ public java.lang.String getUri() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -245,14 +281,18 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -263,13 +303,17 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -280,13 +324,17 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -297,7 +345,9 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( @@ -306,6 +356,7 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,8 +368,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -344,8 +394,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,19 +404,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.ReferenceImage other = (com.google.cloud.vision.v1p3beta1.ReferenceImage) obj; + com.google.cloud.vision.v1p3beta1.ReferenceImage other = + (com.google.cloud.vision.v1p3beta1.ReferenceImage) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getBoundingPolysList() - .equals(other.getBoundingPolysList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,97 +439,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -490,21 +544,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.ReferenceImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.ReferenceImage)
       com.google.cloud.vision.v1p3beta1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.ReferenceImage.class, com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1p3beta1.ReferenceImage.class,
+              com.google.cloud.vision.v1p3beta1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.ReferenceImage.newBuilder()
@@ -512,17 +568,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -540,9 +596,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p3beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -561,7 +617,8 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1p3beta1.ReferenceImage result = new com.google.cloud.vision.v1p3beta1.ReferenceImage(this);
+      com.google.cloud.vision.v1p3beta1.ReferenceImage result =
+          new com.google.cloud.vision.v1p3beta1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -582,38 +639,39 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.ReferenceImage)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.ReferenceImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -621,7 +679,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ReferenceImage other) {
-      if (other == com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.ReferenceImage.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -648,9 +707,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.ReferenceImage other)
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingPolysFieldBuilder() : null;
+            boundingPolysBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingPolysFieldBuilder()
+                    : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -684,10 +744,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -696,13 +759,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -711,6 +774,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -719,15 +784,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -735,6 +799,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -743,20 +809,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -765,15 +833,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -782,16 +853,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -799,19 +870,21 @@ public Builder setNameBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -820,21 +893,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -842,75 +916,89 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = new java.util.ArrayList(boundingPolys_); + boundingPolys_ = + new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingPolysBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingPolysBuilder_; /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -921,7 +1009,9 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -931,6 +1021,8 @@ public java.util.List getBoundin } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -941,7 +1033,9 @@ public java.util.List getBoundin
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -951,6 +1045,8 @@ public int getBoundingPolysCount() { } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -961,7 +1057,9 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -971,6 +1069,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -981,7 +1081,9 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly value) { @@ -998,6 +1100,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1008,7 +1112,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1022,6 +1128,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1032,7 +1140,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1048,6 +1158,8 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly v return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1058,7 +1170,9 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p3beta1.BoundingPoly v
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly value) { @@ -1075,6 +1189,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1085,7 +1201,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1099,6 +1217,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1109,7 +1229,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder builderForValue) { @@ -1123,6 +1245,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1133,14 +1257,15 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1148,6 +1273,8 @@ public Builder addAllBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1158,7 +1285,9 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1171,6 +1300,8 @@ public Builder clearBoundingPolys() { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1181,7 +1312,9 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1194,6 +1327,8 @@ public Builder removeBoundingPolys(int index) { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1204,13 +1339,17 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolysBuilder( int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1221,16 +1360,21 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); } else { + return boundingPolys_.get(index); + } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1241,10 +1385,12 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1252,6 +1398,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1262,13 +1410,17 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1279,14 +1431,18 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBuilder( int index) { - return getBoundingPolysFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference image.
      * If this field is empty, the system will try to detect regions of
@@ -1297,18 +1453,26 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1317,9 +1481,9 @@ public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder addBoundingPolysBu } return boundingPolysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ReferenceImage) private static final com.google.cloud.vision.v1p3beta1.ReferenceImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.ReferenceImage(); } @@ -1343,16 +1507,16 @@ public static com.google.cloud.vision.v1p3beta1.ReferenceImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java index c75a5c384..fb1623354 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; -public interface ReferenceImageOrBuilder extends +public interface ReferenceImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -16,10 +34,13 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -28,34 +49,41 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -66,11 +94,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getBoundingPolysList(); + java.util.List getBoundingPolysList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -81,10 +112,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingPolys(int index); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -95,10 +130,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getBoundingPolysCount(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -109,11 +148,15 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference image.
    * If this field is empty, the system will try to detect regions of
@@ -124,8 +167,9 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p3beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java similarity index 63% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java index 97e79fa4e..18066636f 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +45,15 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +72,27 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +100,43 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +145,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,13 +182,18 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -168,31 +202,33 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be removed from this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -201,6 +237,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +279,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other = + (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,134 +310,145 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.Builder.class); } - // Construct using com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +460,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + .getDefaultInstance(); } @java.lang.Override @@ -435,7 +483,8 @@ public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buil @java.lang.Override public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -446,46 +495,51 @@ public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest)other); + return mergeFrom( + (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +567,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +581,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +607,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,60 +633,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -631,20 +707,24 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -653,22 +733,25 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -676,67 +759,80 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,30 +842,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest(); } - public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,9 +879,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..1bde24650 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/product_search_service.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface RemoveProductFromProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java similarity index 76% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java index f53de0cb3..ffdd97732 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -31,16 +49,15 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,43 +76,48 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            adult_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              adult_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spoof_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              spoof_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            medical_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              medical_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            violence_ = rawValue;
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
+              violence_ = rawValue;
+              break;
+            }
+          case 72:
+            {
+              int rawValue = input.readEnum();
 
-            racy_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              racy_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,29 +125,33 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class,
+            com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
+   *
+   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -133,12 +159,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -146,17 +176,22 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The adult. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -164,12 +199,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -177,71 +216,94 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The spoof. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The medical. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The violence. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -250,12 +312,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -264,15 +330,19 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The racy. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -311,24 +380,19 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p3beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,12 +402,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other = + (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -377,96 +442,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -475,21 +548,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p3beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.class,
+              com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.newBuilder()
@@ -497,16 +572,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +619,8 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation result =
+          new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -559,38 +634,39 @@ public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation.getDefaultInstance())
+        return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -633,7 +710,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -645,6 +723,8 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
+     *
+     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -652,12 +732,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -665,16 +749,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -682,15 +769,19 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -698,6 +789,7 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @param value The adult to set. * @return This builder for chaining. */ @@ -705,12 +797,14 @@ public Builder setAdult(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -718,10 +812,11 @@ public Builder setAdult(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -729,6 +824,8 @@ public Builder clearAdult() { private int spoof_ = 0; /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -736,12 +833,16 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -749,16 +850,19 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -766,15 +870,19 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -782,6 +890,7 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @param value The spoof to set. * @return This builder for chaining. */ @@ -789,12 +898,14 @@ public Builder setSpoof(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -802,10 +913,11 @@ public Builder setSpoof(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -813,51 +925,65 @@ public Builder clearSpoof() { private int medical_ = 0; /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @param value The medical to set. * @return This builder for chaining. */ @@ -865,21 +991,24 @@ public Builder setMedical(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -887,51 +1016,65 @@ public Builder clearMedical() { private int violence_ = 0; /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @param value The violence to set. * @return This builder for chaining. */ @@ -939,21 +1082,24 @@ public Builder setViolence(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -961,6 +1107,8 @@ public Builder clearViolence() { private int racy_ = 0; /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -969,12 +1117,16 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -983,16 +1135,19 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1001,15 +1156,19 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.Likelihood result = com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p3beta1.Likelihood result = + com.google.cloud.vision.v1p3beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p3beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1018,6 +1177,7 @@ public com.google.cloud.vision.v1p3beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @param value The racy to set. * @return This builder for chaining. */ @@ -1025,12 +1185,14 @@ public Builder setRacy(com.google.cloud.vision.v1p3beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1039,17 +1201,18 @@ public Builder setRacy(com.google.cloud.vision.v1p3beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation(); } @@ -1073,16 +1236,16 @@ public static com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java index 0f2e34f12..5380d3c63 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SafeSearchAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface SafeSearchAnnotationOrBuilder extends +public interface SafeSearchAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -15,10 +33,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -26,11 +47,14 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood adult = 1; + * * @return The adult. */ com.google.cloud.vision.v1p3beta1.Likelihood getAdult(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -38,10 +62,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -49,49 +76,64 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood spoof = 2; + * * @return The spoof. */ com.google.cloud.vision.v1p3beta1.Likelihood getSpoof(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood medical = 3; + * * @return The medical. */ com.google.cloud.vision.v1p3beta1.Likelihood getMedical(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood violence = 4; + * * @return The violence. */ com.google.cloud.vision.v1p3beta1.Likelihood getViolence(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -100,10 +142,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -112,6 +157,7 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.Likelihood racy = 9; + * * @return The racy. */ com.google.cloud.vision.v1p3beta1.Likelihood getRacy(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java similarity index 75% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java index 4f88977e0..9f047492d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Symbol.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Symbol} */ -public final class Symbol extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symbol extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Symbol) SymbolOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,50 +70,59 @@ private Symbol( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + text_ = s; + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - text_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,34 +130,39 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Symbol.class, com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p3beta1.Symbol.class, + com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -139,18 +170,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -158,13 +196,16 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -184,6 +225,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -191,6 +233,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -210,13 +254,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -245,11 +294,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -258,29 +310,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -291,11 +343,14 @@ public java.lang.String getText() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -304,6 +359,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -339,19 +394,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +413,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Symbol)) { return super.equals(obj); @@ -370,19 +422,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,125 +453,133 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Symbol} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Symbol) com.google.cloud.vision.v1p3beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Symbol.class, com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p3beta1.Symbol.class, + com.google.cloud.vision.v1p3beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Symbol.newBuilder() @@ -531,16 +587,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; } @java.lang.Override @@ -585,7 +640,8 @@ public com.google.cloud.vision.v1p3beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p3beta1.Symbol result = new com.google.cloud.vision.v1p3beta1.Symbol(this); + com.google.cloud.vision.v1p3beta1.Symbol result = + new com.google.cloud.vision.v1p3beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -606,38 +662,39 @@ public com.google.cloud.vision.v1p3beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Symbol)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Symbol) other); } else { super.mergeFrom(other); return this; @@ -690,41 +747,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -738,6 +809,8 @@ public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -756,17 +829,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -778,6 +856,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -796,33 +876,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -830,14 +919,17 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -845,8 +937,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -866,12 +963,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -891,16 +991,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -935,6 +1040,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -967,6 +1074,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,7 +1100,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1003,6 +1114,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1035,6 +1148,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1056,11 +1171,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1085,11 +1202,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,14 +1231,17 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1126,18 +1249,20 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
+     *
+     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1146,20 +1271,21 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -1167,66 +1293,76 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1234,37 +1370,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Symbol) private static final com.google.cloud.vision.v1p3beta1.Symbol DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Symbol(); } @@ -1288,16 +1430,16 @@ public static com.google.cloud.vision.v1p3beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java similarity index 83% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java index 7dae2af84..29e04c799 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/SymbolOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface SymbolOrBuilder extends +public interface SymbolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -35,6 +59,8 @@ public interface SymbolOrBuilder extends com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,31 +136,39 @@ public interface SymbolOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java similarity index 70% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java index ca173114d..8e8e9e40c 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation}
  */
-public final class TextAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -33,16 +51,15 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,28 +79,31 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p3beta1.Page.parser(), extensionRegistry));
+              break;
             }
-            pages_.add(
-                input.readMessage(com.google.cloud.vision.v1p3beta1.Page.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            text_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              text_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +111,7 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -101,24 +120,30 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.TextAnnotation.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.class,
+            com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder extends
+  public interface DetectedLanguageOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -126,10 +151,13 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -137,53 +165,58 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); } /** + * + * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,24 +235,25 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,29 +261,33 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -257,6 +295,7 @@ private DetectedLanguage(
      * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -265,14 +304,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -280,16 +320,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -300,11 +339,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -313,6 +355,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -345,8 +387,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,18 +397,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,95 +422,102 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -480,44 +527,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using + // com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,14 +581,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance(); } @java.lang.Override @@ -550,7 +604,8 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage result = + new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -561,46 +616,53 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage)other); + return mergeFrom( + (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other) { - if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage other) { + if (other + == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -627,7 +689,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,6 +703,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -646,13 +712,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -661,6 +727,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -668,15 +736,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -684,6 +751,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -691,20 +760,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,15 +783,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -728,28 +802,31 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -757,34 +834,41 @@ public float getConfidence() { return confidence_; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -797,30 +881,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,77 +918,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DetectedBreakOrBuilder extends + public interface DetectedBreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ boolean getIsPrefix(); } /** + * + * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -921,24 +1019,25 @@ private DetectedBreak( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { + case 8: + { + int rawValue = input.readEnum(); - isPrefix_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 16: + { + isPrefix_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -946,36 +1045,41 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); } /** + * + * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown break label type.
        * 
@@ -984,6 +1088,8 @@ public enum BreakType */ UNKNOWN(0), /** + * + * *
        * Regular space.
        * 
@@ -992,6 +1098,8 @@ public enum BreakType */ SPACE(1), /** + * + * *
        * Sure space (very wide).
        * 
@@ -1000,6 +1108,8 @@ public enum BreakType */ SURE_SPACE(2), /** + * + * *
        * Line-wrapping break.
        * 
@@ -1008,6 +1118,8 @@ public enum BreakType */ EOL_SURE_SPACE(3), /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1017,6 +1129,8 @@ public enum BreakType
        */
       HYPHEN(4),
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1028,6 +1142,8 @@ public enum BreakType ; /** + * + * *
        * Unknown break label type.
        * 
@@ -1036,6 +1152,8 @@ public enum BreakType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
        * Regular space.
        * 
@@ -1044,6 +1162,8 @@ public enum BreakType */ public static final int SPACE_VALUE = 1; /** + * + * *
        * Sure space (very wide).
        * 
@@ -1052,6 +1172,8 @@ public enum BreakType */ public static final int SURE_SPACE_VALUE = 2; /** + * + * *
        * Line-wrapping break.
        * 
@@ -1060,6 +1182,8 @@ public enum BreakType */ public static final int EOL_SURE_SPACE_VALUE = 3; /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1069,6 +1193,8 @@ public enum BreakType
        */
       public static final int HYPHEN_VALUE = 4;
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1077,7 +1203,6 @@ public enum BreakType */ public static final int LINE_BREAK_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1102,52 +1227,57 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return SPACE; - case 2: return SURE_SPACE; - case 3: return EOL_SURE_SPACE; - case 4: return HYPHEN; - case 5: return LINE_BREAK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return SPACE; + case 2: + return SURE_SPACE; + case 3: + return EOL_SURE_SPACE; + case 4: + return HYPHEN; + case 5: + return LINE_BREAK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BreakType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDescriptor() + .getEnumTypes() + .get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1167,38 +1297,52 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1207,6 +1351,7 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1218,9 +1363,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1235,13 +1381,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1251,16 +1397,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() - != other.getIsPrefix()) return false; + if (getIsPrefix() != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1275,95 +1421,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1373,27 +1525,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1401,16 +1558,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1422,13 +1578,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1443,7 +1600,8 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak result = + new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1454,46 +1612,52 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak other) { + if (other + == com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1519,7 +1683,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1531,85 +1697,113 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_ ; + private boolean isPrefix_; /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1617,34 +1811,41 @@ public boolean getIsPrefix() { return isPrefix_; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1657,30 +1858,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1692,119 +1895,153 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextPropertyOrBuilder extends + public interface TextPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ int getDetectedLanguagesCount(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder(); } /** + * + * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1824,35 +2061,45 @@ private TextProperty( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage>(); + mutable_bitField0_ |= 0x00000001; + } + detectedLanguages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.parser(), + extensionRegistry)); + break; } - detectedLanguages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); + case 18: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder subBuilder = + null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); + } + detectedBreak_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); + } + + break; } - detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1860,8 +2107,7 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -1870,87 +2116,117 @@ private TextProperty( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List detectedLanguages_; + private java.util.List + detectedLanguages_; /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { return detectedLanguages_.get(index); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detectedBreak_; /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -1958,18 +2234,25 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1977,11 +2260,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1993,8 +2278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2011,12 +2295,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, detectedLanguages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2026,19 +2309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList() - .equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak() - .equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2065,87 +2347,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2155,27 +2444,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder() @@ -2183,17 +2477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2213,13 +2507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2234,7 +2529,8 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty result = + new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2258,46 +2554,52 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty other) { + if (other + == com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance()) + return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2316,9 +2618,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPr detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetectedLanguagesFieldBuilder() : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetectedLanguagesFieldBuilder() + : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2346,7 +2649,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2355,28 +2660,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List detectedLanguages_ = - java.util.Collections.emptyList(); + private java.util.List + detectedLanguages_ = java.util.Collections.emptyList(); + private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage>( + detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + detectedLanguagesBuilder_; /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2384,11 +2702,15 @@ public java.util.List * A list of detected languages together with confidence. *
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2398,13 +2720,18 @@ public int getDetectedLanguagesCount() { } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2412,11 +2739,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage getDete } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { @@ -2433,14 +2764,20 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( - int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2451,13 +2788,18 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public Builder addDetectedLanguages(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2471,11 +2813,15 @@ public Builder addDetectedLanguages(com.google.cloud.vision.v1p3beta1.TextAnnota return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage value) { @@ -2492,14 +2838,19 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2510,14 +2861,20 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - int index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2528,18 +2885,23 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addAllDetectedLanguages( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage> + values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2547,11 +2909,15 @@ public Builder addAllDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2564,11 +2930,15 @@ public Builder clearDetectedLanguages() { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2581,39 +2951,53 @@ public Builder removeDetectedLanguages(int index) { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + getDetectedLanguagesBuilder(int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); } else { + return detectedLanguages_.get(index); + } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2621,45 +3005,70 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilde } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( - int index) { - return getDetectedLanguagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder(int index) { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder> + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2671,41 +3080,58 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage.Builder private com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> + detectedBreakBuilder_; /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return The detectedBreak. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder setDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2719,11 +3145,14 @@ public Builder setDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotation return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder setDetectedBreak( com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -2737,17 +3166,24 @@ public Builder setDetectedBreak( return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder mergeDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak( + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.newBuilder( + detectedBreak_) + .mergeFrom(value) + .buildPartial(); } else { detectedBreak_ = value; } @@ -2759,11 +3195,14 @@ public Builder mergeDetectedBreak(com.google.cloud.vision.v1p3beta1.TextAnnotati return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -2777,52 +3216,68 @@ public Builder clearDetectedBreak() { return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder + getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), - getParentForChildren(), - isClean()); + detectedBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), getParentForChildren(), isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2835,30 +3290,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstance() { + public static com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2870,15 +3327,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2890,6 +3349,8 @@ public java.util.List getPagesList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2897,11 +3358,13 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2913,6 +3376,8 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2924,6 +3389,8 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2931,19 +3398,21 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ @java.lang.Override @@ -2952,29 +3421,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -2983,6 +3452,7 @@ public java.lang.String getText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2994,8 +3464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3012,8 +3481,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3026,17 +3494,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextAnnotation other = (com.google.cloud.vision.v1p3beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p3beta1.TextAnnotation other = + (com.google.cloud.vision.v1p3beta1.TextAnnotation) obj; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getText() - .equals(other.getText())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getText().equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3059,97 +3526,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3163,21 +3637,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.TextAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextAnnotation)
       com.google.cloud.vision.v1p3beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.TextAnnotation.class, com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p3beta1.TextAnnotation.class,
+              com.google.cloud.vision.v1p3beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.TextAnnotation.newBuilder()
@@ -3185,17 +3661,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3211,9 +3687,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3232,7 +3708,8 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p3beta1.TextAnnotation result = new com.google.cloud.vision.v1p3beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p3beta1.TextAnnotation result =
+          new com.google.cloud.vision.v1p3beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3252,38 +3729,39 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3291,7 +3769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.TextAnnotation.getDefaultInstance())
+        return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3310,9 +3789,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3350,21 +3830,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder> pagesBuilder_;
+            com.google.cloud.vision.v1p3beta1.Page,
+            com.google.cloud.vision.v1p3beta1.Page.Builder,
+            com.google.cloud.vision.v1p3beta1.PageOrBuilder>
+        pagesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3379,6 +3866,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3393,6 +3882,8 @@ public int getPagesCount() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3407,14 +3898,15 @@ public com.google.cloud.vision.v1p3beta1.Page getPages(int index) { } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1p3beta1.Page value) { + public Builder setPages(int index, com.google.cloud.vision.v1p3beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3428,6 +3920,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3446,6 +3940,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3466,14 +3962,15 @@ public Builder addPages(com.google.cloud.vision.v1p3beta1.Page value) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1p3beta1.Page value) { + public Builder addPages(int index, com.google.cloud.vision.v1p3beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3487,14 +3984,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public Builder addPages( - com.google.cloud.vision.v1p3beta1.Page.Builder builderForValue) { + public Builder addPages(com.google.cloud.vision.v1p3beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3505,6 +4003,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3523,6 +4023,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3533,8 +4035,7 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3542,6 +4043,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3559,6 +4062,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3576,39 +4081,44 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.Page.Builder getPagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -3616,6 +4126,8 @@ public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3623,42 +4135,47 @@ public com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p3beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder> + com.google.cloud.vision.v1p3beta1.Page, + com.google.cloud.vision.v1p3beta1.Page.Builder, + com.google.cloud.vision.v1p3beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Page, com.google.cloud.vision.v1p3beta1.Page.Builder, com.google.cloud.vision.v1p3beta1.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Page, + com.google.cloud.vision.v1p3beta1.Page.Builder, + com.google.cloud.vision.v1p3beta1.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; @@ -3666,18 +4183,20 @@ public com.google.cloud.vision.v1p3beta1.Page.Builder addPagesBuilder( private java.lang.Object text_ = ""; /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -3686,20 +4205,21 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -3707,61 +4227,68 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3771,12 +4298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation) private static final com.google.cloud.vision.v1p3beta1.TextAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextAnnotation(); } @@ -3785,16 +4312,16 @@ public static com.google.cloud.vision.v1p3beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3809,6 +4336,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java index b2692137b..bcda4bb8d 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface TextAnnotationOrBuilder extends +public interface TextAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -25,6 +44,8 @@ public interface TextAnnotationOrBuilder extends */ com.google.cloud.vision.v1p3beta1.Page getPages(int index); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -33,41 +54,48 @@ public interface TextAnnotationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p3beta1.Page pages = 1; */ - com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); } diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java new file mode 100644 index 000000000..91d00243a --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java @@ -0,0 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/text_annotation.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p3beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p3b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p3beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p3beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p3beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p3beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p3beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p3beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p3beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p3beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p3beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p3b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p3beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p3beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p3beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p3beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p3beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p3beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p3beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p3beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p3beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" + + "\n!com.google.cloud.vision.v1p3beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p3beta1" + + ";vision\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor, + new java.lang.String[] { + "Pages", "Text", + }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { + "Type", "IsPrefix", + }); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { + "DetectedLanguages", "DetectedBreak", + }); + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p3beta1_Page_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Page_descriptor, + new java.lang.String[] { + "Property", "Width", "Height", "Blocks", "Confidence", + }); + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p3beta1_Block_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Block_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", + }); + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p3beta1_Paragraph_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Paragraph_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Words", "Confidence", + }); + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Word_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Symbols", "Confidence", + }); + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p3beta1_Symbol_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_Symbol_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Text", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java similarity index 73% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java index 040102d98..cd18a9ab8 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextDetectionParams() {
     advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72: {
-
-            enableTextDetectionConfidenceScore_ = input.readBool();
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              enableTextDetectionConfidenceScore_ = input.readBool();
+              break;
             }
-            advancedOcrOptions_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              advancedOcrOptions_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private TextDetectionParams(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.TextDetectionParams.class, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p3beta1.TextDetectionParams.class,
+            com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
+   *
+   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -116,6 +138,7 @@ private TextDetectionParams(
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -126,34 +149,42 @@ public boolean getEnableTextDetectionConfidenceScore() { public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList advancedOcrOptions_; /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_; } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -161,20 +192,23 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } @@ -204,8 +237,9 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableTextDetectionConfidenceScore_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, enableTextDetectionConfidenceScore_); } { int dataSize = 0; @@ -223,17 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.TextDetectionParams other = (com.google.cloud.vision.v1p3beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p3beta1.TextDetectionParams other = + (com.google.cloud.vision.v1p3beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() - != other.getEnableTextDetectionConfidenceScore()) return false; - if (!getAdvancedOcrOptionsList() - .equals(other.getAdvancedOcrOptionsList())) return false; + if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) + return false; + if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,8 +280,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableTextDetectionConfidenceScore()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); if (getAdvancedOcrOptionsCount() > 0) { hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); @@ -258,96 +293,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.TextDetectionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -355,21 +398,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.TextDetectionParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.TextDetectionParams)
       com.google.cloud.vision.v1p3beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.TextDetectionParams.class, com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p3beta1.TextDetectionParams.class,
+              com.google.cloud.vision.v1p3beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.TextDetectionParams.newBuilder()
@@ -377,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +463,8 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p3beta1.TextDetectionParams result = new com.google.cloud.vision.v1p3beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p3beta1.TextDetectionParams result =
+          new com.google.cloud.vision.v1p3beta1.TextDetectionParams(this);
       int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -435,38 +480,39 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextDetectionParams)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.TextDetectionParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,7 +520,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p3beta1.TextDetectionParams.getDefaultInstance())
+        return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
@@ -507,7 +554,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p3beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p3beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -516,10 +564,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_ ;
+    private boolean enableTextDetectionConfidenceScore_;
     /**
+     *
+     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -527,6 +578,7 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -534,6 +586,8 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -541,16 +595,19 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -558,51 +615,62 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList advancedOcrOptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_.getUnmodifiableView(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -610,80 +678,90 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index to set the value at. * @param value The advancedOcrOptions to set. * @return This builder for chaining. */ - public Builder setAdvancedOcrOptions( - int index, java.lang.String value) { + public Builder setAdvancedOcrOptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptions( - java.lang.String value) { + public Builder addAdvancedOcrOptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param values The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAllAdvancedOcrOptions( - java.lang.Iterable values) { + public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) { ensureAdvancedOcrOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, advancedOcrOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return This builder for chaining. */ public Builder clearAdvancedOcrOptions() { @@ -693,28 +771,30 @@ public Builder clearAdvancedOcrOptions() { return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The bytes of the advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p3beta1.TextDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.TextDetectionParams(); } @@ -738,16 +818,16 @@ public static com.google.cloud.vision.v1p3beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java index 3b8eedebf..df5e59803 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; -public interface TextDetectionParamsOrBuilder extends +public interface TextDetectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.TextDetectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -15,48 +33,59 @@ public interface TextDetectionParamsOrBuilder extends
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ boolean getEnableTextDetectionConfidenceScore(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - java.util.List - getAdvancedOcrOptionsList(); + java.util.List getAdvancedOcrOptionsList(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ int getAdvancedOcrOptionsCount(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ java.lang.String getAdvancedOcrOptions(int index); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index); + com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index); } diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java similarity index 68% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java index 180b0d570..9b14084d6 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/product_search_service.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductRequest} */ -public final class UpdateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.UpdateProductRequest) UpdateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductRequest() { - } + + private UpdateProductRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p3beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.Product product_; /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -128,25 +156,36 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { @@ -156,6 +195,8 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -165,6 +206,7 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -172,6 +214,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -181,6 +225,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -188,6 +233,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -204,6 +251,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,8 +263,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -233,12 +280,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -248,22 +293,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.UpdateProductRequest other = (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1p3beta1.UpdateProductRequest other =
+        (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct()
-          .equals(other.getProduct())) return false;
+      if (!getProduct().equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -290,117 +334,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.UpdateProductRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.UpdateProductRequest) com.google.cloud.vision.v1p3beta1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.class, + com.google.cloud.vision.v1p3beta1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.UpdateProductRequest.newBuilder() @@ -408,16 +462,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -458,7 +511,8 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.UpdateProductRequest result = new com.google.cloud.vision.v1p3beta1.UpdateProductRequest(this); + com.google.cloud.vision.v1p3beta1.UpdateProductRequest result = + new com.google.cloud.vision.v1p3beta1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -477,38 +531,39 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -516,7 +571,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.UpdateProductRequest.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -542,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.UpdateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,42 +611,61 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1p3beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { @@ -605,15 +681,18 @@ public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p3beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -624,18 +703,24 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -647,12 +732,16 @@ public Builder mergeProduct(com.google.cloud.vision.v1p3beta1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -666,51 +755,67 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p3beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder> + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.Product, com.google.cloud.vision.v1p3beta1.Product.Builder, com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.Product, + com.google.cloud.vision.v1p3beta1.Product.Builder, + com.google.cloud.vision.v1p3beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -718,8 +823,13 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -729,12 +839,15 @@ public com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -744,16 +857,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -778,6 +896,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -788,8 +908,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -800,6 +919,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -814,7 +935,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -826,6 +947,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -848,6 +971,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -859,11 +984,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -878,11 +1005,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -894,21 +1024,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +1051,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1p3beta1.UpdateProductRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.UpdateProductRequest();
   }
@@ -932,16 +1065,16 @@ public static com.google.cloud.vision.v1p3beta1.UpdateProductRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -956,6 +1089,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
index a7115ee34..38ec96dc9 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductRequestOrBuilder.java
@@ -1,43 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface UpdateProductRequestOrBuilder extends
+public interface UpdateProductRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1p3beta1.Product getProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p3beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -47,10 +79,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -60,10 +95,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
similarity index 68%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
index 3488a6498..657ffe085 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductSetRequest() { - } + + private UpdateProductSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p3beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -161,6 +202,7 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -168,6 +210,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -176,6 +220,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -183,6 +228,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -198,6 +245,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,8 +257,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -227,12 +274,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -242,22 +287,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other = (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other =
+        (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet()
-          .equals(other.getProductSet())) return false;
+      if (!getProductSet().equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -284,117 +328,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.UpdateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) com.google.cloud.vision.v1p3beta1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.newBuilder() @@ -402,16 +456,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p3beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -452,7 +505,8 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest result = new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest result = + new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -471,38 +525,39 @@ public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest.getDefaultInstance()) + return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -536,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,39 +605,58 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p3beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -596,11 +672,15 @@ public Builder setProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p3beta1.ProductSet.Builder builderForValue) { @@ -614,17 +694,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -636,11 +722,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p3beta1.ProductSet valu return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -654,48 +744,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p3beta1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.ProductSet, com.google.cloud.vision.v1p3beta1.ProductSet.Builder, com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.ProductSet, + com.google.cloud.vision.v1p3beta1.ProductSet.Builder, + com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -703,8 +809,13 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -713,12 +824,15 @@ public com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -727,16 +841,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -760,6 +879,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -769,8 +890,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -781,6 +901,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -794,7 +916,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -806,6 +928,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -827,6 +951,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -837,11 +963,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -855,11 +983,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -870,21 +1001,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -894,12 +1028,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest();
   }
@@ -908,16 +1042,16 @@ public static com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductSetRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductSetRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductSetRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductSetRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -932,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
index 9ee7743a6..c0ee40826 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/UpdateProductSetRequestOrBuilder.java
@@ -1,40 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
-public interface UpdateProductSetRequestOrBuilder extends
+public interface UpdateProductSetRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1p3beta1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p3beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -43,10 +75,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -55,10 +90,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
similarity index 69%
rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
index 45b59ccab..102603797 100644
--- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Vertex.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p3beta1/geometry.proto
 
 package com.google.cloud.vision.v1p3beta1;
 
 /**
+ *
+ *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p3beta1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p3beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p3beta1.Vertex.class, com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p3beta1.Vertex.class,
+            com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p3beta1.Vertex other = (com.google.cloud.vision.v1p3beta1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +223,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +328,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p3beta1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Vertex)
       com.google.cloud.vision.v1p3beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p3beta1.Vertex.class, com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p3beta1.Vertex.class,
+              com.google.cloud.vision.v1p3beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p3beta1.Vertex.newBuilder()
@@ -323,16 +352,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -344,9 +372,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p3beta1.GeometryProto.internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p3beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p3beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -365,7 +393,8 @@ public com.google.cloud.vision.v1p3beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p3beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p3beta1.Vertex result = new com.google.cloud.vision.v1p3beta1.Vertex(this);
+      com.google.cloud.vision.v1p3beta1.Vertex result =
+          new com.google.cloud.vision.v1p3beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -376,38 +405,39 @@ public com.google.cloud.vision.v1p3beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p3beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p3beta1.Vertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p3beta1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +481,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +498,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +550,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Vertex) private static final com.google.cloud.vision.v1p3beta1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Vertex(); } @@ -562,16 +610,16 @@ public static com.google.cloud.vision.v1p3beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java new file mode 100644 index 000000000..313cd0102 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/VertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/geometry.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java similarity index 71% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java index 1f4bd5944..9ae98d582 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/web_detection.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection} */ -public final class WebDetection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection) WebDetectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,67 +76,97 @@ private WebDetection( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity>(); + mutable_bitField0_ |= 0x00000001; + } + webEntities_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.parser(), + extensionRegistry)); + break; } - webEntities_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000004; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage>(); + mutable_bitField0_ |= 0x00000008; + } + pagesWithMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.parser(), + extensionRegistry)); + break; } - pagesWithMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000010; + } + visuallySimilarImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - visuallySimilarImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 66: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel>(); + mutable_bitField0_ |= 0x00000020; + } + bestGuessLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.parser(), + extensionRegistry)); + break; } - bestGuessLabels_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,8 +174,7 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -152,90 +198,110 @@ private WebDetection( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.class, com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.class, + com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder extends + public interface WebEntityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ java.lang.String getEntityId(); /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - com.google.protobuf.ByteString - getEntityIdBytes(); + com.google.protobuf.ByteString getEntityIdBytes(); /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebEntity() { entityId_ = ""; description_ = ""; @@ -243,16 +309,15 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -271,30 +336,32 @@ private WebEntity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -302,34 +369,39 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ @java.lang.Override @@ -338,29 +410,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -371,12 +443,15 @@ public java.lang.String getEntityId() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -387,11 +462,14 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -400,29 +478,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -431,6 +509,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +521,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -466,8 +544,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -480,20 +557,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) obj; - if (!getEntityId() - .equals(other.getEntityId())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,8 +583,7 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -518,87 +592,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,27 +689,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebEntity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.newBuilder() @@ -636,16 +722,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +744,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -680,7 +765,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity result = + new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -692,38 +778,41 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) other); } else { super.mergeFrom(other); return this; @@ -731,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()) + return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -762,7 +852,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -774,18 +865,20 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -794,20 +887,21 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -815,67 +909,77 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId( - java.lang.String value) { + public Builder setEntityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -883,32 +987,38 @@ public float getScore() { return score_; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -916,18 +1026,20 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,20 +1048,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -957,58 +1070,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity(); } @@ -1035,16 +1156,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,75 +1180,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebImageOrBuilder extends + public interface WebImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); } /** + * + * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebImage} */ - public static final class WebImage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,24 +1277,25 @@ private WebImage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,34 +1303,39 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -1207,29 +1344,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1240,11 +1377,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1253,6 +1393,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1264,8 +1405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1285,8 +1425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1296,18 +1435,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,95 +1460,101 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,27 +1564,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebImage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebImage) com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.newBuilder() @@ -1448,16 +1597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1469,9 +1617,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1490,7 +1638,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage result = + new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1501,38 +1650,41 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebImage)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) other); } else { super.mergeFrom(other); return this; @@ -1540,7 +1692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1567,7 +1720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1579,18 +1733,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1599,20 +1755,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1620,66 +1777,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1687,34 +1854,41 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebImage(); } @@ -1741,16 +1915,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,113 +1939,143 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebPageOrBuilder extends + public interface WebPageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ java.lang.String getPageTitle(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString - getPageTitleBytes(); + com.google.protobuf.ByteString getPageTitleBytes(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ int getFullMatchingImagesCount(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1879,11 +2083,15 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1891,10 +2099,14 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1902,10 +2114,14 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ int getPartialMatchingImagesCount(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1913,11 +2129,15 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1925,27 +2145,32 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); } /** + * + * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebPage} */ - public static final class WebPage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebPage() { url_ = ""; pageTitle_ = ""; @@ -1955,16 +2180,15 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1984,48 +2208,60 @@ private WebPage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageTitle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + pageTitle_ = s; + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000001; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2033,8 +2269,7 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2046,27 +2281,33 @@ private WebPage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -2075,29 +2316,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2108,11 +2349,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2123,11 +2367,14 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ @java.lang.Override @@ -2136,29 +2383,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2167,73 +2414,95 @@ public java.lang.String getPageTitle() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( + int index) { return fullMatchingImages_.get(index); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2241,13 +2510,18 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullM
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2255,14 +2529,19 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2270,13 +2549,17 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2284,13 +2567,18 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2298,15 +2586,18 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2318,8 +2609,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2348,19 +2638,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2370,24 +2660,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getPageTitle() - .equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2402,8 +2689,7 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2420,87 +2706,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2510,27 +2803,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebPage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebPage) com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.newBuilder() @@ -2538,18 +2836,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2575,9 +2873,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2596,7 +2894,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage result = + new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2627,38 +2926,41 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebPage)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; @@ -2666,7 +2968,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2696,9 +2999,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2722,9 +3026,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -2749,7 +3054,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2758,22 +3064,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object url_ = ""; /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -2782,20 +3091,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2803,66 +3113,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2870,30 +3190,36 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -2901,18 +3227,20 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -2921,20 +3249,21 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2942,80 +3271,98 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle( - java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3023,12 +3370,16 @@ public java.util.List g } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3038,14 +3389,19 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3053,12 +3409,16 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3075,15 +3435,20 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3094,14 +3459,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3115,12 +3485,16 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetect return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3137,12 +3511,16 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3156,15 +3534,20 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3175,19 +3558,23 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3195,12 +3582,16 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3213,12 +3604,16 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3231,42 +3626,56 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3274,48 +3683,70 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3325,19 +3756,27 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3345,9 +3784,12 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3355,6 +3797,8 @@ public java.util.List g } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3362,7 +3806,9 @@ public java.util.List g
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3372,6 +3818,8 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3379,9 +3827,12 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3389,6 +3840,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3396,7 +3849,9 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3413,6 +3868,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3420,10 +3877,13 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3434,6 +3894,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3441,9 +3903,12 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,6 +3922,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDet return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3464,7 +3931,9 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDet
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -3481,6 +3950,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3488,7 +3959,9 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3502,6 +3975,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3509,10 +3984,13 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -3523,6 +4001,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3530,14 +4010,16 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3545,6 +4027,8 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3552,7 +4036,9 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3565,6 +4051,8 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3572,7 +4060,9 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3585,6 +4075,8 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3592,13 +4084,17 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3606,16 +4102,21 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3623,10 +4124,13 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3634,6 +4138,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3641,13 +4147,19 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3655,14 +4167,20 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3670,18 +4188,26 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3690,6 +4216,7 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartia } return partialMatchingImagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3702,12 +4229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebPage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebPage(); } @@ -3716,16 +4243,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,34 +4267,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebLabelOrBuilder extends + public interface WebLabelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3775,10 +4309,13 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3786,27 +4323,30 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } /** + * + * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebLabel() { label_ = ""; languageCode_ = ""; @@ -3814,16 +4354,15 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3842,25 +4381,27 @@ private WebLabel( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3868,34 +4409,39 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ @java.lang.Override @@ -3904,29 +4450,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -3937,6 +4483,8 @@ public java.lang.String getLabel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3944,6 +4492,7 @@ public java.lang.String getLabel() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -3952,14 +4501,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3967,16 +4517,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3985,6 +4534,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3996,8 +4546,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4027,17 +4576,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) obj; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4059,87 +4607,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4149,27 +4704,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection.WebLabel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.newBuilder() @@ -4177,16 +4737,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4198,9 +4757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4219,7 +4778,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4230,38 +4790,41 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) other); } else { super.mergeFrom(other); return this; @@ -4269,7 +4832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4297,7 +4861,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4309,18 +4874,20 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4329,20 +4896,21 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4350,54 +4918,61 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4405,6 +4980,8 @@ public Builder setLabelBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4412,13 +4989,13 @@ public Builder setLabelBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4427,6 +5004,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4434,15 +5013,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4450,6 +5028,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4457,20 +5037,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4478,15 +5060,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4494,20 +5079,21 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4520,12 +5106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel(); } @@ -4534,16 +5120,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4558,12 +5144,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4571,10 +5158,13 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4582,11 +5172,13 @@ public java.util.List * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4598,6 +5190,8 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4609,6 +5203,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4622,321 +5218,424 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List pagesWithMatchingImages_; + private java.util.List + pagesWithMatchingImages_; /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { return pagesWithMatchingImages_.get(index); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List visuallySimilarImages_; + private java.util.List + visuallySimilarImages_; /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { return visuallySimilarImages_.get(index); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4948,8 +5647,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -4978,28 +5676,29 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, pagesWithMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, visuallySimilarImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5009,25 +5708,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetection other = (com.google.cloud.vision.v1p3beta1.WebDetection) obj; - - if (!getWebEntitiesList() - .equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList() - .equals(other.getPagesWithMatchingImagesList())) return false; - if (!getVisuallySimilarImagesList() - .equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList() - .equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p3beta1.WebDetection other = + (com.google.cloud.vision.v1p3beta1.WebDetection) obj; + + if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) + return false; + if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5068,118 +5763,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetection) com.google.cloud.vision.v1p3beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetection.class, com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetection.class, + com.google.cloud.vision.v1p3beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetection.newBuilder() @@ -5187,14 +5891,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5203,6 +5906,7 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5246,9 +5950,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; } @java.lang.Override @@ -5267,7 +5971,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetection result = new com.google.cloud.vision.v1p3beta1.WebDetection(this); + com.google.cloud.vision.v1p3beta1.WebDetection result = + new com.google.cloud.vision.v1p3beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5298,7 +6003,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5331,38 +6037,39 @@ public com.google.cloud.vision.v1p3beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetection) other); } else { super.mergeFrom(other); return this; @@ -5389,9 +6096,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebEntitiesFieldBuilder() : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebEntitiesFieldBuilder() + : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -5415,9 +6123,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -5441,9 +6150,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -5467,9 +6177,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPagesWithMatchingImagesFieldBuilder() : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPagesWithMatchingImagesFieldBuilder() + : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -5493,9 +6204,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVisuallySimilarImagesFieldBuilder() : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVisuallySimilarImagesFieldBuilder() + : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -5519,9 +6231,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBestGuessLabelsFieldBuilder() : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBestGuessLabelsFieldBuilder() + : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -5555,28 +6268,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(webEntities_); + webEntities_ = + new java.util.ArrayList( + webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> + webEntitiesBuilder_; /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -5584,6 +6307,8 @@ public java.util.List } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5598,6 +6323,8 @@ public int getWebEntitiesCount() { } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5612,6 +6339,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(i } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5633,6 +6362,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5640,7 +6371,8 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -5651,6 +6383,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5671,6 +6405,8 @@ public Builder addWebEntities(com.google.cloud.vision.v1p3beta1.WebDetection.Web return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5692,6 +6428,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5710,6 +6448,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5717,7 +6457,8 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -5728,6 +6469,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5735,11 +6478,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -5747,6 +6490,8 @@ public Builder addAllWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5764,6 +6509,8 @@ public Builder clearWebEntities() { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5781,6 +6528,8 @@ public Builder removeWebEntities(int index) { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5792,28 +6541,34 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder + getWebEntitiesOrBuilder(int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); } else { + return webEntities_.get(index); + } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -5821,17 +6576,23 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebE } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder + addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5840,56 +6601,72 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder addWebEn */ public com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + webEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -5897,12 +6674,15 @@ public java.util.List g } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -5912,14 +6692,18 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -5927,12 +6711,15 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -5949,15 +6736,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -5968,14 +6759,18 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5989,12 +6784,15 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetect return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6011,12 +6809,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6030,15 +6831,19 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6049,19 +6854,22 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6069,12 +6877,15 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6087,12 +6898,15 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6105,42 +6919,53 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6148,48 +6973,65 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6199,28 +7041,39 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6228,13 +7081,17 @@ public java.util.List g } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6244,15 +7101,20 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -6260,13 +7122,17 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6283,16 +7149,21 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -6303,15 +7174,20 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6325,13 +7201,17 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p3beta1.WebDet return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6348,13 +7228,17 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6368,16 +7252,21 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -6388,20 +7277,24 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -6409,13 +7302,17 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -6428,13 +7325,17 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6447,45 +7348,59 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6493,51 +7408,71 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6547,26 +7482,37 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addPartia return partialMatchingImagesBuilder_; } - private java.util.List pagesWithMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + pagesWithMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + new java.util.ArrayList( + pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> + pagesWithMatchingImagesBuilder_; /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -6574,11 +7520,15 @@ public java.util.List ge } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6588,13 +7538,18 @@ public int getPagesWithMatchingImagesCount() { } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -6602,11 +7557,15 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchi } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { @@ -6623,11 +7582,15 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6641,13 +7604,18 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6661,11 +7629,15 @@ public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p3beta1.WebD return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage value) { @@ -6682,11 +7654,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6700,11 +7676,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6718,18 +7698,22 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -6737,11 +7721,15 @@ public Builder addAllPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6754,11 +7742,15 @@ public Builder clearPagesWithMatchingImages() { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6771,39 +7763,52 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder + getPagesWithMatchingImagesBuilder(int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); } else { + return pagesWithMatchingImages_.get(index); + } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6811,45 +7816,65 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesW } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( - int index) { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder(int index) { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6859,26 +7884,37 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebPage.Builder addPagesWi return pagesWithMatchingImagesBuilder_; } - private java.util.List visuallySimilarImages_ = - java.util.Collections.emptyList(); + private java.util.List + visuallySimilarImages_ = java.util.Collections.emptyList(); + private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); + visuallySimilarImages_ = + new java.util.ArrayList( + visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + visuallySimilarImagesBuilder_; /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -6886,11 +7922,15 @@ public java.util.List g } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -6900,13 +7940,18 @@ public int getVisuallySimilarImagesCount() { } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -6914,11 +7959,15 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimila } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6935,14 +7984,19 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -6953,13 +8007,18 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages( + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6973,11 +8032,15 @@ public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p3beta1.WebDet return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage value) { @@ -6994,11 +8057,15 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7012,14 +8079,19 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -7030,18 +8102,22 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7049,11 +8125,15 @@ public Builder addAllVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7066,11 +8146,15 @@ public Builder clearVisuallySimilarImages() { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7083,39 +8167,53 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + getVisuallySimilarImagesBuilder(int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); } else { + return visuallySimilarImages_.get(index); + } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7123,45 +8221,65 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisua } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( - int index) { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder(int index) { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7171,26 +8289,36 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebImage.Builder addVisual return visuallySimilarImagesBuilder_; } - private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); + private java.util.List + bestGuessLabels_ = java.util.Collections.emptyList(); + private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); + bestGuessLabels_ = + new java.util.ArrayList( + bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> + bestGuessLabelsBuilder_; /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -7198,11 +8326,14 @@ public java.util.List g } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -7212,11 +8343,14 @@ public int getBestGuessLabelsCount() { } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7226,11 +8360,14 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabel } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { @@ -7247,14 +8384,18 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -7265,13 +8406,17 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public Builder addBestGuessLabels(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels( + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7285,11 +8430,14 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1p3beta1.WebDetection return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel value) { @@ -7306,11 +8454,14 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -7324,14 +8475,18 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( - int index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -7342,18 +8497,21 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addAllBestGuessLabels( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -7361,11 +8519,14 @@ public Builder addAllBestGuessLabels( return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -7378,11 +8539,14 @@ public Builder clearBestGuessLabels() { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7395,39 +8559,50 @@ public Builder removeBestGuessLabels(int index) { return this; } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder + getBestGuessLabelsBuilder(int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); } else { + return bestGuessLabels_.get(index); + } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -7435,45 +8610,62 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestG } } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( - int index) { - return getBestGuessLabelsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder(int index) { + return getBestGuessLabelsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * Best guess text labels for the request image.
      * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -7482,9 +8674,9 @@ public com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel.Builder addBestGu } return bestGuessLabelsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7494,12 +8686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection) private static final com.google.cloud.vision.v1p3beta1.WebDetection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetection(); } @@ -7508,16 +8700,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7532,6 +8724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java index d4d1d2ed6..61b534a94 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/web_detection.proto package com.google.cloud.vision.v1p3beta1; -public interface WebDetectionOrBuilder extends +public interface WebDetectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List - getWebEntitiesList(); + java.util.List getWebEntitiesList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -25,6 +44,8 @@ public interface WebDetectionOrBuilder extends */ com.google.cloud.vision.v1p3beta1.WebDetection.WebEntity getWebEntities(int index); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -33,15 +54,19 @@ public interface WebDetectionOrBuilder extends */ int getWebEntitiesCount(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -52,236 +77,325 @@ com.google.cloud.vision.v1p3beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ int getFullMatchingImagesCount(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ int getPartialMatchingImagesCount(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ int getPagesWithMatchingImagesCount(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ int getVisuallySimilarImagesCount(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index); + com.google.cloud.vision.v1p3beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List - getBestGuessLabelsList(); + java.util.List getBestGuessLabelsList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ int getBestGuessLabelsCount(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** + * + * *
    * Best guess text labels for the request image.
    * 
* - * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p3beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p3beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java similarity index 69% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java index 226d43449..cadde82ec 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParams.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/image_annotator.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetectionParams} */ -public final class WebDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.WebDetectionParams) WebDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetectionParams() { - } + + private WebDetectionParams() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: { - - includeGeoResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + includeGeoResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** + * + * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p3beta1.WebDetectionParams other = (com.google.cloud.vision.v1p3beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p3beta1.WebDetectionParams other = + (com.google.cloud.vision.v1p3beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() - != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.WebDetectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.WebDetectionParams) com.google.cloud.vision.v1p3beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p3beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p3beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.WebDetectionParams.newBuilder() @@ -291,16 +319,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p3beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -331,7 +358,8 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p3beta1.WebDetectionParams result = new com.google.cloud.vision.v1p3beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p3beta1.WebDetectionParams result = + new com.google.cloud.vision.v1p3beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -341,38 +369,39 @@ public com.google.cloud.vision.v1p3beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetectionParams)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.WebDetectionParams) other); } else { super.mergeFrom(other); return this; @@ -380,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p3beta1.WebDetectionParams.getDefaultInstance()) + return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -403,7 +433,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p3beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p3beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,13 +444,16 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_ ; + private boolean includeGeoResults_; /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -427,37 +461,43 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +507,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p3beta1.WebDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.WebDetectionParams(); } @@ -481,16 +521,16 @@ public static com.google.cloud.vision.v1p3beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +545,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..023d134dc --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/image_annotator.proto + +package com.google.cloud.vision.v1p3beta1; + +public interface WebDetectionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java new file mode 100644 index 000000000..9c6f53625 --- /dev/null +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p3beta1/web_detection.proto + +package com.google.cloud.vision.v1p3beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p3beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p3bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p3beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p3beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p3beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p3" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p3beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p3beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p3beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p3beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" + + "loud.vision.v1p3beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p3beta1;vision\370\001\001b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor, + new java.lang.String[] { + "WebEntities", + "FullMatchingImages", + "PartialMatchingImages", + "PagesWithMatchingImages", + "VisuallySimilarImages", + "BestGuessLabels", + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { + "EntityId", "Score", "Description", + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { + "Url", "Score", + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { + "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", + }); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p3beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { + "Label", "LanguageCode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java similarity index 77% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java index 51f927e0f..4e9027006 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Word.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; /** + * + * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Word} */ -public final class Word extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Word extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p3beta1.Word) WordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Word( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p3beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + symbols_.add( + input.readMessage( + com.google.cloud.vision.v1p3beta1.Symbol.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1p3beta1.Symbol.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -118,27 +144,33 @@ private Word( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Word.class, com.google.cloud.vision.v1p3beta1.Word.Builder.class); + com.google.cloud.vision.v1p3beta1.Word.class, + com.google.cloud.vision.v1p3beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the word.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -264,6 +316,8 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -272,11 +326,13 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -289,6 +345,8 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -301,6 +359,8 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -309,19 +369,21 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -330,6 +392,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +404,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,20 +427,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,7 +446,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p3beta1.Word)) { return super.equals(obj); @@ -397,19 +455,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getSymbolsList() - .equals(other.getSymbolsList())) return false; + if (!getSymbolsList().equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,125 +488,133 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p3beta1.Word parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Word parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p3beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p3beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p3beta1.Word} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p3beta1.Word) com.google.cloud.vision.v1p3beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p3beta1.Word.class, com.google.cloud.vision.v1p3beta1.Word.Builder.class); + com.google.cloud.vision.v1p3beta1.Word.class, + com.google.cloud.vision.v1p3beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p3beta1.Word.newBuilder() @@ -560,17 +622,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p3beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p3beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p3beta1_Word_descriptor; } @java.lang.Override @@ -619,7 +681,8 @@ public com.google.cloud.vision.v1p3beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p3beta1.Word buildPartial() { - com.google.cloud.vision.v1p3beta1.Word result = new com.google.cloud.vision.v1p3beta1.Word(this); + com.google.cloud.vision.v1p3beta1.Word result = + new com.google.cloud.vision.v1p3beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -649,38 +712,39 @@ public com.google.cloud.vision.v1p3beta1.Word buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p3beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p3beta1.Word)other); + return mergeFrom((com.google.cloud.vision.v1p3beta1.Word) other); } else { super.mergeFrom(other); return this; @@ -713,9 +777,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymbolsFieldBuilder() : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymbolsFieldBuilder() + : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -752,45 +817,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,6 +884,8 @@ public Builder setProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -822,17 +904,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -844,6 +931,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p3beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -862,33 +951,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -896,14 +994,17 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -911,8 +1012,13 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p3beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p3beta1.BoundingPoly, + com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -932,12 +1038,15 @@ public com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -957,16 +1066,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1001,6 +1115,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1033,6 +1149,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1057,7 +1175,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p3beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1069,6 +1189,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p3beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,6 +1223,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1122,11 +1246,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1151,11 +1277,14 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p3beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1177,32 +1306,41 @@ public com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.BoundingPoly,
+            com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.BoundingPoly, com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.BoundingPoly,
+                com.google.cloud.vision.v1p3beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder> symbolsBuilder_;
+            com.google.cloud.vision.v1p3beta1.Symbol,
+            com.google.cloud.vision.v1p3beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>
+        symbolsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1218,6 +1356,8 @@ public java.util.List getSymbolsList()
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1233,6 +1373,8 @@ public int getSymbolsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1248,6 +1390,8 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1255,8 +1399,7 @@ public com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(
-        int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
+    public Builder setSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1270,6 +1413,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1289,6 +1434,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1310,6 +1457,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1317,8 +1466,7 @@ public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
+    public Builder addSymbols(int index, com.google.cloud.vision.v1p3beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1332,6 +1480,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1339,8 +1489,7 @@ public Builder addSymbols(
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        com.google.cloud.vision.v1p3beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(com.google.cloud.vision.v1p3beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1351,6 +1500,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1370,6 +1521,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1381,8 +1534,7 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1390,6 +1542,8 @@ public Builder addAllSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1408,6 +1562,8 @@ public Builder clearSymbols() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1426,6 +1582,8 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1433,11 +1591,12 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,14 +1604,16 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder getSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);  } else {
+        return symbols_.get(index);
+      } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1460,8 +1621,8 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsOrBuilderList() {
+    public java.util.List
+        getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1469,6 +1630,8 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,10 +1640,12 @@ public com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1488,12 +1653,13 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(
-        int index) {
-      return getSymbolsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(int index) {
+      return getSymbolsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p3beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1501,32 +1667,38 @@ public com.google.cloud.vision.v1p3beta1.Symbol.Builder addSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsBuilderList() {
+    public java.util.List
+        getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder> 
+            com.google.cloud.vision.v1p3beta1.Symbol,
+            com.google.cloud.vision.v1p3beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p3beta1.Symbol, com.google.cloud.vision.v1p3beta1.Symbol.Builder, com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>(
-                symbols_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        symbolsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p3beta1.Symbol,
+                com.google.cloud.vision.v1p3beta1.Symbol.Builder,
+                com.google.cloud.vision.v1p3beta1.SymbolOrBuilder>(
+                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1534,37 +1706,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1574,12 +1752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p3beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Word) private static final com.google.cloud.vision.v1p3beta1.Word DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p3beta1.Word(); } @@ -1588,16 +1766,16 @@ public static com.google.cloud.vision.v1p3beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1790,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p3beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java rename to proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java index 70ccd560f..a8417ae34 100644 --- a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java +++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p3beta1/text_annotation.proto package com.google.cloud.vision.v1p3beta1; -public interface WordOrBuilder extends +public interface WordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p3beta1.Word) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
@@ -35,6 +59,8 @@ public interface WordOrBuilder extends com.google.cloud.vision.v1p3beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p3beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p3beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,6 +136,8 @@ public interface WordOrBuilder extends
   com.google.cloud.vision.v1p3beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -111,9 +145,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsList();
+  java.util.List getSymbolsList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -123,6 +158,8 @@ public interface WordOrBuilder extends
    */
   com.google.cloud.vision.v1p3beta1.Symbol getSymbols(int index);
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -132,6 +169,8 @@ public interface WordOrBuilder extends
    */
   int getSymbolsCount();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -139,9 +178,11 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  java.util.List 
+  java.util.List
       getSymbolsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -149,15 +190,17 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p3beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p3beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/geometry.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/product_search_service.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto diff --git a/owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto similarity index 100% rename from owl-bot-staging/v1p3beta1/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto rename to proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java similarity index 64% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java index 053f1a504..97d701b23 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `AddProductToProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AddProductToProductSetRequest} */ -public final class AddProductToProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AddProductToProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) AddProductToProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AddProductToProductSetRequest.newBuilder() to construct. private AddProductToProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AddProductToProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +44,15 @@ private AddProductToProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddProductToProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AddProductToProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private AddProductToProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private AddProductToProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +144,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,13 +181,18 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -168,31 +201,33 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -201,6 +236,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +278,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other = (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,117 +309,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `AddProductToProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AddProductToProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.newBuilder() @@ -393,16 +437,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +457,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance(); } @@ -435,7 +479,8 @@ public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest result = new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -446,46 +491,50 @@ public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +562,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +576,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +602,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,60 +628,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -631,20 +702,24 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -653,22 +728,25 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -676,67 +754,80 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,30 +837,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddProductToProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddProductToProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddProductToProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddProductToProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,9 +874,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java new file mode 100644 index 000000000..537e473fc --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AddProductToProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be added to this ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java index 97a09cf93..dd18510bc 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileRequest} */ -public final class AnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateFileRequest) AnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateFileRequest.newBuilder() to construct. private AnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateFileRequest() { features_ = java.util.Collections.emptyList(); pages_ = emptyIntList(); @@ -26,16 +44,15 @@ private AnnotateFileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private AnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - features_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); + break; } - imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; + break; } - pages_.addInt(input.readInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - pages_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { + case 32: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } pages_.addInt(input.readInt32()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + pages_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + pages_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,8 +152,7 @@ private AnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -138,27 +164,33 @@ private AnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -166,18 +198,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -192,6 +231,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -203,6 +244,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -210,11 +253,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -226,6 +271,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -237,6 +284,8 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -244,19 +293,21 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -264,18 +315,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -290,6 +348,8 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr public static final int PAGES_FIELD_NUMBER = 4; private com.google.protobuf.Internal.IntList pages_; /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -304,14 +364,16 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr
    * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ @java.lang.Override - public java.util.List - getPagesList() { + public java.util.List getPagesList() { return pages_; } /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -326,12 +388,15 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr
    * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -346,15 +411,18 @@ public int getPagesCount() {
    * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ public int getPages(int index) { return pages_.getInt(index); } + private int pagesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,8 +434,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); @@ -395,28 +462,23 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } { int dataSize = 0; for (int i = 0; i < pages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(pages_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pages_.getInt(i)); } size += dataSize; if (!getPagesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } pagesMemoizedSerializedSize = dataSize; } @@ -428,27 +490,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other = (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) obj; + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other = + (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } - if (!getPagesList() - .equals(other.getPagesList())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -482,117 +541,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateFileRequest) com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.class, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.newBuilder() @@ -600,17 +669,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -638,9 +707,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; } @java.lang.Override @@ -659,7 +728,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest result = new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(this); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest result = + new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -693,38 +763,39 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -732,7 +803,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -754,9 +826,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest o featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -794,7 +867,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -803,38 +877,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -855,6 +943,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -873,6 +963,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -883,7 +975,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -895,6 +989,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -913,6 +1009,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -920,11 +1018,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -935,11 +1035,14 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -947,32 +1050,41 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -987,6 +1099,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1001,6 +1115,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1015,14 +1131,15 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1036,6 +1153,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1054,6 +1173,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1074,14 +1195,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1095,14 +1217,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1113,6 +1236,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1131,6 +1256,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1141,8 +1268,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1150,6 +1276,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1167,6 +1295,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1184,39 +1314,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1224,6 +1359,8 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1231,42 +1368,48 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1274,34 +1417,47 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1322,6 +1478,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1340,6 +1498,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1350,7 +1510,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1362,6 +1524,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1380,6 +1544,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1387,11 +1553,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1402,11 +1570,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1414,27 +1585,33 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } private com.google.protobuf.Internal.IntList pages_ = emptyIntList(); + private void ensurePagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pages_ = mutableCopy(pages_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1449,14 +1626,17 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ - public java.util.List - getPagesList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(pages_) : pages_; + public java.util.List getPagesList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(pages_) + : pages_; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1471,12 +1651,15 @@ private void ensurePagesIsMutable() {
      * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ public int getPagesCount() { return pages_.size(); } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1491,6 +1674,7 @@ public int getPagesCount() {
      * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ @@ -1498,6 +1682,8 @@ public int getPages(int index) { return pages_.getInt(index); } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1512,18 +1698,20 @@ public int getPages(int index) {
      * 
* * repeated int32 pages = 4; + * * @param index The index to set the value at. * @param value The pages to set. * @return This builder for chaining. */ - public Builder setPages( - int index, int value) { + public Builder setPages(int index, int value) { ensurePagesIsMutable(); pages_.setInt(index, value); onChanged(); return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1538,6 +1726,7 @@ public Builder setPages(
      * 
* * repeated int32 pages = 4; + * * @param value The pages to add. * @return This builder for chaining. */ @@ -1548,6 +1737,8 @@ public Builder addPages(int value) { return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1562,18 +1753,19 @@ public Builder addPages(int value) {
      * 
* * repeated int32 pages = 4; + * * @param values The pages to add. * @return This builder for chaining. */ - public Builder addAllPages( - java.lang.Iterable values) { + public Builder addAllPages(java.lang.Iterable values) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); return this; } /** + * + * *
      * Pages of the file to perform image annotation.
      * Pages starts from 1, we assume the first page of the file is page 1.
@@ -1588,6 +1780,7 @@ public Builder addAllPages(
      * 
* * repeated int32 pages = 4; + * * @return This builder for chaining. */ public Builder clearPages() { @@ -1596,9 +1789,9 @@ public Builder clearPages() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1608,12 +1801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileRequest) private static final com.google.cloud.vision.v1p4beta1.AnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateFileRequest(); } @@ -1622,16 +1815,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,6 +1839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java index 8afb5a7a9..e55c44a24 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AnnotateFileRequestOrBuilder extends +public interface AnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,6 +146,8 @@ com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -120,10 +162,13 @@ com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @return A list containing the pages. */ java.util.List getPagesList(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -138,10 +183,13 @@ com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @return The count of pages. */ int getPagesCount(); /** + * + * *
    * Pages of the file to perform image annotation.
    * Pages starts from 1, we assume the first page of the file is page 1.
@@ -156,6 +204,7 @@ com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(
    * 
* * repeated int32 pages = 4; + * * @param index The index of the element to return. * @return The pages at the given index. */ diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java index e25593204..0faeea4e8 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response to a single file annotation request. A file may contain one or more
  * images, which individually have their own responses.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileResponse}
  */
-public final class AnnotateFileResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
     AnnotateFileResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateFileResponse.newBuilder() to construct.
   private AnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateFileResponse() {
     responses_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateFileResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateFileResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,53 +72,62 @@ private AnnotateFileResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null;
-            if (inputConfig_ != null) {
-              subBuilder = inputConfig_.toBuilder();
-            }
-            inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(inputConfig_);
-              inputConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null;
+              if (inputConfig_ != null) {
+                subBuilder = inputConfig_.toBuilder();
+              }
+              inputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputConfig_);
+                inputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              responses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            responses_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), extensionRegistry));
-            break;
-          }
-          case 24: {
-
-            totalPages_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                responses_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              responses_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(),
+                      extensionRegistry));
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 24:
+            {
+              totalPages_ = input.readInt32();
+              break;
             }
+          case 34:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,8 +135,7 @@ private AnnotateFileResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         responses_ = java.util.Collections.unmodifiableList(responses_);
@@ -119,27 +144,33 @@ private AnnotateFileResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class,
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
   }
 
   public static final int INPUT_CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_;
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -147,18 +178,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -173,6 +211,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** + * + * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -181,10 +221,13 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List getResponsesList() {
+  public java.util.List
+      getResponsesList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -193,11 +236,13 @@ public java.util.List g
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -210,6 +255,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -222,6 +269,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -238,11 +287,14 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
   public static final int TOTAL_PAGES_FIELD_NUMBER = 3;
   private int totalPages_;
   /**
+   *
+   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; + * * @return The totalPages. */ @java.lang.Override @@ -253,12 +305,15 @@ public int getTotalPages() { public static final int ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ @java.lang.Override @@ -266,12 +321,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return The error. */ @java.lang.Override @@ -279,6 +337,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
@@ -292,6 +352,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -303,8 +364,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (inputConfig_ != null) {
       output.writeMessage(1, getInputConfig());
     }
@@ -327,20 +387,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (inputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getInputConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig());
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i));
     }
     if (totalPages_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(3, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalPages_);
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -350,26 +406,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other = (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) obj;
+    com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other =
+        (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) obj;
 
     if (hasInputConfig() != other.hasInputConfig()) return false;
     if (hasInputConfig()) {
-      if (!getInputConfig()
-          .equals(other.getInputConfig())) return false;
+      if (!getInputConfig().equals(other.getInputConfig())) return false;
     }
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
+    if (getTotalPages() != other.getTotalPages()) return false;
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -402,96 +455,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to a single file annotation request. A file may contain one or more
    * images, which individually have their own responses.
@@ -499,21 +560,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateFileResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
       com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.class,
+              com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.newBuilder()
@@ -521,17 +584,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResponsesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -559,9 +622,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor;
     }
 
     @java.lang.Override
@@ -580,7 +643,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse result = new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse(this);
+      com.google.cloud.vision.v1p4beta1.AnnotateFileResponse result =
+          new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse(this);
       int from_bitField0_ = bitField0_;
       if (inputConfigBuilder_ == null) {
         result.inputConfig_ = inputConfig_;
@@ -610,38 +674,39 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -649,7 +714,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse other) {
-      if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance())
+        return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -671,9 +737,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -704,7 +771,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.AnnotateFileResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -713,38 +781,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_;
+            com.google.cloud.vision.v1p4beta1.InputConfig,
+            com.google.cloud.vision.v1p4beta1.InputConfig.Builder,
+            com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>
+        inputConfigBuilder_;
     /**
+     *
+     *
      * 
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -765,6 +847,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -783,6 +867,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -793,7 +879,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -805,6 +893,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -823,6 +913,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -830,11 +922,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -845,11 +939,14 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Information about the file for which this response is generated.
      * 
@@ -857,32 +954,43 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -890,7 +998,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -898,6 +1007,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -913,6 +1024,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -928,6 +1041,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -950,6 +1065,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -958,7 +1075,8 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder setResponses(
-        int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -969,6 +1087,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -990,6 +1110,8 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateImageRespo
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1012,6 +1134,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1031,6 +1155,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1039,7 +1165,8 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder addResponses(
-        int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -1050,6 +1177,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1058,11 +1187,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -1070,6 +1199,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1088,6 +1219,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1106,6 +1239,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1118,6 +1253,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1128,11 +1265,14 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1140,8 +1280,9 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1149,6 +1290,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
       }
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1157,10 +1300,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1170,10 +1315,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Individual responses to images found within the file. This field will be
      * empty if the `error` field is set.
@@ -1181,32 +1329,38 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse,
+            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder,
+            com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.AnnotateImageResponse,
+                com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder,
+                com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
 
-    private int totalPages_ ;
+    private int totalPages_;
     /**
+     *
+     *
      * 
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @return The totalPages. */ @java.lang.Override @@ -1214,30 +1368,36 @@ public int getTotalPages() { return totalPages_; } /** + * + * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @param value The totalPages to set. * @return This builder for chaining. */ public Builder setTotalPages(int value) { - + totalPages_ = value; onChanged(); return this; } /** + * + * *
      * This field gives the total number of pages in the file.
      * 
* * int32 total_pages = 3; + * * @return This builder for chaining. */ public Builder clearTotalPages() { - + totalPages_ = 0; onChanged(); return this; @@ -1245,26 +1405,33 @@ public Builder clearTotalPages() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
      * 
* * .google.rpc.Status error = 4; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -1275,6 +1442,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1296,6 +1465,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1303,8 +1474,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 4;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1315,6 +1485,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1325,8 +1497,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1338,6 +1509,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1357,6 +1530,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1365,11 +1540,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 4;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1381,11 +1558,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the failed request. The
      * `responses` field will not be set in this case.
@@ -1394,21 +1572,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1418,12 +1596,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
   private static final com.google.cloud.vision.v1p4beta1.AnnotateFileResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateFileResponse();
   }
@@ -1432,16 +1610,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateFileResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateFileResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateFileResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateFileResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1456,6 +1634,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
index 8cf89b180..9149fa6e0 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AnnotateFileResponseOrBuilder extends
+public interface AnnotateFileResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateFileResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** + * + * *
    * Information about the file for which this response is generated.
    * 
@@ -35,6 +59,8 @@ public interface AnnotateFileResponseOrBuilder extends com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -42,9 +68,10 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -54,6 +81,8 @@ public interface AnnotateFileResponseOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -63,6 +92,8 @@ public interface AnnotateFileResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -70,9 +101,11 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * Individual responses to images found within the file. This field will be
    * empty if the `error` field is set.
@@ -80,40 +113,50 @@ public interface AnnotateFileResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2;
    */
-  com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * This field gives the total number of pages in the file.
    * 
* * int32 total_pages = 3; + * * @return The totalPages. */ int getTotalPages(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
    * 
* * .google.rpc.Status error = 4; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the failed request. The
    * `responses` field will not be set in this case.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
similarity index 73%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
index c739b512f..7c9cc37a7 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Request for performing Google Cloud Vision API tasks over a user-provided
  * image, with user-requested features, and with context information.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageRequest}
  */
-public final class AnnotateImageRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotateImageRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateImageRequest)
     AnnotateImageRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotateImageRequest.newBuilder() to construct.
   private AnnotateImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotateImageRequest() {
     features_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotateImageRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotateImageRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,56 @@ private AnnotateImageRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.vision.v1p4beta1.Image.Builder subBuilder = null;
-            if (image_ != null) {
-              subBuilder = image_.toBuilder();
-            }
-            image_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Image.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(image_);
-              image_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.vision.v1p4beta1.Image.Builder subBuilder = null;
+              if (image_ != null) {
+                subBuilder = image_.toBuilder();
+              }
+              image_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(image_);
+                image_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              features_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            features_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null;
-            if (imageContext_ != null) {
-              subBuilder = imageContext_.toBuilder();
-            }
-            imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(imageContext_);
-              imageContext_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                features_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              features_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null;
+              if (imageContext_ != null) {
+                subBuilder = imageContext_.toBuilder();
+              }
+              imageContext_ =
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(imageContext_);
+                imageContext_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,8 +129,7 @@ private AnnotateImageRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -114,27 +138,33 @@ private AnnotateImageRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class,
+            com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
   }
 
   public static final int IMAGE_FIELD_NUMBER = 1;
   private com.google.cloud.vision.v1p4beta1.Image image_;
   /**
+   *
+   *
    * 
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return Whether the image field is set. */ @java.lang.Override @@ -142,11 +172,14 @@ public boolean hasImage() { return image_ != null; } /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return The image. */ @java.lang.Override @@ -154,6 +187,8 @@ public com.google.cloud.vision.v1p4beta1.Image getImage() { return image_ == null ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; } /** + * + * *
    * The image to be processed.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Requested features.
    * 
@@ -179,6 +216,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Requested features.
    * 
@@ -186,11 +225,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Requested features.
    * 
@@ -202,6 +243,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Requested features.
    * 
@@ -213,6 +256,8 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Requested features.
    * 
@@ -220,19 +265,21 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -240,18 +287,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image.
    * 
@@ -264,6 +318,7 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } @@ -296,16 +350,13 @@ public int getSerializedSize() { size = 0; if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,24 +366,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other = (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) obj; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other = + (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -363,96 +412,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for performing Google Cloud Vision API tasks over a user-provided
    * image, with user-requested features, and with context information.
@@ -460,21 +517,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateImageRequest)
       com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.class,
+              com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.newBuilder()
@@ -482,17 +541,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -518,9 +577,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor;
     }
 
     @java.lang.Override
@@ -539,7 +598,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AnnotateImageRequest result = new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(this);
+      com.google.cloud.vision.v1p4beta1.AnnotateImageRequest result =
+          new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(this);
       int from_bitField0_ = bitField0_;
       if (imageBuilder_ == null) {
         result.image_ = image_;
@@ -568,38 +628,39 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,7 +668,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest other) {
-      if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance())
+        return this;
       if (other.hasImage()) {
         mergeImage(other.getImage());
       }
@@ -629,9 +691,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFeaturesFieldBuilder() : null;
+            featuresBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFeaturesFieldBuilder()
+                    : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
@@ -659,7 +722,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.AnnotateImageRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,38 +732,52 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.vision.v1p4beta1.Image image_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder> imageBuilder_;
+            com.google.cloud.vision.v1p4beta1.Image,
+            com.google.cloud.vision.v1p4beta1.Image.Builder,
+            com.google.cloud.vision.v1p4beta1.ImageOrBuilder>
+        imageBuilder_;
     /**
+     *
+     *
      * 
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return The image. */ public com.google.cloud.vision.v1p4beta1.Image getImage() { if (imageBuilder_ == null) { - return image_ == null ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() + : image_; } else { return imageBuilder_.getMessage(); } } /** + * + * *
      * The image to be processed.
      * 
@@ -720,14 +798,15 @@ public Builder setImage(com.google.cloud.vision.v1p4beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; */ - public Builder setImage( - com.google.cloud.vision.v1p4beta1.Image.Builder builderForValue) { + public Builder setImage(com.google.cloud.vision.v1p4beta1.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); @@ -738,6 +817,8 @@ public Builder setImage( return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -748,7 +829,9 @@ public Builder mergeImage(com.google.cloud.vision.v1p4beta1.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = - com.google.cloud.vision.v1p4beta1.Image.newBuilder(image_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); } else { image_ = value; } @@ -760,6 +843,8 @@ public Builder mergeImage(com.google.cloud.vision.v1p4beta1.Image value) { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -778,6 +863,8 @@ public Builder clearImage() { return this; } /** + * + * *
      * The image to be processed.
      * 
@@ -785,11 +872,13 @@ public Builder clearImage() { * .google.cloud.vision.v1p4beta1.Image image = 1; */ public com.google.cloud.vision.v1p4beta1.Image.Builder getImageBuilder() { - + onChanged(); return getImageFieldBuilder().getBuilder(); } /** + * + * *
      * The image to be processed.
      * 
@@ -800,11 +889,14 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { - return image_ == null ? - com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() : image_; + return image_ == null + ? com.google.cloud.vision.v1p4beta1.Image.getDefaultInstance() + : image_; } } /** + * + * *
      * The image to be processed.
      * 
@@ -812,32 +904,41 @@ public com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder() { * .google.cloud.vision.v1p4beta1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder> + com.google.cloud.vision.v1p4beta1.Image, + com.google.cloud.vision.v1p4beta1.Image.Builder, + com.google.cloud.vision.v1p4beta1.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Image, com.google.cloud.vision.v1p4beta1.Image.Builder, com.google.cloud.vision.v1p4beta1.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Image, + com.google.cloud.vision.v1p4beta1.Image.Builder, + com.google.cloud.vision.v1p4beta1.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Requested features.
      * 
@@ -852,6 +953,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Requested features.
      * 
@@ -866,6 +969,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Requested features.
      * 
@@ -880,14 +985,15 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,6 +1007,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -919,6 +1027,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -939,14 +1049,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,14 +1071,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -978,6 +1090,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -996,6 +1110,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1006,8 +1122,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1015,6 +1130,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Requested features.
      * 
@@ -1032,6 +1149,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Requested features.
      * 
@@ -1049,39 +1168,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1089,6 +1213,8 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Requested features.
      * 
@@ -1096,42 +1222,48 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1139,34 +1271,47 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1187,6 +1332,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1205,6 +1352,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1215,7 +1364,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1227,6 +1378,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1245,6 +1398,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1252,11 +1407,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1267,11 +1424,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image.
      * 
@@ -1279,21 +1439,24 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageRequest) private static final com.google.cloud.vision.v1p4beta1.AnnotateImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateImageRequest(); } @@ -1317,16 +1480,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,6 +1504,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java index a0c31ffde..16535630d 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AnnotateImageRequestOrBuilder extends +public interface AnnotateImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image to be processed.
    * 
* * .google.cloud.vision.v1p4beta1.Image image = 1; + * * @return The image. */ com.google.cloud.vision.v1p4beta1.Image getImage(); /** + * + * *
    * The image to be processed.
    * 
@@ -35,15 +59,18 @@ public interface AnnotateImageRequestOrBuilder extends com.google.cloud.vision.v1p4beta1.ImageOrBuilder getImageOrBuilder(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AnnotateImageRequestOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** + * + * *
    * Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AnnotateImageRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java index 3e06218ab..e05faadda 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response to an image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageResponse} */ -public final class AnnotateImageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AnnotateImageResponse) AnnotateImageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotateImageResponse.newBuilder() to construct. private AnnotateImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotateImageResponse() { faceAnnotations_ = java.util.Collections.emptyList(); landmarkAnnotations_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private AnnotateImageResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotateImageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotateImageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,171 +76,223 @@ private AnnotateImageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + faceAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + faceAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.parser(), + extensionRegistry)); + break; } - faceAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.FaceAnnotation.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - landmarkAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - logoAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + landmarkAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + landmarkAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - labelAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logoAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logoAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - textAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder subBuilder = null; - if (safeSearchAnnotation_ != null) { - subBuilder = safeSearchAnnotation_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labelAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } - safeSearchAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(safeSearchAnnotation_); - safeSearchAnnotation_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + textAnnotations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.EntityAnnotation.parser(), + extensionRegistry)); + break; } + case 50: + { + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder subBuilder = null; + if (safeSearchAnnotation_ != null) { + subBuilder = safeSearchAnnotation_.toBuilder(); + } + safeSearchAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(safeSearchAnnotation_); + safeSearchAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.vision.v1p4beta1.ImageProperties.Builder subBuilder = null; - if (imagePropertiesAnnotation_ != null) { - subBuilder = imagePropertiesAnnotation_.toBuilder(); - } - imagePropertiesAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imagePropertiesAnnotation_); - imagePropertiesAnnotation_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder subBuilder = null; + if (imagePropertiesAnnotation_ != null) { + subBuilder = imagePropertiesAnnotation_.toBuilder(); + } + imagePropertiesAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImageProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imagePropertiesAnnotation_); + imagePropertiesAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 74: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + break; } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } - break; - } - case 90: { - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder subBuilder = null; - if (cropHintsAnnotation_ != null) { - subBuilder = cropHintsAnnotation_.toBuilder(); - } - cropHintsAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsAnnotation_); - cropHintsAnnotation_ = subBuilder.buildPartial(); + break; } + case 90: + { + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder subBuilder = null; + if (cropHintsAnnotation_ != null) { + subBuilder = cropHintsAnnotation_.toBuilder(); + } + cropHintsAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsAnnotation_); + cropHintsAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 98: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder subBuilder = null; - if (fullTextAnnotation_ != null) { - subBuilder = fullTextAnnotation_.toBuilder(); - } - fullTextAnnotation_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullTextAnnotation_); - fullTextAnnotation_ = subBuilder.buildPartial(); + break; } + case 98: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder subBuilder = null; + if (fullTextAnnotation_ != null) { + subBuilder = fullTextAnnotation_.toBuilder(); + } + fullTextAnnotation_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullTextAnnotation_); + fullTextAnnotation_ = subBuilder.buildPartial(); + } - break; - } - case 106: { - com.google.cloud.vision.v1p4beta1.WebDetection.Builder subBuilder = null; - if (webDetection_ != null) { - subBuilder = webDetection_.toBuilder(); - } - webDetection_ = input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetection_); - webDetection_ = subBuilder.buildPartial(); + break; } + case 106: + { + com.google.cloud.vision.v1p4beta1.WebDetection.Builder subBuilder = null; + if (webDetection_ != null) { + subBuilder = webDetection_.toBuilder(); + } + webDetection_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetection_); + webDetection_ = subBuilder.buildPartial(); + } - break; - } - case 114: { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder subBuilder = null; - if (productSearchResults_ != null) { - subBuilder = productSearchResults_.toBuilder(); - } - productSearchResults_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchResults_); - productSearchResults_ = subBuilder.buildPartial(); + break; } + case 114: + { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder subBuilder = null; + if (productSearchResults_ != null) { + subBuilder = productSearchResults_.toBuilder(); + } + productSearchResults_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchResults_); + productSearchResults_ = subBuilder.buildPartial(); + } - break; - } - case 170: { - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); + break; } + case 170: + { + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + break; } - localizedObjectAnnotations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 178: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + localizedObjectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation>(); + mutable_bitField0_ |= 0x00000010; + } + localizedObjectAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -231,8 +300,7 @@ private AnnotateImageResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); @@ -250,28 +318,34 @@ private AnnotateImageResponse( textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); } public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List faceAnnotations_; /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -283,6 +357,8 @@ public java.util.List getFaceA return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -290,11 +366,13 @@ public java.util.List getFaceA * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFaceAnnotationsOrBuilderList() { return faceAnnotations_; } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -306,6 +384,8 @@ public int getFaceAnnotationsCount() { return faceAnnotations_.size(); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -317,6 +397,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int i return faceAnnotations_.get(index); } /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -332,6 +414,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List landmarkAnnotations_; /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -339,10 +423,13 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -350,11 +437,13 @@ public java.util.List getLan * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public java.util.List + public java.util.List getLandmarkAnnotationsOrBuilderList() { return landmarkAnnotations_; } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -366,6 +455,8 @@ public int getLandmarkAnnotationsCount() { return landmarkAnnotations_.size(); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -377,6 +468,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations return landmarkAnnotations_.get(index); } /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -384,14 +477,16 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { return landmarkAnnotations_.get(index); } public static final int LOGO_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List logoAnnotations_; /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -399,10 +494,13 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAn * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -410,11 +508,13 @@ public java.util.List getLog * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ @java.lang.Override - public java.util.List + public java.util.List getLogoAnnotationsOrBuilderList() { return logoAnnotations_; } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -426,6 +526,8 @@ public int getLogoAnnotationsCount() { return logoAnnotations_.size(); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -437,6 +539,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int return logoAnnotations_.get(index); } /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -452,6 +556,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List labelAnnotations_; /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -459,10 +565,13 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -470,11 +579,13 @@ public java.util.List getLab * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -486,6 +597,8 @@ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -497,6 +610,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(in return labelAnnotations_.get(index); } /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -510,73 +625,99 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot } public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER = 22; - private java.util.List localizedObjectAnnotations_; + private java.util.List + localizedObjectAnnotations_; /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsOrBuilderList() { return localizedObjectAnnotations_; } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override public int getLocalizedObjectAnnotationsCount() { return localizedObjectAnnotations_.size(); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index) { return localizedObjectAnnotations_.get(index); } /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { return localizedObjectAnnotations_.get(index); } public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List textAnnotations_; /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -584,10 +725,13 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getL * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -595,11 +739,13 @@ public java.util.List getTex * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ @java.lang.Override - public java.util.List + public java.util.List getTextAnnotationsOrBuilderList() { return textAnnotations_; } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -611,6 +757,8 @@ public int getTextAnnotationsCount() { return textAnnotations_.size(); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -622,6 +770,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int return textAnnotations_.get(index); } /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -637,6 +787,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p4beta1.TextAnnotation fullTextAnnotation_; /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -645,6 +797,7 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ @java.lang.Override @@ -652,6 +805,8 @@ public boolean hasFullTextAnnotation() { return fullTextAnnotation_ != null; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -660,13 +815,18 @@ public boolean hasFullTextAnnotation() {
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation() { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -677,18 +837,22 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation()
    * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+  public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder
+      getFullTextAnnotationOrBuilder() {
     return getFullTextAnnotation();
   }
 
   public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER = 6;
   private com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safeSearchAnnotation_;
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ @java.lang.Override @@ -696,18 +860,25 @@ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotation_ != null; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation() { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
@@ -715,18 +886,22 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnot * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { return getSafeSearchAnnotation(); } public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER = 8; private com.google.cloud.vision.v1p4beta1.ImageProperties imagePropertiesAnnotation_; /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ @java.lang.Override @@ -734,18 +909,25 @@ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotation_ != null; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation() { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } /** + * + * *
    * If present, image properties were extracted successfully.
    * 
@@ -753,18 +935,22 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnot * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { return getImagePropertiesAnnotation(); } public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER = 11; private com.google.cloud.vision.v1p4beta1.CropHintsAnnotation cropHintsAnnotation_; /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ @java.lang.Override @@ -772,18 +958,25 @@ public boolean hasCropHintsAnnotation() { return cropHintsAnnotation_ != null; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation() { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -791,18 +984,22 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotat * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { return getCropHintsAnnotation(); } public static final int WEB_DETECTION_FIELD_NUMBER = 13; private com.google.cloud.vision.v1p4beta1.WebDetection webDetection_; /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ @java.lang.Override @@ -810,18 +1007,25 @@ public boolean hasWebDetection() { return webDetection_ != null; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection() { - return webDetection_ == null ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() + : webDetection_; } /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -836,11 +1040,14 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER = 14; private com.google.cloud.vision.v1p4beta1.ProductSearchResults productSearchResults_; /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ @java.lang.Override @@ -848,18 +1055,25 @@ public boolean hasProductSearchResults() { return productSearchResults_ != null; } /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults() { - return productSearchResults_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } /** + * + * *
    * If present, product search has completed successfully.
    * 
@@ -867,13 +1081,16 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchRe * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { return getProductSearchResults(); } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -881,6 +1098,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProduc
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ @java.lang.Override @@ -888,6 +1106,8 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -895,6 +1115,7 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ @java.lang.Override @@ -902,6 +1123,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -918,12 +1141,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int CONTEXT_FIELD_NUMBER = 21;
   private com.google.cloud.vision.v1p4beta1.ImageAnnotationContext context_;
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ @java.lang.Override @@ -931,19 +1157,26 @@ public boolean hasContext() { return context_ != null; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return The context. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext() { - return context_ == null ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
@@ -957,6 +1190,7 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -968,8 +1202,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < faceAnnotations_.size(); i++) {
       output.writeMessage(1, faceAnnotations_.get(i));
     }
@@ -1022,60 +1255,54 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < faceAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, faceAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, faceAnnotations_.get(i));
     }
     for (int i = 0; i < landmarkAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, landmarkAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, landmarkAnnotations_.get(i));
     }
     for (int i = 0; i < logoAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, logoAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logoAnnotations_.get(i));
     }
     for (int i = 0; i < labelAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, labelAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labelAnnotations_.get(i));
     }
     for (int i = 0; i < textAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, textAnnotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, textAnnotations_.get(i));
     }
     if (safeSearchAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getSafeSearchAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSafeSearchAnnotation());
     }
     if (imagePropertiesAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getImagePropertiesAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getImagePropertiesAnnotation());
     }
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError());
     }
     if (cropHintsAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCropHintsAnnotation());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCropHintsAnnotation());
     }
     if (fullTextAnnotation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getFullTextAnnotation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFullTextAnnotation());
     }
     if (webDetection_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getWebDetection());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getWebDetection());
     }
     if (productSearchResults_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, getProductSearchResults());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProductSearchResults());
     }
     if (context_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getContext());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getContext());
     }
     for (int i = 0; i < localizedObjectAnnotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(22, localizedObjectAnnotations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              22, localizedObjectAnnotations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1085,64 +1312,53 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other = (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) obj;
-
-    if (!getFaceAnnotationsList()
-        .equals(other.getFaceAnnotationsList())) return false;
-    if (!getLandmarkAnnotationsList()
-        .equals(other.getLandmarkAnnotationsList())) return false;
-    if (!getLogoAnnotationsList()
-        .equals(other.getLogoAnnotationsList())) return false;
-    if (!getLabelAnnotationsList()
-        .equals(other.getLabelAnnotationsList())) return false;
-    if (!getLocalizedObjectAnnotationsList()
-        .equals(other.getLocalizedObjectAnnotationsList())) return false;
-    if (!getTextAnnotationsList()
-        .equals(other.getTextAnnotationsList())) return false;
+    com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other =
+        (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) obj;
+
+    if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
+    if (!getLandmarkAnnotationsList().equals(other.getLandmarkAnnotationsList())) return false;
+    if (!getLogoAnnotationsList().equals(other.getLogoAnnotationsList())) return false;
+    if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
+    if (!getLocalizedObjectAnnotationsList().equals(other.getLocalizedObjectAnnotationsList()))
+      return false;
+    if (!getTextAnnotationsList().equals(other.getTextAnnotationsList())) return false;
     if (hasFullTextAnnotation() != other.hasFullTextAnnotation()) return false;
     if (hasFullTextAnnotation()) {
-      if (!getFullTextAnnotation()
-          .equals(other.getFullTextAnnotation())) return false;
+      if (!getFullTextAnnotation().equals(other.getFullTextAnnotation())) return false;
     }
     if (hasSafeSearchAnnotation() != other.hasSafeSearchAnnotation()) return false;
     if (hasSafeSearchAnnotation()) {
-      if (!getSafeSearchAnnotation()
-          .equals(other.getSafeSearchAnnotation())) return false;
+      if (!getSafeSearchAnnotation().equals(other.getSafeSearchAnnotation())) return false;
     }
     if (hasImagePropertiesAnnotation() != other.hasImagePropertiesAnnotation()) return false;
     if (hasImagePropertiesAnnotation()) {
-      if (!getImagePropertiesAnnotation()
-          .equals(other.getImagePropertiesAnnotation())) return false;
+      if (!getImagePropertiesAnnotation().equals(other.getImagePropertiesAnnotation()))
+        return false;
     }
     if (hasCropHintsAnnotation() != other.hasCropHintsAnnotation()) return false;
     if (hasCropHintsAnnotation()) {
-      if (!getCropHintsAnnotation()
-          .equals(other.getCropHintsAnnotation())) return false;
+      if (!getCropHintsAnnotation().equals(other.getCropHintsAnnotation())) return false;
     }
     if (hasWebDetection() != other.hasWebDetection()) return false;
     if (hasWebDetection()) {
-      if (!getWebDetection()
-          .equals(other.getWebDetection())) return false;
+      if (!getWebDetection().equals(other.getWebDetection())) return false;
     }
     if (hasProductSearchResults() != other.hasProductSearchResults()) return false;
     if (hasProductSearchResults()) {
-      if (!getProductSearchResults()
-          .equals(other.getProductSearchResults())) return false;
+      if (!getProductSearchResults().equals(other.getProductSearchResults())) return false;
     }
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
     if (hasContext() != other.hasContext()) return false;
     if (hasContext()) {
-      if (!getContext()
-          .equals(other.getContext())) return false;
+      if (!getContext().equals(other.getContext())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -1217,117 +1433,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.AnnotateImageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AnnotateImageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AnnotateImageResponse) com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.class, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.newBuilder() @@ -1335,14 +1561,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFaceAnnotationsFieldBuilder(); getLandmarkAnnotationsFieldBuilder(); getLogoAnnotationsFieldBuilder(); @@ -1351,6 +1576,7 @@ private void maybeForceBuilderInitialization() { getTextAnnotationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1442,9 +1668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; } @java.lang.Override @@ -1463,7 +1689,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse result = new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse(this); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse result = + new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse(this); int from_bitField0_ = bitField0_; if (faceAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1503,7 +1730,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { } if (localizedObjectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = java.util.Collections.unmodifiableList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + java.util.Collections.unmodifiableList(localizedObjectAnnotations_); bitField0_ = (bitField0_ & ~0x00000010); } result.localizedObjectAnnotations_ = localizedObjectAnnotations_; @@ -1567,38 +1795,39 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) other); } else { super.mergeFrom(other); return this; @@ -1606,7 +1835,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()) + return this; if (faceAnnotationsBuilder_ == null) { if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { @@ -1625,9 +1855,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFaceAnnotationsFieldBuilder() : null; + faceAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFaceAnnotationsFieldBuilder() + : null; } else { faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); } @@ -1651,9 +1882,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse landmarkAnnotationsBuilder_ = null; landmarkAnnotations_ = other.landmarkAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); - landmarkAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarkAnnotationsFieldBuilder() : null; + landmarkAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarkAnnotationsFieldBuilder() + : null; } else { landmarkAnnotationsBuilder_.addAllMessages(other.landmarkAnnotations_); } @@ -1677,9 +1909,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse logoAnnotationsBuilder_ = null; logoAnnotations_ = other.logoAnnotations_; bitField0_ = (bitField0_ & ~0x00000004); - logoAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogoAnnotationsFieldBuilder() : null; + logoAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogoAnnotationsFieldBuilder() + : null; } else { logoAnnotationsBuilder_.addAllMessages(other.logoAnnotations_); } @@ -1703,9 +1936,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelAnnotationsFieldBuilder() : null; + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } @@ -1729,9 +1963,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse localizedObjectAnnotationsBuilder_ = null; localizedObjectAnnotations_ = other.localizedObjectAnnotations_; bitField0_ = (bitField0_ & ~0x00000010); - localizedObjectAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocalizedObjectAnnotationsFieldBuilder() : null; + localizedObjectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocalizedObjectAnnotationsFieldBuilder() + : null; } else { localizedObjectAnnotationsBuilder_.addAllMessages(other.localizedObjectAnnotations_); } @@ -1755,9 +1990,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; bitField0_ = (bitField0_ & ~0x00000020); - textAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextAnnotationsFieldBuilder() : null; + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; } else { textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); } @@ -1806,7 +2042,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AnnotateImageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1815,28 +2052,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List faceAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFaceAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - faceAnnotations_ = new java.util.ArrayList(faceAnnotations_); + faceAnnotations_ = + new java.util.ArrayList( + faceAnnotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> faceAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.FaceAnnotation, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> + faceAnnotationsBuilder_; /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List getFaceAnnotationsList() { + public java.util.List + getFaceAnnotationsList() { if (faceAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(faceAnnotations_); } else { @@ -1844,6 +2091,8 @@ public java.util.List getFaceA } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1858,6 +2107,8 @@ public int getFaceAnnotationsCount() { } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1872,6 +2123,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int i } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1893,6 +2146,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1911,6 +2166,8 @@ public Builder setFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1931,6 +2188,8 @@ public Builder addFaceAnnotations(com.google.cloud.vision.v1p4beta1.FaceAnnotati return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1952,6 +2211,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1970,6 +2231,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1988,6 +2251,8 @@ public Builder addFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -1998,8 +2263,7 @@ public Builder addAllFaceAnnotations( java.lang.Iterable values) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, faceAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_); onChanged(); } else { faceAnnotationsBuilder_.addAllMessages(values); @@ -2007,6 +2271,8 @@ public Builder addAllFaceAnnotations( return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2024,6 +2290,8 @@ public Builder clearFaceAnnotations() { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2041,6 +2309,8 @@ public Builder removeFaceAnnotations(int index) { return this; } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2052,6 +2322,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder getFaceAnnotatio return getFaceAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2061,19 +2333,22 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder getFaceAnnotatio public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( int index) { if (faceAnnotationsBuilder_ == null) { - return faceAnnotations_.get(index); } else { + return faceAnnotations_.get(index); + } else { return faceAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsOrBuilderList() { + public java.util.List + getFaceAnnotationsOrBuilderList() { if (faceAnnotationsBuilder_ != null) { return faceAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2081,6 +2356,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati } } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2088,10 +2365,12 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotati * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder() { - return getFaceAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
@@ -2100,26 +2379,34 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotatio */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotationsBuilder( int index) { - return getFaceAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); + return getFaceAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, face detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - public java.util.List - getFaceAnnotationsBuilderList() { + public java.util.List + getFaceAnnotationsBuilderList() { return getFaceAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceAnnotation, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder> getFaceAnnotationsFieldBuilder() { if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder>( + faceAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceAnnotation, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder>( faceAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2129,26 +2416,36 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder addFaceAnnotatio return faceAnnotationsBuilder_; } - private java.util.List landmarkAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + landmarkAnnotations_ = java.util.Collections.emptyList(); + private void ensureLandmarkAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - landmarkAnnotations_ = new java.util.ArrayList(landmarkAnnotations_); + landmarkAnnotations_ = + new java.util.ArrayList( + landmarkAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> landmarkAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + landmarkAnnotationsBuilder_; /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List getLandmarkAnnotationsList() { + public java.util.List + getLandmarkAnnotationsList() { if (landmarkAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarkAnnotations_); } else { @@ -2156,11 +2453,14 @@ public java.util.List getLan } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public int getLandmarkAnnotationsCount() { if (landmarkAnnotationsBuilder_ == null) { @@ -2170,11 +2470,14 @@ public int getLandmarkAnnotationsCount() { } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2184,11 +2487,14 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { @@ -2205,11 +2511,14 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder setLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2223,13 +2532,17 @@ public Builder setLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { + public Builder addLandmarkAnnotations( + com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { if (landmarkAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2243,11 +2556,14 @@ public Builder addLandmarkAnnotations(com.google.cloud.vision.v1p4beta1.EntityAn return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation value) { @@ -2264,11 +2580,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2282,11 +2601,14 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addLandmarkAnnotations( int index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder builderForValue) { @@ -2300,18 +2622,20 @@ public Builder addLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder addAllLandmarkAnnotations( java.lang.Iterable values) { if (landmarkAnnotationsBuilder_ == null) { ensureLandmarkAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarkAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarkAnnotations_); onChanged(); } else { landmarkAnnotationsBuilder_.addAllMessages(values); @@ -2319,11 +2643,14 @@ public Builder addAllLandmarkAnnotations( return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder clearLandmarkAnnotations() { if (landmarkAnnotationsBuilder_ == null) { @@ -2336,11 +2663,14 @@ public Builder clearLandmarkAnnotations() { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public Builder removeLandmarkAnnotations(int index) { if (landmarkAnnotationsBuilder_ == null) { @@ -2353,39 +2683,49 @@ public Builder removeLandmarkAnnotations(int index) { return this; } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLandmarkAnnotationsBuilder( int index) { return getLandmarkAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder + getLandmarkAnnotationsOrBuilder(int index) { if (landmarkAnnotationsBuilder_ == null) { - return landmarkAnnotations_.get(index); } else { + return landmarkAnnotations_.get(index); + } else { return landmarkAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsOrBuilderList() { + public java.util.List + getLandmarkAnnotationsOrBuilderList() { if (landmarkAnnotationsBuilder_ != null) { return landmarkAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2393,45 +2733,62 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAn } } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder() { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder + addLandmarkAnnotationsBuilder() { + return getLandmarkAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnnotationsBuilder( int index) { - return getLandmarkAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLandmarkAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, landmark detection has completed successfully.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; + * */ - public java.util.List - getLandmarkAnnotationsBuilderList() { + public java.util.List + getLandmarkAnnotationsBuilderList() { return getLandmarkAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLandmarkAnnotationsFieldBuilder() { if (landmarkAnnotationsBuilder_ == null) { - landmarkAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + landmarkAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( landmarkAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2442,25 +2799,34 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLandmarkAnn } private java.util.List logoAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLogoAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - logoAnnotations_ = new java.util.ArrayList(logoAnnotations_); + logoAnnotations_ = + new java.util.ArrayList( + logoAnnotations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> logoAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + logoAnnotationsBuilder_; /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List getLogoAnnotationsList() { + public java.util.List + getLogoAnnotationsList() { if (logoAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(logoAnnotations_); } else { @@ -2468,6 +2834,8 @@ public java.util.List getLog } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2482,6 +2850,8 @@ public int getLogoAnnotationsCount() { } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2496,6 +2866,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2517,6 +2889,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2535,6 +2909,8 @@ public Builder setLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2555,6 +2931,8 @@ public Builder addLogoAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnota return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2576,6 +2954,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2594,6 +2974,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2612,6 +2994,8 @@ public Builder addLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2622,8 +3006,7 @@ public Builder addAllLogoAnnotations( java.lang.Iterable values) { if (logoAnnotationsBuilder_ == null) { ensureLogoAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logoAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logoAnnotations_); onChanged(); } else { logoAnnotationsBuilder_.addAllMessages(values); @@ -2631,6 +3014,8 @@ public Builder addAllLogoAnnotations( return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2648,6 +3033,8 @@ public Builder clearLogoAnnotations() { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2665,6 +3052,8 @@ public Builder removeLogoAnnotations(int index) { return this; } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2676,6 +3065,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLogoAnnotat return getLogoAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2685,19 +3076,22 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLogoAnnotat public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder( int index) { if (logoAnnotationsBuilder_ == null) { - return logoAnnotations_.get(index); } else { + return logoAnnotations_.get(index); + } else { return logoAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsOrBuilderList() { + public java.util.List + getLogoAnnotationsOrBuilderList() { if (logoAnnotationsBuilder_ != null) { return logoAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -2705,6 +3099,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota } } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2712,10 +3108,12 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder() { - return getLogoAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
@@ -2724,26 +3122,35 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotat */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotationsBuilder( int index) { - return getLogoAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLogoAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, logo detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - public java.util.List - getLogoAnnotationsBuilderList() { + public java.util.List + getLogoAnnotationsBuilderList() { return getLogoAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLogoAnnotationsFieldBuilder() { if (logoAnnotationsBuilder_ == null) { - logoAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + logoAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( logoAnnotations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2754,25 +3161,34 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLogoAnnotat } private java.util.List labelAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - labelAnnotations_ = new java.util.ArrayList(labelAnnotations_); + labelAnnotations_ = + new java.util.ArrayList( + labelAnnotations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> labelAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + labelAnnotationsBuilder_; /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List getLabelAnnotationsList() { + public java.util.List + getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { @@ -2780,6 +3196,8 @@ public java.util.List getLab } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2794,6 +3212,8 @@ public int getLabelAnnotationsCount() { } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2808,6 +3228,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(in } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2829,6 +3251,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2847,6 +3271,8 @@ public Builder setLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2867,6 +3293,8 @@ public Builder addLabelAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnot return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2888,6 +3316,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2906,6 +3336,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2924,6 +3356,8 @@ public Builder addLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2934,8 +3368,7 @@ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); @@ -2943,6 +3376,8 @@ public Builder addAllLabelAnnotations( return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2960,6 +3395,8 @@ public Builder clearLabelAnnotations() { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2977,6 +3414,8 @@ public Builder removeLabelAnnotations(int index) { return this; } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2988,6 +3427,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLabelAnnota return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -2997,19 +3438,22 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getLabelAnnota public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder( int index) { if (labelAnnotationsBuilder_ == null) { - return labelAnnotations_.get(index); } else { + return labelAnnotations_.get(index); + } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsOrBuilderList() { + public java.util.List + getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3017,6 +3461,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot } } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3024,10 +3470,12 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnot * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder() { - return getLabelAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
@@ -3036,26 +3484,35 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnota */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnotationsBuilder( int index) { - return getLabelAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, label detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - public java.util.List - getLabelAnnotationsBuilderList() { + public java.util.List + getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -3065,27 +3522,38 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addLabelAnnota return labelAnnotationsBuilder_; } - private java.util.List localizedObjectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List + localizedObjectAnnotations_ = java.util.Collections.emptyList(); + private void ensureLocalizedObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - localizedObjectAnnotations_ = new java.util.ArrayList(localizedObjectAnnotations_); + localizedObjectAnnotations_ = + new java.util.ArrayList( + localizedObjectAnnotations_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> localizedObjectAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> + localizedObjectAnnotationsBuilder_; /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List getLocalizedObjectAnnotationsList() { + public java.util.List + getLocalizedObjectAnnotationsList() { if (localizedObjectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(localizedObjectAnnotations_); } else { @@ -3093,12 +3561,16 @@ public java.util.List * If present, localized object detection has completed successfully. * This will be sorted descending by confidence score. *
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public int getLocalizedObjectAnnotationsCount() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3108,14 +3580,19 @@ public int getLocalizedObjectAnnotationsCount() { } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation + getLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { return localizedObjectAnnotations_.get(index); } else { @@ -3123,12 +3600,16 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedO } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { @@ -3145,15 +3626,20 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder setLocalizedObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.set(index, builderForValue.build()); @@ -3164,14 +3650,19 @@ public Builder setLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { + public Builder addLocalizedObjectAnnotations( + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { if (localizedObjectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3185,12 +3676,16 @@ public Builder addLocalizedObjectAnnotations(com.google.cloud.vision.v1p4beta1.L return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation value) { @@ -3207,12 +3702,16 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { @@ -3226,15 +3725,20 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addLocalizedObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder builderForValue) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); localizedObjectAnnotations_.add(index, builderForValue.build()); @@ -3245,19 +3749,23 @@ public Builder addLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder addAllLocalizedObjectAnnotations( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (localizedObjectAnnotationsBuilder_ == null) { ensureLocalizedObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, localizedObjectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localizedObjectAnnotations_); onChanged(); } else { localizedObjectAnnotationsBuilder_.addAllMessages(values); @@ -3265,12 +3773,16 @@ public Builder addAllLocalizedObjectAnnotations( return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder clearLocalizedObjectAnnotations() { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3283,12 +3795,16 @@ public Builder clearLocalizedObjectAnnotations() { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ public Builder removeLocalizedObjectAnnotations(int index) { if (localizedObjectAnnotationsBuilder_ == null) { @@ -3301,42 +3817,56 @@ public Builder removeLocalizedObjectAnnotations(int index) { return this; } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder + getLocalizedObjectAnnotationsBuilder(int index) { return getLocalizedObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index) { if (localizedObjectAnnotationsBuilder_ == null) { - return localizedObjectAnnotations_.get(index); } else { + return localizedObjectAnnotations_.get(index); + } else { return localizedObjectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> + getLocalizedObjectAnnotationsOrBuilderList() { if (localizedObjectAnnotationsBuilder_ != null) { return localizedObjectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3344,48 +3874,70 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getL } } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder() { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder() { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder( - int index) { - return getLocalizedObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder + addLocalizedObjectAnnotationsBuilder(int index) { + return getLocalizedObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, localized object detection has completed successfully.
      * This will be sorted descending by confidence score.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - public java.util.List - getLocalizedObjectAnnotationsBuilderList() { + public java.util.List + getLocalizedObjectAnnotationsBuilderList() { return getLocalizedObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsFieldBuilder() { if (localizedObjectAnnotationsBuilder_ == null) { - localizedObjectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder>( + localizedObjectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder>( localizedObjectAnnotations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3396,25 +3948,34 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder addLo } private java.util.List textAnnotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - textAnnotations_ = new java.util.ArrayList(textAnnotations_); + textAnnotations_ = + new java.util.ArrayList( + textAnnotations_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> textAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + textAnnotationsBuilder_; /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List getTextAnnotationsList() { + public java.util.List + getTextAnnotationsList() { if (textAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(textAnnotations_); } else { @@ -3422,6 +3983,8 @@ public java.util.List getTex } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3436,6 +3999,8 @@ public int getTextAnnotationsCount() { } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3450,6 +4015,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3471,6 +4038,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3489,6 +4058,8 @@ public Builder setTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3509,6 +4080,8 @@ public Builder addTextAnnotations(com.google.cloud.vision.v1p4beta1.EntityAnnota return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3530,6 +4103,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3548,6 +4123,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3566,6 +4143,8 @@ public Builder addTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3576,8 +4155,7 @@ public Builder addAllTextAnnotations( java.lang.Iterable values) { if (textAnnotationsBuilder_ == null) { ensureTextAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); onChanged(); } else { textAnnotationsBuilder_.addAllMessages(values); @@ -3585,6 +4163,8 @@ public Builder addAllTextAnnotations( return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3602,6 +4182,8 @@ public Builder clearTextAnnotations() { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3619,6 +4201,8 @@ public Builder removeTextAnnotations(int index) { return this; } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3630,6 +4214,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getTextAnnotat return getTextAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3639,19 +4225,22 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder getTextAnnotat public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOrBuilder( int index) { if (textAnnotationsBuilder_ == null) { - return textAnnotations_.get(index); } else { + return textAnnotations_.get(index); + } else { return textAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsOrBuilderList() { + public java.util.List + getTextAnnotationsOrBuilderList() { if (textAnnotationsBuilder_ != null) { return textAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3659,6 +4248,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota } } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3666,10 +4257,12 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnota * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotationsBuilder() { - return getTextAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
@@ -3678,26 +4271,35 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat */ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotationsBuilder( int index) { - return getTextAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); + return getTextAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()); } /** + * + * *
      * If present, text (OCR) detection has completed successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - public java.util.List - getTextAnnotationsBuilderList() { + public java.util.List + getTextAnnotationsBuilderList() { return getTextAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder> getTextAnnotationsFieldBuilder() { if (textAnnotationsBuilder_ == null) { - textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.EntityAnnotation, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.EntityAnnotation, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>( textAnnotations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3709,8 +4311,13 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat private com.google.cloud.vision.v1p4beta1.TextAnnotation fullTextAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> fullTextAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation, + com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> + fullTextAnnotationBuilder_; /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3719,12 +4326,15 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder addTextAnnotat
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ public boolean hasFullTextAnnotation() { return fullTextAnnotationBuilder_ != null || fullTextAnnotation_ != null; } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3733,16 +4343,21 @@ public boolean hasFullTextAnnotation() {
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation() { if (fullTextAnnotationBuilder_ == null) { - return fullTextAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_; + return fullTextAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() + : fullTextAnnotation_; } else { return fullTextAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3766,6 +4381,8 @@ public Builder setFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnnot
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3787,6 +4404,8 @@ public Builder setFullTextAnnotation(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3800,7 +4419,9 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnn
       if (fullTextAnnotationBuilder_ == null) {
         if (fullTextAnnotation_ != null) {
           fullTextAnnotation_ =
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder(fullTextAnnotation_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder(fullTextAnnotation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fullTextAnnotation_ = value;
         }
@@ -3812,6 +4433,8 @@ public Builder mergeFullTextAnnotation(com.google.cloud.vision.v1p4beta1.TextAnn
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3833,6 +4456,8 @@ public Builder clearFullTextAnnotation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3843,11 +4468,13 @@ public Builder clearFullTextAnnotation() {
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
     public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnotationBuilder() {
-      
+
       onChanged();
       return getFullTextAnnotationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3857,15 +4484,19 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder getFullTextAnnot
      *
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
-    public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder() {
+    public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder
+        getFullTextAnnotationOrBuilder() {
       if (fullTextAnnotationBuilder_ != null) {
         return fullTextAnnotationBuilder_.getMessageOrBuilder();
       } else {
-        return fullTextAnnotation_ == null ?
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance() : fullTextAnnotation_;
+        return fullTextAnnotation_ == null
+            ? com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance()
+            : fullTextAnnotation_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, text (OCR) detection or document (OCR) text detection has
      * completed successfully.
@@ -3876,14 +4507,17 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnno
      * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.TextAnnotation,
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder,
+            com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>
         getFullTextAnnotationFieldBuilder() {
       if (fullTextAnnotationBuilder_ == null) {
-        fullTextAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.TextAnnotation, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>(
-                getFullTextAnnotation(),
-                getParentForChildren(),
-                isClean());
+        fullTextAnnotationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.TextAnnotation,
+                com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder,
+                com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder>(
+                getFullTextAnnotation(), getParentForChildren(), isClean());
         fullTextAnnotation_ = null;
       }
       return fullTextAnnotationBuilder_;
@@ -3891,41 +4525,55 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnno
 
     private com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safeSearchAnnotation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> safeSearchAnnotationBuilder_;
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation,
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder,
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>
+        safeSearchAnnotationBuilder_;
     /**
+     *
+     *
      * 
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ public boolean hasSafeSearchAnnotation() { return safeSearchAnnotationBuilder_ != null || safeSearchAnnotation_ != null; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation() { if (safeSearchAnnotationBuilder_ == null) { - return safeSearchAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } else { return safeSearchAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { + public Builder setSafeSearchAnnotation( + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3939,6 +4587,8 @@ public Builder setSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeSea return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3957,17 +4607,23 @@ public Builder setSafeSearchAnnotation( return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { + public Builder mergeSafeSearchAnnotation( + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationBuilder_ == null) { if (safeSearchAnnotation_ != null) { safeSearchAnnotation_ = - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder(safeSearchAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder( + safeSearchAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { safeSearchAnnotation_ = value; } @@ -3979,6 +4635,8 @@ public Builder mergeSafeSearchAnnotation(com.google.cloud.vision.v1p4beta1.SafeS return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -3997,33 +4655,42 @@ public Builder clearSafeSearchAnnotation() { return this; } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder + getSafeSearchAnnotationBuilder() { + onChanged(); return getSafeSearchAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder() { if (safeSearchAnnotationBuilder_ != null) { return safeSearchAnnotationBuilder_.getMessageOrBuilder(); } else { - return safeSearchAnnotation_ == null ? - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() : safeSearchAnnotation_; + return safeSearchAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance() + : safeSearchAnnotation_; } } /** + * + * *
      * If present, safe-search annotation has completed successfully.
      * 
@@ -4031,14 +4698,17 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSe * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder> getSafeSearchAnnotationFieldBuilder() { if (safeSearchAnnotationBuilder_ == null) { - safeSearchAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>( - getSafeSearchAnnotation(), - getParentForChildren(), - isClean()); + safeSearchAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation, + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder>( + getSafeSearchAnnotation(), getParentForChildren(), isClean()); safeSearchAnnotation_ = null; } return safeSearchAnnotationBuilder_; @@ -4046,41 +4716,55 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSe private com.google.cloud.vision.v1p4beta1.ImageProperties imagePropertiesAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> imagePropertiesAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.ImageProperties, + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> + imagePropertiesAnnotationBuilder_; /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ public boolean hasImagePropertiesAnnotation() { return imagePropertiesAnnotationBuilder_ != null || imagePropertiesAnnotation_ != null; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ public com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation() { if (imagePropertiesAnnotationBuilder_ == null) { - return imagePropertiesAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } else { return imagePropertiesAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1.ImageProperties value) { + public Builder setImagePropertiesAnnotation( + com.google.cloud.vision.v1p4beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4094,6 +4778,8 @@ public Builder setImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1.Im return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4112,17 +4798,23 @@ public Builder setImagePropertiesAnnotation( return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1.ImageProperties value) { + public Builder mergeImagePropertiesAnnotation( + com.google.cloud.vision.v1p4beta1.ImageProperties value) { if (imagePropertiesAnnotationBuilder_ == null) { if (imagePropertiesAnnotation_ != null) { imagePropertiesAnnotation_ = - com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder(imagePropertiesAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder( + imagePropertiesAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { imagePropertiesAnnotation_ = value; } @@ -4134,6 +4826,8 @@ public Builder mergeImagePropertiesAnnotation(com.google.cloud.vision.v1p4beta1. return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4152,33 +4846,42 @@ public Builder clearImagePropertiesAnnotation() { return this; } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p4beta1.ImageProperties.Builder getImagePropertiesAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.ImageProperties.Builder + getImagePropertiesAnnotationBuilder() { + onChanged(); return getImagePropertiesAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder() { if (imagePropertiesAnnotationBuilder_ != null) { return imagePropertiesAnnotationBuilder_.getMessageOrBuilder(); } else { - return imagePropertiesAnnotation_ == null ? - com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() : imagePropertiesAnnotation_; + return imagePropertiesAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance() + : imagePropertiesAnnotation_; } } /** + * + * *
      * If present, image properties were extracted successfully.
      * 
@@ -4186,14 +4889,17 @@ public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImageProper * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageProperties, + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder> getImagePropertiesAnnotationFieldBuilder() { if (imagePropertiesAnnotationBuilder_ == null) { - imagePropertiesAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageProperties, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder>( - getImagePropertiesAnnotation(), - getParentForChildren(), - isClean()); + imagePropertiesAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageProperties, + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder, + com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder>( + getImagePropertiesAnnotation(), getParentForChildren(), isClean()); imagePropertiesAnnotation_ = null; } return imagePropertiesAnnotationBuilder_; @@ -4201,41 +4907,55 @@ public com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImageProper private com.google.cloud.vision.v1p4beta1.CropHintsAnnotation cropHintsAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> cropHintsAnnotationBuilder_; + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> + cropHintsAnnotationBuilder_; /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ public boolean hasCropHintsAnnotation() { return cropHintsAnnotationBuilder_ != null || cropHintsAnnotation_ != null; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation() { if (cropHintsAnnotationBuilder_ == null) { - return cropHintsAnnotation_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } else { return cropHintsAnnotationBuilder_.getMessage(); } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { + public Builder setCropHintsAnnotation( + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4249,6 +4969,8 @@ public Builder setCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHint return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4267,17 +4989,22 @@ public Builder setCropHintsAnnotation( return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { + public Builder mergeCropHintsAnnotation( + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation value) { if (cropHintsAnnotationBuilder_ == null) { if (cropHintsAnnotation_ != null) { cropHintsAnnotation_ = - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder(cropHintsAnnotation_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsAnnotation_ = value; } @@ -4289,6 +5016,8 @@ public Builder mergeCropHintsAnnotation(com.google.cloud.vision.v1p4beta1.CropHi return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4307,33 +5036,42 @@ public Builder clearCropHintsAnnotation() { return this; } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder getCropHintsAnnotationBuilder() { - + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder + getCropHintsAnnotationBuilder() { + onChanged(); return getCropHintsAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ - public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder + getCropHintsAnnotationOrBuilder() { if (cropHintsAnnotationBuilder_ != null) { return cropHintsAnnotationBuilder_.getMessageOrBuilder(); } else { - return cropHintsAnnotation_ == null ? - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() : cropHintsAnnotation_; + return cropHintsAnnotation_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance() + : cropHintsAnnotation_; } } /** + * + * *
      * If present, crop hints have completed successfully.
      * 
@@ -4341,14 +5079,17 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHin * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder> getCropHintsAnnotationFieldBuilder() { if (cropHintsAnnotationBuilder_ == null) { - cropHintsAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder>( - getCropHintsAnnotation(), - getParentForChildren(), - isClean()); + cropHintsAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder>( + getCropHintsAnnotation(), getParentForChildren(), isClean()); cropHintsAnnotation_ = null; } return cropHintsAnnotationBuilder_; @@ -4356,34 +5097,47 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHin private com.google.cloud.vision.v1p4beta1.WebDetection webDetection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> webDetectionBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection, + com.google.cloud.vision.v1p4beta1.WebDetection.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> + webDetectionBuilder_; /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ public boolean hasWebDetection() { return webDetectionBuilder_ != null || webDetection_ != null; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ public com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection() { if (webDetectionBuilder_ == null) { - return webDetection_ == null ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() + : webDetection_; } else { return webDetectionBuilder_.getMessage(); } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4404,6 +5158,8 @@ public Builder setWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection va return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4422,6 +5178,8 @@ public Builder setWebDetection( return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4432,7 +5190,9 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection if (webDetectionBuilder_ == null) { if (webDetection_ != null) { webDetection_ = - com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder(webDetection_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder(webDetection_) + .mergeFrom(value) + .buildPartial(); } else { webDetection_ = value; } @@ -4444,6 +5204,8 @@ public Builder mergeWebDetection(com.google.cloud.vision.v1p4beta1.WebDetection return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4462,6 +5224,8 @@ public Builder clearWebDetection() { return this; } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4469,11 +5233,13 @@ public Builder clearWebDetection() { * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; */ public com.google.cloud.vision.v1p4beta1.WebDetection.Builder getWebDetectionBuilder() { - + onChanged(); return getWebDetectionFieldBuilder().getBuilder(); } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4484,11 +5250,14 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr if (webDetectionBuilder_ != null) { return webDetectionBuilder_.getMessageOrBuilder(); } else { - return webDetection_ == null ? - com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() : webDetection_; + return webDetection_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetection.getDefaultInstance() + : webDetection_; } } /** + * + * *
      * If present, web detection has completed successfully.
      * 
@@ -4496,14 +5265,17 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection, + com.google.cloud.vision.v1p4beta1.WebDetection.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder> getWebDetectionFieldBuilder() { if (webDetectionBuilder_ == null) { - webDetectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection, com.google.cloud.vision.v1p4beta1.WebDetection.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder>( - getWebDetection(), - getParentForChildren(), - isClean()); + webDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection, + com.google.cloud.vision.v1p4beta1.WebDetection.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder>( + getWebDetection(), getParentForChildren(), isClean()); webDetection_ = null; } return webDetectionBuilder_; @@ -4511,41 +5283,55 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOr private com.google.cloud.vision.v1p4beta1.ProductSearchResults productSearchResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> productSearchResultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> + productSearchResultsBuilder_; /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ public boolean hasProductSearchResults() { return productSearchResultsBuilder_ != null || productSearchResults_ != null; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults() { if (productSearchResultsBuilder_ == null) { - return productSearchResults_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } else { return productSearchResultsBuilder_.getMessage(); } } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public Builder setProductSearchResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { + public Builder setProductSearchResults( + com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4559,6 +5345,8 @@ public Builder setProductSearchResults(com.google.cloud.vision.v1p4beta1.Product return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4577,17 +5365,23 @@ public Builder setProductSearchResults( return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public Builder mergeProductSearchResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { + public Builder mergeProductSearchResults( + com.google.cloud.vision.v1p4beta1.ProductSearchResults value) { if (productSearchResultsBuilder_ == null) { if (productSearchResults_ != null) { productSearchResults_ = - com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder(productSearchResults_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder( + productSearchResults_) + .mergeFrom(value) + .buildPartial(); } else { productSearchResults_ = value; } @@ -4599,6 +5393,8 @@ public Builder mergeProductSearchResults(com.google.cloud.vision.v1p4beta1.Produ return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4617,33 +5413,42 @@ public Builder clearProductSearchResults() { return this; } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder getProductSearchResultsBuilder() { - + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder + getProductSearchResultsBuilder() { + onChanged(); return getProductSearchResultsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, product search has completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder() { if (productSearchResultsBuilder_ != null) { return productSearchResultsBuilder_.getMessageOrBuilder(); } else { - return productSearchResults_ == null ? - com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() : productSearchResults_; + return productSearchResults_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance() + : productSearchResults_; } } /** + * + * *
      * If present, product search has completed successfully.
      * 
@@ -4651,14 +5456,17 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProduc * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder> getProductSearchResultsFieldBuilder() { if (productSearchResultsBuilder_ == null) { - productSearchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder>( - getProductSearchResults(), - getParentForChildren(), - isClean()); + productSearchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder>( + getProductSearchResults(), getParentForChildren(), isClean()); productSearchResults_ = null; } return productSearchResultsBuilder_; @@ -4666,8 +5474,11 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProduc private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4675,12 +5486,15 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProduc
      * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4688,6 +5502,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 9; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -4698,6 +5513,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4720,6 +5537,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4728,8 +5547,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 9;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -4740,6 +5558,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4751,8 +5571,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -4764,6 +5583,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4784,6 +5605,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4793,11 +5616,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 9;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4810,11 +5635,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, represents the error message for the operation.
      * Note that filled-in image annotations are guaranteed to be
@@ -4824,14 +5650,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -4839,36 +5665,49 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.vision.v1p4beta1.ImageAnnotationContext context_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder> contextBuilder_;
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>
+        contextBuilder_;
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
      * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return The context. */ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext() { if (contextBuilder_ == null) { - return context_ == null ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_; + return context_ == null + ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() + : context_; } else { return contextBuilder_.getMessage(); } } /** + * + * *
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4890,6 +5729,8 @@ public Builder setContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationConte
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4909,6 +5750,8 @@ public Builder setContext(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4920,7 +5763,9 @@ public Builder mergeContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationCon
       if (contextBuilder_ == null) {
         if (context_ != null) {
           context_ =
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder(context_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder(context_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           context_ = value;
         }
@@ -4932,6 +5777,8 @@ public Builder mergeContext(com.google.cloud.vision.v1p4beta1.ImageAnnotationCon
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4951,6 +5798,8 @@ public Builder clearContext() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4959,11 +5808,13 @@ public Builder clearContext() {
      * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
      */
     public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder getContextBuilder() {
-      
+
       onChanged();
       return getContextFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4975,11 +5826,14 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
       if (contextBuilder_ != null) {
         return contextBuilder_.getMessageOrBuilder();
       } else {
-        return context_ == null ?
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance() : context_;
+        return context_ == null
+            ? com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance()
+            : context_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, contextual information is needed to understand where this image
      * comes from.
@@ -4988,21 +5842,24 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder getCont
      * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>
         getContextFieldBuilder() {
       if (contextBuilder_ == null) {
-        contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder, com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>(
-                getContext(),
-                getParentForChildren(),
-                isClean());
+        contextBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.ImageAnnotationContext,
+                com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder,
+                com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder>(
+                getContext(), getParentForChildren(), isClean());
         context_ = null;
       }
       return contextBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -5012,12 +5869,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
   private static final com.google.cloud.vision.v1p4beta1.AnnotateImageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AnnotateImageResponse();
   }
@@ -5026,16 +5883,16 @@ public static com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnnotateImageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnnotateImageResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnnotateImageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnnotateImageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -5050,6 +5907,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
index 1111293c4..d0331e36c 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateImageResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AnnotateImageResponseOrBuilder extends
+public interface AnnotateImageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AnnotateImageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - java.util.List - getFaceAnnotationsList(); + java.util.List getFaceAnnotationsList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -25,6 +44,8 @@ public interface AnnotateImageResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.FaceAnnotation getFaceAnnotations(int index); /** + * + * *
    * If present, face detection has completed successfully.
    * 
@@ -33,34 +54,40 @@ public interface AnnotateImageResponseOrBuilder extends */ int getFaceAnnotationsCount(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - java.util.List + java.util.List getFaceAnnotationsOrBuilderList(); /** + * + * *
    * If present, face detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1; */ - com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List - getLandmarkAnnotationsList(); + java.util.List getLandmarkAnnotationsList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLandmarkAnnotations(int index); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBu */ int getLandmarkAnnotationsCount(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2; */ - java.util.List + java.util.List getLandmarkAnnotationsOrBuilderList(); /** + * + * *
    * If present, landmark detection has completed successfully.
    * 
@@ -96,15 +129,18 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List - getLogoAnnotationsList(); + java.util.List getLogoAnnotationsList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -113,6 +149,8 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLogoAnnotations(int index); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -121,15 +159,19 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLandmarkAnnotatio */ int getLogoAnnotationsCount(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3; */ - java.util.List + java.util.List getLogoAnnotationsOrBuilderList(); /** + * + * *
    * If present, logo detection has completed successfully.
    * 
@@ -140,15 +182,18 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - java.util.List - getLabelAnnotationsList(); + java.util.List getLabelAnnotationsList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -157,6 +202,8 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getLabelAnnotations(int index); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -165,15 +212,19 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLogoAnnotationsOr */ int getLabelAnnotationsCount(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4; */ - java.util.List + java.util.List getLabelAnnotationsOrBuilderList(); /** + * + * *
    * If present, label detection has completed successfully.
    * 
@@ -184,64 +235,88 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getLabelAnnotationsO int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getLocalizedObjectAnnotations( + int index); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ int getLocalizedObjectAnnotationsCount(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - java.util.List + java.util.List getLocalizedObjectAnnotationsOrBuilderList(); /** + * + * *
    * If present, localized object detection has completed successfully.
    * This will be sorted descending by confidence score.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * + * repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22; + * */ - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder + getLocalizedObjectAnnotationsOrBuilder(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - java.util.List - getTextAnnotationsList(); + java.util.List getTextAnnotationsList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -250,6 +325,8 @@ com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalize */ com.google.cloud.vision.v1p4beta1.EntityAnnotation getTextAnnotations(int index); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -258,15 +335,19 @@ com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder getLocalize */ int getTextAnnotationsCount(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5; */ - java.util.List + java.util.List getTextAnnotationsOrBuilderList(); /** + * + * *
    * If present, text (OCR) detection has completed successfully.
    * 
@@ -277,6 +358,8 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr int index); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -285,10 +368,13 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return Whether the fullTextAnnotation field is set. */ boolean hasFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -297,10 +383,13 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12; + * * @return The fullTextAnnotation. */ com.google.cloud.vision.v1p4beta1.TextAnnotation getFullTextAnnotation(); /** + * + * *
    * If present, text (OCR) detection or document (OCR) text detection has
    * completed successfully.
@@ -313,78 +402,104 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder getFullTextAnnotationOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return Whether the safeSearchAnnotation field is set. */ boolean hasSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; + * * @return The safeSearchAnnotation. */ com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getSafeSearchAnnotation(); /** + * + * *
    * If present, safe-search annotation has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6; */ - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder(); + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder + getSafeSearchAnnotationOrBuilder(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return Whether the imagePropertiesAnnotation field is set. */ boolean hasImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; + * * @return The imagePropertiesAnnotation. */ com.google.cloud.vision.v1p4beta1.ImageProperties getImagePropertiesAnnotation(); /** + * + * *
    * If present, image properties were extracted successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8; */ - com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder(); + com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder + getImagePropertiesAnnotationOrBuilder(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return Whether the cropHintsAnnotation field is set. */ boolean hasCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11; + * * @return The cropHintsAnnotation. */ com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getCropHintsAnnotation(); /** + * + * *
    * If present, crop hints have completed successfully.
    * 
@@ -394,24 +509,32 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return Whether the webDetection field is set. */ boolean hasWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetection web_detection = 13; + * * @return The webDetection. */ com.google.cloud.vision.v1p4beta1.WebDetection getWebDetection(); /** + * + * *
    * If present, web detection has completed successfully.
    * 
@@ -421,33 +544,44 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder getWebDetectionOrBuilder(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return Whether the productSearchResults field is set. */ boolean hasProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; + * * @return The productSearchResults. */ com.google.cloud.vision.v1p4beta1.ProductSearchResults getProductSearchResults(); /** + * + * *
    * If present, product search has completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14; */ - com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder(); + com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder + getProductSearchResultsOrBuilder(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -455,10 +589,13 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -466,10 +603,13 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
    * 
* * .google.rpc.Status error = 9; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, represents the error message for the operation.
    * Note that filled-in image annotations are guaranteed to be
@@ -481,26 +621,34 @@ com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder getTextAnnotationsOr
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return Whether the context field is set. */ boolean hasContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
    * 
* * .google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21; + * * @return The context. */ com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getContext(); /** + * + * *
    * If present, contextual information is needed to understand where this image
    * comes from.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
similarity index 73%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
index 5b23b25b4..166bb2965 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * An offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest} */ -public final class AsyncAnnotateFileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) AsyncAnnotateFileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileRequest.newBuilder() to construct. private AsyncAnnotateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncAnnotateFileRequest() { features_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,61 +71,72 @@ private AsyncAnnotateFileRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p4beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - features_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; - if (imageContext_ != null) { - subBuilder = imageContext_.toBuilder(); - } - imageContext_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(imageContext_); - imageContext_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Feature.parser(), extensionRegistry)); + break; } + case 26: + { + com.google.cloud.vision.v1p4beta1.ImageContext.Builder subBuilder = null; + if (imageContext_ != null) { + subBuilder = imageContext_.toBuilder(); + } + imageContext_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImageContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(imageContext_); + imageContext_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,8 +144,7 @@ private AsyncAnnotateFileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -126,27 +153,33 @@ private AsyncAnnotateFileRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); } public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -154,18 +187,25 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Information about the input file.
    * 
@@ -180,6 +220,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu public static final int FEATURES_FIELD_NUMBER = 2; private java.util.List features_; /** + * + * *
    * Required. Requested features.
    * 
@@ -191,6 +233,8 @@ public java.util.List getFeaturesList return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -198,11 +242,13 @@ public java.util.List getFeaturesList * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** + * + * *
    * Required. Requested features.
    * 
@@ -214,6 +260,8 @@ public int getFeaturesCount() { return features_.size(); } /** + * + * *
    * Required. Requested features.
    * 
@@ -225,6 +273,8 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { return features_.get(index); } /** + * + * *
    * Required. Requested features.
    * 
@@ -232,19 +282,21 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { return features_.get(index); } public static final int IMAGE_CONTEXT_FIELD_NUMBER = 3; private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ @java.lang.Override @@ -252,18 +304,25 @@ public boolean hasImageContext() { return imageContext_ != null; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -278,11 +337,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -290,18 +352,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
@@ -314,6 +383,7 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputConfig_ != null) { output.writeMessage(1, getInputConfig()); } @@ -349,20 +418,16 @@ public int getSerializedSize() { size = 0; if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, features_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImageContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,29 +437,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other = + (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (!getFeaturesList() - .equals(other.getFeaturesList())) return false; + if (!getFeaturesList().equals(other.getFeaturesList())) return false; if (hasImageContext() != other.hasImageContext()) return false; if (hasImageContext()) { - if (!getImageContext() - .equals(other.getImageContext())) return false; + if (!getImageContext().equals(other.getImageContext())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -429,117 +491,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.class, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.newBuilder() @@ -547,17 +619,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFeaturesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; } @java.lang.Override @@ -610,7 +682,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest result = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(this); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest result = + new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(this); int from_bitField0_ = bitField0_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -644,38 +717,39 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) other); } else { super.mergeFrom(other); return this; @@ -683,7 +757,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()) + return this; if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } @@ -705,9 +780,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequ featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000001); - featuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeaturesFieldBuilder() : null; + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; } else { featuresBuilder_.addAllMessages(other.features_); } @@ -738,7 +814,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,38 +824,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Information about the input file.
      * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -799,6 +890,8 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig valu return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -817,6 +910,8 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -827,7 +922,9 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -839,6 +936,8 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.InputConfig va return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -857,6 +956,8 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -864,11 +965,13 @@ public Builder clearInputConfig() { * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ public com.google.cloud.vision.v1p4beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -879,11 +982,14 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Information about the input file.
      * 
@@ -891,32 +997,41 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.InputConfig, com.google.cloud.vision.v1p4beta1.InputConfig.Builder, com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.InputConfig, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder, + com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } private java.util.List features_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> featuresBuilder_; + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + featuresBuilder_; /** + * + * *
      * Required. Requested features.
      * 
@@ -931,6 +1046,8 @@ public java.util.List getFeaturesList } } /** + * + * *
      * Required. Requested features.
      * 
@@ -945,6 +1062,8 @@ public int getFeaturesCount() { } } /** + * + * *
      * Required. Requested features.
      * 
@@ -959,14 +1078,15 @@ public com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index) { } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder setFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder setFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,6 +1100,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -998,6 +1120,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1018,14 +1142,15 @@ public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature value) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - int index, com.google.cloud.vision.v1p4beta1.Feature value) { + public Builder addFeatures(int index, com.google.cloud.vision.v1p4beta1.Feature value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1039,14 +1164,15 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public Builder addFeatures( - com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { + public Builder addFeatures(com.google.cloud.vision.v1p4beta1.Feature.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); @@ -1057,6 +1183,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1075,6 +1203,8 @@ public Builder addFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1085,8 +1215,7 @@ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -1094,6 +1223,8 @@ public Builder addAllFeatures( return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1111,6 +1242,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Required. Requested features.
      * 
@@ -1128,39 +1261,44 @@ public Builder removeFeatures(int index) { return this; } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Feature.Builder getFeaturesBuilder(int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { if (featuresBuilder_ == null) { - return features_.get(index); } else { + return features_.get(index); + } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -1168,6 +1306,8 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( } } /** + * + * *
      * Required. Requested features.
      * 
@@ -1175,42 +1315,48 @@ public com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( - int index) { - return getFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Feature.getDefaultInstance()); } /** + * + * *
      * Required. Requested features.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Feature, com.google.cloud.vision.v1p4beta1.Feature.Builder, com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( - features_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Feature, + com.google.cloud.vision.v1p4beta1.Feature.Builder, + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1218,34 +1364,47 @@ public com.google.cloud.vision.v1p4beta1.Feature.Builder addFeaturesBuilder( private com.google.cloud.vision.v1p4beta1.ImageContext imageContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> imageContextBuilder_; + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + imageContextBuilder_; /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ public boolean hasImageContext() { return imageContextBuilder_ != null || imageContext_ != null; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ public com.google.cloud.vision.v1p4beta1.ImageContext getImageContext() { if (imageContextBuilder_ == null) { - return imageContext_ == null ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } else { return imageContextBuilder_.getMessage(); } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1266,6 +1425,8 @@ public Builder setImageContext(com.google.cloud.vision.v1p4beta1.ImageContext va return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1284,6 +1445,8 @@ public Builder setImageContext( return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1294,7 +1457,9 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext if (imageContextBuilder_ == null) { if (imageContext_ != null) { imageContext_ = - com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder(imageContext_) + .mergeFrom(value) + .buildPartial(); } else { imageContext_ = value; } @@ -1306,6 +1471,8 @@ public Builder mergeImageContext(com.google.cloud.vision.v1p4beta1.ImageContext return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1324,6 +1491,8 @@ public Builder clearImageContext() { return this; } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1331,11 +1500,13 @@ public Builder clearImageContext() { * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ public com.google.cloud.vision.v1p4beta1.ImageContext.Builder getImageContextBuilder() { - + onChanged(); return getImageContextFieldBuilder().getBuilder(); } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1346,11 +1517,14 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr if (imageContextBuilder_ != null) { return imageContextBuilder_.getMessageOrBuilder(); } else { - return imageContext_ == null ? - com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() : imageContext_; + return imageContext_ == null + ? com.google.cloud.vision.v1p4beta1.ImageContext.getDefaultInstance() + : imageContext_; } } /** + * + * *
      * Additional context that may accompany the image(s) in the file.
      * 
@@ -1358,14 +1532,17 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder> getImageContextFieldBuilder() { if (imageContextBuilder_ == null) { - imageContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageContext, com.google.cloud.vision.v1p4beta1.ImageContext.Builder, com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( - getImageContext(), - getParentForChildren(), - isClean()); + imageContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImageContext, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder, + com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder>( + getImageContext(), getParentForChildren(), isClean()); imageContext_ = null; } return imageContextBuilder_; @@ -1373,34 +1550,47 @@ public com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOr private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1421,6 +1611,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1439,6 +1631,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1449,7 +1643,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1461,6 +1657,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1479,6 +1677,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1486,11 +1686,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1501,11 +1703,14 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
@@ -1513,21 +1718,24 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,12 +1745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) private static final com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest(); } @@ -1551,16 +1759,16 @@ public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1575,6 +1783,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java index d2e427e25..a1d2f4bd5 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncAnnotateFileRequestOrBuilder extends +public interface AsyncAnnotateFileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
* * .google.cloud.vision.v1p4beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.vision.v1p4beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Information about the input file.
    * 
@@ -35,15 +59,18 @@ public interface AsyncAnnotateFileRequestOrBuilder extends com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List - getFeaturesList(); + java.util.List getFeaturesList(); /** + * + * *
    * Required. Requested features.
    * 
@@ -52,6 +79,8 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Feature getFeatures(int index); /** + * + * *
    * Required. Requested features.
    * 
@@ -60,43 +89,54 @@ public interface AsyncAnnotateFileRequestOrBuilder extends */ int getFeaturesCount(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** + * + * *
    * Required. Requested features.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Feature features = 2; */ - com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return Whether the imageContext field is set. */ boolean hasImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
* * .google.cloud.vision.v1p4beta1.ImageContext image_context = 3; + * * @return The imageContext. */ com.google.cloud.vision.v1p4beta1.ImageContext getImageContext(); /** + * + * *
    * Additional context that may accompany the image(s) in the file.
    * 
@@ -106,24 +146,32 @@ com.google.cloud.vision.v1p4beta1.FeatureOrBuilder getFeaturesOrBuilder( com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder getImageContextOrBuilder(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 4; + * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java index 1dd7a1d72..6a86ab0ea 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The response for a single offline file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse} */ -public final class AsyncAnnotateFileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncAnnotateFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) AsyncAnnotateFileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncAnnotateFileResponse.newBuilder() to construct. private AsyncAnnotateFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncAnnotateFileResponse() { - } + + private AsyncAnnotateFileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncAnnotateFileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncAnnotateFileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private AsyncAnnotateFileResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private AsyncAnnotateFileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) obj; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other = + (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for a single offline file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.newBuilder() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; } @java.lang.Override @@ -370,7 +409,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse result = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse result = + new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) other); } else { super.mergeFrom(other); return this; @@ -423,7 +464,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance()) + return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +488,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +501,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -506,6 +562,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -524,6 +582,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -534,7 +594,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +608,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -564,6 +628,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -571,11 +637,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -586,11 +654,14 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncAnnotateFileRequest.
      * 
@@ -598,21 +669,24 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) private static final com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse(); } @@ -636,16 +710,16 @@ public static com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncAnnotateFileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncAnnotateFileResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncAnnotateFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncAnnotateFileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java index d8ff569dd..4d7c24e4e 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncAnnotateFileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncAnnotateFileResponseOrBuilder extends +public interface AsyncAnnotateFileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncAnnotateFileRequest.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java similarity index 62% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java index 7af88b49b..69adbd184 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Multiple async file annotation requests are batched into a single service
  * call.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
  */
-public final class AsyncBatchAnnotateFilesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
     AsyncBatchAnnotateFilesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
-  private AsyncBatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private AsyncBatchAnnotateFilesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AsyncBatchAnnotateFilesRequest() {
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AsyncBatchAnnotateFilesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AsyncBatchAnnotateFilesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,22 +73,27 @@ private AsyncBatchAnnotateFilesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              requests_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requests_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requests_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.parser(),
+                      extensionRegistry));
+              break;
             }
-            requests_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,8 +101,7 @@ private AsyncBatchAnnotateFilesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requests_ = java.util.Collections.unmodifiableList(requests_);
@@ -88,72 +110,97 @@ private AsyncBatchAnnotateFilesRequest(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
+            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 1;
   private java.util.List requests_;
   /**
+   *
+   *
    * 
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -162,6 +209,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -188,8 +235,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -199,15 +245,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,96 +275,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple async file annotation requests are batched into a single service
    * call.
@@ -326,21 +380,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
       com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
+              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
+              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -348,17 +404,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRequestsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,13 +428,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
     }
 
@@ -393,7 +450,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest build()
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
-      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(this);
+      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result =
+          new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(this);
       int from_bitField0_ = bitField0_;
       if (requestsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -412,46 +470,50 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other) {
-      if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other) {
+      if (other
+          == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
+        return this;
       if (requestsBuilder_ == null) {
         if (!other.requests_.isEmpty()) {
           if (requests_.isEmpty()) {
@@ -470,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFil
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            requestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequestsFieldBuilder() : null;
+            requestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequestsFieldBuilder()
+                    : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -497,7 +560,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -506,28 +571,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List requests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        requests_ = new java.util.ArrayList(requests_);
+        requests_ =
+            new java.util.ArrayList(
+                requests_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> requestsBuilder_;
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest,
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder,
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>
+        requestsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -535,11 +612,15 @@ public java.util.List * Required. Individual async file annotation requests for this batch. *
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -549,11 +630,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -563,11 +648,15 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(in } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -584,14 +673,19 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( - int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); @@ -602,11 +696,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -622,11 +720,15 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRe return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -643,11 +745,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -661,14 +767,19 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( - int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); @@ -679,18 +790,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -698,11 +813,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -715,11 +834,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -732,39 +855,53 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -772,56 +909,74 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe } } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,30 +986,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,9 +1023,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java new file mode 100644 index 000000000..d44d5b515 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AsyncBatchAnnotateFilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual async file annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java index 1ee4eba65..d2c58a8fb 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponse.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response to an async batch file annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse} */ -public final class AsyncBatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) AsyncBatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateFilesResponse.newBuilder() to construct. - private AsyncBatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateFilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +72,27 @@ private AsyncBatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +100,7 @@ private AsyncBatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +109,27 @@ private AsyncBatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -111,10 +138,13 @@ private AsyncBatchAnnotateFilesResponse(
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List getResponsesList() {
+  public java.util.List
+      getResponsesList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -123,11 +153,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -140,6 +173,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -152,6 +187,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -166,6 +203,7 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getR
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +215,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +229,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +239,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,135 +269,147 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to an async batch file annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance(); } @@ -396,7 +445,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,46 +465,50 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse other) { + if (other + == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFil responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +555,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +566,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, + com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -531,7 +597,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -539,6 +606,8 @@ public java.util.List
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -554,6 +623,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -569,6 +640,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -591,6 +664,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -599,7 +674,8 @@ public Builder setResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder setResponses(
-        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.set(index, builderForValue.build());
@@ -610,6 +686,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -631,6 +709,8 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileR
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -653,6 +733,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -672,6 +754,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -680,7 +764,8 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addResponses(
-        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
+        int index,
+        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder builderForValue) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
         responses_.add(index, builderForValue.build());
@@ -691,6 +776,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -699,11 +786,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +798,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -729,6 +818,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -747,6 +838,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -759,6 +852,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -766,14 +861,17 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder getRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getResponsesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder
+        getResponsesOrBuilder(int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -781,8 +879,9 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +889,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getR
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -797,11 +898,15 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder getR
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder
+        addResponsesBuilder() {
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -811,10 +916,14 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addRe
      */
     public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, one for each request in
      * AsyncBatchAnnotateFilesRequest.
@@ -822,27 +931,30 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder addRe
      *
      * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse,
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse,
+                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,30 +964,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse();
   }
 
-  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstance() {
+  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AsyncBatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AsyncBatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AsyncBatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,9 +1001,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
index 8fe1eb059..f5a3e8d57 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
+public interface AsyncBatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface AsyncBatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, one for each request in
    * AsyncBatchAnnotateFilesRequest.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
similarity index 62%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
index 1f1a1e7f4..a2fd9a052 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java
@@ -1,40 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Request for async image annotation for a list of images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest} */ -public final class AsyncBatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesRequest.newBuilder() to construct. - private AsyncBatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncBatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +72,43 @@ private AsyncBatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,8 +116,7 @@ private AsyncBatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -100,72 +125,95 @@ private AsyncBatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -176,11 +224,16 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -188,23 +241,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. The desired output location and metadata (e.g. format).
    * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -212,6 +276,7 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -241,12 +305,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -256,19 +318,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -295,135 +356,147 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for async image annotation for a list of images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,13 +516,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance(); } @@ -464,7 +538,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -488,46 +563,50 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest other) { + if (other + == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -546,9 +625,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateIma requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -576,7 +656,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,28 +667,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -614,11 +708,15 @@ public java.util.List ge } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -628,11 +726,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -642,11 +744,15 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -663,11 +769,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -681,11 +791,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -701,11 +815,15 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageReques return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -722,11 +840,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -740,11 +862,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -758,18 +884,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -777,11 +907,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -794,11 +928,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -811,39 +949,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -851,49 +1002,65 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; @@ -901,39 +1068,58 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequest private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -949,11 +1135,15 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.vision.v1p4beta1.OutputConfig.Builder builderForValue) { @@ -967,17 +1157,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -989,11 +1185,15 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1007,55 +1207,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. The desired output location and metadata (e.g. format).
      * 
* - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1065,30 +1281,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,9 +1318,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..bbe6c4dfb --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface AsyncBatchAnnotateImagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); + + /** + * + * + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputConfig. + */ + com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and metadata (e.g. format).
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java index e937d1cc9..bf190cef2 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponse.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response to an async batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse} */ -public final class AsyncBatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncBatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncBatchAnnotateImagesResponse.newBuilder() to construct. - private AsyncBatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AsyncBatchAnnotateImagesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncBatchAnnotateImagesResponse() { - } + + private AsyncBatchAnnotateImagesResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncBatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AsyncBatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +69,29 @@ private AsyncBatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private AsyncBatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
@@ -138,6 +170,7 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputConfig_ != null) { output.writeMessage(1, getOutputConfig()); } @@ -164,8 +196,7 @@ public int getSerializedSize() { size = 0; if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) obj; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,134 +239,145 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to an async batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,14 +391,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + .getDefaultInstance(); } @java.lang.Override @@ -370,7 +414,8 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse build( @java.lang.Override public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(this); if (outputConfigBuilder_ == null) { result.outputConfig_ = outputConfig_; } else { @@ -384,46 +429,51 @@ public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse)other); + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse other) { + if (other + == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + .getDefaultInstance()) return this; if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } @@ -446,7 +496,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +510,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -506,6 +571,8 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -524,6 +591,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -534,7 +603,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -546,6 +617,8 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -564,6 +637,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -571,11 +646,13 @@ public Builder clearOutputConfig() { * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -586,11 +663,14 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * The output location and metadata from AsyncBatchAnnotateImagesRequest.
      * 
@@ -598,21 +678,24 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.OutputConfig, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.OutputConfig, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder, + com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +705,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse(); } - public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncBatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncBatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsyncBatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +742,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java index 9bb3274f9..a46a4db38 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface AsyncBatchAnnotateImagesResponseOrBuilder extends +public interface AsyncBatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
* * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 1; + * * @return The outputConfig. */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** + * + * *
    * The output location and metadata from AsyncBatchAnnotateImagesRequest.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java index a1da2dffc..d78bdcd21 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A list of requests to annotate files using the BatchAnnotateFiles API.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest} */ -public final class BatchAnnotateFilesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) BatchAnnotateFilesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesRequest.newBuilder() to construct. private BatchAnnotateFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateFilesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateFilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateFilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateFilesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.parser(), + extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateFilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -87,77 +108,100 @@ private BatchAnnotateFilesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( @@ -166,6 +210,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -192,8 +236,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,117 +276,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A list of requests to annotate files using the BatchAnnotateFiles API.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.newBuilder() @@ -351,17 +404,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; } @java.lang.Override @@ -396,7 +449,8 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest result = + new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +469,39 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) other); } else { super.mergeFrom(other); return this; @@ -454,7 +509,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -473,9 +529,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesReq requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -500,7 +557,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,27 +567,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -539,12 +608,16 @@ public java.util.List get } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -554,12 +627,16 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -569,12 +646,16 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int ind } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -591,12 +672,16 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -610,12 +695,16 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -631,12 +720,16 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -653,12 +746,16 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -672,12 +769,16 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -691,19 +792,23 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -711,12 +816,16 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -729,12 +838,16 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -747,42 +860,55 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -790,59 +916,75 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest } } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.getDefaultInstance()); } /** + * + * *
      * Required. The list of file annotation requests. Right now we support only
      * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -852,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest(); } @@ -866,16 +1008,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateFilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateFilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateFilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateFilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,6 +1032,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java index fa9180402..36879ffac 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java @@ -1,58 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface BatchAnnotateFilesRequestOrBuilder extends +public interface BatchAnnotateFilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getRequestsList(); + java.util.List getRequestsList(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getRequestsOrBuilderList(); /** + * + * *
    * Required. The list of file annotation requests. Right now we support only
    * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java index da076569e..c13e71838 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A list of file annotation responses.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse} */ -public final class BatchAnnotateFilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) BatchAnnotateFilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateFilesResponse.newBuilder() to construct. private BatchAnnotateFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateFilesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateFilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateFilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateFilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AnnotateFileResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateFilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private BatchAnnotateFilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -115,6 +141,8 @@ public java.util.List ge
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -123,11 +151,13 @@ public java.util.List ge
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -140,6 +170,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -152,6 +184,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int i
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -166,6 +200,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +212,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < responses_.size(); i++) {
       output.writeMessage(1, responses_.get(i));
     }
@@ -192,8 +226,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +236,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) obj;
+    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other =
+        (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) obj;
 
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,117 +266,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A list of file annotation responses.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.newBuilder() @@ -351,17 +394,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,13 +418,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance(); } @@ -396,7 +440,8 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse result = + new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +460,39 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +500,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -473,9 +521,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRes responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -500,7 +549,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +559,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, + com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -531,7 +590,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -539,6 +599,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -554,6 +616,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -569,6 +633,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int i
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -591,6 +657,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -610,6 +678,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -631,6 +701,8 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateFileRespon
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -653,6 +725,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -672,6 +746,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -691,6 +767,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -699,11 +777,11 @@ public Builder addResponses(
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -711,6 +789,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -729,6 +809,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -747,6 +829,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -759,6 +843,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder getRespons
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -769,11 +855,14 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder getRespons
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -781,8 +870,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +879,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
       }
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -798,10 +889,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getRespon
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -811,10 +904,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addRespons
      */
     public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of file annotation responses, each response corresponding to each
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -822,27 +918,30 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder addRespons
      *
      * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse,
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder,
+            com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.AnnotateFileResponse, com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.AnnotateFileResponse,
+                com.google.cloud.vision.v1p4beta1.AnnotateFileResponse.Builder,
+                com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +951,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
-  private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse();
   }
@@ -866,16 +966,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchAnnotateFilesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BatchAnnotateFilesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchAnnotateFilesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new BatchAnnotateFilesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +990,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
index 91cba2e22..7e90c8988 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface BatchAnnotateFilesResponseOrBuilder extends
+public interface BatchAnnotateFilesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -15,9 +33,10 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -27,6 +46,8 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.AnnotateFileResponse getResponses(int index);
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -36,6 +57,8 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -43,9 +66,11 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of file annotation responses, each response corresponding to each
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
@@ -53,6 +78,5 @@ public interface BatchAnnotateFilesResponseOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.AnnotateFileResponse responses = 1;
    */
-  com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.AnnotateFileResponseOrBuilder getResponsesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
similarity index 64%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
index d398103bd..2914d96fb 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Multiple image annotation requests are batched into a single service call.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest} */ -public final class BatchAnnotateImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) BatchAnnotateImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesRequest.newBuilder() to construct. private BatchAnnotateImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesRequest( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), + extensionRegistry)); + break; } - requests_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); @@ -87,72 +108,95 @@ private BatchAnnotateImagesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getRequestsList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRequestsOrBuilderList() { return requests_; } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getRequestsCount() { return requests_.size(); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); } /** + * + * *
    * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( @@ -161,6 +205,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } @@ -187,8 +231,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +241,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) obj; - if (!getRequestsList() - .equals(other.getRequestsList())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +271,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Multiple image annotation requests are batched into a single service call.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.newBuilder() @@ -346,17 +399,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +423,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance(); } @@ -391,7 +445,8 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest result = + new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +465,39 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest.getDefaultInstance()) + return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { @@ -468,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRe requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; } else { requestsBuilder_.addAllMessages(other.requests_); } @@ -495,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +564,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List requests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); + requests_ = + new java.util.ArrayList( + requests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> requestsBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + requestsBuilder_; /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getRequestsList() { + public java.util.List + getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { @@ -533,11 +605,15 @@ public java.util.List ge } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -547,11 +623,15 @@ public int getRequestsCount() { } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -561,11 +641,15 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -582,11 +666,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -600,11 +688,15 @@ public Builder setRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -620,11 +712,15 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageReques return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -641,11 +737,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -659,11 +759,15 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -677,18 +781,22 @@ public Builder addRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); @@ -696,11 +804,15 @@ public Builder addAllRequests( return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -713,11 +825,15 @@ public Builder clearRequests() { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -730,39 +846,52 @@ public Builder removeRequests(int index) { return this; } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { - return requests_.get(index); } else { + return requests_.get(index); + } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsOrBuilderList() { + public java.util.List + getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { @@ -770,56 +899,72 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques } } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.getDefaultInstance()); } /** + * + * *
      * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getRequestsBuilderList() { + public java.util.List + getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +974,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest(); } @@ -843,16 +989,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java new file mode 100644 index 000000000..c3232c069 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface BatchAnnotateImagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. Individual image annotation requests for this batch.
+   * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java index c36f1e0db..521791531 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response to a batch image annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse} */ -public final class BatchAnnotateImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchAnnotateImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) BatchAnnotateImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchAnnotateImagesResponse.newBuilder() to construct. private BatchAnnotateImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchAnnotateImagesResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchAnnotateImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchAnnotateImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private BatchAnnotateImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse>(); + mutable_bitField0_ |= 0x00000001; + } + responses_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), + extensionRegistry)); + break; } - responses_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private BatchAnnotateImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -87,22 +108,27 @@ private BatchAnnotateImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -110,10 +136,13 @@ private BatchAnnotateImagesResponse( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -121,11 +150,13 @@ public java.util.List g * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -137,6 +168,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -148,6 +181,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int return responses_.get(index); } /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -161,6 +196,7 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -187,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +232,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +262,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response to a batch image annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.class, + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.newBuilder() @@ -346,17 +390,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance(); } @@ -391,7 +436,8 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse result = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(this); + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse result = + new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +456,39 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +496,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -468,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRe responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -495,7 +545,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +556,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> responsesBuilder_; + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List getResponsesList() { + public java.util.List + getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { @@ -533,6 +595,8 @@ public java.util.List g } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -547,6 +611,8 @@ public int getResponsesCount() { } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -561,6 +627,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -582,6 +650,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -589,7 +659,8 @@ public Builder setResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder setResponses( - int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); @@ -600,6 +671,8 @@ public Builder setResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -620,6 +693,8 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateImageRespo return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -641,6 +716,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -659,6 +736,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -666,7 +745,8 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder addResponses( - int index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); @@ -677,6 +757,8 @@ public Builder addResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -684,11 +766,11 @@ public Builder addResponses( * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public Builder addAllResponses( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -696,6 +778,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -713,6 +797,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -730,6 +816,8 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -741,6 +829,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -750,19 +840,23 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +864,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo } } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -777,10 +873,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
@@ -789,37 +887,43 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon */ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addResponsesBuilder( int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.getDefaultInstance()); } /** + * + * *
      * Individual responses to image annotation requests within the batch.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder, + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +933,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse(); } @@ -843,16 +948,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchAnnotateImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchAnnotateImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAnnotateImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchAnnotateImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +972,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java index a85f5923d..600868752 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface BatchAnnotateImagesResponseOrBuilder extends +public interface BatchAnnotateImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -25,6 +44,8 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int index); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
@@ -33,21 +54,24 @@ public interface BatchAnnotateImagesResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * Individual responses to image annotation requests within the batch.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 1; */ - com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java index 609ca27f0..25de67fe2 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Metadata for the batch operations such as the current state.
  * This is included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata}
  */
-public final class BatchOperationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
     BatchOperationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchOperationMetadata.newBuilder() to construct.
   private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchOperationMetadata() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,45 +72,50 @@ private BatchOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
-            }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+              state_ = rawValue;
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +123,41 @@ private BatchOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
+            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class,
+            com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the batch request can be in.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -139,6 +166,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is actively being processed.
      * 
@@ -147,6 +176,8 @@ public enum State */ PROCESSING(1), /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -156,6 +187,8 @@ public enum State
      */
     SUCCESSFUL(2),
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -164,6 +197,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -177,6 +212,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -185,6 +222,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is actively being processed.
      * 
@@ -193,6 +232,8 @@ public enum State */ public static final int PROCESSING_VALUE = 1; /** + * + * *
      * The request is done and at least one item has been successfully
      * processed.
@@ -202,6 +243,8 @@ public enum State
      */
     public static final int SUCCESSFUL_VALUE = 2;
     /**
+     *
+     *
      * 
      * The request is done and no item has been successfully processed.
      * 
@@ -210,6 +253,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The request is done after the longrunning.Operations.CancelOperation has
      * been called by the user.  Any records that were processed before the
@@ -220,7 +265,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -245,51 +289,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return PROCESSING;
-        case 2: return SUCCESSFUL;
-        case 3: return FAILED;
-        case 4: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return PROCESSING;
+        case 2:
+          return SUCCESSFUL;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -309,38 +357,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -348,11 +410,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -360,6 +425,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -374,6 +441,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -381,6 +450,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -388,6 +458,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -395,6 +467,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -402,6 +475,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -416,6 +491,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -427,9 +503,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (state_ != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (state_
+        != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(1, state_);
     }
     if (submitTime_ != null) {
@@ -447,17 +524,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (state_ != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, state_);
+    if (state_
+        != com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.STATE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -467,23 +543,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BatchOperationMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other = (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) obj;
+    com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other =
+        (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) obj;
 
     if (state_ != other.state_) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -512,96 +587,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Metadata for the batch operations such as the current state.
    * This is included in the `metadata` field of the `Operation` returned by the
@@ -610,21 +693,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.BatchOperationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
       com.google.cloud.vision.v1p4beta1.BatchOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class, com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
+              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.class,
+              com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.newBuilder()
@@ -632,16 +717,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -663,9 +747,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -684,7 +768,8 @@ public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata buildPartial() {
-      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata result = new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata(this);
+      com.google.cloud.vision.v1p4beta1.BatchOperationMetadata result =
+          new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata(this);
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -704,38 +789,39 @@ public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchOperationMetadata)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -743,7 +829,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata other) {
-      if (other == com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -772,7 +859,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.BatchOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -784,51 +872,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State result = + com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -836,21 +940,24 @@ public Builder setState(com.google.cloud.vision.v1p4beta1.BatchOperationMetadata if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -858,34 +965,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -906,14 +1026,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); onChanged(); @@ -924,6 +1045,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -934,7 +1057,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -946,6 +1069,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -964,6 +1089,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -971,11 +1098,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -986,11 +1115,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the batch request was submitted to the server.
      * 
@@ -998,14 +1130,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1013,8 +1148,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1022,12 +1162,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1035,6 +1178,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1045,6 +1189,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1067,6 +1213,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1075,8 +1223,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1087,6 +1234,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1099,7 +1248,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1111,6 +1260,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1131,6 +1282,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1140,11 +1293,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1157,11 +1312,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the batch request is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1171,21 +1327,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1195,12 +1354,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
   private static final com.google.cloud.vision.v1p4beta1.BatchOperationMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BatchOperationMetadata();
   }
@@ -1209,16 +1368,16 @@ public static com.google.cloud.vision.v1p4beta1.BatchOperationMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchOperationMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BatchOperationMetadata(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchOperationMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new BatchOperationMetadata(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1233,6 +1392,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.BatchOperationMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
index dc1d431a3..0cf2b3b85 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchOperationMetadataOrBuilder.java
@@ -1,50 +1,80 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface BatchOperationMetadataOrBuilder extends
+public interface BatchOperationMetadataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BatchOperationMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.BatchOperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the batch request was submitted to the server.
    * 
@@ -54,6 +84,8 @@ public interface BatchOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -61,10 +93,13 @@ public interface BatchOperationMetadataOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchOperationMetadataOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the batch request is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
similarity index 77%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
index 3fba75ae6..e993771f9 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Block.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/text_annotation.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Logical element on the page.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Block} */ -public final class Block extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Block extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Block) BlockOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Block() { paragraphs_ = java.util.Collections.emptyList(); blockType_ = 0; @@ -26,16 +44,15 @@ private Block() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,71 @@ private Block( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); - } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paragraphs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paragraphs_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Paragraph.parser(), extensionRegistry)); + break; } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paragraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + blockType_ = rawValue; + break; } - paragraphs_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Paragraph.parser(), extensionRegistry)); - break; - } - case 32: { - int rawValue = input.readEnum(); - - blockType_ = rawValue; - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,8 +144,7 @@ private Block( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { paragraphs_ = java.util.Collections.unmodifiableList(paragraphs_); @@ -125,29 +153,35 @@ private Block( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Block.class, com.google.cloud.vision.v1p4beta1.Block.Builder.class); + com.google.cloud.vision.v1p4beta1.Block.class, + com.google.cloud.vision.v1p4beta1.Block.Builder.class); } /** + * + * *
    * Type of a block (text, image etc) as identified by OCR.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.Block.BlockType} */ - public enum BlockType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BlockType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown block type.
      * 
@@ -156,6 +190,8 @@ public enum BlockType */ UNKNOWN(0), /** + * + * *
      * Regular text block.
      * 
@@ -164,6 +200,8 @@ public enum BlockType */ TEXT(1), /** + * + * *
      * Table block.
      * 
@@ -172,6 +210,8 @@ public enum BlockType */ TABLE(2), /** + * + * *
      * Image block.
      * 
@@ -180,6 +220,8 @@ public enum BlockType */ PICTURE(3), /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -188,6 +230,8 @@ public enum BlockType */ RULER(4), /** + * + * *
      * Barcode block.
      * 
@@ -199,6 +243,8 @@ public enum BlockType ; /** + * + * *
      * Unknown block type.
      * 
@@ -207,6 +253,8 @@ public enum BlockType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Regular text block.
      * 
@@ -215,6 +263,8 @@ public enum BlockType */ public static final int TEXT_VALUE = 1; /** + * + * *
      * Table block.
      * 
@@ -223,6 +273,8 @@ public enum BlockType */ public static final int TABLE_VALUE = 2; /** + * + * *
      * Image block.
      * 
@@ -231,6 +283,8 @@ public enum BlockType */ public static final int PICTURE_VALUE = 3; /** + * + * *
      * Horizontal/vertical line box.
      * 
@@ -239,6 +293,8 @@ public enum BlockType */ public static final int RULER_VALUE = 4; /** + * + * *
      * Barcode block.
      * 
@@ -247,7 +303,6 @@ public enum BlockType */ public static final int BARCODE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,52 +327,55 @@ public static BlockType valueOf(int value) { */ public static BlockType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return TEXT; - case 2: return TABLE; - case 3: return PICTURE; - case 4: return RULER; - case 5: return BARCODE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return TEXT; + case 2: + return TABLE; + case 3: + return PICTURE; + case 4: + return RULER; + case 5: + return BARCODE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlockType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlockType findValueByNumber(int number) { - return BlockType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockType findValueByNumber(int number) { + return BlockType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p4beta1.Block.getDescriptor().getEnumTypes().get(0); } private static final BlockType[] VALUES = values(); - public static BlockType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BlockType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,11 +395,14 @@ private BlockType(int value) { public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -349,18 +410,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the block.
    * 
@@ -368,13 +436,16 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -394,6 +465,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -401,6 +473,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -420,13 +494,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -455,6 +534,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int PARAGRAPHS_FIELD_NUMBER = 3;
   private java.util.List paragraphs_;
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -466,6 +547,8 @@ public java.util.List getParagraphs return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -473,11 +556,13 @@ public java.util.List getParagraphs * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getParagraphsOrBuilderList() { return paragraphs_; } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -489,6 +574,8 @@ public int getParagraphsCount() { return paragraphs_.size(); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -500,6 +587,8 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { return paragraphs_.get(index); } /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -507,46 +596,57 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { return paragraphs_.get(index); } public static final int BLOCK_TYPE_FIELD_NUMBER = 4; private int blockType_; /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Block.BlockType result = com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); + com.google.cloud.vision.v1p4beta1.Block.BlockType result = + com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); return result == null ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -555,6 +655,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,8 +667,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -593,24 +693,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < paragraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, paragraphs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paragraphs_.get(i)); } if (blockType_ != com.google.cloud.vision.v1p4beta1.Block.BlockType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, blockType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockType_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,7 +715,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Block)) { return super.equals(obj); @@ -629,20 +724,16 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getParagraphsList() - .equals(other.getParagraphsList())) return false; + if (!getParagraphsList().equals(other.getParagraphsList())) return false; if (blockType_ != other.blockType_) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,125 +760,133 @@ public int hashCode() { hash = (37 * hash) + BLOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + blockType_; hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Block parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Block parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Block prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Logical element on the page.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Block} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Block) com.google.cloud.vision.v1p4beta1.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Block.class, com.google.cloud.vision.v1p4beta1.Block.Builder.class); + com.google.cloud.vision.v1p4beta1.Block.class, + com.google.cloud.vision.v1p4beta1.Block.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Block.newBuilder() @@ -795,17 +894,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParagraphsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +934,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; } @java.lang.Override @@ -856,7 +955,8 @@ public com.google.cloud.vision.v1p4beta1.Block build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block buildPartial() { - com.google.cloud.vision.v1p4beta1.Block result = new com.google.cloud.vision.v1p4beta1.Block(this); + com.google.cloud.vision.v1p4beta1.Block result = + new com.google.cloud.vision.v1p4beta1.Block(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -887,38 +987,39 @@ public com.google.cloud.vision.v1p4beta1.Block buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Block) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Block)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Block) other); } else { super.mergeFrom(other); return this; @@ -951,9 +1052,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Block other) { paragraphsBuilder_ = null; paragraphs_ = other.paragraphs_; bitField0_ = (bitField0_ & ~0x00000001); - paragraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParagraphsFieldBuilder() : null; + paragraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParagraphsFieldBuilder() + : null; } else { paragraphsBuilder_.addAllMessages(other.paragraphs_); } @@ -993,45 +1095,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1045,6 +1162,8 @@ public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1063,17 +1182,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -1085,6 +1209,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1103,33 +1229,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the block.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the block.
      * 
@@ -1137,14 +1272,17 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -1152,8 +1290,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1173,12 +1316,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1198,16 +1344,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1242,6 +1393,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1274,6 +1427,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1298,7 +1453,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1310,6 +1467,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1342,6 +1501,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1363,11 +1524,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1392,11 +1555,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the block.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1418,32 +1584,42 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List paragraphs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureParagraphsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        paragraphs_ = new java.util.ArrayList(paragraphs_);
+        paragraphs_ =
+            new java.util.ArrayList(paragraphs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> paragraphsBuilder_;
+            com.google.cloud.vision.v1p4beta1.Paragraph,
+            com.google.cloud.vision.v1p4beta1.Paragraph.Builder,
+            com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>
+        paragraphsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1458,6 +1634,8 @@ public java.util.List getParagraphs } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1472,6 +1650,8 @@ public int getParagraphsCount() { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1486,14 +1666,15 @@ public com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index) { } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public Builder setParagraphs( - int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { + public Builder setParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,6 +1688,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1525,6 +1708,8 @@ public Builder setParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1545,14 +1730,15 @@ public Builder addParagraphs(com.google.cloud.vision.v1p4beta1.Paragraph value) return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public Builder addParagraphs( - int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { + public Builder addParagraphs(int index, com.google.cloud.vision.v1p4beta1.Paragraph value) { if (paragraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1566,6 +1752,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1584,6 +1772,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1602,6 +1792,8 @@ public Builder addParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1612,8 +1804,7 @@ public Builder addAllParagraphs( java.lang.Iterable values) { if (paragraphsBuilder_ == null) { ensureParagraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paragraphs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paragraphs_); onChanged(); } else { paragraphsBuilder_.addAllMessages(values); @@ -1621,6 +1812,8 @@ public Builder addAllParagraphs( return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1638,6 +1831,8 @@ public Builder clearParagraphs() { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1655,39 +1850,44 @@ public Builder removeParagraphs(int index) { return this; } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.Paragraph.Builder getParagraphsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Paragraph.Builder getParagraphsBuilder(int index) { return getParagraphsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index) { if (paragraphsBuilder_ == null) { - return paragraphs_.get(index); } else { + return paragraphs_.get(index); + } else { return paragraphsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsOrBuilderList() { + public java.util.List + getParagraphsOrBuilderList() { if (paragraphsBuilder_ != null) { return paragraphsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,6 +1895,8 @@ public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuild } } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
@@ -1702,42 +1904,48 @@ public com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuild * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder() { - return getParagraphsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); + return getParagraphsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder( - int index) { - return getParagraphsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder(int index) { + return getParagraphsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Paragraph.getDefaultInstance()); } /** + * + * *
      * List of paragraphs in this block (if this blocks is of type text).
      * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - public java.util.List - getParagraphsBuilderList() { + public java.util.List + getParagraphsBuilderList() { return getParagraphsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> + com.google.cloud.vision.v1p4beta1.Paragraph, + com.google.cloud.vision.v1p4beta1.Paragraph.Builder, + com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder> getParagraphsFieldBuilder() { if (paragraphsBuilder_ == null) { - paragraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Paragraph, com.google.cloud.vision.v1p4beta1.Paragraph.Builder, com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>( - paragraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + paragraphsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Paragraph, + com.google.cloud.vision.v1p4beta1.Paragraph.Builder, + com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder>( + paragraphs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); paragraphs_ = null; } return paragraphsBuilder_; @@ -1745,51 +1953,67 @@ public com.google.cloud.vision.v1p4beta1.Paragraph.Builder addParagraphsBuilder( private int blockType_ = 0; /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ - @java.lang.Override public int getBlockTypeValue() { + @java.lang.Override + public int getBlockTypeValue() { return blockType_; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @param value The enum numeric value on the wire for blockType to set. * @return This builder for chaining. */ public Builder setBlockTypeValue(int value) { - + blockType_ = value; onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Block.BlockType result = com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); - return result == null ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.Block.BlockType result = + com.google.cloud.vision.v1p4beta1.Block.BlockType.valueOf(blockType_); + return result == null + ? com.google.cloud.vision.v1p4beta1.Block.BlockType.UNRECOGNIZED + : result; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @param value The blockType to set. * @return This builder for chaining. */ @@ -1797,33 +2021,39 @@ public Builder setBlockType(com.google.cloud.vision.v1p4beta1.Block.BlockType va if (value == null) { throw new NullPointerException(); } - + blockType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Detected block type (text, image etc) for this block.
      * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return This builder for chaining. */ public Builder clearBlockType() { - + blockType_ = 0; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1831,37 +2061,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the block. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1871,12 +2107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Block) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Block) private static final com.google.cloud.vision.v1p4beta1.Block DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Block(); } @@ -1885,16 +2121,16 @@ public static com.google.cloud.vision.v1p4beta1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1909,6 +2145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java index e8b0d95ff..4b0c967d8 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BlockOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface BlockOrBuilder extends +public interface BlockOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Block) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the block.
    * 
@@ -35,6 +59,8 @@ public interface BlockOrBuilder extends com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface BlockOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the block.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface BlockOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - java.util.List - getParagraphsList(); + java.util.List getParagraphsList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -121,6 +156,8 @@ public interface BlockOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Paragraph getParagraphs(int index); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
@@ -129,49 +166,61 @@ public interface BlockOrBuilder extends */ int getParagraphsCount(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - java.util.List + java.util.List getParagraphsOrBuilderList(); /** + * + * *
    * List of paragraphs in this block (if this blocks is of type text).
    * 
* * repeated .google.cloud.vision.v1p4beta1.Paragraph paragraphs = 3; */ - com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder getParagraphsOrBuilder(int index); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The enum numeric value on the wire for blockType. */ int getBlockTypeValue(); /** + * + * *
    * Detected block type (text, image etc) for this block.
    * 
* * .google.cloud.vision.v1p4beta1.Block.BlockType block_type = 4; + * * @return The blockType. */ com.google.cloud.vision.v1p4beta1.Block.BlockType getBlockType(); /** + * + * *
    * Confidence of the OCR results on the block. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java index 36961f228..9f1e3abc8 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPoly.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BoundingPoly} */ -public final class BoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.BoundingPoly) BoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPoly.newBuilder() to construct. private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPoly() { vertices_ = java.util.Collections.emptyList(); normalizedVertices_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private BoundingPoly() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,37 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Vertex.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + normalizedVertices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.NormalizedVertex.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +110,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -100,22 +122,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.GeometryProto + .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.GeometryProto + .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BoundingPoly.class, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p4beta1.BoundingPoly.class, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -127,6 +154,8 @@ public java.util.List getVerticesList( return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -134,11 +163,13 @@ public java.util.List getVerticesList( * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -150,6 +181,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -161,6 +194,8 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -168,14 +203,15 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; private java.util.List normalizedVertices_; /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -183,10 +219,13 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -194,11 +233,13 @@ public java.util.List getNor * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -210,6 +251,8 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -221,6 +264,8 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices( return normalizedVertices_.get(index); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -234,6 +279,7 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder getNormalized } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -263,12 +308,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,17 +322,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.BoundingPoly other = (com.google.cloud.vision.v1p4beta1.BoundingPoly) obj; + com.google.cloud.vision.v1p4beta1.BoundingPoly other = + (com.google.cloud.vision.v1p4beta1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,118 +356,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.BoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.BoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A bounding polygon for the detected image annotation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.BoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.BoundingPoly) com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.GeometryProto + .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.GeometryProto + .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.BoundingPoly.class, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); + com.google.cloud.vision.v1p4beta1.BoundingPoly.class, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder() @@ -432,18 +484,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVerticesFieldBuilder(); getNormalizedVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.GeometryProto + .internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -484,7 +536,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly buildPartial() { - com.google.cloud.vision.v1p4beta1.BoundingPoly result = new com.google.cloud.vision.v1p4beta1.BoundingPoly(this); + com.google.cloud.vision.v1p4beta1.BoundingPoly result = + new com.google.cloud.vision.v1p4beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -512,38 +565,39 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.BoundingPoly)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -570,9 +624,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BoundingPoly other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -596,9 +651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.BoundingPoly other) { normalizedVerticesBuilder_ = null; normalizedVertices_ = other.normalizedVertices_; bitField0_ = (bitField0_ & ~0x00000002); - normalizedVerticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNormalizedVerticesFieldBuilder() : null; + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNormalizedVerticesFieldBuilder() + : null; } else { normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); } @@ -632,21 +688,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.vision.v1p4beta1.Vertex, + com.google.cloud.vision.v1p4beta1.Vertex.Builder, + com.google.cloud.vision.v1p4beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -661,6 +724,8 @@ public java.util.List getVerticesList( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -675,6 +740,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -689,14 +756,15 @@ public com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.vision.v1p4beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,6 +778,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -728,6 +798,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -748,14 +820,15 @@ public Builder addVertices(com.google.cloud.vision.v1p4beta1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.vision.v1p4beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.vision.v1p4beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -769,14 +842,15 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public Builder addVertices( - com.google.cloud.vision.v1p4beta1.Vertex.Builder builderForValue) { + public Builder addVertices(com.google.cloud.vision.v1p4beta1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -787,6 +861,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -805,6 +881,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -815,8 +893,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -824,6 +901,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -841,6 +920,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -858,39 +939,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -898,6 +984,8 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -905,67 +993,83 @@ public com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder> + com.google.cloud.vision.v1p4beta1.Vertex, + com.google.cloud.vision.v1p4beta1.Vertex.Builder, + com.google.cloud.vision.v1p4beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Vertex, com.google.cloud.vision.v1p4beta1.Vertex.Builder, com.google.cloud.vision.v1p4beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Vertex, + com.google.cloud.vision.v1p4beta1.Vertex.Builder, + com.google.cloud.vision.v1p4beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNormalizedVerticesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - normalizedVertices_ = new java.util.ArrayList(normalizedVertices_); + normalizedVertices_ = + new java.util.ArrayList( + normalizedVertices_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.vision.v1p4beta1.NormalizedVertex, + com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -973,11 +1077,14 @@ public java.util.List getNor } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -987,11 +1094,14 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1001,11 +1111,14 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices( } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { @@ -1022,11 +1135,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1040,11 +1156,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices(com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { @@ -1060,11 +1179,14 @@ public Builder addNormalizedVertices(com.google.cloud.vision.v1p4beta1.Normalize return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex value) { @@ -1081,11 +1203,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1099,11 +1224,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder builderForValue) { @@ -1117,18 +1245,20 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder addAllNormalizedVertices( java.lang.Iterable values) { if (normalizedVerticesBuilder_ == null) { ensureNormalizedVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, normalizedVertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); onChanged(); } else { normalizedVerticesBuilder_.addAllMessages(values); @@ -1136,11 +1266,14 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -1153,11 +1286,14 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -1170,39 +1306,49 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1210,45 +1356,62 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder getNormalized } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ - public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; + * */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> + com.google.cloud.vision.v1p4beta1.NormalizedVertex, + com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.NormalizedVertex, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.NormalizedVertex, + com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder, + com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1257,9 +1420,9 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder addNormalizedV } return normalizedVerticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BoundingPoly) private static final com.google.cloud.vision.v1p4beta1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.BoundingPoly(); } @@ -1283,16 +1446,16 @@ public static com.google.cloud.vision.v1p4beta1.BoundingPoly getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,6 +1470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java index 72e8b2769..28d5cb902 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BoundingPolyOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,34 +54,40 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Vertex vertices = 1; */ - com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List - getNormalizedVerticesList(); + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( */ com.google.cloud.vision.v1p4beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
@@ -77,15 +106,19 @@ com.google.cloud.vision.v1p4beta1.VertexOrBuilder getVerticesOrBuilder( */ int getNormalizedVerticesCount(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.vision.v1p4beta1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java index a4881d938..c9ee4d375 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A Celebrity is a group of Faces with an identity.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} */ -public final class Celebrity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Celebrity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Celebrity) CelebrityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Celebrity.newBuilder() to construct. private Celebrity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Celebrity() { name_ = ""; displayName_ = ""; @@ -27,16 +45,15 @@ private Celebrity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Celebrity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Celebrity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private Celebrity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +107,40 @@ private Celebrity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Celebrity.class, com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + com.google.cloud.vision.v1p4beta1.Celebrity.class, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -124,30 +149,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -158,11 +183,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -171,29 +199,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -204,11 +232,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The Celebrity's description.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -217,29 +248,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The Celebrity's description.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -248,6 +279,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -296,19 +327,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Celebrity)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Celebrity other = (com.google.cloud.vision.v1p4beta1.Celebrity) obj; + com.google.cloud.vision.v1p4beta1.Celebrity other = + (com.google.cloud.vision.v1p4beta1.Celebrity) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,118 +360,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Celebrity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Celebrity is a group of Faces with an identity.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Celebrity) com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Celebrity.class, com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + com.google.cloud.vision.v1p4beta1.Celebrity.class, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder() @@ -450,16 +488,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; } @java.lang.Override @@ -494,7 +531,8 @@ public com.google.cloud.vision.v1p4beta1.Celebrity build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Celebrity buildPartial() { - com.google.cloud.vision.v1p4beta1.Celebrity result = new com.google.cloud.vision.v1p4beta1.Celebrity(this); + com.google.cloud.vision.v1p4beta1.Celebrity result = + new com.google.cloud.vision.v1p4beta1.Celebrity(this); result.name_ = name_; result.displayName_ = displayName_; result.description_ = description_; @@ -506,38 +544,39 @@ public com.google.cloud.vision.v1p4beta1.Celebrity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Celebrity) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Celebrity)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Celebrity) other); } else { super.mergeFrom(other); return this; @@ -589,19 +628,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -610,21 +651,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -632,57 +674,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the preloaded Celebrity. Has the format
      * `builtin/{mid}`.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -690,18 +739,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -710,20 +761,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -731,54 +783,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The Celebrity's display name.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -786,18 +845,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The Celebrity's description.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -806,20 +867,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The Celebrity's description.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -827,61 +889,68 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The Celebrity's description.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The Celebrity's description.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The Celebrity's description.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +960,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Celebrity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Celebrity) private static final com.google.cloud.vision.v1p4beta1.Celebrity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Celebrity(); } @@ -905,16 +974,16 @@ public static com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Celebrity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Celebrity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Celebrity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Celebrity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,6 +998,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java index cbac3c185..9aa7b3108 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface CelebrityOrBuilder extends +public interface CelebrityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Celebrity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the preloaded Celebrity. Has the format
    * `builtin/{mid}`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The Celebrity's display name.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The Celebrity's description.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The Celebrity's description.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java new file mode 100644 index 000000000..e391d726a --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class CelebrityProto { + private CelebrityProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/vision/v1p4beta1/face.pro" + + "to\022\035google.cloud.vision.v1p4beta1\032\034googl" + + "e/api/annotations.proto\032,google/cloud/vi" + + "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" + + "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" + + "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" + + "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" + + ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" + + "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" + + "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" + + "lang.org/genproto/googleapis/cloud/visio" + + "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor, + new java.lang.String[] { + "CelebritySet", + }); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", + }); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor, + new java.lang.String[] { + "Celebrity", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java index 8998d3391..052de2e41 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Color information consists of RGB channels, score, and the fraction of
  * the image that the color occupies in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ColorInfo}
  */
-public final class ColorInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ColorInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ColorInfo)
     ColorInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ColorInfo.newBuilder() to construct.
   private ColorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ColorInfo() {
-  }
+
+  private ColorInfo() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ColorInfo();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ColorInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,37 @@ private ColorInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Color.Builder subBuilder = null;
-            if (color_ != null) {
-              subBuilder = color_.toBuilder();
+          case 10:
+            {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
+              }
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(color_);
-              color_ = subBuilder.buildPartial();
+          case 21:
+            {
+              score_ = input.readFloat();
+              break;
             }
-
-            break;
-          }
-          case 21: {
-
-            score_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            pixelFraction_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 29:
+            {
+              pixelFraction_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,34 +107,39 @@ private ColorInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ColorInfo.class, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ColorInfo.class,
+            com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
   }
 
   public static final int COLOR_FIELD_NUMBER = 1;
   private com.google.type.Color color_;
   /**
+   *
+   *
    * 
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ @java.lang.Override @@ -125,11 +147,14 @@ public boolean hasColor() { return color_ != null; } /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** + * + * *
    * RGB components of the color.
    * 
@@ -151,11 +178,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -166,12 +196,15 @@ public float getScore() { public static final int PIXEL_FRACTION_FIELD_NUMBER = 3; private float pixelFraction_; /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -180,6 +213,7 @@ public float getPixelFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (color_ != null) { output.writeMessage(1, getColor()); } @@ -212,16 +245,13 @@ public int getSerializedSize() { size = 0; if (color_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColor()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (java.lang.Float.floatToRawIntBits(pixelFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, pixelFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, pixelFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,24 +261,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ColorInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ColorInfo other = (com.google.cloud.vision.v1p4beta1.ColorInfo) obj; + com.google.cloud.vision.v1p4beta1.ColorInfo other = + (com.google.cloud.vision.v1p4beta1.ColorInfo) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor() - .equals(other.getColor())) return false; + if (!getColor().equals(other.getColor())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (java.lang.Float.floatToIntBits(getPixelFraction()) - != java.lang.Float.floatToIntBits( - other.getPixelFraction())) return false; + != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,107 +293,112 @@ public int hashCode() { hash = (53 * hash) + getColor().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PIXEL_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPixelFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPixelFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ColorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ColorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Color information consists of RGB channels, score, and the fraction of
    * the image that the color occupies in the image.
@@ -373,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ColorInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ColorInfo)
       com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ColorInfo.class, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ColorInfo.class,
+              com.google.cloud.vision.v1p4beta1.ColorInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ColorInfo.newBuilder()
@@ -395,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor;
     }
 
     @java.lang.Override
@@ -443,7 +477,8 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ColorInfo buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ColorInfo result = new com.google.cloud.vision.v1p4beta1.ColorInfo(this);
+      com.google.cloud.vision.v1p4beta1.ColorInfo result =
+          new com.google.cloud.vision.v1p4beta1.ColorInfo(this);
       if (colorBuilder_ == null) {
         result.color_ = color_;
       } else {
@@ -459,38 +494,39 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ColorInfo) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ColorInfo)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ColorInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,24 +575,31 @@ public Builder mergeFrom(
 
     private com.google.type.Color color_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> colorBuilder_;
+            com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>
+        colorBuilder_;
     /**
+     *
+     *
      * 
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; + * * @return The color. */ public com.google.type.Color getColor() { @@ -567,6 +610,8 @@ public com.google.type.Color getColor() { } } /** + * + * *
      * RGB components of the color.
      * 
@@ -587,14 +632,15 @@ public Builder setColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
* * .google.type.Color color = 1; */ - public Builder setColor( - com.google.type.Color.Builder builderForValue) { + public Builder setColor(com.google.type.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); @@ -605,6 +651,8 @@ public Builder setColor( return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -614,8 +662,7 @@ public Builder setColor( public Builder mergeColor(com.google.type.Color value) { if (colorBuilder_ == null) { if (color_ != null) { - color_ = - com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); + color_ = com.google.type.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } @@ -627,6 +674,8 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -645,6 +694,8 @@ public Builder clearColor() { return this; } /** + * + * *
      * RGB components of the color.
      * 
@@ -652,11 +703,13 @@ public Builder clearColor() { * .google.type.Color color = 1; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** + * + * *
      * RGB components of the color.
      * 
@@ -667,11 +720,12 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { - return color_ == null ? - com.google.type.Color.getDefaultInstance() : color_; + return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } } /** + * + * *
      * RGB components of the color.
      * 
@@ -679,26 +733,29 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { - colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( - getColor(), - getParentForChildren(), - isClean()); + colorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>(getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } - private float score_ ; + private float score_; /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -706,43 +763,52 @@ public float getScore() { return score_; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Image-specific score for this color. Value in range [0, 1].
      * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float pixelFraction_ ; + private float pixelFraction_; /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ @java.lang.Override @@ -750,39 +816,45 @@ public float getPixelFraction() { return pixelFraction_; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @param value The pixelFraction to set. * @return This builder for chaining. */ public Builder setPixelFraction(float value) { - + pixelFraction_ = value; onChanged(); return this; } /** + * + * *
      * The fraction of pixels the color occupies in the image.
      * Value in range [0, 1].
      * 
* * float pixel_fraction = 3; + * * @return This builder for chaining. */ public Builder clearPixelFraction() { - + pixelFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ColorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ColorInfo) private static final com.google.cloud.vision.v1p4beta1.ColorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ColorInfo(); } @@ -806,16 +878,16 @@ public static com.google.cloud.vision.v1p4beta1.ColorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColorInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColorInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ColorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java index 362574b0f..204805956 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ColorInfoOrBuilder extends +public interface ColorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ColorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return Whether the color field is set. */ boolean hasColor(); /** + * + * *
    * RGB components of the color.
    * 
* * .google.type.Color color = 1; + * * @return The color. */ com.google.type.Color getColor(); /** + * + * *
    * RGB components of the color.
    * 
@@ -35,22 +59,28 @@ public interface ColorInfoOrBuilder extends com.google.type.ColorOrBuilder getColorOrBuilder(); /** + * + * *
    * Image-specific score for this color. Value in range [0, 1].
    * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
    * The fraction of pixels the color occupies in the image.
    * Value in range [0, 1].
    * 
* * float pixel_fraction = 3; + * * @return The pixelFraction. */ float getPixelFraction(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java index 1fc8e2b85..a66460b92 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `CreateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductRequest} */ -public final class CreateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateProductRequest) CreateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductRequest.newBuilder() to construct. private CreateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductRequest() { parent_ = ""; productId_ = ""; @@ -26,16 +44,15 @@ private CreateProductRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +115,43 @@ private CreateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, + com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,11 +197,16 @@ public java.lang.String getParent() { public static final int PRODUCT_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.Product product_; /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -178,23 +214,34 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { @@ -204,6 +251,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int PRODUCT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productId_; /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -212,6 +261,7 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * string product_id = 3; + * * @return The productId. */ @java.lang.Override @@ -220,14 +270,15 @@ public java.lang.String getProductId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -236,16 +287,15 @@ public java.lang.String getProductId() {
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -254,6 +304,7 @@ public java.lang.String getProductId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); @@ -303,22 +352,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateProductRequest other = (com.google.cloud.vision.v1p4beta1.CreateProductRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateProductRequest other = + (com.google.cloud.vision.v1p4beta1.CreateProductRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } - if (!getProductId() - .equals(other.getProductId())) return false; + if (!getProductId().equals(other.getProductId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -344,117 +391,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateProductRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.CreateProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateProductRequest) com.google.cloud.vision.v1p4beta1.CreateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductRequest.class, + com.google.cloud.vision.v1p4beta1.CreateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateProductRequest.newBuilder() @@ -462,16 +519,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; } @java.lang.Override @@ -510,7 +566,8 @@ public com.google.cloud.vision.v1p4beta1.CreateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateProductRequest result = new com.google.cloud.vision.v1p4beta1.CreateProductRequest(this); + com.google.cloud.vision.v1p4beta1.CreateProductRequest result = + new com.google.cloud.vision.v1p4beta1.CreateProductRequest(this); result.parent_ = parent_; if (productBuilder_ == null) { result.product_ = product_; @@ -526,38 +583,39 @@ public com.google.cloud.vision.v1p4beta1.CreateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -565,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.CreateProductRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +655,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.CreateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,20 +668,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,22 +694,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,60 +720,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,39 +794,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -762,14 +861,17 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -780,17 +882,23 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -802,11 +910,15 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -820,48 +932,64 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -869,6 +997,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() private java.lang.Object productId_ = ""; /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -877,13 +1007,13 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * string product_id = 3; + * * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; @@ -892,6 +1022,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -900,15 +1032,14 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @return The bytes for productId. */ - public com.google.protobuf.ByteString - getProductIdBytes() { + public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productId_ = b; return b; } else { @@ -916,6 +1047,8 @@ public java.lang.String getProductId() { } } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -924,20 +1057,22 @@ public java.lang.String getProductId() {
      * 
* * string product_id = 3; + * * @param value The productId to set. * @return This builder for chaining. */ - public Builder setProductId( - java.lang.String value) { + public Builder setProductId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -946,15 +1081,18 @@ public Builder setProductId(
      * 
* * string product_id = 3; + * * @return This builder for chaining. */ public Builder clearProductId() { - + productId_ = getDefaultInstance().getProductId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this Product. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -963,23 +1101,23 @@ public Builder clearProductId() {
      * 
* * string product_id = 3; + * * @param value The bytes for productId to set. * @return This builder for chaining. */ - public Builder setProductIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1127,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductRequest) private static final com.google.cloud.vision.v1p4beta1.CreateProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateProductRequest(); } @@ -1003,16 +1141,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CreateProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java index ce7922518..36ca60142 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java @@ -1,64 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateProductRequestOrBuilder extends +public interface CreateProductRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateProductRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** + * + * *
    * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -67,10 +108,13 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The productId. */ java.lang.String getProductId(); /** + * + * *
    * A user-supplied resource id for this Product. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -79,8 +123,8 @@ public interface CreateProductRequestOrBuilder extends
    * 
* * string product_id = 3; + * * @return The bytes for productId. */ - com.google.protobuf.ByteString - getProductIdBytes(); + com.google.protobuf.ByteString getProductIdBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java index 10e5cb30d..bfeed107a 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `CreateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductSetRequest} */ -public final class CreateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateProductSetRequest) CreateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateProductSetRequest.newBuilder() to construct. private CreateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateProductSetRequest() { parent_ = ""; productSetId_ = ""; @@ -26,16 +44,15 @@ private CreateProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int PRODUCT_SET_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil public static final int PRODUCT_SET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object productSetId_; /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -210,6 +259,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -234,16 +285,15 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getProductSetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (productSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProductSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductSet()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productSetId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other = (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasProductSet() != other.hasProductSet()) return false; if (hasProductSet()) { - if (!getProductSet() - .equals(other.getProductSet())) return false; + if (!getProductSet().equals(other.getProductSet())) return false; } - if (!getProductSetId() - .equals(other.getProductSetId())) return false; + if (!getProductSetId().equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateProductSetRequest) com.google.cloud.vision.v1p4beta1.CreateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.newBuilder() @@ -460,16 +517,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; } @java.lang.Override @@ -508,7 +564,8 @@ public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest result = new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(this); result.parent_ = parent_; if (productSetBuilder_ == null) { result.productSet_ = productSet_; @@ -524,38 +581,39 @@ public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.CreateProductSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.CreateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -755,11 +854,15 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -773,17 +876,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -795,11 +904,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -813,48 +926,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -862,6 +991,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil private java.lang.Object productSetId_ = ""; /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -870,13 +1001,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * string product_set_id = 3; + * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -885,6 +1016,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -893,15 +1026,14 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -909,6 +1041,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -917,20 +1051,22 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId( - java.lang.String value) { + public Builder setProductSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -939,15 +1075,18 @@ public Builder setProductSetId(
      * 
* * string product_set_id = 3; + * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for this ProductSet. If set, the server will
      * attempt to use this value as the resource id. If it is already in use, an
@@ -956,23 +1095,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 3; + * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.CreateProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateProductSetRequest(); } @@ -996,16 +1135,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1159,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CreateProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java index 68f3f7c82..0a6c77500 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateProductSetRequestOrBuilder extends +public interface CreateProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -65,10 +106,13 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The productSetId. */ java.lang.String getProductSetId(); /** + * + * *
    * A user-supplied resource id for this ProductSet. If set, the server will
    * attempt to use this value as the resource id. If it is already in use, an
@@ -77,8 +121,8 @@ public interface CreateProductSetRequestOrBuilder extends
    * 
* * string product_set_id = 3; + * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString - getProductSetIdBytes(); + com.google.protobuf.ByteString getProductSetIdBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java index 9bb7b84b6..c7b14905b 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `CreateReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateReferenceImageRequest} */ -public final class CreateReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) CreateReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReferenceImageRequest.newBuilder() to construct. private CreateReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReferenceImageRequest() { parent_ = ""; referenceImageId_ = ""; @@ -26,16 +44,15 @@ private CreateReferenceImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder subBuilder = null; - if (referenceImage_ != null) { - subBuilder = referenceImage_.toBuilder(); - } - referenceImage_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceImage_); - referenceImage_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder subBuilder = null; + if (referenceImage_ != null) { + subBuilder = referenceImage_.toBuilder(); + } + referenceImage_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceImage_); + referenceImage_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - referenceImageId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + referenceImageId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +115,33 @@ private CreateReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -123,7 +149,10 @@ private CreateReferenceImageRequest(
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -132,14 +161,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -147,17 +177,18 @@ public java.lang.String getParent() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,12 +199,17 @@ public java.lang.String getParent() { public static final int REFERENCE_IMAGE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ReferenceImage referenceImage_; /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ @java.lang.Override @@ -181,25 +217,36 @@ public boolean hasReferenceImage() { return referenceImage_ != null; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { - return referenceImage_ == null ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { @@ -209,6 +256,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int REFERENCE_IMAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object referenceImageId_; /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -217,6 +266,7 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ @java.lang.Override @@ -225,14 +275,15 @@ public java.lang.String getReferenceImageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; } } /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -241,16 +292,15 @@ public java.lang.String getReferenceImageId() {
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ @java.lang.Override - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -259,6 +309,7 @@ public java.lang.String getReferenceImageId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,8 +321,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (referenceImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReferenceImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceImage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceImageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, referenceImageId_); @@ -308,22 +357,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other = + (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReferenceImage() != other.hasReferenceImage()) return false; if (hasReferenceImage()) { - if (!getReferenceImage() - .equals(other.getReferenceImage())) return false; + if (!getReferenceImage().equals(other.getReferenceImage())) return false; } - if (!getReferenceImageId() - .equals(other.getReferenceImageId())) return false; + if (!getReferenceImageId().equals(other.getReferenceImageId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `CreateReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CreateReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.newBuilder() @@ -467,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -494,13 +550,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance(); } @@ -515,7 +572,8 @@ public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest result = + new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(this); result.parent_ = parent_; if (referenceImageBuilder_ == null) { result.referenceImage_ = referenceImage_; @@ -531,38 +589,39 @@ public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +629,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -601,7 +662,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -613,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -620,14 +685,16 @@ public Builder mergeFrom(
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -636,6 +703,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -643,16 +712,17 @@ public java.lang.String getParent() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -660,6 +730,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -667,21 +739,25 @@ public java.lang.String getParent() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -689,16 +765,21 @@ public Builder setParent(
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product in which to create the reference
      * image.
@@ -706,17 +787,19 @@ public Builder clearParent() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -724,42 +807,61 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p4beta1.ReferenceImage referenceImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImageBuilder_; + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + referenceImageBuilder_; /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { - return referenceImage_ == null ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } else { return referenceImageBuilder_.getMessage(); } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -775,12 +877,16 @@ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImag return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage( com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder builderForValue) { @@ -794,18 +900,24 @@ public Builder setReferenceImage( return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { if (referenceImage_ != null) { referenceImage_ = - com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder(referenceImage_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder(referenceImage_) + .mergeFrom(value) + .buildPartial(); } else { referenceImage_ = value; } @@ -817,12 +929,16 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceIm return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -836,51 +952,67 @@ public Builder clearReferenceImage() { return this; } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImageBuilder() { - + onChanged(); return getReferenceImageFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { return referenceImageBuilder_.getMessageOrBuilder(); } else { - return referenceImage_ == null ? - com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() : referenceImage_; + return referenceImage_ == null + ? com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance() + : referenceImage_; } } /** + * + * *
      * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImageFieldBuilder() { if (referenceImageBuilder_ == null) { - referenceImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( - getReferenceImage(), - getParentForChildren(), - isClean()); + referenceImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + getReferenceImage(), getParentForChildren(), isClean()); referenceImage_ = null; } return referenceImageBuilder_; @@ -888,6 +1020,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma private java.lang.Object referenceImageId_ = ""; /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -896,13 +1030,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma
      * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ public java.lang.String getReferenceImageId() { java.lang.Object ref = referenceImageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceImageId_ = s; return s; @@ -911,6 +1045,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -919,15 +1055,14 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - public com.google.protobuf.ByteString - getReferenceImageIdBytes() { + public com.google.protobuf.ByteString getReferenceImageIdBytes() { java.lang.Object ref = referenceImageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceImageId_ = b; return b; } else { @@ -935,6 +1070,8 @@ public java.lang.String getReferenceImageId() { } } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -943,20 +1080,22 @@ public java.lang.String getReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageId( - java.lang.String value) { + public Builder setReferenceImageId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referenceImageId_ = value; onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -965,15 +1104,18 @@ public Builder setReferenceImageId(
      * 
* * string reference_image_id = 3; + * * @return This builder for chaining. */ public Builder clearReferenceImageId() { - + referenceImageId_ = getDefaultInstance().getReferenceImageId(); onChanged(); return this; } /** + * + * *
      * A user-supplied resource id for the ReferenceImage to be added. If set,
      * the server will attempt to use this value as the resource id. If it is
@@ -982,23 +1124,23 @@ public Builder clearReferenceImageId() {
      * 
* * string reference_image_id = 3; + * * @param value The bytes for referenceImageId to set. * @return This builder for chaining. */ - public Builder setReferenceImageIdBytes( - com.google.protobuf.ByteString value) { + public Builder setReferenceImageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceImageId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1008,12 +1150,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) - private static final com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest(); } @@ -1022,16 +1165,16 @@ public static com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,6 +1189,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java index 3c48cbcb4..506ffcbf9 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface CreateReferenceImageRequestOrBuilder extends +public interface CreateReferenceImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -15,11 +33,16 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product in which to create the reference
    * image.
@@ -27,43 +50,61 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the referenceImage field is set. */ boolean hasReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The referenceImage. */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(); /** + * + * *
    * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -72,10 +113,13 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The referenceImageId. */ java.lang.String getReferenceImageId(); /** + * + * *
    * A user-supplied resource id for the ReferenceImage to be added. If set,
    * the server will attempt to use this value as the resource id. If it is
@@ -84,8 +128,8 @@ public interface CreateReferenceImageRequestOrBuilder extends
    * 
* * string reference_image_id = 3; + * * @return The bytes for referenceImageId. */ - com.google.protobuf.ByteString - getReferenceImageIdBytes(); + com.google.protobuf.ByteString getReferenceImageIdBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java index 2594a271d..889caeeaf 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHint.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Single crop hint that is used to generate a new crop when serving an image.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHint} */ -public final class CropHint extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHint) CropHintOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHint.newBuilder() to construct. private CropHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CropHint() { - } + + private CropHint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,39 @@ private CropHint( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - case 29: { - - importanceFraction_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 29: + { + importanceFraction_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,35 +108,40 @@ private CropHint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHint.class, com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHint.class, + com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -125,19 +149,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -153,11 +184,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -168,12 +202,15 @@ public float getConfidence() { public static final int IMPORTANCE_FRACTION_FIELD_NUMBER = 3; private float importanceFraction_; /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -182,6 +219,7 @@ public float getImportanceFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -214,16 +251,13 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } if (java.lang.Float.floatToRawIntBits(importanceFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, importanceFraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, importanceFraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,24 +267,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHint)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHint other = (com.google.cloud.vision.v1p4beta1.CropHint) obj; + com.google.cloud.vision.v1p4beta1.CropHint other = + (com.google.cloud.vision.v1p4beta1.CropHint) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (java.lang.Float.floatToIntBits(getImportanceFraction()) - != java.lang.Float.floatToIntBits( - other.getImportanceFraction())) return false; + != java.lang.Float.floatToIntBits(other.getImportanceFraction())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,128 +299,135 @@ public int hashCode() { hash = (53 * hash) + getBoundingPoly().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + IMPORTANCE_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getImportanceFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getImportanceFraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Single crop hint that is used to generate a new crop when serving an image.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHint) com.google.cloud.vision.v1p4beta1.CropHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHint.class, com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHint.class, + com.google.cloud.vision.v1p4beta1.CropHint.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHint.newBuilder() @@ -396,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; } @java.lang.Override @@ -444,7 +482,8 @@ public com.google.cloud.vision.v1p4beta1.CropHint build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHint buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHint result = new com.google.cloud.vision.v1p4beta1.CropHint(this); + com.google.cloud.vision.v1p4beta1.CropHint result = + new com.google.cloud.vision.v1p4beta1.CropHint(this); if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; } else { @@ -460,38 +499,39 @@ public com.google.cloud.vision.v1p4beta1.CropHint buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHint) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHint)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHint) other); } else { super.mergeFrom(other); return this; @@ -540,36 +580,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -591,6 +644,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -610,6 +665,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -621,7 +678,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -633,6 +692,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -652,6 +713,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -660,11 +723,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -676,11 +741,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon for the crop region. The coordinates of the bounding
      * box are in the original image's scale.
@@ -689,26 +757,32 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -716,43 +790,52 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of this being a salient region.  Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private float importanceFraction_ ; + private float importanceFraction_; /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ @java.lang.Override @@ -760,39 +843,45 @@ public float getImportanceFraction() { return importanceFraction_; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @param value The importanceFraction to set. * @return This builder for chaining. */ public Builder setImportanceFraction(float value) { - + importanceFraction_ = value; onChanged(); return this; } /** + * + * *
      * Fraction of importance of this salient region with respect to the original
      * image.
      * 
* * float importance_fraction = 3; + * * @return This builder for chaining. */ public Builder clearImportanceFraction() { - + importanceFraction_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -802,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHint) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHint) private static final com.google.cloud.vision.v1p4beta1.CropHint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHint(); } @@ -816,16 +905,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java index b6b460e23..54a80fb89 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintOrBuilder extends +public interface CropHintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon for the crop region. The coordinates of the bounding
    * box are in the original image's scale.
@@ -38,22 +62,28 @@ public interface CropHintOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confidence of this being a salient region.  Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Fraction of importance of this salient region with respect to the original
    * image.
    * 
* * float importance_fraction = 3; + * * @return The importanceFraction. */ float getImportanceFraction(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java index 80d54ed43..68ffc226e 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Set of crop hints that are used to generate new crops when serving images.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsAnnotation} */ -public final class CropHintsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHintsAnnotation) CropHintsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsAnnotation.newBuilder() to construct. private CropHintsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsAnnotation() { cropHints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private CropHintsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cropHints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cropHints_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.CropHint.parser(), extensionRegistry)); + break; } - cropHints_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.CropHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private CropHintsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { cropHints_ = java.util.Collections.unmodifiableList(cropHints_); @@ -87,22 +105,27 @@ private CropHintsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); } public static final int CROP_HINTS_FIELD_NUMBER = 1; private java.util.List cropHints_; /** + * + * *
    * Crop hint results.
    * 
@@ -114,6 +137,8 @@ public java.util.List getCropHintsLi return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -121,11 +146,13 @@ public java.util.List getCropHintsLi * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCropHintsOrBuilderList() { return cropHints_; } /** + * + * *
    * Crop hint results.
    * 
@@ -137,6 +164,8 @@ public int getCropHintsCount() { return cropHints_.size(); } /** + * + * *
    * Crop hint results.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { return cropHints_.get(index); } /** + * + * *
    * Crop hint results.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { return cropHints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cropHints_.size(); i++) { output.writeMessage(1, cropHints_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cropHints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cropHints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cropHints_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHintsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other = (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) obj; + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other = + (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) obj; - if (!getCropHintsList() - .equals(other.getCropHintsList())) return false; + if (!getCropHintsList().equals(other.getCropHintsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of crop hints that are used to generate new crops when serving images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHintsAnnotation) com.google.cloud.vision.v1p4beta1.CropHintsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.class, + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCropHintsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHintsAnnotation result = new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(this); + com.google.cloud.vision.v1p4beta1.CropHintsAnnotation result = + new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(this); int from_bitField0_ = bitField0_; if (cropHintsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.CropHintsAnnotation.getDefaultInstance()) + return this; if (cropHintsBuilder_ == null) { if (!other.cropHints_.isEmpty()) { if (cropHints_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsAnnotation o cropHintsBuilder_ = null; cropHints_ = other.cropHints_; bitField0_ = (bitField0_ & ~0x00000001); - cropHintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCropHintsFieldBuilder() : null; + cropHintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCropHintsFieldBuilder() + : null; } else { cropHintsBuilder_.addAllMessages(other.cropHints_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.CropHintsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List cropHints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCropHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - cropHints_ = new java.util.ArrayList(cropHints_); + cropHints_ = + new java.util.ArrayList(cropHints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> cropHintsBuilder_; + com.google.cloud.vision.v1p4beta1.CropHint, + com.google.cloud.vision.v1p4beta1.CropHint.Builder, + com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> + cropHintsBuilder_; /** + * + * *
      * Crop hint results.
      * 
@@ -533,6 +585,8 @@ public java.util.List getCropHintsLi } } /** + * + * *
      * Crop hint results.
      * 
@@ -547,6 +601,8 @@ public int getCropHintsCount() { } } /** + * + * *
      * Crop hint results.
      * 
@@ -561,14 +617,15 @@ public com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index) { } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public Builder setCropHints( - int index, com.google.cloud.vision.v1p4beta1.CropHint value) { + public Builder setCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +639,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -600,6 +659,8 @@ public Builder setCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -620,14 +681,15 @@ public Builder addCropHints(com.google.cloud.vision.v1p4beta1.CropHint value) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public Builder addCropHints( - int index, com.google.cloud.vision.v1p4beta1.CropHint value) { + public Builder addCropHints(int index, com.google.cloud.vision.v1p4beta1.CropHint value) { if (cropHintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +703,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -659,6 +723,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -677,6 +743,8 @@ public Builder addCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -687,8 +755,7 @@ public Builder addAllCropHints( java.lang.Iterable values) { if (cropHintsBuilder_ == null) { ensureCropHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cropHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cropHints_); onChanged(); } else { cropHintsBuilder_.addAllMessages(values); @@ -696,6 +763,8 @@ public Builder addAllCropHints( return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -713,6 +782,8 @@ public Builder clearCropHints() { return this; } /** + * + * *
      * Crop hint results.
      * 
@@ -730,39 +801,44 @@ public Builder removeCropHints(int index) { return this; } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHint.Builder getCropHintsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.CropHint.Builder getCropHintsBuilder(int index) { return getCropHintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index) { if (cropHintsBuilder_ == null) { - return cropHints_.get(index); } else { + return cropHints_.get(index); + } else { return cropHintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsOrBuilderList() { + public java.util.List + getCropHintsOrBuilderList() { if (cropHintsBuilder_ != null) { return cropHintsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +846,8 @@ public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder } } /** + * + * *
      * Crop hint results.
      * 
@@ -777,49 +855,55 @@ public com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder() { - return getCropHintsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); + return getCropHintsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder( - int index) { - return getCropHintsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.CropHint.Builder addCropHintsBuilder(int index) { + return getCropHintsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.CropHint.getDefaultInstance()); } /** + * + * *
      * Crop hint results.
      * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - public java.util.List - getCropHintsBuilderList() { + public java.util.List + getCropHintsBuilderList() { return getCropHintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHint, + com.google.cloud.vision.v1p4beta1.CropHint.Builder, + com.google.cloud.vision.v1p4beta1.CropHintOrBuilder> getCropHintsFieldBuilder() { if (cropHintsBuilder_ == null) { - cropHintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHint, com.google.cloud.vision.v1p4beta1.CropHint.Builder, com.google.cloud.vision.v1p4beta1.CropHintOrBuilder>( - cropHints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cropHintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHint, + com.google.cloud.vision.v1p4beta1.CropHint.Builder, + com.google.cloud.vision.v1p4beta1.CropHintOrBuilder>( + cropHints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cropHints_ = null; } return cropHintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHintsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsAnnotation) private static final com.google.cloud.vision.v1p4beta1.CropHintsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHintsAnnotation(); } @@ -843,16 +927,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHintsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java index 37cbfcbe2..7423188c1 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintsAnnotationOrBuilder extends +public interface CropHintsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHintsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - java.util.List - getCropHintsList(); + java.util.List getCropHintsList(); /** + * + * *
    * Crop hint results.
    * 
@@ -25,6 +44,8 @@ public interface CropHintsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p4beta1.CropHint getCropHints(int index); /** + * + * *
    * Crop hint results.
    * 
@@ -33,21 +54,24 @@ public interface CropHintsAnnotationOrBuilder extends */ int getCropHintsCount(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - java.util.List + java.util.List getCropHintsOrBuilderList(); /** + * + * *
    * Crop hint results.
    * 
* * repeated .google.cloud.vision.v1p4beta1.CropHint crop_hints = 1; */ - com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.CropHintOrBuilder getCropHintsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java index 03f3deb04..99fddce83 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Parameters for crop hints annotation request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsParams} */ -public final class CropHintsParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CropHintsParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.CropHintsParams) CropHintsParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CropHintsParams.newBuilder() to construct. private CropHintsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CropHintsParams() { aspectRatios_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CropHintsParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CropHintsParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,34 +71,36 @@ private CropHintsParams( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - aspectRatios_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - aspectRatios_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } aspectRatios_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + aspectRatios_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + aspectRatios_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private CropHintsParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); // C @@ -99,22 +117,27 @@ private CropHintsParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsParams.class, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsParams.class, + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); } public static final int ASPECT_RATIOS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList aspectRatios_; /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -125,14 +148,16 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ @java.lang.Override - public java.util.List - getAspectRatiosList() { + public java.util.List getAspectRatiosList() { return aspectRatios_; } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -143,12 +168,15 @@ private CropHintsParams(
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -159,15 +187,18 @@ public int getAspectRatiosCount() {
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } + private int aspectRatiosMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getAspectRatiosList().size() > 0) { output.writeUInt32NoTag(10); @@ -204,8 +234,7 @@ public int getSerializedSize() { size += dataSize; if (!getAspectRatiosList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } aspectRatiosMemoizedSerializedSize = dataSize; } @@ -217,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.CropHintsParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.CropHintsParams other = (com.google.cloud.vision.v1p4beta1.CropHintsParams) obj; + com.google.cloud.vision.v1p4beta1.CropHintsParams other = + (com.google.cloud.vision.v1p4beta1.CropHintsParams) obj; - if (!getAspectRatiosList() - .equals(other.getAspectRatiosList())) return false; + if (!getAspectRatiosList().equals(other.getAspectRatiosList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,117 +276,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.CropHintsParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.CropHintsParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.CropHintsParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.CropHintsParams) com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.CropHintsParams.class, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); + com.google.cloud.vision.v1p4beta1.CropHintsParams.class, + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder() @@ -365,16 +403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; } @java.lang.Override @@ -405,7 +442,8 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsParams buildPartial() { - com.google.cloud.vision.v1p4beta1.CropHintsParams result = new com.google.cloud.vision.v1p4beta1.CropHintsParams(this); + com.google.cloud.vision.v1p4beta1.CropHintsParams result = + new com.google.cloud.vision.v1p4beta1.CropHintsParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { aspectRatios_.makeImmutable(); @@ -420,38 +458,39 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.CropHintsParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsParams)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.CropHintsParams) other); } else { super.mergeFrom(other); return this; @@ -459,7 +498,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.CropHintsParams other) { - if (other == com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance()) + return this; if (!other.aspectRatios_.isEmpty()) { if (aspectRatios_.isEmpty()) { aspectRatios_ = other.aspectRatios_; @@ -489,7 +529,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.CropHintsParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.CropHintsParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,16 +539,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList aspectRatios_ = emptyFloatList(); + private void ensureAspectRatiosIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aspectRatios_ = mutableCopy(aspectRatios_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -518,14 +563,17 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ - public java.util.List - getAspectRatiosList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(aspectRatios_) : aspectRatios_; + public java.util.List getAspectRatiosList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(aspectRatios_) + : aspectRatios_; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -536,12 +584,15 @@ private void ensureAspectRatiosIsMutable() {
      * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ public int getAspectRatiosCount() { return aspectRatios_.size(); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -552,6 +603,7 @@ public int getAspectRatiosCount() {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ @@ -559,6 +611,8 @@ public float getAspectRatios(int index) { return aspectRatios_.getFloat(index); } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -569,18 +623,20 @@ public float getAspectRatios(int index) {
      * 
* * repeated float aspect_ratios = 1; + * * @param index The index to set the value at. * @param value The aspectRatios to set. * @return This builder for chaining. */ - public Builder setAspectRatios( - int index, float value) { + public Builder setAspectRatios(int index, float value) { ensureAspectRatiosIsMutable(); aspectRatios_.setFloat(index, value); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -591,6 +647,7 @@ public Builder setAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @param value The aspectRatios to add. * @return This builder for chaining. */ @@ -601,6 +658,8 @@ public Builder addAspectRatios(float value) { return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -611,18 +670,19 @@ public Builder addAspectRatios(float value) {
      * 
* * repeated float aspect_ratios = 1; + * * @param values The aspectRatios to add. * @return This builder for chaining. */ - public Builder addAllAspectRatios( - java.lang.Iterable values) { + public Builder addAllAspectRatios(java.lang.Iterable values) { ensureAspectRatiosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aspectRatios_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aspectRatios_); onChanged(); return this; } /** + * + * *
      * Aspect ratios in floats, representing the ratio of the width to the height
      * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -633,6 +693,7 @@ public Builder addAllAspectRatios(
      * 
* * repeated float aspect_ratios = 1; + * * @return This builder for chaining. */ public Builder clearAspectRatios() { @@ -641,9 +702,9 @@ public Builder clearAspectRatios() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.CropHintsParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsParams) private static final com.google.cloud.vision.v1p4beta1.CropHintsParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.CropHintsParams(); } @@ -667,16 +728,16 @@ public static com.google.cloud.vision.v1p4beta1.CropHintsParams getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CropHintsParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CropHintsParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CropHintsParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CropHintsParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.CropHintsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java index e599bbad2..631fc0a27 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CropHintsParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface CropHintsParamsOrBuilder extends +public interface CropHintsParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.CropHintsParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -18,10 +36,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return A list containing the aspectRatios. */ java.util.List getAspectRatiosList(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -32,10 +53,13 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @return The count of aspectRatios. */ int getAspectRatiosCount(); /** + * + * *
    * Aspect ratios in floats, representing the ratio of the width to the height
    * of the image. For example, if the desired aspect ratio is 4/3, the
@@ -46,6 +70,7 @@ public interface CropHintsParamsOrBuilder extends
    * 
* * repeated float aspect_ratios = 1; + * * @param index The index of the element to return. * @return The aspectRatios at the given index. */ diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java index 3d1f84fc2..4b3bf6210 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `DeleteProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductRequest} */ -public final class DeleteProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteProductRequest) DeleteProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductRequest.newBuilder() to construct. private DeleteProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteProductRequest other = (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteProductRequest other = + (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteProductRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteProductRequest) com.google.cloud.vision.v1p4beta1.DeleteProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteProductRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteProductRequest result = new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteProductRequest result = + new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.DeleteProductRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.DeleteProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductRequest) private static final com.google.cloud.vision.v1p4beta1.DeleteProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteProductRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteProductRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DeleteProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java new file mode 100644 index 000000000..25a7c59ac --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of product to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java index b9948566e..a676ea068 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `DeleteProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductSetRequest} */ -public final class DeleteProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) DeleteProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteProductSetRequest.newBuilder() to construct. private DeleteProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other = (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) com.google.cloud.vision.v1p4beta1.DeleteProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest result = new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java new file mode 100644 index 000000000..cbe91d289 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java index aecc9d0ee..29a253a2c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `DeleteReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest} */ -public final class DeleteReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) DeleteReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteReferenceImageRequest.newBuilder() to construct. private DeleteReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private DeleteReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other = + (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `DeleteReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest result = + new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +629,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - private static final com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest(); } @@ -580,16 +644,16 @@ public static com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +668,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..7197840cd --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface DeleteReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the reference image to delete.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java index ab8b30593..224e30169 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Set of dominant colors and their corresponding scores.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DominantColorsAnnotation} */ -public final class DominantColorsAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DominantColorsAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) DominantColorsAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DominantColorsAnnotation.newBuilder() to construct. private DominantColorsAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DominantColorsAnnotation() { colors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DominantColorsAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DominantColorsAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private DominantColorsAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - colors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + colors_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ColorInfo.parser(), extensionRegistry)); + break; } - colors_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.ColorInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private DominantColorsAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); @@ -87,22 +105,27 @@ private DominantColorsAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); } public static final int COLORS_FIELD_NUMBER = 1; private java.util.List colors_; /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -114,6 +137,8 @@ public java.util.List getColorsList return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -121,11 +146,13 @@ public java.util.List getColorsList * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getColorsOrBuilderList() { return colors_; } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -137,6 +164,8 @@ public int getColorsCount() { return colors_.size(); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { return colors_.get(index); } /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { return colors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < colors_.size(); i++) { output.writeMessage(1, colors_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < colors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, colors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, colors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other = (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) obj; + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other = + (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) obj; - if (!getColorsList() - .equals(other.getColorsList())) return false; + if (!getColorsList().equals(other.getColorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of dominant colors and their corresponding scores.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.DominantColorsAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.class, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getColorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; } @java.lang.Override @@ -391,7 +430,8 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation result = new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(this); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation result = + new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(this); int from_bitField0_ = bitField0_; if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) other); } else { super.mergeFrom(other); return this; @@ -449,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance()) + return this; if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotat colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000001); - colorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColorsFieldBuilder() : null; + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColorsFieldBuilder() + : null; } else { colorsBuilder_.addAllMessages(other.colors_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List colors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> colorsBuilder_; + com.google.cloud.vision.v1p4beta1.ColorInfo, + com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> + colorsBuilder_; /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -533,6 +584,8 @@ public java.util.List getColorsList } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -547,6 +600,8 @@ public int getColorsCount() { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -561,14 +616,15 @@ public com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index) { } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder setColors( - int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { + public Builder setColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +638,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -600,6 +658,8 @@ public Builder setColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -620,14 +680,15 @@ public Builder addColors(com.google.cloud.vision.v1p4beta1.ColorInfo value) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder addColors( - int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { + public Builder addColors(int index, com.google.cloud.vision.v1p4beta1.ColorInfo value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,14 +702,15 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public Builder addColors( - com.google.cloud.vision.v1p4beta1.ColorInfo.Builder builderForValue) { + public Builder addColors(com.google.cloud.vision.v1p4beta1.ColorInfo.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); @@ -659,6 +721,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -677,6 +741,8 @@ public Builder addColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -687,8 +753,7 @@ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, colors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); @@ -696,6 +761,8 @@ public Builder addAllColors( return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -713,6 +780,8 @@ public Builder clearColors() { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -730,39 +799,44 @@ public Builder removeColors(int index) { return this; } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder getColorsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder getColorsBuilder(int index) { return getColorsFieldBuilder().getBuilder(index); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index) { if (colorsBuilder_ == null) { - return colors_.get(index); } else { + return colors_.get(index); + } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsOrBuilderList() { + public java.util.List + getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +844,8 @@ public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( } } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
@@ -777,49 +853,55 @@ public com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder() { - return getColorsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); + return getColorsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder( - int index) { - return getColorsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ColorInfo.Builder addColorsBuilder(int index) { + return getColorsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.ColorInfo.getDefaultInstance()); } /** + * + * *
      * RGB color values with their score and pixel fraction.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - public java.util.List - getColorsBuilderList() { + public java.util.List + getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> + com.google.cloud.vision.v1p4beta1.ColorInfo, + com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { - colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ColorInfo, com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder>( - colors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + colorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ColorInfo, + com.google.cloud.vision.v1p4beta1.ColorInfo.Builder, + com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder>( + colors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) private static final com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation(); } @@ -843,16 +925,16 @@ public static com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DominantColorsAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DominantColorsAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DominantColorsAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DominantColorsAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java index a8d649e11..2622e3c78 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DominantColorsAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface DominantColorsAnnotationOrBuilder extends +public interface DominantColorsAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - java.util.List - getColorsList(); + java.util.List getColorsList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -25,6 +44,8 @@ public interface DominantColorsAnnotationOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ColorInfo getColors(int index); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
@@ -33,21 +54,24 @@ public interface DominantColorsAnnotationOrBuilder extends */ int getColorsCount(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - java.util.List + java.util.List getColorsOrBuilderList(); /** + * + * *
    * RGB color values with their score and pixel fraction.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ColorInfo colors = 1; */ - com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ColorInfoOrBuilder getColorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java similarity index 78% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java index 8940d16c1..2da866534 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Set of detected entity features.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.EntityAnnotation} */ -public final class EntityAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EntityAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.EntityAnnotation) EntityAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EntityAnnotation.newBuilder() to construct. private EntityAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EntityAnnotation() { mid_ = ""; locale_ = ""; @@ -29,16 +47,15 @@ private EntityAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntityAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EntityAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,88 @@ private EntityAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - locale_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 37: { - - score_ = input.readFloat(); - break; - } - case 45: { + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 53: { + locale_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - topicality_ = input.readFloat(); - break; - } - case 58: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + description_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + confidence_ = input.readFloat(); + break; } - locations_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.LocationInfo.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 53: + { + topicality_ = input.readFloat(); + break; } - properties_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Property.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.LocationInfo.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + properties_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Property.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +164,7 @@ private EntityAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -149,22 +176,27 @@ private EntityAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -172,6 +204,7 @@ private EntityAnnotation(
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -180,14 +213,15 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -195,16 +229,15 @@ public java.lang.String getMid() {
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -215,12 +248,15 @@ public java.lang.String getMid() { public static final int LOCALE_FIELD_NUMBER = 2; private volatile java.lang.Object locale_; /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ @java.lang.Override @@ -229,30 +265,30 @@ public java.lang.String getLocale() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; } } /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -263,11 +299,14 @@ public java.lang.String getLocale() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -276,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -309,11 +348,14 @@ public java.lang.String getDescription() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -324,6 +366,8 @@ public float getScore() { public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -333,18 +377,22 @@ public float getScore() {
    * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated public float getConfidence() { + @java.lang.Deprecated + public float getConfidence() { return confidence_; } public static final int TOPICALITY_FIELD_NUMBER = 6; private float topicality_; /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -354,6 +402,7 @@ public float getScore() {
    * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -364,12 +413,15 @@ public float getTopicality() { public static final int BOUNDING_POLY_FIELD_NUMBER = 7; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -377,19 +429,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -405,6 +464,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int LOCATIONS_FIELD_NUMBER = 8;
   private java.util.List locations_;
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -420,6 +481,8 @@ public java.util.List getLocatio
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -431,11 +494,13 @@ public java.util.List getLocatio
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLocationsOrBuilderList() {
     return locations_;
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -451,6 +516,8 @@ public int getLocationsCount() {
     return locations_.size();
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -466,6 +533,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
     return locations_.get(index);
   }
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -477,14 +546,15 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index) {
     return locations_.get(index);
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 9;
   private java.util.List properties_;
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -497,6 +567,8 @@ public java.util.List getPropertiesL
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -505,11 +577,13 @@ public java.util.List getPropertiesL
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertiesOrBuilderList() {
     return properties_;
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -522,6 +596,8 @@ public int getPropertiesCount() {
     return properties_.size();
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -534,6 +610,8 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
     return properties_.get(index);
   }
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -542,12 +620,12 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
     return properties_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -559,8 +637,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_);
     }
@@ -607,28 +684,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (java.lang.Float.floatToRawIntBits(score_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(4, score_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(5, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_);
     }
     if (java.lang.Float.floatToRawIntBits(topicality_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(6, topicality_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, topicality_);
     }
     if (boundingPoly_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getBoundingPoly());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBoundingPoly());
     }
     for (int i = 0; i < locations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, locations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, locations_.get(i));
     }
     for (int i = 0; i < properties_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, properties_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, properties_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -638,37 +709,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.EntityAnnotation)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.EntityAnnotation other = (com.google.cloud.vision.v1p4beta1.EntityAnnotation) obj;
+    com.google.cloud.vision.v1p4beta1.EntityAnnotation other =
+        (com.google.cloud.vision.v1p4beta1.EntityAnnotation) obj;
 
-    if (!getMid()
-        .equals(other.getMid())) return false;
-    if (!getLocale()
-        .equals(other.getLocale())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getMid().equals(other.getMid())) return false;
+    if (!getLocale().equals(other.getLocale())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (java.lang.Float.floatToIntBits(getScore())
-        != java.lang.Float.floatToIntBits(
-            other.getScore())) return false;
+        != java.lang.Float.floatToIntBits(other.getScore())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
     if (java.lang.Float.floatToIntBits(getTopicality())
-        != java.lang.Float.floatToIntBits(
-            other.getTopicality())) return false;
+        != java.lang.Float.floatToIntBits(other.getTopicality())) return false;
     if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
     if (hasBoundingPoly()) {
-      if (!getBoundingPoly()
-          .equals(other.getBoundingPoly())) return false;
+      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
     }
-    if (!getLocationsList()
-        .equals(other.getLocationsList())) return false;
-    if (!getPropertiesList()
-        .equals(other.getPropertiesList())) return false;
+    if (!getLocationsList().equals(other.getLocationsList())) return false;
+    if (!getPropertiesList().equals(other.getPropertiesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -687,14 +750,11 @@ public int hashCode() {
     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getDescription().hashCode();
     hash = (37 * hash) + SCORE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getScore());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore());
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     hash = (37 * hash) + TOPICALITY_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getTopicality());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopicality());
     if (hasBoundingPoly()) {
       hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER;
       hash = (53 * hash) + getBoundingPoly().hashCode();
@@ -713,117 +773,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.EntityAnnotation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.EntityAnnotation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Set of detected entity features.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.EntityAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.EntityAnnotation) com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.EntityAnnotation.class, + com.google.cloud.vision.v1p4beta1.EntityAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.EntityAnnotation.newBuilder() @@ -831,18 +900,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getPropertiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -880,9 +949,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; } @java.lang.Override @@ -901,7 +970,8 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.EntityAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.EntityAnnotation result = new com.google.cloud.vision.v1p4beta1.EntityAnnotation(this); + com.google.cloud.vision.v1p4beta1.EntityAnnotation result = + new com.google.cloud.vision.v1p4beta1.EntityAnnotation(this); int from_bitField0_ = bitField0_; result.mid_ = mid_; result.locale_ = locale_; @@ -940,38 +1010,39 @@ public com.google.cloud.vision.v1p4beta1.EntityAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.EntityAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.EntityAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.EntityAnnotation) other); } else { super.mergeFrom(other); return this; @@ -979,7 +1050,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.EntityAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1022,9 +1094,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation othe locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -1048,9 +1121,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.EntityAnnotation othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000002); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1075,7 +1149,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.EntityAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.EntityAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1084,10 +1159,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mid_ = ""; /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1095,13 +1173,13 @@ public Builder mergeFrom(
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1110,6 +1188,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1117,15 +1197,14 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1133,6 +1212,8 @@ public java.lang.String getMid() { } } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1140,20 +1221,22 @@ public java.lang.String getMid() {
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1161,15 +1244,18 @@ public Builder setMid(
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Opaque entity ID. Some IDs may be available in
      * [Google Knowledge Graph Search
@@ -1177,16 +1263,16 @@ public Builder clearMid() {
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1194,19 +1280,21 @@ public Builder setMidBytes( private java.lang.Object locale_ = ""; /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The locale. */ public java.lang.String getLocale() { java.lang.Object ref = locale_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locale_ = s; return s; @@ -1215,21 +1303,22 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return The bytes for locale. */ - public com.google.protobuf.ByteString - getLocaleBytes() { + public com.google.protobuf.ByteString getLocaleBytes() { java.lang.Object ref = locale_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locale_ = b; return b; } else { @@ -1237,57 +1326,64 @@ public java.lang.String getLocale() { } } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The locale to set. * @return This builder for chaining. */ - public Builder setLocale( - java.lang.String value) { + public Builder setLocale(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locale_ = value; onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @return This builder for chaining. */ public Builder clearLocale() { - + locale_ = getDefaultInstance().getLocale(); onChanged(); return this; } /** + * + * *
      * The language code for the locale in which the entity textual
      * `description` is expressed.
      * 
* * string locale = 2; + * * @param value The bytes for locale to set. * @return This builder for chaining. */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { + public Builder setLocaleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locale_ = value; onChanged(); return this; @@ -1295,18 +1391,20 @@ public Builder setLocaleBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1315,20 +1413,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1336,66 +1435,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Entity textual description, expressed in its `locale` language.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1403,37 +1512,45 @@ public float getScore() { return score_; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Overall score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1443,15 +1560,19 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ @java.lang.Override - @java.lang.Deprecated public float getConfidence() { + @java.lang.Deprecated + public float getConfidence() { return confidence_; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1461,18 +1582,22 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @param value The confidence to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setConfidence(float value) { - + @java.lang.Deprecated + public Builder setConfidence(float value) { + confidence_ = value; onChanged(); return this; } /** + * + * *
      * **Deprecated. Use `score` instead.**
      * The accuracy of the entity detection in an image.
@@ -1482,19 +1607,23 @@ public Builder clearScore() {
      * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearConfidence() { - + @java.lang.Deprecated + public Builder clearConfidence() { + confidence_ = 0F; onChanged(); return this; } - private float topicality_ ; + private float topicality_; /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1504,6 +1633,7 @@ public Builder clearScore() {
      * 
* * float topicality = 6; + * * @return The topicality. */ @java.lang.Override @@ -1511,6 +1641,8 @@ public float getTopicality() { return topicality_; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1520,16 +1652,19 @@ public float getTopicality() {
      * 
* * float topicality = 6; + * * @param value The topicality to set. * @return This builder for chaining. */ public Builder setTopicality(float value) { - + topicality_ = value; onChanged(); return this; } /** + * + * *
      * The relevancy of the ICA (Image Content Annotation) label to the
      * image. For example, the relevancy of "tower" is likely higher to an image
@@ -1539,10 +1674,11 @@ public Builder setTopicality(float value) {
      * 
* * float topicality = 6; + * * @return This builder for chaining. */ public Builder clearTopicality() { - + topicality_ = 0F; onChanged(); return this; @@ -1550,36 +1686,49 @@ public Builder clearTopicality() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1601,6 +1750,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1620,6 +1771,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1631,7 +1784,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -1643,6 +1798,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1662,6 +1819,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1670,11 +1829,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1686,11 +1847,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * Image region to which this entity belongs. Not produced
      * for `LABEL_DETECTION` features.
@@ -1699,32 +1863,42 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
     }
 
     private java.util.List locations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLocationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        locations_ = new java.util.ArrayList(locations_);
+        locations_ =
+            new java.util.ArrayList(locations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder> locationsBuilder_;
+            com.google.cloud.vision.v1p4beta1.LocationInfo,
+            com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>
+        locationsBuilder_;
 
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1743,6 +1917,8 @@ public java.util.List getLocatio
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1761,6 +1937,8 @@ public int getLocationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1779,6 +1957,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1789,8 +1969,7 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public Builder setLocations(
-        int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
+    public Builder setLocations(int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1804,6 +1983,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1826,6 +2007,8 @@ public Builder setLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1850,6 +2033,8 @@ public Builder addLocations(com.google.cloud.vision.v1p4beta1.LocationInfo value
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1860,8 +2045,7 @@ public Builder addLocations(com.google.cloud.vision.v1p4beta1.LocationInfo value
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public Builder addLocations(
-        int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
+    public Builder addLocations(int index, com.google.cloud.vision.v1p4beta1.LocationInfo value) {
       if (locationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1875,6 +2059,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1897,6 +2083,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1919,6 +2107,8 @@ public Builder addLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1933,8 +2123,7 @@ public Builder addAllLocations(
         java.lang.Iterable values) {
       if (locationsBuilder_ == null) {
         ensureLocationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, locations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
         onChanged();
       } else {
         locationsBuilder_.addAllMessages(values);
@@ -1942,6 +2131,8 @@ public Builder addAllLocations(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1963,6 +2154,8 @@ public Builder clearLocations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1984,6 +2177,8 @@ public Builder removeLocations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -1994,11 +2189,12 @@ public Builder removeLocations(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilder(int index) {
       return getLocationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2012,11 +2208,14 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder getLocationsBuilde
     public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
         int index) {
       if (locationsBuilder_ == null) {
-        return locations_.get(index);  } else {
+        return locations_.get(index);
+      } else {
         return locationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2027,8 +2226,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsOrBuilderList() {
+    public java.util.List
+        getLocationsOrBuilderList() {
       if (locationsBuilder_ != null) {
         return locationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2036,6 +2235,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2047,10 +2248,12 @@ public com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBui
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
     public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder() {
-      return getLocationsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
+      return getLocationsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2061,12 +2264,13 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder(
-        int index) {
-      return getLocationsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilder(int index) {
+      return getLocationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p4beta1.LocationInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The location information for the detected entity. Multiple
      * `LocationInfo` elements can be present because one location may
@@ -2077,38 +2281,48 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo.Builder addLocationsBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
      */
-    public java.util.List 
-         getLocationsBuilderList() {
+    public java.util.List
+        getLocationsBuilderList() {
       return getLocationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.LocationInfo,
+            com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
+            com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>
         getLocationsFieldBuilder() {
       if (locationsBuilder_ == null) {
-        locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.LocationInfo, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder, com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>(
-                locations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        locationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.LocationInfo,
+                com.google.cloud.vision.v1p4beta1.LocationInfo.Builder,
+                com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder>(
+                locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         locations_ = null;
       }
       return locationsBuilder_;
     }
 
     private java.util.List properties_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePropertiesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        properties_ = new java.util.ArrayList(properties_);
+        properties_ =
+            new java.util.ArrayList(properties_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder> propertiesBuilder_;
+            com.google.cloud.vision.v1p4beta1.Property,
+            com.google.cloud.vision.v1p4beta1.Property.Builder,
+            com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>
+        propertiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2124,6 +2338,8 @@ public java.util.List getPropertiesL
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2139,6 +2355,8 @@ public int getPropertiesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2154,6 +2372,8 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2161,8 +2381,7 @@ public com.google.cloud.vision.v1p4beta1.Property getProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public Builder setProperties(
-        int index, com.google.cloud.vision.v1p4beta1.Property value) {
+    public Builder setProperties(int index, com.google.cloud.vision.v1p4beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2176,6 +2395,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2195,6 +2416,8 @@ public Builder setProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2216,6 +2439,8 @@ public Builder addProperties(com.google.cloud.vision.v1p4beta1.Property value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2223,8 +2448,7 @@ public Builder addProperties(com.google.cloud.vision.v1p4beta1.Property value) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public Builder addProperties(
-        int index, com.google.cloud.vision.v1p4beta1.Property value) {
+    public Builder addProperties(int index, com.google.cloud.vision.v1p4beta1.Property value) {
       if (propertiesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2238,6 +2462,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2257,6 +2483,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2276,6 +2504,8 @@ public Builder addProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2287,8 +2517,7 @@ public Builder addAllProperties(
         java.lang.Iterable values) {
       if (propertiesBuilder_ == null) {
         ensurePropertiesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, properties_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_);
         onChanged();
       } else {
         propertiesBuilder_.addAllMessages(values);
@@ -2296,6 +2525,8 @@ public Builder addAllProperties(
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2314,6 +2545,8 @@ public Builder clearProperties() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2332,6 +2565,8 @@ public Builder removeProperties(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2339,11 +2574,12 @@ public Builder removeProperties(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(int index) {
       return getPropertiesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2351,14 +2587,16 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder getPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index) {
       if (propertiesBuilder_ == null) {
-        return properties_.get(index);  } else {
+        return properties_.get(index);
+      } else {
         return propertiesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2366,8 +2604,8 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesOrBuilderList() {
+    public java.util.List
+        getPropertiesOrBuilderList() {
       if (propertiesBuilder_ != null) {
         return propertiesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2375,6 +2613,8 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2383,10 +2623,12 @@ public com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilde
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
     public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder() {
-      return getPropertiesFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
+      return getPropertiesFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2394,12 +2636,13 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder()
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(
-        int index) {
-      return getPropertiesFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(int index) {
+      return getPropertiesFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p4beta1.Property.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Some entities may have optional user-supplied `Property` (name/value)
      * fields, such a score or string that qualifies the entity.
@@ -2407,27 +2650,30 @@ public com.google.cloud.vision.v1p4beta1.Property.Builder addPropertiesBuilder(
      *
      * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
      */
-    public java.util.List 
-         getPropertiesBuilderList() {
+    public java.util.List
+        getPropertiesBuilderList() {
       return getPropertiesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.Property,
+            com.google.cloud.vision.v1p4beta1.Property.Builder,
+            com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>
         getPropertiesFieldBuilder() {
       if (propertiesBuilder_ == null) {
-        propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Property, com.google.cloud.vision.v1p4beta1.Property.Builder, com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>(
-                properties_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        propertiesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.Property,
+                com.google.cloud.vision.v1p4beta1.Property.Builder,
+                com.google.cloud.vision.v1p4beta1.PropertyOrBuilder>(
+                properties_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         properties_ = null;
       }
       return propertiesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2437,12 +2683,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.EntityAnnotation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.EntityAnnotation)
   private static final com.google.cloud.vision.v1p4beta1.EntityAnnotation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.EntityAnnotation();
   }
@@ -2451,16 +2697,16 @@ public static com.google.cloud.vision.v1p4beta1.EntityAnnotation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public EntityAnnotation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new EntityAnnotation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public EntityAnnotation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new EntityAnnotation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2475,6 +2721,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.EntityAnnotation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
index 31f9fb2bd..1344ad02b 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/EntityAnnotationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface EntityAnnotationOrBuilder extends
+public interface EntityAnnotationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.EntityAnnotation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -15,10 +33,13 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Opaque entity ID. Some IDs may be available in
    * [Google Knowledge Graph Search
@@ -26,64 +47,79 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The locale. */ java.lang.String getLocale(); /** + * + * *
    * The language code for the locale in which the entity textual
    * `description` is expressed.
    * 
* * string locale = 2; + * * @return The bytes for locale. */ - com.google.protobuf.ByteString - getLocaleBytes(); + com.google.protobuf.ByteString getLocaleBytes(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Entity textual description, expressed in its `locale` language.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Overall score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * **Deprecated. Use `score` instead.**
    * The accuracy of the entity detection in an image.
@@ -93,13 +129,17 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float confidence = 5 [deprecated = true]; - * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. - * See google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 + * + * @deprecated google.cloud.vision.v1p4beta1.EntityAnnotation.confidence is deprecated. See + * google/cloud/vision/v1p4beta1/image_annotator.proto;l=478 * @return The confidence. */ - @java.lang.Deprecated float getConfidence(); + @java.lang.Deprecated + float getConfidence(); /** + * + * *
    * The relevancy of the ICA (Image Content Annotation) label to the
    * image. For example, the relevancy of "tower" is likely higher to an image
@@ -109,31 +149,40 @@ public interface EntityAnnotationOrBuilder extends
    * 
* * float topicality = 6; + * * @return The topicality. */ float getTopicality(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 7; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this entity belongs. Not produced
    * for `LABEL_DETECTION` features.
@@ -144,6 +193,8 @@ public interface EntityAnnotationOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -154,9 +205,10 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  java.util.List 
-      getLocationsList();
+  java.util.List getLocationsList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -169,6 +221,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.LocationInfo getLocations(int index);
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -181,6 +235,8 @@ public interface EntityAnnotationOrBuilder extends
    */
   int getLocationsCount();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -191,9 +247,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  java.util.List 
+  java.util.List
       getLocationsOrBuilderList();
   /**
+   *
+   *
    * 
    * The location information for the detected entity. Multiple
    * `LocationInfo` elements can be present because one location may
@@ -204,10 +262,11 @@ public interface EntityAnnotationOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.LocationInfo locations = 8;
    */
-  com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -215,9 +274,10 @@ com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  java.util.List 
-      getPropertiesList();
+  java.util.List getPropertiesList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -227,6 +287,8 @@ com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   com.google.cloud.vision.v1p4beta1.Property getProperties(int index);
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -236,6 +298,8 @@ com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -243,9 +307,11 @@ com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  java.util.List 
+  java.util.List
       getPropertiesOrBuilderList();
   /**
+   *
+   *
    * 
    * Some entities may have optional user-supplied `Property` (name/value)
    * fields, such a score or string that qualifies the entity.
@@ -253,6 +319,5 @@ com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder getLocationsOrBuilder(
    *
    * repeated .google.cloud.vision.v1p4beta1.Property properties = 9;
    */
-  com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.PropertyOrBuilder getPropertiesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
similarity index 77%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
index ce737b5d6..0b4346e9e 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * A face annotation object contains the results of face detection.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation} */ -public final class FaceAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceAnnotation) FaceAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceAnnotation() { landmarks_ = java.util.Collections.emptyList(); joyLikelihood_ = 0; @@ -33,16 +51,15 @@ private FaceAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -62,124 +79,147 @@ private FaceAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); - } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (fdBoundingPoly_ != null) { + subBuilder = fdBoundingPoly_.toBuilder(); + } + fdBoundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fdBoundingPoly_); + fdBoundingPoly_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (fdBoundingPoly_ != null) { - subBuilder = fdBoundingPoly_.toBuilder(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark>(); + mutable_bitField0_ |= 0x00000001; + } + landmarks_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.parser(), + extensionRegistry)); + break; } - fdBoundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fdBoundingPoly_); - fdBoundingPoly_ = subBuilder.buildPartial(); + case 37: + { + rollAngle_ = input.readFloat(); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - landmarks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 45: + { + panAngle_ = input.readFloat(); + break; } - landmarks_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.parser(), extensionRegistry)); - break; - } - case 37: { - - rollAngle_ = input.readFloat(); - break; - } - case 45: { - - panAngle_ = input.readFloat(); - break; - } - case 53: { - - tiltAngle_ = input.readFloat(); - break; - } - case 61: { - - detectionConfidence_ = input.readFloat(); - break; - } - case 69: { - - landmarkingConfidence_ = input.readFloat(); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 53: + { + tiltAngle_ = input.readFloat(); + break; + } + case 61: + { + detectionConfidence_ = input.readFloat(); + break; + } + case 69: + { + landmarkingConfidence_ = input.readFloat(); + break; + } + case 72: + { + int rawValue = input.readEnum(); - joyLikelihood_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + joyLikelihood_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - sorrowLikelihood_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + sorrowLikelihood_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - angerLikelihood_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + angerLikelihood_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - surpriseLikelihood_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); + surpriseLikelihood_ = rawValue; + break; + } + case 104: + { + int rawValue = input.readEnum(); - underExposedLikelihood_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); + underExposedLikelihood_ = rawValue; + break; + } + case 112: + { + int rawValue = input.readEnum(); - blurredLikelihood_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); + blurredLikelihood_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); - headwearLikelihood_ = rawValue; - break; - } - case 130: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - recognitionResult_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + headwearLikelihood_ = rawValue; + break; } - recognitionResult_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 130: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + recognitionResult_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult>(); + mutable_bitField0_ |= 0x00000002; + } + recognitionResult_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -187,8 +227,7 @@ private FaceAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); @@ -200,61 +239,79 @@ private FaceAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); } - public interface LandmarkOrBuilder extends + public interface LandmarkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return The position. */ com.google.cloud.vision.v1p4beta1.Position getPosition(); /** + * + * *
      * Face landmark position.
      * 
@@ -264,37 +321,39 @@ public interface LandmarkOrBuilder extends com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder(); } /** + * + * *
    * A face-specific landmark (for example, a face feature).
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark} */ - public static final class Landmark extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) LandmarkOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Landmark.newBuilder() to construct. private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Landmark() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Landmark(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Landmark( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -313,32 +372,36 @@ private Landmark( case 0: done = true; break; - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.vision.v1p4beta1.Position.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); + type_ = rawValue; + break; } - position_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Position.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p4beta1.Position.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Position.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -346,27 +409,31 @@ private Landmark( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); } /** + * + * *
      * Face landmark (feature) type.
      * Left and right are defined from the vantage of the viewer of the image
@@ -376,9 +443,10 @@ private Landmark(
      *
      * Protobuf enum {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type}
      */
-    public enum Type
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -387,6 +455,8 @@ public enum Type */ UNKNOWN_LANDMARK(0), /** + * + * *
        * Left eye.
        * 
@@ -395,6 +465,8 @@ public enum Type */ LEFT_EYE(1), /** + * + * *
        * Right eye.
        * 
@@ -403,6 +475,8 @@ public enum Type */ RIGHT_EYE(2), /** + * + * *
        * Left of left eyebrow.
        * 
@@ -411,6 +485,8 @@ public enum Type */ LEFT_OF_LEFT_EYEBROW(3), /** + * + * *
        * Right of left eyebrow.
        * 
@@ -419,6 +495,8 @@ public enum Type */ RIGHT_OF_LEFT_EYEBROW(4), /** + * + * *
        * Left of right eyebrow.
        * 
@@ -427,6 +505,8 @@ public enum Type */ LEFT_OF_RIGHT_EYEBROW(5), /** + * + * *
        * Right of right eyebrow.
        * 
@@ -435,6 +515,8 @@ public enum Type */ RIGHT_OF_RIGHT_EYEBROW(6), /** + * + * *
        * Midpoint between eyes.
        * 
@@ -443,6 +525,8 @@ public enum Type */ MIDPOINT_BETWEEN_EYES(7), /** + * + * *
        * Nose tip.
        * 
@@ -451,6 +535,8 @@ public enum Type */ NOSE_TIP(8), /** + * + * *
        * Upper lip.
        * 
@@ -459,6 +545,8 @@ public enum Type */ UPPER_LIP(9), /** + * + * *
        * Lower lip.
        * 
@@ -467,6 +555,8 @@ public enum Type */ LOWER_LIP(10), /** + * + * *
        * Mouth left.
        * 
@@ -475,6 +565,8 @@ public enum Type */ MOUTH_LEFT(11), /** + * + * *
        * Mouth right.
        * 
@@ -483,6 +575,8 @@ public enum Type */ MOUTH_RIGHT(12), /** + * + * *
        * Mouth center.
        * 
@@ -491,6 +585,8 @@ public enum Type */ MOUTH_CENTER(13), /** + * + * *
        * Nose, bottom right.
        * 
@@ -499,6 +595,8 @@ public enum Type */ NOSE_BOTTOM_RIGHT(14), /** + * + * *
        * Nose, bottom left.
        * 
@@ -507,6 +605,8 @@ public enum Type */ NOSE_BOTTOM_LEFT(15), /** + * + * *
        * Nose, bottom center.
        * 
@@ -515,6 +615,8 @@ public enum Type */ NOSE_BOTTOM_CENTER(16), /** + * + * *
        * Left eye, top boundary.
        * 
@@ -523,6 +625,8 @@ public enum Type */ LEFT_EYE_TOP_BOUNDARY(17), /** + * + * *
        * Left eye, right corner.
        * 
@@ -531,6 +635,8 @@ public enum Type */ LEFT_EYE_RIGHT_CORNER(18), /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -539,6 +645,8 @@ public enum Type */ LEFT_EYE_BOTTOM_BOUNDARY(19), /** + * + * *
        * Left eye, left corner.
        * 
@@ -547,6 +655,8 @@ public enum Type */ LEFT_EYE_LEFT_CORNER(20), /** + * + * *
        * Right eye, top boundary.
        * 
@@ -555,6 +665,8 @@ public enum Type */ RIGHT_EYE_TOP_BOUNDARY(21), /** + * + * *
        * Right eye, right corner.
        * 
@@ -563,6 +675,8 @@ public enum Type */ RIGHT_EYE_RIGHT_CORNER(22), /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -571,6 +685,8 @@ public enum Type */ RIGHT_EYE_BOTTOM_BOUNDARY(23), /** + * + * *
        * Right eye, left corner.
        * 
@@ -579,6 +695,8 @@ public enum Type */ RIGHT_EYE_LEFT_CORNER(24), /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -587,6 +705,8 @@ public enum Type */ LEFT_EYEBROW_UPPER_MIDPOINT(25), /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -595,6 +715,8 @@ public enum Type */ RIGHT_EYEBROW_UPPER_MIDPOINT(26), /** + * + * *
        * Left ear tragion.
        * 
@@ -603,6 +725,8 @@ public enum Type */ LEFT_EAR_TRAGION(27), /** + * + * *
        * Right ear tragion.
        * 
@@ -611,6 +735,8 @@ public enum Type */ RIGHT_EAR_TRAGION(28), /** + * + * *
        * Left eye pupil.
        * 
@@ -619,6 +745,8 @@ public enum Type */ LEFT_EYE_PUPIL(29), /** + * + * *
        * Right eye pupil.
        * 
@@ -627,6 +755,8 @@ public enum Type */ RIGHT_EYE_PUPIL(30), /** + * + * *
        * Forehead glabella.
        * 
@@ -635,6 +765,8 @@ public enum Type */ FOREHEAD_GLABELLA(31), /** + * + * *
        * Chin gnathion.
        * 
@@ -643,6 +775,8 @@ public enum Type */ CHIN_GNATHION(32), /** + * + * *
        * Chin left gonion.
        * 
@@ -651,6 +785,8 @@ public enum Type */ CHIN_LEFT_GONION(33), /** + * + * *
        * Chin right gonion.
        * 
@@ -662,6 +798,8 @@ public enum Type ; /** + * + * *
        * Unknown face landmark detected. Should not be filled.
        * 
@@ -670,6 +808,8 @@ public enum Type */ public static final int UNKNOWN_LANDMARK_VALUE = 0; /** + * + * *
        * Left eye.
        * 
@@ -678,6 +818,8 @@ public enum Type */ public static final int LEFT_EYE_VALUE = 1; /** + * + * *
        * Right eye.
        * 
@@ -686,6 +828,8 @@ public enum Type */ public static final int RIGHT_EYE_VALUE = 2; /** + * + * *
        * Left of left eyebrow.
        * 
@@ -694,6 +838,8 @@ public enum Type */ public static final int LEFT_OF_LEFT_EYEBROW_VALUE = 3; /** + * + * *
        * Right of left eyebrow.
        * 
@@ -702,6 +848,8 @@ public enum Type */ public static final int RIGHT_OF_LEFT_EYEBROW_VALUE = 4; /** + * + * *
        * Left of right eyebrow.
        * 
@@ -710,6 +858,8 @@ public enum Type */ public static final int LEFT_OF_RIGHT_EYEBROW_VALUE = 5; /** + * + * *
        * Right of right eyebrow.
        * 
@@ -718,6 +868,8 @@ public enum Type */ public static final int RIGHT_OF_RIGHT_EYEBROW_VALUE = 6; /** + * + * *
        * Midpoint between eyes.
        * 
@@ -726,6 +878,8 @@ public enum Type */ public static final int MIDPOINT_BETWEEN_EYES_VALUE = 7; /** + * + * *
        * Nose tip.
        * 
@@ -734,6 +888,8 @@ public enum Type */ public static final int NOSE_TIP_VALUE = 8; /** + * + * *
        * Upper lip.
        * 
@@ -742,6 +898,8 @@ public enum Type */ public static final int UPPER_LIP_VALUE = 9; /** + * + * *
        * Lower lip.
        * 
@@ -750,6 +908,8 @@ public enum Type */ public static final int LOWER_LIP_VALUE = 10; /** + * + * *
        * Mouth left.
        * 
@@ -758,6 +918,8 @@ public enum Type */ public static final int MOUTH_LEFT_VALUE = 11; /** + * + * *
        * Mouth right.
        * 
@@ -766,6 +928,8 @@ public enum Type */ public static final int MOUTH_RIGHT_VALUE = 12; /** + * + * *
        * Mouth center.
        * 
@@ -774,6 +938,8 @@ public enum Type */ public static final int MOUTH_CENTER_VALUE = 13; /** + * + * *
        * Nose, bottom right.
        * 
@@ -782,6 +948,8 @@ public enum Type */ public static final int NOSE_BOTTOM_RIGHT_VALUE = 14; /** + * + * *
        * Nose, bottom left.
        * 
@@ -790,6 +958,8 @@ public enum Type */ public static final int NOSE_BOTTOM_LEFT_VALUE = 15; /** + * + * *
        * Nose, bottom center.
        * 
@@ -798,6 +968,8 @@ public enum Type */ public static final int NOSE_BOTTOM_CENTER_VALUE = 16; /** + * + * *
        * Left eye, top boundary.
        * 
@@ -806,6 +978,8 @@ public enum Type */ public static final int LEFT_EYE_TOP_BOUNDARY_VALUE = 17; /** + * + * *
        * Left eye, right corner.
        * 
@@ -814,6 +988,8 @@ public enum Type */ public static final int LEFT_EYE_RIGHT_CORNER_VALUE = 18; /** + * + * *
        * Left eye, bottom boundary.
        * 
@@ -822,6 +998,8 @@ public enum Type */ public static final int LEFT_EYE_BOTTOM_BOUNDARY_VALUE = 19; /** + * + * *
        * Left eye, left corner.
        * 
@@ -830,6 +1008,8 @@ public enum Type */ public static final int LEFT_EYE_LEFT_CORNER_VALUE = 20; /** + * + * *
        * Right eye, top boundary.
        * 
@@ -838,6 +1018,8 @@ public enum Type */ public static final int RIGHT_EYE_TOP_BOUNDARY_VALUE = 21; /** + * + * *
        * Right eye, right corner.
        * 
@@ -846,6 +1028,8 @@ public enum Type */ public static final int RIGHT_EYE_RIGHT_CORNER_VALUE = 22; /** + * + * *
        * Right eye, bottom boundary.
        * 
@@ -854,6 +1038,8 @@ public enum Type */ public static final int RIGHT_EYE_BOTTOM_BOUNDARY_VALUE = 23; /** + * + * *
        * Right eye, left corner.
        * 
@@ -862,6 +1048,8 @@ public enum Type */ public static final int RIGHT_EYE_LEFT_CORNER_VALUE = 24; /** + * + * *
        * Left eyebrow, upper midpoint.
        * 
@@ -870,6 +1058,8 @@ public enum Type */ public static final int LEFT_EYEBROW_UPPER_MIDPOINT_VALUE = 25; /** + * + * *
        * Right eyebrow, upper midpoint.
        * 
@@ -878,6 +1068,8 @@ public enum Type */ public static final int RIGHT_EYEBROW_UPPER_MIDPOINT_VALUE = 26; /** + * + * *
        * Left ear tragion.
        * 
@@ -886,6 +1078,8 @@ public enum Type */ public static final int LEFT_EAR_TRAGION_VALUE = 27; /** + * + * *
        * Right ear tragion.
        * 
@@ -894,6 +1088,8 @@ public enum Type */ public static final int RIGHT_EAR_TRAGION_VALUE = 28; /** + * + * *
        * Left eye pupil.
        * 
@@ -902,6 +1098,8 @@ public enum Type */ public static final int LEFT_EYE_PUPIL_VALUE = 29; /** + * + * *
        * Right eye pupil.
        * 
@@ -910,6 +1108,8 @@ public enum Type */ public static final int RIGHT_EYE_PUPIL_VALUE = 30; /** + * + * *
        * Forehead glabella.
        * 
@@ -918,6 +1118,8 @@ public enum Type */ public static final int FOREHEAD_GLABELLA_VALUE = 31; /** + * + * *
        * Chin gnathion.
        * 
@@ -926,6 +1128,8 @@ public enum Type */ public static final int CHIN_GNATHION_VALUE = 32; /** + * + * *
        * Chin left gonion.
        * 
@@ -934,6 +1138,8 @@ public enum Type */ public static final int CHIN_LEFT_GONION_VALUE = 33; /** + * + * *
        * Chin right gonion.
        * 
@@ -942,7 +1148,6 @@ public enum Type */ public static final int CHIN_RIGHT_GONION_VALUE = 34; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -967,81 +1172,115 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return UNKNOWN_LANDMARK; - case 1: return LEFT_EYE; - case 2: return RIGHT_EYE; - case 3: return LEFT_OF_LEFT_EYEBROW; - case 4: return RIGHT_OF_LEFT_EYEBROW; - case 5: return LEFT_OF_RIGHT_EYEBROW; - case 6: return RIGHT_OF_RIGHT_EYEBROW; - case 7: return MIDPOINT_BETWEEN_EYES; - case 8: return NOSE_TIP; - case 9: return UPPER_LIP; - case 10: return LOWER_LIP; - case 11: return MOUTH_LEFT; - case 12: return MOUTH_RIGHT; - case 13: return MOUTH_CENTER; - case 14: return NOSE_BOTTOM_RIGHT; - case 15: return NOSE_BOTTOM_LEFT; - case 16: return NOSE_BOTTOM_CENTER; - case 17: return LEFT_EYE_TOP_BOUNDARY; - case 18: return LEFT_EYE_RIGHT_CORNER; - case 19: return LEFT_EYE_BOTTOM_BOUNDARY; - case 20: return LEFT_EYE_LEFT_CORNER; - case 21: return RIGHT_EYE_TOP_BOUNDARY; - case 22: return RIGHT_EYE_RIGHT_CORNER; - case 23: return RIGHT_EYE_BOTTOM_BOUNDARY; - case 24: return RIGHT_EYE_LEFT_CORNER; - case 25: return LEFT_EYEBROW_UPPER_MIDPOINT; - case 26: return RIGHT_EYEBROW_UPPER_MIDPOINT; - case 27: return LEFT_EAR_TRAGION; - case 28: return RIGHT_EAR_TRAGION; - case 29: return LEFT_EYE_PUPIL; - case 30: return RIGHT_EYE_PUPIL; - case 31: return FOREHEAD_GLABELLA; - case 32: return CHIN_GNATHION; - case 33: return CHIN_LEFT_GONION; - case 34: return CHIN_RIGHT_GONION; - default: return null; + case 0: + return UNKNOWN_LANDMARK; + case 1: + return LEFT_EYE; + case 2: + return RIGHT_EYE; + case 3: + return LEFT_OF_LEFT_EYEBROW; + case 4: + return RIGHT_OF_LEFT_EYEBROW; + case 5: + return LEFT_OF_RIGHT_EYEBROW; + case 6: + return RIGHT_OF_RIGHT_EYEBROW; + case 7: + return MIDPOINT_BETWEEN_EYES; + case 8: + return NOSE_TIP; + case 9: + return UPPER_LIP; + case 10: + return LOWER_LIP; + case 11: + return MOUTH_LEFT; + case 12: + return MOUTH_RIGHT; + case 13: + return MOUTH_CENTER; + case 14: + return NOSE_BOTTOM_RIGHT; + case 15: + return NOSE_BOTTOM_LEFT; + case 16: + return NOSE_BOTTOM_CENTER; + case 17: + return LEFT_EYE_TOP_BOUNDARY; + case 18: + return LEFT_EYE_RIGHT_CORNER; + case 19: + return LEFT_EYE_BOTTOM_BOUNDARY; + case 20: + return LEFT_EYE_LEFT_CORNER; + case 21: + return RIGHT_EYE_TOP_BOUNDARY; + case 22: + return RIGHT_EYE_RIGHT_CORNER; + case 23: + return RIGHT_EYE_BOTTOM_BOUNDARY; + case 24: + return RIGHT_EYE_LEFT_CORNER; + case 25: + return LEFT_EYEBROW_UPPER_MIDPOINT; + case 26: + return RIGHT_EYEBROW_UPPER_MIDPOINT; + case 27: + return LEFT_EAR_TRAGION; + case 28: + return RIGHT_EAR_TRAGION; + case 29: + return LEFT_EYE_PUPIL; + case 30: + return RIGHT_EYE_PUPIL; + case 31: + return FOREHEAD_GLABELLA; + case 32: + return CHIN_GNATHION; + case 33: + return CHIN_LEFT_GONION; + case 34: + return CHIN_RIGHT_GONION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1061,38 +1300,52 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Face landmark type.
      * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } public static final int POSITION_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.Position position_; /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return Whether the position field is set. */ @java.lang.Override @@ -1100,18 +1353,25 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * Face landmark position.
      * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return The position. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Position getPosition() { - return position_ == null ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() + : position_; } /** + * + * *
      * Face landmark position.
      * 
@@ -1124,6 +1384,7 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1135,9 +1396,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { output.writeEnum(3, type_); } if (position_ != null) { @@ -1152,13 +1414,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNKNOWN_LANDMARK + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPosition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1168,18 +1430,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other = (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) obj; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other = + (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) obj; if (type_ != other.type_) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1204,87 +1466,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1294,27 +1563,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A face-specific landmark (for example, a face feature).
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.class, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.newBuilder() @@ -1322,16 +1596,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1347,9 +1620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; } @java.lang.Override @@ -1368,7 +1641,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark result = new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(this); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark result = + new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(this); result.type_ = type_; if (positionBuilder_ == null) { result.position_ = position_; @@ -1383,38 +1657,41 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) other); } else { super.mergeFrom(other); return this; @@ -1422,7 +1699,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1448,7 +1726,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1460,51 +1739,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type result = + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1512,21 +1807,24 @@ public Builder setType(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Face landmark type.
        * 
* * .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1534,34 +1832,47 @@ public Builder clearType() { private com.google.cloud.vision.v1p4beta1.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder> positionBuilder_; + com.google.cloud.vision.v1p4beta1.Position, + com.google.cloud.vision.v1p4beta1.Position.Builder, + com.google.cloud.vision.v1p4beta1.PositionOrBuilder> + positionBuilder_; /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return Whether the position field is set. */ public boolean hasPosition() { return positionBuilder_ != null || position_ != null; } /** + * + * *
        * Face landmark position.
        * 
* * .google.cloud.vision.v1p4beta1.Position position = 4; + * * @return The position. */ public com.google.cloud.vision.v1p4beta1.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * Face landmark position.
        * 
@@ -1582,6 +1893,8 @@ public Builder setPosition(com.google.cloud.vision.v1p4beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1600,6 +1913,8 @@ public Builder setPosition( return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1610,7 +1925,9 @@ public Builder mergePosition(com.google.cloud.vision.v1p4beta1.Position value) { if (positionBuilder_ == null) { if (position_ != null) { position_ = - com.google.cloud.vision.v1p4beta1.Position.newBuilder(position_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.Position.newBuilder(position_) + .mergeFrom(value) + .buildPartial(); } else { position_ = value; } @@ -1622,6 +1939,8 @@ public Builder mergePosition(com.google.cloud.vision.v1p4beta1.Position value) { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1640,6 +1959,8 @@ public Builder clearPosition() { return this; } /** + * + * *
        * Face landmark position.
        * 
@@ -1647,11 +1968,13 @@ public Builder clearPosition() { * .google.cloud.vision.v1p4beta1.Position position = 4; */ public com.google.cloud.vision.v1p4beta1.Position.Builder getPositionBuilder() { - + onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Face landmark position.
        * 
@@ -1662,11 +1985,14 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.vision.v1p4beta1.Position.getDefaultInstance() + : position_; } } /** + * + * *
        * Face landmark position.
        * 
@@ -1674,18 +2000,22 @@ public com.google.cloud.vision.v1p4beta1.PositionOrBuilder getPositionOrBuilder( * .google.cloud.vision.v1p4beta1.Position position = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder> + com.google.cloud.vision.v1p4beta1.Position, + com.google.cloud.vision.v1p4beta1.Position.Builder, + com.google.cloud.vision.v1p4beta1.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Position, com.google.cloud.vision.v1p4beta1.Position.Builder, com.google.cloud.vision.v1p4beta1.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Position, + com.google.cloud.vision.v1p4beta1.Position.Builder, + com.google.cloud.vision.v1p4beta1.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1698,12 +2028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) private static final com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark(); } @@ -1712,16 +2042,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Landmark parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Landmark(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Landmark(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1736,12 +2066,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1753,6 +2084,7 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getDefaultInsta
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -1760,6 +2092,8 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1771,13 +2105,18 @@ public boolean hasBoundingPoly() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -1798,6 +2137,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int FD_BOUNDING_POLY_FIELD_NUMBER = 2;
   private com.google.cloud.vision.v1p4beta1.BoundingPoly fdBoundingPoly_;
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1808,6 +2149,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ @java.lang.Override @@ -1815,6 +2157,8 @@ public boolean hasFdBoundingPoly() { return fdBoundingPoly_ != null; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1825,13 +2169,18 @@ public boolean hasFdBoundingPoly() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly() { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -1851,6 +2200,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
   public static final int LANDMARKS_FIELD_NUMBER = 3;
   private java.util.List landmarks_;
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
@@ -1858,10 +2209,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1869,11 +2223,14 @@ public java.util.List * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList() { return landmarks_; } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1885,6 +2242,8 @@ public int getLandmarksCount() { return landmarks_.size(); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1896,6 +2255,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(in return landmarks_.get(index); } /** + * + * *
    * Detected face landmarks.
    * 
@@ -1911,6 +2272,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan public static final int ROLL_ANGLE_FIELD_NUMBER = 4; private float rollAngle_; /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -1918,6 +2281,7 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -1928,6 +2292,8 @@ public float getRollAngle() { public static final int PAN_ANGLE_FIELD_NUMBER = 5; private float panAngle_; /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -1935,6 +2301,7 @@ public float getRollAngle() {
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -1945,12 +2312,15 @@ public float getPanAngle() { public static final int TILT_ANGLE_FIELD_NUMBER = 6; private float tiltAngle_; /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -1961,11 +2331,14 @@ public float getTiltAngle() { public static final int DETECTION_CONFIDENCE_FIELD_NUMBER = 7; private float detectionConfidence_; /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -1976,11 +2349,14 @@ public float getDetectionConfidence() { public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER = 8; private float landmarkingConfidence_; /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -1991,195 +2367,261 @@ public float getLandmarkingConfidence() { public static final int JOY_LIKELIHOOD_FIELD_NUMBER = 9; private int joyLikelihood_; /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SORROW_LIKELIHOOD_FIELD_NUMBER = 10; private int sorrowLikelihood_; /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int ANGER_LIKELIHOOD_FIELD_NUMBER = 11; private int angerLikelihood_; /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER = 12; private int surpriseLikelihood_; /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER = 13; private int underExposedLikelihood_; /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER = 14; private int blurredLikelihood_; /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER = 15; private int headwearLikelihood_; /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int RECOGNITION_RESULT_FIELD_NUMBER = 16; - private java.util.List recognitionResult_; + private java.util.List + recognitionResult_; /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2188,13 +2630,17 @@ public float getLandmarkingConfidence() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ @java.lang.Override - public java.util.List getRecognitionResultList() { + public java.util.List + getRecognitionResultList() { return recognitionResult_; } /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2203,14 +2649,17 @@ public java.util.List g
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ @java.lang.Override - public java.util.List + public java.util.List getRecognitionResultOrBuilderList() { return recognitionResult_; } /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2219,13 +2668,16 @@ public java.util.List g
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ @java.lang.Override public int getRecognitionResultCount() { return recognitionResult_.size(); } /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2234,13 +2686,16 @@ public int getRecognitionResultCount() {
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { return recognitionResult_.get(index); } /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -2249,15 +2704,17 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder + getRecognitionResultOrBuilder(int index) { return recognitionResult_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2269,8 +2726,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2307,7 +2763,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (surpriseLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { @@ -2329,68 +2786,54 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } if (fdBoundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFdBoundingPoly()); } for (int i = 0; i < landmarks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, landmarks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, landmarks_.get(i)); } if (java.lang.Float.floatToRawIntBits(rollAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, rollAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rollAngle_); } if (java.lang.Float.floatToRawIntBits(panAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, panAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, panAngle_); } if (java.lang.Float.floatToRawIntBits(tiltAngle_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, tiltAngle_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, tiltAngle_); } if (java.lang.Float.floatToRawIntBits(detectionConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, detectionConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, detectionConfidence_); } if (java.lang.Float.floatToRawIntBits(landmarkingConfidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, landmarkingConfidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, landmarkingConfidence_); } if (joyLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, joyLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, joyLikelihood_); } if (sorrowLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, sorrowLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sorrowLikelihood_); } if (angerLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, angerLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, angerLikelihood_); } if (surpriseLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, surpriseLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, surpriseLikelihood_); } - if (underExposedLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, underExposedLikelihood_); + if (underExposedLikelihood_ + != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, underExposedLikelihood_); } if (blurredLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, blurredLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, blurredLikelihood_); } if (headwearLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, headwearLikelihood_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } for (int i = 0; i < recognitionResult_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, recognitionResult_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, recognitionResult_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2400,40 +2843,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceAnnotation other = (com.google.cloud.vision.v1p4beta1.FaceAnnotation) obj; + com.google.cloud.vision.v1p4beta1.FaceAnnotation other = + (com.google.cloud.vision.v1p4beta1.FaceAnnotation) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false; if (hasFdBoundingPoly()) { - if (!getFdBoundingPoly() - .equals(other.getFdBoundingPoly())) return false; + if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false; } - if (!getLandmarksList() - .equals(other.getLandmarksList())) return false; + if (!getLandmarksList().equals(other.getLandmarksList())) return false; if (java.lang.Float.floatToIntBits(getRollAngle()) - != java.lang.Float.floatToIntBits( - other.getRollAngle())) return false; + != java.lang.Float.floatToIntBits(other.getRollAngle())) return false; if (java.lang.Float.floatToIntBits(getPanAngle()) - != java.lang.Float.floatToIntBits( - other.getPanAngle())) return false; + != java.lang.Float.floatToIntBits(other.getPanAngle())) return false; if (java.lang.Float.floatToIntBits(getTiltAngle()) - != java.lang.Float.floatToIntBits( - other.getTiltAngle())) return false; + != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false; if (java.lang.Float.floatToIntBits(getDetectionConfidence()) - != java.lang.Float.floatToIntBits( - other.getDetectionConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false; if (java.lang.Float.floatToIntBits(getLandmarkingConfidence()) - != java.lang.Float.floatToIntBits( - other.getLandmarkingConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false; if (joyLikelihood_ != other.joyLikelihood_) return false; if (sorrowLikelihood_ != other.sorrowLikelihood_) return false; if (angerLikelihood_ != other.angerLikelihood_) return false; @@ -2441,8 +2877,7 @@ public boolean equals(final java.lang.Object obj) { if (underExposedLikelihood_ != other.underExposedLikelihood_) return false; if (blurredLikelihood_ != other.blurredLikelihood_) return false; if (headwearLikelihood_ != other.headwearLikelihood_) return false; - if (!getRecognitionResultList() - .equals(other.getRecognitionResultList())) return false; + if (!getRecognitionResultList().equals(other.getRecognitionResultList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2467,20 +2902,15 @@ public int hashCode() { hash = (53 * hash) + getLandmarksList().hashCode(); } hash = (37 * hash) + ROLL_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRollAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRollAngle()); hash = (37 * hash) + PAN_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPanAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPanAngle()); hash = (37 * hash) + TILT_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTiltAngle()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTiltAngle()); hash = (37 * hash) + DETECTION_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDetectionConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionConfidence()); hash = (37 * hash) + LANDMARKING_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLandmarkingConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLandmarkingConfidence()); hash = (37 * hash) + JOY_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + joyLikelihood_; hash = (37 * hash) + SORROW_LIKELIHOOD_FIELD_NUMBER; @@ -2504,118 +2934,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A face annotation object contains the results of face detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceAnnotation) com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceAnnotation.class, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceAnnotation.newBuilder() @@ -2623,18 +3062,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); getRecognitionResultFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2690,9 +3129,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; } @java.lang.Override @@ -2711,7 +3150,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceAnnotation result = new com.google.cloud.vision.v1p4beta1.FaceAnnotation(this); + com.google.cloud.vision.v1p4beta1.FaceAnnotation result = + new com.google.cloud.vision.v1p4beta1.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -2761,38 +3201,39 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceAnnotation) other); } else { super.mergeFrom(other); return this; @@ -2800,7 +3241,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceAnnotation.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -2825,9 +3267,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) landmarksBuilder_ = null; landmarks_ = other.landmarks_; bitField0_ = (bitField0_ & ~0x00000001); - landmarksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLandmarksFieldBuilder() : null; + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; } else { landmarksBuilder_.addAllMessages(other.landmarks_); } @@ -2887,9 +3330,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) recognitionResultBuilder_ = null; recognitionResult_ = other.recognitionResult_; bitField0_ = (bitField0_ & ~0x00000002); - recognitionResultBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRecognitionResultFieldBuilder() : null; + recognitionResultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecognitionResultFieldBuilder() + : null; } else { recognitionResultBuilder_.addAllMessages(other.recognitionResult_); } @@ -2923,12 +3367,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2940,12 +3390,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2957,16 +3410,21 @@ public boolean hasBoundingPoly() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -2993,6 +3451,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3017,6 +3477,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3033,7 +3495,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -3045,6 +3509,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3069,6 +3535,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3082,11 +3550,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3103,11 +3573,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the face. The coordinates of the bounding box
      * are in the original image's scale.
@@ -3121,14 +3594,17 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -3136,8 +3612,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private com.google.cloud.vision.v1p4beta1.BoundingPoly fdBoundingPoly_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> fdBoundingPolyBuilder_;
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+        fdBoundingPolyBuilder_;
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3148,12 +3629,15 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ public boolean hasFdBoundingPoly() { return fdBoundingPolyBuilder_ != null || fdBoundingPoly_ != null; } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3164,16 +3648,21 @@ public boolean hasFdBoundingPoly() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly() { if (fdBoundingPolyBuilder_ == null) { - return fdBoundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_; + return fdBoundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : fdBoundingPoly_; } else { return fdBoundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3199,6 +3688,8 @@ public Builder setFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3222,6 +3713,8 @@ public Builder setFdBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3237,7 +3730,9 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPol
       if (fdBoundingPolyBuilder_ == null) {
         if (fdBoundingPoly_ != null) {
           fdBoundingPoly_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(fdBoundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(fdBoundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fdBoundingPoly_ = value;
         }
@@ -3249,6 +3744,8 @@ public Builder mergeFdBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPol
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3272,6 +3769,8 @@ public Builder clearFdBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3284,11 +3783,13 @@ public Builder clearFdBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getFdBoundingPolyBuilder() {
-      
+
       onChanged();
       return getFdBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3304,11 +3805,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
       if (fdBoundingPolyBuilder_ != null) {
         return fdBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return fdBoundingPoly_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : fdBoundingPoly_;
+        return fdBoundingPoly_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : fdBoundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The `fd_bounding_poly` bounding polygon is tighter than the
      * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -3321,39 +3825,51 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPoly
      * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getFdBoundingPolyFieldBuilder() {
       if (fdBoundingPolyBuilder_ == null) {
-        fdBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getFdBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        fdBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getFdBoundingPoly(), getParentForChildren(), isClean());
         fdBoundingPoly_ = null;
       }
       return fdBoundingPolyBuilder_;
     }
 
     private java.util.List landmarks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLandmarksIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        landmarks_ = new java.util.ArrayList(landmarks_);
+        landmarks_ =
+            new java.util.ArrayList(
+                landmarks_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> landmarksBuilder_;
+            com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark,
+            com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder,
+            com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>
+        landmarksBuilder_;
 
     /**
+     *
+     *
      * 
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List getLandmarksList() { + public java.util.List + getLandmarksList() { if (landmarksBuilder_ == null) { return java.util.Collections.unmodifiableList(landmarks_); } else { @@ -3361,6 +3877,8 @@ public java.util.List } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3375,6 +3893,8 @@ public int getLandmarksCount() { } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3389,6 +3909,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(in } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3410,6 +3932,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3417,7 +3941,8 @@ public Builder setLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder setLandmarks( - int index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.set(index, builderForValue.build()); @@ -3428,6 +3953,8 @@ public Builder setLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3448,6 +3975,8 @@ public Builder addLandmarks(com.google.cloud.vision.v1p4beta1.FaceAnnotation.Lan return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3469,6 +3998,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3487,6 +4018,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3494,7 +4027,8 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addLandmarks( - int index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder builderForValue) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); landmarks_.add(index, builderForValue.build()); @@ -3505,6 +4039,8 @@ public Builder addLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3512,11 +4048,11 @@ public Builder addLandmarks( * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public Builder addAllLandmarks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (landmarksBuilder_ == null) { ensureLandmarksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, landmarks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); onChanged(); } else { landmarksBuilder_.addAllMessages(values); @@ -3524,6 +4060,8 @@ public Builder addAllLandmarks( return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3541,6 +4079,8 @@ public Builder clearLandmarks() { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3558,6 +4098,8 @@ public Builder removeLandmarks(int index) { return this; } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3569,6 +4111,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder getLand return getLandmarksFieldBuilder().getBuilder(index); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3578,19 +4122,23 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder getLand public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder( int index) { if (landmarksBuilder_ == null) { - return landmarks_.get(index); } else { + return landmarks_.get(index); + } else { return landmarksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> + getLandmarksOrBuilderList() { if (landmarksBuilder_ != null) { return landmarksBuilder_.getMessageOrBuilderList(); } else { @@ -3598,6 +4146,8 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan } } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3605,10 +4155,13 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLan * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder() { - return getLandmarksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
@@ -3617,37 +4170,46 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLand */ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLandmarksBuilder( int index) { - return getLandmarksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); + return getLandmarksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.getDefaultInstance()); } /** + * + * *
      * Detected face landmarks.
      * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - public java.util.List - getLandmarksBuilderList() { + public java.util.List + getLandmarksBuilderList() { return getLandmarksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder> getLandmarksFieldBuilder() { if (landmarksBuilder_ == null) { - landmarksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>( - landmarks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder, + com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); landmarks_ = null; } return landmarksBuilder_; } - private float rollAngle_ ; + private float rollAngle_; /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3655,6 +4217,7 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Builder addLand
      * 
* * float roll_angle = 4; + * * @return The rollAngle. */ @java.lang.Override @@ -3662,6 +4225,8 @@ public float getRollAngle() { return rollAngle_; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3669,16 +4234,19 @@ public float getRollAngle() {
      * 
* * float roll_angle = 4; + * * @param value The rollAngle to set. * @return This builder for chaining. */ public Builder setRollAngle(float value) { - + rollAngle_ = value; onChanged(); return this; } /** + * + * *
      * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
      * of the face relative to the image vertical about the axis perpendicular to
@@ -3686,17 +4254,20 @@ public Builder setRollAngle(float value) {
      * 
* * float roll_angle = 4; + * * @return This builder for chaining. */ public Builder clearRollAngle() { - + rollAngle_ = 0F; onChanged(); return this; } - private float panAngle_ ; + private float panAngle_; /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3704,6 +4275,7 @@ public Builder clearRollAngle() {
      * 
* * float pan_angle = 5; + * * @return The panAngle. */ @java.lang.Override @@ -3711,6 +4283,8 @@ public float getPanAngle() { return panAngle_; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3718,16 +4292,19 @@ public float getPanAngle() {
      * 
* * float pan_angle = 5; + * * @param value The panAngle to set. * @return This builder for chaining. */ public Builder setPanAngle(float value) { - + panAngle_ = value; onChanged(); return this; } /** + * + * *
      * Yaw angle, which indicates the leftward/rightward angle that the face is
      * pointing relative to the vertical plane perpendicular to the image. Range
@@ -3735,23 +4312,27 @@ public Builder setPanAngle(float value) {
      * 
* * float pan_angle = 5; + * * @return This builder for chaining. */ public Builder clearPanAngle() { - + panAngle_ = 0F; onChanged(); return this; } - private float tiltAngle_ ; + private float tiltAngle_; /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ @java.lang.Override @@ -3759,44 +4340,53 @@ public float getTiltAngle() { return tiltAngle_; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @param value The tiltAngle to set. * @return This builder for chaining. */ public Builder setTiltAngle(float value) { - + tiltAngle_ = value; onChanged(); return this; } /** + * + * *
      * Pitch angle, which indicates the upwards/downwards angle that the face is
      * pointing relative to the image's horizontal plane. Range [-180,180].
      * 
* * float tilt_angle = 6; + * * @return This builder for chaining. */ public Builder clearTiltAngle() { - + tiltAngle_ = 0F; onChanged(); return this; } - private float detectionConfidence_ ; + private float detectionConfidence_; /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ @java.lang.Override @@ -3804,42 +4394,51 @@ public float getDetectionConfidence() { return detectionConfidence_; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @param value The detectionConfidence to set. * @return This builder for chaining. */ public Builder setDetectionConfidence(float value) { - + detectionConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Detection confidence. Range [0, 1].
      * 
* * float detection_confidence = 7; + * * @return This builder for chaining. */ public Builder clearDetectionConfidence() { - + detectionConfidence_ = 0F; onChanged(); return this; } - private float landmarkingConfidence_ ; + private float landmarkingConfidence_; /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ @java.lang.Override @@ -3847,30 +4446,36 @@ public float getLandmarkingConfidence() { return landmarkingConfidence_; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @param value The landmarkingConfidence to set. * @return This builder for chaining. */ public Builder setLandmarkingConfidence(float value) { - + landmarkingConfidence_ = value; onChanged(); return this; } /** + * + * *
      * Face landmarking confidence. Range [0, 1].
      * 
* * float landmarking_confidence = 8; + * * @return This builder for chaining. */ public Builder clearLandmarkingConfidence() { - + landmarkingConfidence_ = 0F; onChanged(); return this; @@ -3878,51 +4483,65 @@ public Builder clearLandmarkingConfidence() { private int joyLikelihood_ = 0; /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ - @java.lang.Override public int getJoyLikelihoodValue() { + @java.lang.Override + public int getJoyLikelihoodValue() { return joyLikelihood_; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @param value The enum numeric value on the wire for joyLikelihood to set. * @return This builder for chaining. */ public Builder setJoyLikelihoodValue(int value) { - + joyLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(joyLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @param value The joyLikelihood to set. * @return This builder for chaining. */ @@ -3930,21 +4549,24 @@ public Builder setJoyLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood val if (value == null) { throw new NullPointerException(); } - + joyLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Joy likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return This builder for chaining. */ public Builder clearJoyLikelihood() { - + joyLikelihood_ = 0; onChanged(); return this; @@ -3952,51 +4574,65 @@ public Builder clearJoyLikelihood() { private int sorrowLikelihood_ = 0; /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ - @java.lang.Override public int getSorrowLikelihoodValue() { + @java.lang.Override + public int getSorrowLikelihoodValue() { return sorrowLikelihood_; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @param value The enum numeric value on the wire for sorrowLikelihood to set. * @return This builder for chaining. */ public Builder setSorrowLikelihoodValue(int value) { - + sorrowLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(sorrowLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @param value The sorrowLikelihood to set. * @return This builder for chaining. */ @@ -4004,21 +4640,24 @@ public Builder setSorrowLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + sorrowLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sorrow likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return This builder for chaining. */ public Builder clearSorrowLikelihood() { - + sorrowLikelihood_ = 0; onChanged(); return this; @@ -4026,51 +4665,65 @@ public Builder clearSorrowLikelihood() { private int angerLikelihood_ = 0; /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ - @java.lang.Override public int getAngerLikelihoodValue() { + @java.lang.Override + public int getAngerLikelihoodValue() { return angerLikelihood_; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @param value The enum numeric value on the wire for angerLikelihood to set. * @return This builder for chaining. */ public Builder setAngerLikelihoodValue(int value) { - + angerLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(angerLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @param value The angerLikelihood to set. * @return This builder for chaining. */ @@ -4078,21 +4731,24 @@ public Builder setAngerLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood v if (value == null) { throw new NullPointerException(); } - + angerLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Anger likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return This builder for chaining. */ public Builder clearAngerLikelihood() { - + angerLikelihood_ = 0; onChanged(); return this; @@ -4100,51 +4756,65 @@ public Builder clearAngerLikelihood() { private int surpriseLikelihood_ = 0; /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ - @java.lang.Override public int getSurpriseLikelihoodValue() { + @java.lang.Override + public int getSurpriseLikelihoodValue() { return surpriseLikelihood_; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @param value The enum numeric value on the wire for surpriseLikelihood to set. * @return This builder for chaining. */ public Builder setSurpriseLikelihoodValue(int value) { - + surpriseLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(surpriseLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @param value The surpriseLikelihood to set. * @return This builder for chaining. */ @@ -4152,21 +4822,24 @@ public Builder setSurpriseLikelihood(com.google.cloud.vision.v1p4beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + surpriseLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Surprise likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return This builder for chaining. */ public Builder clearSurpriseLikelihood() { - + surpriseLikelihood_ = 0; onChanged(); return this; @@ -4174,51 +4847,65 @@ public Builder clearSurpriseLikelihood() { private int underExposedLikelihood_ = 0; /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ - @java.lang.Override public int getUnderExposedLikelihoodValue() { + @java.lang.Override + public int getUnderExposedLikelihoodValue() { return underExposedLikelihood_; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The enum numeric value on the wire for underExposedLikelihood to set. * @return This builder for chaining. */ public Builder setUnderExposedLikelihoodValue(int value) { - + underExposedLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(underExposedLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @param value The underExposedLikelihood to set. * @return This builder for chaining. */ @@ -4226,21 +4913,24 @@ public Builder setUnderExposedLikelihood(com.google.cloud.vision.v1p4beta1.Likel if (value == null) { throw new NullPointerException(); } - + underExposedLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Under-exposed likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return This builder for chaining. */ public Builder clearUnderExposedLikelihood() { - + underExposedLikelihood_ = 0; onChanged(); return this; @@ -4248,51 +4938,65 @@ public Builder clearUnderExposedLikelihood() { private int blurredLikelihood_ = 0; /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ - @java.lang.Override public int getBlurredLikelihoodValue() { + @java.lang.Override + public int getBlurredLikelihoodValue() { return blurredLikelihood_; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @param value The enum numeric value on the wire for blurredLikelihood to set. * @return This builder for chaining. */ public Builder setBlurredLikelihoodValue(int value) { - + blurredLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(blurredLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @param value The blurredLikelihood to set. * @return This builder for chaining. */ @@ -4300,21 +5004,24 @@ public Builder setBlurredLikelihood(com.google.cloud.vision.v1p4beta1.Likelihood if (value == null) { throw new NullPointerException(); } - + blurredLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Blurred likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return This builder for chaining. */ public Builder clearBlurredLikelihood() { - + blurredLikelihood_ = 0; onChanged(); return this; @@ -4322,51 +5029,65 @@ public Builder clearBlurredLikelihood() { private int headwearLikelihood_ = 0; /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ - @java.lang.Override public int getHeadwearLikelihoodValue() { + @java.lang.Override + public int getHeadwearLikelihoodValue() { return headwearLikelihood_; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @param value The enum numeric value on the wire for headwearLikelihood to set. * @return This builder for chaining. */ public Builder setHeadwearLikelihoodValue(int value) { - + headwearLikelihood_ = value; onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(headwearLikelihood_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @param value The headwearLikelihood to set. * @return This builder for chaining. */ @@ -4374,39 +5095,50 @@ public Builder setHeadwearLikelihood(com.google.cloud.vision.v1p4beta1.Likelihoo if (value == null) { throw new NullPointerException(); } - + headwearLikelihood_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Headwear likelihood.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return This builder for chaining. */ public Builder clearHeadwearLikelihood() { - + headwearLikelihood_ = 0; onChanged(); return this; } - private java.util.List recognitionResult_ = - java.util.Collections.emptyList(); + private java.util.List + recognitionResult_ = java.util.Collections.emptyList(); + private void ensureRecognitionResultIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - recognitionResult_ = new java.util.ArrayList(recognitionResult_); + recognitionResult_ = + new java.util.ArrayList( + recognitionResult_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> recognitionResultBuilder_; + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + recognitionResultBuilder_; /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4415,9 +5147,11 @@ private void ensureRecognitionResultIsMutable() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public java.util.List getRecognitionResultList() { + public java.util.List + getRecognitionResultList() { if (recognitionResultBuilder_ == null) { return java.util.Collections.unmodifiableList(recognitionResult_); } else { @@ -4425,6 +5159,8 @@ public java.util.List g } } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4433,7 +5169,8 @@ public java.util.List g
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public int getRecognitionResultCount() { if (recognitionResultBuilder_ == null) { @@ -4443,6 +5180,8 @@ public int getRecognitionResultCount() { } } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4451,7 +5190,8 @@ public int getRecognitionResultCount() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { if (recognitionResultBuilder_ == null) { @@ -4461,6 +5201,8 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes } } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4469,7 +5211,8 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionRes
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder setRecognitionResult( int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { @@ -4486,6 +5229,8 @@ public Builder setRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4494,10 +5239,12 @@ public Builder setRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder setRecognitionResult( - int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); recognitionResult_.set(index, builderForValue.build()); @@ -4508,6 +5255,8 @@ public Builder setRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4516,9 +5265,11 @@ public Builder setRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public Builder addRecognitionResult(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { + public Builder addRecognitionResult( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { if (recognitionResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4532,6 +5283,8 @@ public Builder addRecognitionResult(com.google.cloud.vision.v1p4beta1.FaceRecogn return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4540,7 +5293,8 @@ public Builder addRecognitionResult(com.google.cloud.vision.v1p4beta1.FaceRecogn
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder addRecognitionResult( int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { @@ -4557,6 +5311,8 @@ public Builder addRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4565,7 +5321,8 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder addRecognitionResult( com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { @@ -4579,6 +5336,8 @@ public Builder addRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4587,10 +5346,12 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder addRecognitionResult( - int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); recognitionResult_.add(index, builderForValue.build()); @@ -4601,6 +5362,8 @@ public Builder addRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4609,14 +5372,15 @@ public Builder addRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder addAllRecognitionResult( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (recognitionResultBuilder_ == null) { ensureRecognitionResultIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recognitionResult_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognitionResult_); onChanged(); } else { recognitionResultBuilder_.addAllMessages(values); @@ -4624,6 +5388,8 @@ public Builder addAllRecognitionResult( return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4632,7 +5398,8 @@ public Builder addAllRecognitionResult(
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder clearRecognitionResult() { if (recognitionResultBuilder_ == null) { @@ -4645,6 +5412,8 @@ public Builder clearRecognitionResult() { return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4653,7 +5422,8 @@ public Builder clearRecognitionResult() {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ public Builder removeRecognitionResult(int index) { if (recognitionResultBuilder_ == null) { @@ -4666,6 +5436,8 @@ public Builder removeRecognitionResult(int index) { return this; } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4674,13 +5446,16 @@ public Builder removeRecognitionResult(int index) {
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder getRecognitionResultBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + getRecognitionResultBuilder(int index) { return getRecognitionResultFieldBuilder().getBuilder(index); } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4689,16 +5464,20 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder getRecogn
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder + getRecognitionResultOrBuilder(int index) { if (recognitionResultBuilder_ == null) { - return recognitionResult_.get(index); } else { + return recognitionResult_.get(index); + } else { return recognitionResultBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4707,10 +5486,12 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecog
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public java.util.List - getRecognitionResultOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + getRecognitionResultOrBuilderList() { if (recognitionResultBuilder_ != null) { return recognitionResultBuilder_.getMessageOrBuilderList(); } else { @@ -4718,6 +5499,8 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecog } } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4726,13 +5509,17 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecog
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecognitionResultBuilder() { - return getRecognitionResultFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + addRecognitionResultBuilder() { + return getRecognitionResultFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4741,14 +5528,18 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecogn
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecognitionResultBuilder( - int index) { - return getRecognitionResultFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + addRecognitionResultBuilder(int index) { + return getRecognitionResultFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); } /** + * + * *
      * Additional recognition information. Only computed if
      * image_context.face_recognition_params is provided, **and** a match is found
@@ -4757,18 +5548,25 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecogn
      * sorted in order of decreasing confidence values.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - public java.util.List - getRecognitionResultBuilderList() { + public java.util.List + getRecognitionResultBuilderList() { return getRecognitionResultFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> getRecognitionResultFieldBuilder() { if (recognitionResultBuilder_ == null) { - recognitionResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder>( + recognitionResultBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder>( recognitionResult_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4777,9 +5575,9 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder addRecogn } return recognitionResultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4789,12 +5587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation) private static final com.google.cloud.vision.v1p4beta1.FaceAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceAnnotation(); } @@ -4803,16 +5601,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4827,6 +5625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java similarity index 90% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java index 99d90c218..dafad7997 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceAnnotationOrBuilder extends +public interface FaceAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -19,10 +37,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -34,10 +55,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the face. The coordinates of the bounding box
    * are in the original image's scale.
@@ -53,6 +77,8 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -63,10 +89,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return Whether the fdBoundingPoly field is set. */ boolean hasFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -77,10 +106,13 @@ public interface FaceAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly fd_bounding_poly = 2; + * * @return The fdBoundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getFdBoundingPoly(); /** + * + * *
    * The `fd_bounding_poly` bounding polygon is tighter than the
    * `boundingPoly`, and encloses only the skin part of the face. Typically, it
@@ -95,15 +127,18 @@ public interface FaceAnnotationOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getFdBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List - getLandmarksList(); + java.util.List getLandmarksList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -112,6 +147,8 @@ public interface FaceAnnotationOrBuilder extends */ com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark getLandmarks(int index); /** + * + * *
    * Detected face landmarks.
    * 
@@ -120,15 +157,19 @@ public interface FaceAnnotationOrBuilder extends */ int getLandmarksCount(); /** + * + * *
    * Detected face landmarks.
    * 
* * repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3; */ - java.util.List + java.util.List getLandmarksOrBuilderList(); /** + * + * *
    * Detected face landmarks.
    * 
@@ -139,6 +180,8 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO int index); /** + * + * *
    * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
    * of the face relative to the image vertical about the axis perpendicular to
@@ -146,11 +189,14 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float roll_angle = 4; + * * @return The rollAngle. */ float getRollAngle(); /** + * + * *
    * Yaw angle, which indicates the leftward/rightward angle that the face is
    * pointing relative to the vertical plane perpendicular to the image. Range
@@ -158,175 +204,229 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * 
* * float pan_angle = 5; + * * @return The panAngle. */ float getPanAngle(); /** + * + * *
    * Pitch angle, which indicates the upwards/downwards angle that the face is
    * pointing relative to the image's horizontal plane. Range [-180,180].
    * 
* * float tilt_angle = 6; + * * @return The tiltAngle. */ float getTiltAngle(); /** + * + * *
    * Detection confidence. Range [0, 1].
    * 
* * float detection_confidence = 7; + * * @return The detectionConfidence. */ float getDetectionConfidence(); /** + * + * *
    * Face landmarking confidence. Range [0, 1].
    * 
* * float landmarking_confidence = 8; + * * @return The landmarkingConfidence. */ float getLandmarkingConfidence(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The enum numeric value on the wire for joyLikelihood. */ int getJoyLikelihoodValue(); /** + * + * *
    * Joy likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood joy_likelihood = 9; + * * @return The joyLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getJoyLikelihood(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The enum numeric value on the wire for sorrowLikelihood. */ int getSorrowLikelihoodValue(); /** + * + * *
    * Sorrow likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood sorrow_likelihood = 10; + * * @return The sorrowLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getSorrowLikelihood(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The enum numeric value on the wire for angerLikelihood. */ int getAngerLikelihoodValue(); /** + * + * *
    * Anger likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood anger_likelihood = 11; + * * @return The angerLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getAngerLikelihood(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The enum numeric value on the wire for surpriseLikelihood. */ int getSurpriseLikelihoodValue(); /** + * + * *
    * Surprise likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood surprise_likelihood = 12; + * * @return The surpriseLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getSurpriseLikelihood(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The enum numeric value on the wire for underExposedLikelihood. */ int getUnderExposedLikelihoodValue(); /** + * + * *
    * Under-exposed likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood under_exposed_likelihood = 13; + * * @return The underExposedLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getUnderExposedLikelihood(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The enum numeric value on the wire for blurredLikelihood. */ int getBlurredLikelihoodValue(); /** + * + * *
    * Blurred likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood blurred_likelihood = 14; + * * @return The blurredLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getBlurredLikelihood(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The enum numeric value on the wire for headwearLikelihood. */ int getHeadwearLikelihoodValue(); /** + * + * *
    * Headwear likelihood.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; + * * @return The headwearLikelihood. */ com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood(); /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -335,11 +435,14 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - java.util.List + java.util.List getRecognitionResultList(); /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -348,10 +451,13 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index); /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -360,10 +466,13 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ int getRecognitionResultCount(); /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -372,11 +481,14 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ - java.util.List + java.util.List getRecognitionResultOrBuilderList(); /** + * + * *
    * Additional recognition information. Only computed if
    * image_context.face_recognition_params is provided, **and** a match is found
@@ -385,7 +497,8 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO
    * sorted in order of decreasing confidence values.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * */ com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( int index); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java index ba867dacc..9667c8ef2 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Parameters for a celebrity recognition request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} */ -public final class FaceRecognitionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceRecognitionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) FaceRecognitionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceRecognitionParams.newBuilder() to construct. private FaceRecognitionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FaceRecognitionParams() { celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceRecognitionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceRecognitionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private FaceRecognitionParams( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - celebritySet_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + celebritySet_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + celebritySet_.add(s); + break; } - celebritySet_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private FaceRecognitionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { celebritySet_ = celebritySet_.getUnmodifiableView(); @@ -87,22 +104,27 @@ private FaceRecognitionParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); } public static final int CELEBRITY_SET_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList celebritySet_; /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -112,13 +134,15 @@ private FaceRecognitionParams(
    * 
* * repeated string celebrity_set = 1; + * * @return A list containing the celebritySet. */ - public com.google.protobuf.ProtocolStringList - getCelebritySetList() { + public com.google.protobuf.ProtocolStringList getCelebritySetList() { return celebritySet_; } /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -128,12 +152,15 @@ private FaceRecognitionParams(
    * 
* * repeated string celebrity_set = 1; + * * @return The count of celebritySet. */ public int getCelebritySetCount() { return celebritySet_.size(); } /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -143,6 +170,7 @@ public int getCelebritySetCount() {
    * 
* * repeated string celebrity_set = 1; + * * @param index The index of the element to return. * @return The celebritySet at the given index. */ @@ -150,6 +178,8 @@ public java.lang.String getCelebritySet(int index) { return celebritySet_.get(index); } /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -159,15 +189,16 @@ public java.lang.String getCelebritySet(int index) {
    * 
* * repeated string celebrity_set = 1; + * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - public com.google.protobuf.ByteString - getCelebritySetBytes(int index) { + public com.google.protobuf.ByteString getCelebritySetBytes(int index) { return celebritySet_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < celebritySet_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, celebritySet_.getRaw(i)); } @@ -209,15 +239,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other = (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) obj; + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) obj; - if (!getCelebritySetList() - .equals(other.getCelebritySetList())) return false; + if (!getCelebritySetList().equals(other.getCelebritySetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,117 +269,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for a celebrity recognition request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder() @@ -357,16 +397,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; } @java.lang.Override @@ -397,7 +436,8 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(this); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = + new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { celebritySet_ = celebritySet_.getUnmodifiableView(); @@ -412,38 +452,39 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionParams)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) other); } else { super.mergeFrom(other); return this; @@ -451,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance()) + return this; if (!other.celebritySet_.isEmpty()) { if (celebritySet_.isEmpty()) { celebritySet_ = other.celebritySet_; @@ -481,7 +523,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,16 +533,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList celebritySet_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCelebritySetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { celebritySet_ = new com.google.protobuf.LazyStringArrayList(celebritySet_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -509,13 +557,15 @@ private void ensureCelebritySetIsMutable() {
      * 
* * repeated string celebrity_set = 1; + * * @return A list containing the celebritySet. */ - public com.google.protobuf.ProtocolStringList - getCelebritySetList() { + public com.google.protobuf.ProtocolStringList getCelebritySetList() { return celebritySet_.getUnmodifiableView(); } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -525,12 +575,15 @@ private void ensureCelebritySetIsMutable() {
      * 
* * repeated string celebrity_set = 1; + * * @return The count of celebritySet. */ public int getCelebritySetCount() { return celebritySet_.size(); } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -540,6 +593,7 @@ public int getCelebritySetCount() {
      * 
* * repeated string celebrity_set = 1; + * * @param index The index of the element to return. * @return The celebritySet at the given index. */ @@ -547,6 +601,8 @@ public java.lang.String getCelebritySet(int index) { return celebritySet_.get(index); } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -556,14 +612,16 @@ public java.lang.String getCelebritySet(int index) {
      * 
* * repeated string celebrity_set = 1; + * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - public com.google.protobuf.ByteString - getCelebritySetBytes(int index) { + public com.google.protobuf.ByteString getCelebritySetBytes(int index) { return celebritySet_.getByteString(index); } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -573,21 +631,23 @@ public java.lang.String getCelebritySet(int index) {
      * 
* * repeated string celebrity_set = 1; + * * @param index The index to set the value at. * @param value The celebritySet to set. * @return This builder for chaining. */ - public Builder setCelebritySet( - int index, java.lang.String value) { + public Builder setCelebritySet(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCelebritySetIsMutable(); + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); celebritySet_.set(index, value); onChanged(); return this; } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -597,20 +657,22 @@ public Builder setCelebritySet(
      * 
* * repeated string celebrity_set = 1; + * * @param value The celebritySet to add. * @return This builder for chaining. */ - public Builder addCelebritySet( - java.lang.String value) { + public Builder addCelebritySet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCelebritySetIsMutable(); + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); celebritySet_.add(value); onChanged(); return this; } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -620,18 +682,19 @@ public Builder addCelebritySet(
      * 
* * repeated string celebrity_set = 1; + * * @param values The celebritySet to add. * @return This builder for chaining. */ - public Builder addAllCelebritySet( - java.lang.Iterable values) { + public Builder addAllCelebritySet(java.lang.Iterable values) { ensureCelebritySetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, celebritySet_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, celebritySet_); onChanged(); return this; } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -641,6 +704,7 @@ public Builder addAllCelebritySet(
      * 
* * repeated string celebrity_set = 1; + * * @return This builder for chaining. */ public Builder clearCelebritySet() { @@ -650,6 +714,8 @@ public Builder clearCelebritySet() { return this; } /** + * + * *
      * The resource names for one or more
      * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -659,23 +725,23 @@ public Builder clearCelebritySet() {
      * 
* * repeated string celebrity_set = 1; + * * @param value The bytes of the celebritySet to add. * @return This builder for chaining. */ - public Builder addCelebritySetBytes( - com.google.protobuf.ByteString value) { + public Builder addCelebritySetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCelebritySetIsMutable(); celebritySet_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(); } @@ -699,16 +765,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceRecognitionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceRecognitionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java index 8844c1c8e..df6fbaf22 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceRecognitionParamsOrBuilder extends +public interface FaceRecognitionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -17,11 +35,13 @@ public interface FaceRecognitionParamsOrBuilder extends
    * 
* * repeated string celebrity_set = 1; + * * @return A list containing the celebritySet. */ - java.util.List - getCelebritySetList(); + java.util.List getCelebritySetList(); /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -31,10 +51,13 @@ public interface FaceRecognitionParamsOrBuilder extends
    * 
* * repeated string celebrity_set = 1; + * * @return The count of celebritySet. */ int getCelebritySetCount(); /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -44,11 +67,14 @@ public interface FaceRecognitionParamsOrBuilder extends
    * 
* * repeated string celebrity_set = 1; + * * @param index The index of the element to return. * @return The celebritySet at the given index. */ java.lang.String getCelebritySet(int index); /** + * + * *
    * The resource names for one or more
    * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
@@ -58,9 +84,9 @@ public interface FaceRecognitionParamsOrBuilder extends
    * 
* * repeated string celebrity_set = 1; + * * @param index The index of the value to return. * @return The bytes of the celebritySet at the given index. */ - com.google.protobuf.ByteString - getCelebritySetBytes(int index); + com.google.protobuf.ByteString getCelebritySetBytes(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java index ce40c856b..e671f1954 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Information about a face's identity.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} */ -public final class FaceRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FaceRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) FaceRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FaceRecognitionResult.newBuilder() to construct. private FaceRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaceRecognitionResult() { - } + + private FaceRecognitionResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FaceRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FaceRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private FaceRecognitionResult( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.Celebrity.Builder subBuilder = null; - if (celebrity_ != null) { - subBuilder = celebrity_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.Celebrity.Builder subBuilder = null; + if (celebrity_ != null) { + subBuilder = celebrity_.toBuilder(); + } + celebrity_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Celebrity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(celebrity_); + celebrity_ = subBuilder.buildPartial(); + } + + break; } - celebrity_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Celebrity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(celebrity_); - celebrity_ = subBuilder.buildPartial(); + case 21: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,35 +103,40 @@ private FaceRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); } public static final int CELEBRITY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return Whether the celebrity field is set. */ @java.lang.Override @@ -120,19 +144,26 @@ public boolean hasCelebrity() { return celebrity_ != null; } /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return The celebrity. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { - return celebrity_ == null ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_; + return celebrity_ == null + ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() + : celebrity_; } /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
@@ -148,11 +179,14 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
   public static final int CONFIDENCE_FIELD_NUMBER = 2;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Recognition confidence. Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -161,6 +195,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (celebrity_ != null) { output.writeMessage(1, getCelebrity()); } @@ -190,12 +224,10 @@ public int getSerializedSize() { size = 0; if (celebrity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCelebrity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelebrity()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,21 +237,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other = (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) obj; + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) obj; if (hasCelebrity() != other.hasCelebrity()) return false; if (hasCelebrity()) { - if (!getCelebrity() - .equals(other.getCelebrity())) return false; + if (!getCelebrity().equals(other.getCelebrity())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,125 +267,134 @@ public int hashCode() { hash = (53 * hash) + getCelebrity().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a face's identity.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.newBuilder() @@ -362,16 +402,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.CelebrityProto.internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; } @java.lang.Override @@ -408,7 +447,8 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult buildPartial() { - com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(this); + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = + new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(this); if (celebrityBuilder_ == null) { result.celebrity_ = celebrity_; } else { @@ -423,38 +463,39 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionResult)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -462,7 +503,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other) { - if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()) + return this; if (other.hasCelebrity()) { mergeCelebrity(other.getCelebrity()); } @@ -488,7 +530,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -500,36 +543,49 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> celebrityBuilder_; + com.google.cloud.vision.v1p4beta1.Celebrity, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder, + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> + celebrityBuilder_; /** + * + * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
      * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return Whether the celebrity field is set. */ public boolean hasCelebrity() { return celebrityBuilder_ != null || celebrity_ != null; } /** + * + * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
      * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return The celebrity. */ public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { if (celebrityBuilder_ == null) { - return celebrity_ == null ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_; + return celebrity_ == null + ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() + : celebrity_; } else { return celebrityBuilder_.getMessage(); } } /** + * + * *
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -551,6 +607,8 @@ public Builder setCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -570,6 +628,8 @@ public Builder setCelebrity(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -581,7 +641,9 @@ public Builder mergeCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value)
       if (celebrityBuilder_ == null) {
         if (celebrity_ != null) {
           celebrity_ =
-            com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder(celebrity_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder(celebrity_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           celebrity_ = value;
         }
@@ -593,6 +655,8 @@ public Builder mergeCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -612,6 +676,8 @@ public Builder clearCelebrity() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -620,11 +686,13 @@ public Builder clearCelebrity() {
      * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
      */
     public com.google.cloud.vision.v1p4beta1.Celebrity.Builder getCelebrityBuilder() {
-      
+
       onChanged();
       return getCelebrityFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -636,11 +704,14 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
       if (celebrityBuilder_ != null) {
         return celebrityBuilder_.getMessageOrBuilder();
       } else {
-        return celebrity_ == null ?
-            com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() : celebrity_;
+        return celebrity_ == null
+            ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance()
+            : celebrity_;
       }
     }
     /**
+     *
+     *
      * 
      * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
      * matched to.
@@ -649,26 +720,32 @@ public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilde
      * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.Celebrity,
+            com.google.cloud.vision.v1p4beta1.Celebrity.Builder,
+            com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>
         getCelebrityFieldBuilder() {
       if (celebrityBuilder_ == null) {
-        celebrityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Celebrity, com.google.cloud.vision.v1p4beta1.Celebrity.Builder, com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>(
-                getCelebrity(),
-                getParentForChildren(),
-                isClean());
+        celebrityBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.Celebrity,
+                com.google.cloud.vision.v1p4beta1.Celebrity.Builder,
+                com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>(
+                getCelebrity(), getParentForChildren(), isClean());
         celebrity_ = null;
       }
       return celebrityBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -676,37 +753,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Recognition confidence. Range [0, 1].
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(); } @@ -730,16 +813,16 @@ public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -754,6 +837,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java similarity index 65% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java index aca1c9f89..e68ec4988 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/face.proto package com.google.cloud.vision.v1p4beta1; -public interface FaceRecognitionResultOrBuilder extends +public interface FaceRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return Whether the celebrity field is set. */ boolean hasCelebrity(); /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
    * 
* * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + * * @return The celebrity. */ com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity(); /** + * + * *
    * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
    * matched to.
@@ -38,11 +62,14 @@ public interface FaceRecognitionResultOrBuilder extends
   com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilder();
 
   /**
+   *
+   *
    * 
    * Recognition confidence. Range [0, 1].
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java index acffc5cf6..da9ca19fc 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The type of Google Cloud Vision API detection to perform, and the maximum
  * number of results to return for that type. Multiple `Feature` objects can
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Feature}
  */
-public final class Feature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Feature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Feature)
     FeatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Feature.newBuilder() to construct.
   private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Feature() {
     type_ = 0;
     model_ = "";
@@ -28,16 +46,15 @@ private Feature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Feature();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Feature(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,30 +73,32 @@ private Feature(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            maxResults_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              type_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              maxResults_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            model_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              model_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,36 +106,41 @@ private Feature(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Feature.class, com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Feature.class,
+            com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of Google Cloud Vision API feature to be extracted.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.Feature.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified feature type.
      * 
@@ -125,6 +149,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Run face detection.
      * 
@@ -133,6 +159,8 @@ public enum Type */ FACE_DETECTION(1), /** + * + * *
      * Run landmark detection.
      * 
@@ -141,6 +169,8 @@ public enum Type */ LANDMARK_DETECTION(2), /** + * + * *
      * Run logo detection.
      * 
@@ -149,6 +179,8 @@ public enum Type */ LOGO_DETECTION(3), /** + * + * *
      * Run label detection.
      * 
@@ -157,6 +189,8 @@ public enum Type */ LABEL_DETECTION(4), /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -167,6 +201,8 @@ public enum Type
      */
     TEXT_DETECTION(5),
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -176,6 +212,8 @@ public enum Type
      */
     DOCUMENT_TEXT_DETECTION(11),
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -185,6 +223,8 @@ public enum Type
      */
     SAFE_SEARCH_DETECTION(6),
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -194,6 +234,8 @@ public enum Type
      */
     IMAGE_PROPERTIES(7),
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -202,6 +244,8 @@ public enum Type */ CROP_HINTS(9), /** + * + * *
      * Run web detection.
      * 
@@ -210,6 +254,8 @@ public enum Type */ WEB_DETECTION(10), /** + * + * *
      * Run Product Search.
      * 
@@ -218,6 +264,8 @@ public enum Type */ PRODUCT_SEARCH(12), /** + * + * *
      * Run localizer for object detection.
      * 
@@ -229,6 +277,8 @@ public enum Type ; /** + * + * *
      * Unspecified feature type.
      * 
@@ -237,6 +287,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Run face detection.
      * 
@@ -245,6 +297,8 @@ public enum Type */ public static final int FACE_DETECTION_VALUE = 1; /** + * + * *
      * Run landmark detection.
      * 
@@ -253,6 +307,8 @@ public enum Type */ public static final int LANDMARK_DETECTION_VALUE = 2; /** + * + * *
      * Run logo detection.
      * 
@@ -261,6 +317,8 @@ public enum Type */ public static final int LOGO_DETECTION_VALUE = 3; /** + * + * *
      * Run label detection.
      * 
@@ -269,6 +327,8 @@ public enum Type */ public static final int LABEL_DETECTION_VALUE = 4; /** + * + * *
      * Run text detection / optical character recognition (OCR). Text detection
      * is optimized for areas of text within a larger image; if the image is
@@ -279,6 +339,8 @@ public enum Type
      */
     public static final int TEXT_DETECTION_VALUE = 5;
     /**
+     *
+     *
      * 
      * Run dense text document OCR. Takes precedence when both
      * `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
@@ -288,6 +350,8 @@ public enum Type
      */
     public static final int DOCUMENT_TEXT_DETECTION_VALUE = 11;
     /**
+     *
+     *
      * 
      * Run Safe Search to detect potentially unsafe
      * or undesirable content.
@@ -297,6 +361,8 @@ public enum Type
      */
     public static final int SAFE_SEARCH_DETECTION_VALUE = 6;
     /**
+     *
+     *
      * 
      * Compute a set of image properties, such as the
      * image's dominant colors.
@@ -306,6 +372,8 @@ public enum Type
      */
     public static final int IMAGE_PROPERTIES_VALUE = 7;
     /**
+     *
+     *
      * 
      * Run crop hints.
      * 
@@ -314,6 +382,8 @@ public enum Type */ public static final int CROP_HINTS_VALUE = 9; /** + * + * *
      * Run web detection.
      * 
@@ -322,6 +392,8 @@ public enum Type */ public static final int WEB_DETECTION_VALUE = 10; /** + * + * *
      * Run Product Search.
      * 
@@ -330,6 +402,8 @@ public enum Type */ public static final int PRODUCT_SEARCH_VALUE = 12; /** + * + * *
      * Run localizer for object detection.
      * 
@@ -338,7 +412,6 @@ public enum Type */ public static final int OBJECT_LOCALIZATION_VALUE = 19; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -363,59 +436,69 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return FACE_DETECTION; - case 2: return LANDMARK_DETECTION; - case 3: return LOGO_DETECTION; - case 4: return LABEL_DETECTION; - case 5: return TEXT_DETECTION; - case 11: return DOCUMENT_TEXT_DETECTION; - case 6: return SAFE_SEARCH_DETECTION; - case 7: return IMAGE_PROPERTIES; - case 9: return CROP_HINTS; - case 10: return WEB_DETECTION; - case 12: return PRODUCT_SEARCH; - case 19: return OBJECT_LOCALIZATION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return FACE_DETECTION; + case 2: + return LANDMARK_DETECTION; + case 3: + return LOGO_DETECTION; + case 4: + return LABEL_DETECTION; + case 5: + return TEXT_DETECTION; + case 11: + return DOCUMENT_TEXT_DETECTION; + case 6: + return SAFE_SEARCH_DETECTION; + case 7: + return IMAGE_PROPERTIES; + case 9: + return CROP_HINTS; + case 10: + return WEB_DETECTION; + case 12: + return PRODUCT_SEARCH; + case 19: + return OBJECT_LOCALIZATION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vision.v1p4beta1.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -435,39 +518,51 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Feature.Type result = com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p4beta1.Feature.Type result = + com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p4beta1.Feature.Type.UNRECOGNIZED : result; } public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_; /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -478,6 +573,8 @@ public int getMaxResults() { public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -485,6 +582,7 @@ public int getMaxResults() {
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -493,14 +591,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -508,16 +607,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -526,6 +624,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -537,8 +636,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.vision.v1p4beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -558,12 +656,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.vision.v1p4beta1.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); @@ -576,18 +672,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Feature)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Feature other = (com.google.cloud.vision.v1p4beta1.Feature) obj; + com.google.cloud.vision.v1p4beta1.Feature other = + (com.google.cloud.vision.v1p4beta1.Feature) obj; if (type_ != other.type_) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getModel() - .equals(other.getModel())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getModel().equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -610,97 +705,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The type of Google Cloud Vision API detection to perform, and the maximum
    * number of results to return for that type. Multiple `Feature` objects can
@@ -709,21 +811,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Feature}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Feature)
       com.google.cloud.vision.v1p4beta1.FeatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Feature.class, com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Feature.class,
+              com.google.cloud.vision.v1p4beta1.Feature.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Feature.newBuilder()
@@ -731,16 +835,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -754,9 +857,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor;
     }
 
     @java.lang.Override
@@ -775,7 +878,8 @@ public com.google.cloud.vision.v1p4beta1.Feature build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Feature buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Feature result = new com.google.cloud.vision.v1p4beta1.Feature(this);
+      com.google.cloud.vision.v1p4beta1.Feature result =
+          new com.google.cloud.vision.v1p4beta1.Feature(this);
       result.type_ = type_;
       result.maxResults_ = maxResults_;
       result.model_ = model_;
@@ -787,38 +891,39 @@ public com.google.cloud.vision.v1p4beta1.Feature buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Feature) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Feature)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Feature) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -868,51 +973,65 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Feature.Type result = com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); + com.google.cloud.vision.v1p4beta1.Feature.Type result = + com.google.cloud.vision.v1p4beta1.Feature.Type.valueOf(type_); return result == null ? com.google.cloud.vision.v1p4beta1.Feature.Type.UNRECOGNIZED : result; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -920,34 +1039,40 @@ public Builder setType(com.google.cloud.vision.v1p4beta1.Feature.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The feature type.
      * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -955,32 +1080,38 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of results of this type. Does not apply to
      * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; @@ -988,6 +1119,8 @@ public Builder clearMaxResults() { private java.lang.Object model_ = ""; /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -995,13 +1128,13 @@ public Builder clearMaxResults() {
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1010,6 +1143,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1017,15 +1152,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1033,6 +1167,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1040,20 +1176,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1061,15 +1199,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
@@ -1077,23 +1218,23 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Feature) private static final com.google.cloud.vision.v1p4beta1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Feature(); } @@ -1117,16 +1258,16 @@ public static com.google.cloud.vision.v1p4beta1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java index 260fdb051..34a23fcc1 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java @@ -1,43 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The feature type.
    * 
* * .google.cloud.vision.v1p4beta1.Feature.Type type = 1; + * * @return The type. */ com.google.cloud.vision.v1p4beta1.Feature.Type getType(); /** + * + * *
    * Maximum number of results of this type. Does not apply to
    * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -45,10 +72,13 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
@@ -56,8 +86,8 @@ public interface FeatureOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java similarity index 78% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java index db7192858..425b21fbd 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The Google Cloud Storage location where the output will be written to.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GcsDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsDestination.class, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsDestination.class, + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -118,6 +140,7 @@ private GcsDestination(
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -126,14 +149,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -156,16 +180,15 @@ public java.lang.String getUri() {
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -174,6 +197,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -210,15 +233,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GcsDestination other = (com.google.cloud.vision.v1p4beta1.GcsDestination) obj; + com.google.cloud.vision.v1p4beta1.GcsDestination other = + (com.google.cloud.vision.v1p4beta1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,118 +260,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output will be written to.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GcsDestination) com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsDestination.class, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsDestination.class, + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder() @@ -356,16 +388,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; } @java.lang.Override @@ -396,7 +427,8 @@ public com.google.cloud.vision.v1p4beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsDestination buildPartial() { - com.google.cloud.vision.v1p4beta1.GcsDestination result = new com.google.cloud.vision.v1p4beta1.GcsDestination(this); + com.google.cloud.vision.v1p4beta1.GcsDestination result = + new com.google.cloud.vision.v1p4beta1.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -406,38 +438,39 @@ public com.google.cloud.vision.v1p4beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GcsDestination) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -445,7 +478,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GcsDestination other) { - if (other == com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -481,6 +515,8 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -503,13 +539,13 @@ public Builder mergeFrom(
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -518,6 +554,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -540,15 +578,14 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -556,6 +593,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -578,20 +617,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -614,15 +655,18 @@ public Builder setUri(
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI prefix where the results will be stored. Results
      * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -645,23 +689,23 @@ public Builder clearUri() {
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -671,12 +715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsDestination) private static final com.google.cloud.vision.v1p4beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GcsDestination(); } @@ -685,16 +729,16 @@ public static com.google.cloud.vision.v1p4beta1.GcsDestination getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -709,6 +753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java index a03073206..2d3a6a7a4 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -30,10 +48,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI prefix where the results will be stored. Results
    * will be in JSON format and preceded by its corresponding input URI prefix.
@@ -56,8 +77,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java index 482c4df28..6de3a1d88 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The Google Cloud Storage location where the input will be read from.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsSource.class, com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsSource.class, + com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GcsSource other = (com.google.cloud.vision.v1p4beta1.GcsSource) obj; + com.google.cloud.vision.v1p4beta1.GcsSource other = + (com.google.cloud.vision.v1p4beta1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the input will be read from.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GcsSource) com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GcsSource.class, com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); + com.google.cloud.vision.v1p4beta1.GcsSource.class, + com.google.cloud.vision.v1p4beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.cloud.vision.v1p4beta1.GcsSource build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsSource buildPartial() { - com.google.cloud.vision.v1p4beta1.GcsSource result = new com.google.cloud.vision.v1p4beta1.GcsSource(this); + com.google.cloud.vision.v1p4beta1.GcsSource result = + new com.google.cloud.vision.v1p4beta1.GcsSource(this); result.uri_ = uri_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.vision.v1p4beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GcsSource) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsSource)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -449,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -470,21 +505,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -492,64 +528,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Google Cloud Storage URI for the input file. This must only be a
      * Google Cloud Storage object. Wildcards are not currently supported.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsSource) private static final com.google.cloud.vision.v1p4beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GcsSource(); } @@ -573,16 +616,16 @@ public static com.google.cloud.vision.v1p4beta1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java similarity index 53% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java index aee02ac59..07a3dfbd3 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsSourceOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Google Cloud Storage URI for the input file. This must only be a
    * Google Cloud Storage object. Wildcards are not currently supported.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java new file mode 100644 index 000000000..59f72a416 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class GeometryProto { + private GeometryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/vision/v1p4beta1/geometry" + + ".proto\022\035google.cloud.vision.v1p4beta1\032\034g" + + "oogle/api/annotations.proto\"\036\n\006Vertex\022\t\n" + + "\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022" + + "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014BoundingPoly\0227" + + "\n\010vertices\030\001 \003(\0132%.google.cloud.vision.v" + + "1p4beta1.Vertex\022L\n\023normalized_vertices\030\002" + + " \003(\0132/.google.cloud.vision.v1p4beta1.Nor" + + "malizedVertex\"+\n\010Position\022\t\n\001x\030\001 \001(\002\022\t\n\001" + + "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.google.cloud." + + "vision.v1p4beta1B\rGeometryProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/v" + + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", "NormalizedVertices", + }); + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Position_descriptor, + new java.lang.String[] { + "X", "Y", "Z", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java index 80cfd627c..dc54c6851 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `GetProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductRequest} */ -public final class GetProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetProductRequest) GetProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductRequest.newBuilder() to construct. private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductRequest.class, com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductRequest.class, + com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetProductRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetProductRequest other = (com.google.cloud.vision.v1p4beta1.GetProductRequest) obj; + com.google.cloud.vision.v1p4beta1.GetProductRequest other = + (com.google.cloud.vision.v1p4beta1.GetProductRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetProductRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetProductRequest) com.google.cloud.vision.v1p4beta1.GetProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductRequest.class, com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductRequest.class, + com.google.cloud.vision.v1p4beta1.GetProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetProductRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.vision.v1p4beta1.GetProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetProductRequest result = new com.google.cloud.vision.v1p4beta1.GetProductRequest(this); + com.google.cloud.vision.v1p4beta1.GetProductRequest result = + new com.google.cloud.vision.v1p4beta1.GetProductRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.vision.v1p4beta1.GetProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.GetProductRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +477,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.GetProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.GetProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +516,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +542,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetProductRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductRequest) private static final com.google.cloud.vision.v1p4beta1.GetProductRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetProductRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.vision.v1p4beta1.GetProductRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetProductRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000..884d177f0 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the Product to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java index dede5ee39..43ffcccb3 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `GetProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductSetRequest} */ -public final class GetProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetProductSetRequest) GetProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProductSetRequest.newBuilder() to construct. private GetProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProductSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetProductSetRequest other = (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.GetProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetProductSetRequest) com.google.cloud.vision.v1p4beta1.GetProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.GetProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetProductSetRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p4beta1.GetProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetProductSetRequest result = new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.GetProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p4beta1.GetProductSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.GetProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.GetProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductSetRequest) private static final com.google.cloud.vision.v1p4beta1.GetProductSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetProductSetRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p4beta1.GetProductSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetProductSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java new file mode 100644 index 000000000..fe978d98d --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the ProductSet to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java index 4ed37a907..a32889b47 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `GetReferenceImage` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetReferenceImageRequest} */ -public final class GetReferenceImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetReferenceImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) GetReferenceImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetReferenceImageRequest.newBuilder() to construct. private GetReferenceImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetReferenceImageRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetReferenceImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetReferenceImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetReferenceImageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetReferenceImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other = (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) obj; + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other = + (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GetReferenceImage` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.GetReferenceImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) com.google.cloud.vision.v1p4beta1.GetReferenceImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.class, + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest result = new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(this); + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest result = + new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +517,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +543,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) private static final com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReferenceImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReferenceImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReferenceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReferenceImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java new file mode 100644 index 000000000..bd285b98c --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface GetReferenceImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ReferenceImage to get.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java index acf102b5e..67d860e4d 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Client image to perform Google Cloud Vision API tasks over.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { content_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,34 @@ private Image( case 0: done = true; break; - case 10: { - - content_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.ImageSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + case 10: + { + content_ = input.readBytes(); + break; } - source_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p4beta1.ImageSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +105,33 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Image.class, com.google.cloud.vision.v1p4beta1.Image.Builder.class); + com.google.cloud.vision.v1p4beta1.Image.class, + com.google.cloud.vision.v1p4beta1.Image.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -115,6 +139,7 @@ private Image(
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -125,6 +150,8 @@ public com.google.protobuf.ByteString getContent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ImageSource source_; /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -132,6 +159,7 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ @java.lang.Override @@ -139,6 +167,8 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -146,13 +176,18 @@ public boolean hasSource() {
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return The source. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageSource getSource() { - return source_ == null ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() + : source_; } /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -167,6 +202,7 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -178,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!content_.isEmpty()) {
       output.writeBytes(1, content_);
     }
@@ -196,12 +231,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!content_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, content_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
     }
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,19 +244,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Image)) {
       return super.equals(obj);
     }
     com.google.cloud.vision.v1p4beta1.Image other = (com.google.cloud.vision.v1p4beta1.Image) obj;
 
-    if (!getContent()
-        .equals(other.getContent())) return false;
+    if (!getContent().equals(other.getContent())) return false;
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -247,118 +278,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.Image parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Image parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Image prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Client image to perform Google Cloud Vision API tasks over.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Image) com.google.cloud.vision.v1p4beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Image.class, com.google.cloud.vision.v1p4beta1.Image.Builder.class); + com.google.cloud.vision.v1p4beta1.Image.class, + com.google.cloud.vision.v1p4beta1.Image.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Image.newBuilder() @@ -366,16 +406,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; } @java.lang.Override @@ -412,7 +451,8 @@ public com.google.cloud.vision.v1p4beta1.Image build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Image buildPartial() { - com.google.cloud.vision.v1p4beta1.Image result = new com.google.cloud.vision.v1p4beta1.Image(this); + com.google.cloud.vision.v1p4beta1.Image result = + new com.google.cloud.vision.v1p4beta1.Image(this); result.content_ = content_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -427,38 +467,39 @@ public com.google.cloud.vision.v1p4beta1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Image) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Image)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Image) other); } else { super.mergeFrom(other); return this; @@ -504,6 +545,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -511,6 +554,7 @@ public Builder mergeFrom(
      * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -518,6 +562,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -525,19 +571,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * Image content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -545,10 +594,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -556,8 +606,13 @@ public Builder clearContent() { private com.google.cloud.vision.v1p4beta1.ImageSource source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> sourceBuilder_; + com.google.cloud.vision.v1p4beta1.ImageSource, + com.google.cloud.vision.v1p4beta1.ImageSource.Builder, + com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -565,12 +620,15 @@ public Builder clearContent() {
      * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -578,16 +636,21 @@ public boolean hasSource() {
      * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return The source. */ public com.google.cloud.vision.v1p4beta1.ImageSource getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -610,6 +673,8 @@ public Builder setSource(com.google.cloud.vision.v1p4beta1.ImageSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -630,6 +695,8 @@ public Builder setSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -642,7 +709,9 @@ public Builder mergeSource(com.google.cloud.vision.v1p4beta1.ImageSource value)
       if (sourceBuilder_ == null) {
         if (source_ != null) {
           source_ =
-            com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder(source_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder(source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -654,6 +723,8 @@ public Builder mergeSource(com.google.cloud.vision.v1p4beta1.ImageSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -674,6 +745,8 @@ public Builder clearSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -683,11 +756,13 @@ public Builder clearSource() {
      * .google.cloud.vision.v1p4beta1.ImageSource source = 2;
      */
     public com.google.cloud.vision.v1p4beta1.ImageSource.Builder getSourceBuilder() {
-      
+
       onChanged();
       return getSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -700,11 +775,14 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
       if (sourceBuilder_ != null) {
         return sourceBuilder_.getMessageOrBuilder();
       } else {
-        return source_ == null ?
-            com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance() : source_;
+        return source_ == null
+            ? com.google.cloud.vision.v1p4beta1.ImageSource.getDefaultInstance()
+            : source_;
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage image location, or publicly-accessible image
      * URL. If both `content` and `source` are provided for an image, `content`
@@ -714,21 +792,24 @@ public com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder getSourceOrBuilder
      * .google.cloud.vision.v1p4beta1.ImageSource source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.ImageSource,
+            com.google.cloud.vision.v1p4beta1.ImageSource.Builder,
+            com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>
         getSourceFieldBuilder() {
       if (sourceBuilder_ == null) {
-        sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImageSource, com.google.cloud.vision.v1p4beta1.ImageSource.Builder, com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>(
-                getSource(),
-                getParentForChildren(),
-                isClean());
+        sourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.ImageSource,
+                com.google.cloud.vision.v1p4beta1.ImageSource.Builder,
+                com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder>(
+                getSource(), getParentForChildren(), isClean());
         source_ = null;
       }
       return sourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -738,12 +819,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Image)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Image)
   private static final com.google.cloud.vision.v1p4beta1.Image DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Image();
   }
@@ -752,16 +833,16 @@ public static com.google.cloud.vision.v1p4beta1.Image getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Image parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Image(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Image parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Image(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -776,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.Image getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
similarity index 70%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
index ae08dff58..8f8e83fa7 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * If an image was produced from a file (e.g. a PDF), this message gives
  * information about the source of that image.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageAnnotationContext}
  */
-public final class ImageAnnotationContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageAnnotationContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageAnnotationContext)
     ImageAnnotationContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageAnnotationContext.newBuilder() to construct.
   private ImageAnnotationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImageAnnotationContext() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageAnnotationContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageAnnotationContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private ImageAnnotationContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageNumber_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageNumber_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private ImageAnnotationContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class,
+            com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object uri_;
   /**
+   *
+   *
    * 
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -148,12 +171,15 @@ public java.lang.String getUri() { public static final int PAGE_NUMBER_FIELD_NUMBER = 2; private int pageNumber_; /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -162,6 +188,7 @@ public int getPageNumber() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (pageNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageAnnotationContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other = (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) obj; + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other = + (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) obj; - if (!getUri() - .equals(other.getUri())) return false; - if (getPageNumber() - != other.getPageNumber()) return false; + if (!getUri().equals(other.getUri())) return false; + if (getPageNumber() != other.getPageNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,96 +261,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ImageAnnotationContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * If an image was produced from a file (e.g. a PDF), this message gives
    * information about the source of that image.
@@ -334,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageAnnotationContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageAnnotationContext)
       com.google.cloud.vision.v1p4beta1.ImageAnnotationContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class, com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.class,
+              com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.newBuilder()
@@ -356,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +431,8 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImageAnnotationContext result = new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(this);
+      com.google.cloud.vision.v1p4beta1.ImageAnnotationContext result =
+          new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(this);
       result.uri_ = uri_;
       result.pageNumber_ = pageNumber_;
       onBuilt();
@@ -409,38 +443,39 @@ public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageAnnotationContext)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImageAnnotationContext other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ImageAnnotationContext.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         onChanged();
@@ -475,7 +511,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.ImageAnnotationContext) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -487,18 +524,20 @@ public Builder mergeFrom(
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -507,20 +546,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -528,67 +568,77 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * The URI of the file used to produce the image.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int pageNumber_ ; + private int pageNumber_; /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return The pageNumber. */ @java.lang.Override @@ -596,39 +646,45 @@ public int getPageNumber() { return pageNumber_; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @param value The pageNumber to set. * @return This builder for chaining. */ public Builder setPageNumber(int value) { - + pageNumber_ = value; onChanged(); return this; } /** + * + * *
      * If the file was a PDF or TIFF, this field gives the page number within
      * the file used to produce the image.
      * 
* * int32 page_number = 2; + * * @return This builder for chaining. */ public Builder clearPageNumber() { - + pageNumber_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -638,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageAnnotationContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageAnnotationContext) private static final com.google.cloud.vision.v1p4beta1.ImageAnnotationContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageAnnotationContext(); } @@ -652,16 +708,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageAnnotationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageAnnotationContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageAnnotationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageAnnotationContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageAnnotationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java similarity index 54% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java index 73a22344a..326a4a538 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotationContextOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageAnnotationContextOrBuilder extends +public interface ImageAnnotationContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageAnnotationContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the file used to produce the image.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * If the file was a PDF or TIFF, this field gives the page number within
    * the file used to produce the image.
    * 
* * int32 page_number = 2; + * * @return The pageNumber. */ int getPageNumber(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java new file mode 100644 index 000000000..5ca697736 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java @@ -0,0 +1,865 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ImageAnnotatorProto { + private ImageAnnotatorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p4beta1/image_an" + + "notator.proto\022\035google.cloud.vision.v1p4b" + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032(google/cloud/vision/v1p4be" + + "ta1/face.proto\032,google/cloud/vision/v1p4" + + "beta1/geometry.proto\0322google/cloud/visio" + + "n/v1p4beta1/product_search.proto\0323google" + + "/cloud/vision/v1p4beta1/text_annotation." + + "proto\0321google/cloud/vision/v1p4beta1/web" + + "_detection.proto\032#google/longrunning/ope" + + "rations.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\027google/rpc/status.proto\032\027google/type/c" + + "olor.proto\032\030google/type/latlng.proto\"\216\003\n" + + "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" + + "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" + + "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" + + "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" + + "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" + + "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" + + "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" + + "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" + + "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" + + "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" + + "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" + + "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" + + "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" + + "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" + + "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" + + "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" + + "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" + + "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." + + "google.cloud.vision.v1p4beta1.FaceAnnota" + + "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" + + "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" + + "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" + + "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" + + ".google.cloud.vision.v1p4beta1.Likelihoo" + + "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" + + "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" + + "_likelihood\030\013 \001(\0162).google.cloud.vision." + + "v1p4beta1.Likelihood\022F\n\023surprise_likelih" + + "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" + + "1.Likelihood\022K\n\030under_exposed_likelihood" + + "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" + + "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." + + "google.cloud.vision.v1p4beta1.Likelihood" + + "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" + + "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" + + "gnition_result\030\020 \003(\01324.google.cloud.visi" + + "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" + + "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" + + "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" + + "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" + + "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" + + "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" + + "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" + + "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" + + "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" + + "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" + + "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" + + "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" + + "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" + + "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" + + "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" + + "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" + + "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" + + "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" + + "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" + + "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" + + "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" + + "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" + + "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" + + "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" + + "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" + + "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." + + "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" + + "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" + + "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" + + "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" + + "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" + + "gle.cloud.vision.v1p4beta1.BoundingPoly\022" + + ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" + + ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " + + "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" + + "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" + + "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" + + " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" + + "(\0132+.google.cloud.vision.v1p4beta1.Bound" + + "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" + + "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." + + "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" + + ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" + + "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" + + "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" + + "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " + + "\001(\0162).google.cloud.vision.v1p4beta1.Like" + + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" + + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" + + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" + + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" + + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" + + "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" + + "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" + + "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" + + "(\01327.google.cloud.vision.v1p4beta1.Domin" + + "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" + + "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" + + "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" + + "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" + + "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" + + ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" + + "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" + + "bDetectionParams\022\033\n\023include_geo_results\030" + + "\002 \001(\010\"c\n\023TextDetectionParams\022.\n&enable_t" + + "ext_detection_confidence_score\030\t \001(\010\022\034\n\024" + + "advanced_ocr_options\030\013 \003(\t\"\202\004\n\014ImageCont" + + "ext\022A\n\rlat_long_rect\030\001 \001(\0132*.google.clou" + + "d.vision.v1p4beta1.LatLongRect\022\026\n\016langua" + + "ge_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(" + + "\0132..google.cloud.vision.v1p4beta1.CropHi" + + "ntsParams\022U\n\027face_recognition_params\030\n \001" + + "(\01324.google.cloud.vision.v1p4beta1.FaceR" + + "ecognitionParams\022Q\n\025product_search_param" + + "s\030\005 \001(\01322.google.cloud.vision.v1p4beta1." + + "ProductSearchParams\022O\n\024web_detection_par" + + "ams\030\006 \001(\01321.google.cloud.vision.v1p4beta" + + "1.WebDetectionParams\022Q\n\025text_detection_p" + + "arams\030\014 \001(\01322.google.cloud.vision.v1p4be" + + "ta1.TextDetectionParams\"\311\001\n\024AnnotateImag" + + "eRequest\0223\n\005image\030\001 \001(\0132$.google.cloud.v" + + "ision.v1p4beta1.Image\0228\n\010features\030\002 \003(\0132" + + "&.google.cloud.vision.v1p4beta1.Feature\022" + + "B\n\rimage_context\030\003 \001(\0132+.google.cloud.vi" + + "sion.v1p4beta1.ImageContext\":\n\026ImageAnno" + + "tationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numbe" + + "r\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fac" + + "e_annotations\030\001 \003(\0132-.google.cloud.visio" + + "n.v1p4beta1.FaceAnnotation\022M\n\024landmark_a" + + "nnotations\030\002 \003(\0132/.google.cloud.vision.v" + + "1p4beta1.EntityAnnotation\022I\n\020logo_annota" + + "tions\030\003 \003(\0132/.google.cloud.vision.v1p4be" + + "ta1.EntityAnnotation\022J\n\021label_annotation" + + "s\030\004 \003(\0132/.google.cloud.vision.v1p4beta1." + + "EntityAnnotation\022^\n\034localized_object_ann" + + "otations\030\026 \003(\01328.google.cloud.vision.v1p" + + "4beta1.LocalizedObjectAnnotation\022I\n\020text" + + "_annotations\030\005 \003(\0132/.google.cloud.vision" + + ".v1p4beta1.EntityAnnotation\022K\n\024full_text" + + "_annotation\030\014 \001(\0132-.google.cloud.vision." + + "v1p4beta1.TextAnnotation\022S\n\026safe_search_" + + "annotation\030\006 \001(\01323.google.cloud.vision.v" + + "1p4beta1.SafeSearchAnnotation\022S\n\033image_p" + + "roperties_annotation\030\010 \001(\0132..google.clou" + + "d.vision.v1p4beta1.ImageProperties\022Q\n\025cr" + + "op_hints_annotation\030\013 \001(\01322.google.cloud" + + ".vision.v1p4beta1.CropHintsAnnotation\022B\n" + + "\rweb_detection\030\r \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.WebDetection\022S\n\026product_sea" + + "rch_results\030\016 \001(\01323.google.cloud.vision." + + "v1p4beta1.ProductSearchResults\022!\n\005error\030" + + "\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001" + + "(\01325.google.cloud.vision.v1p4beta1.Image" + + "AnnotationContext\"h\n\032BatchAnnotateImages" + + "Request\022J\n\010requests\030\001 \003(\01323.google.cloud" + + ".vision.v1p4beta1.AnnotateImageRequestB\003" + + "\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tre" + + "sponses\030\001 \003(\01324.google.cloud.vision.v1p4" + + "beta1.AnnotateImageResponse\"\344\001\n\023Annotate" + + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" + + "le.cloud.vision.v1p4beta1.InputConfig\0228\n" + + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + + "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.ImageCont" + + "ext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFileRespo" + + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud" + + ".vision.v1p4beta1.InputConfig\022G\n\trespons" + + "es\030\002 \003(\01324.google.cloud.vision.v1p4beta1" + + ".AnnotateImageResponse\022\023\n\013total_pages\030\003 " + + "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"f" + + "\n\031BatchAnnotateFilesRequest\022I\n\010requests\030" + + "\001 \003(\01322.google.cloud.vision.v1p4beta1.An" + + "notateFileRequestB\003\340A\002\"d\n\032BatchAnnotateF" + + "ilesResponse\022F\n\tresponses\030\001 \003(\01323.google" + + ".cloud.vision.v1p4beta1.AnnotateFileResp" + + "onse\"\236\002\n\030AsyncAnnotateFileRequest\022@\n\014inp" + + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" + + "p4beta1.InputConfig\0228\n\010features\030\002 \003(\0132&." + + "google.cloud.vision.v1p4beta1.Feature\022B\n" + + "\rimage_context\030\003 \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.ImageContext\022B\n\routput_conf" + + "ig\030\004 \001(\0132+.google.cloud.vision.v1p4beta1" + + ".OutputConfig\"_\n\031AsyncAnnotateFileRespon" + + "se\022B\n\routput_config\030\001 \001(\0132+.google.cloud" + + ".vision.v1p4beta1.OutputConfig\"\266\001\n\037Async" + + "BatchAnnotateImagesRequest\022J\n\010requests\030\001" + + " \003(\01323.google.cloud.vision.v1p4beta1.Ann" + + "otateImageRequestB\003\340A\002\022G\n\routput_config\030" + + "\002 \001(\0132+.google.cloud.vision.v1p4beta1.Ou" + + "tputConfigB\003\340A\002\"f\n AsyncBatchAnnotateIma" + + "gesResponse\022B\n\routput_config\030\001 \001(\0132+.goo" + + "gle.cloud.vision.v1p4beta1.OutputConfig\"" + + "p\n\036AsyncBatchAnnotateFilesRequest\022N\n\010req" + + "uests\030\001 \003(\01327.google.cloud.vision.v1p4be" + + "ta1.AsyncAnnotateFileRequestB\003\340A\002\"n\n\037Asy" + + "ncBatchAnnotateFilesResponse\022K\n\tresponse" + + "s\030\001 \003(\01328.google.cloud.vision.v1p4beta1." + + "AsyncAnnotateFileResponse\"o\n\013InputConfig" + + "\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud.visi" + + "on.v1p4beta1.GcsSource\022\017\n\007content\030\003 \001(\014\022" + + "\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gc" + + "s_destination\030\001 \001(\0132-.google.cloud.visio" + + "n.v1p4beta1.GcsDestination\022\022\n\nbatch_size" + + "\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsD" + + "estination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMet" + + "adata\022E\n\005state\030\001 \001(\01626.google.cloud.visi" + + "on.v1p4beta1.OperationMetadata.State\022/\n\013" + + "create_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013update_time\030\006 \001(\0132\032.google.prot" + + "obuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE" + + "\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNO" + + "WN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n" + + "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005" + + "2\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateIma" + + "ges\0229.google.cloud.vision.v1p4beta1.Batc" + + "hAnnotateImagesRequest\032:.google.cloud.vi" + + "sion.v1p4beta1.BatchAnnotateImagesRespon" + + "se\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:annotate:\001" + + "*\332A\010requests\022\272\001\n\022BatchAnnotateFiles\0228.go" + + "ogle.cloud.vision.v1p4beta1.BatchAnnotat" + + "eFilesRequest\0329.google.cloud.vision.v1p4" + + "beta1.BatchAnnotateFilesResponse\"/\202\323\344\223\002\036" + + "\"\031/v1p4beta1/files:annotate:\001*\332A\010request" + + "s\022\374\001\n\030AsyncBatchAnnotateImages\022>.google." + + "cloud.vision.v1p4beta1.AsyncBatchAnnotat" + + "eImagesRequest\032\035.google.longrunning.Oper" + + "ation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:asyncB" + + "atchAnnotate:\001*\332A\026requests,output_config" + + "\312A5\n AsyncBatchAnnotateImagesResponse\022\021O" + + "perationMetadata\022\351\001\n\027AsyncBatchAnnotateF" + + "iles\022=.google.cloud.vision.v1p4beta1.Asy" + + "ncBatchAnnotateFilesRequest\032\035.google.lon" + + "grunning.Operation\"p\202\323\344\223\002(\"#/v1p4beta1/f" + + "iles:asyncBatchAnnotate:\001*\332A\010requests\312A4" + + "\n\037AsyncBatchAnnotateFilesResponse\022\021Opera" + + "tionMetadata\032v\312A\025vision.googleapis.com\322A" + + "[https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-visionB\211\001\n!com.google.cloud.vision" + + ".v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/v" + + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ColorProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Feature_descriptor, + new java.lang.String[] { + "Type", "MaxResults", "Model", + }); + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor, + new java.lang.String[] { + "GcsImageUri", "ImageUri", + }); + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Image_descriptor, + new java.lang.String[] { + "Content", "Source", + }); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor, + new java.lang.String[] { + "BoundingPoly", + "FdBoundingPoly", + "Landmarks", + "RollAngle", + "PanAngle", + "TiltAngle", + "DetectionConfidence", + "LandmarkingConfidence", + "JoyLikelihood", + "SorrowLikelihood", + "AngerLikelihood", + "SurpriseLikelihood", + "UnderExposedLikelihood", + "BlurredLikelihood", + "HeadwearLikelihood", + "RecognitionResult", + }); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor = + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor, + new java.lang.String[] { + "Type", "Position", + }); + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor, + new java.lang.String[] { + "LatLng", + }); + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Property_descriptor, + new java.lang.String[] { + "Name", "Value", "Uint64Value", + }); + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_EntityAnnotation_descriptor, + new java.lang.String[] { + "Mid", + "Locale", + "Description", + "Score", + "Confidence", + "Topicality", + "BoundingPoly", + "Locations", + "Properties", + }); + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor, + new java.lang.String[] { + "Mid", "LanguageCode", "Name", "Score", "BoundingPoly", + }); + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor, + new java.lang.String[] { + "Adult", "Spoof", "Medical", "Violence", "Racy", + }); + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor, + new java.lang.String[] { + "MinLatLng", "MaxLatLng", + }); + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ColorInfo_descriptor, + new java.lang.String[] { + "Color", "Score", "PixelFraction", + }); + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DominantColorsAnnotation_descriptor, + new java.lang.String[] { + "Colors", + }); + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor, + new java.lang.String[] { + "DominantColors", + }); + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p4beta1_CropHint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHint_descriptor, + new java.lang.String[] { + "BoundingPoly", "Confidence", "ImportanceFraction", + }); + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHintsAnnotation_descriptor, + new java.lang.String[] { + "CropHints", + }); + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CropHintsParams_descriptor, + new java.lang.String[] { + "AspectRatios", + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor, + new java.lang.String[] { + "IncludeGeoResults", + }); + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor, + new java.lang.String[] { + "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions", + }); + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor, + new java.lang.String[] { + "LatLongRect", + "LanguageHints", + "CropHintsParams", + "FaceRecognitionParams", + "ProductSearchParams", + "WebDetectionParams", + "TextDetectionParams", + }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageRequest_descriptor, + new java.lang.String[] { + "Image", "Features", "ImageContext", + }); + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImageAnnotationContext_descriptor, + new java.lang.String[] { + "Uri", "PageNumber", + }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor, + new java.lang.String[] { + "FaceAnnotations", + "LandmarkAnnotations", + "LogoAnnotations", + "LabelAnnotations", + "LocalizedObjectAnnotations", + "TextAnnotations", + "FullTextAnnotation", + "SafeSearchAnnotation", + "ImagePropertiesAnnotation", + "CropHintsAnnotation", + "WebDetection", + "ProductSearchResults", + "Error", + "Context", + }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor, + new java.lang.String[] { + "InputConfig", "Features", "ImageContext", "Pages", + }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { + "InputConfig", "Responses", "TotalPages", "Error", + }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileRequest_descriptor, + new java.lang.String[] { + "InputConfig", "Features", "ImageContext", "OutputConfig", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncAnnotateFileResponse_descriptor, + new java.lang.String[] { + "OutputConfig", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesRequest_descriptor, + new java.lang.String[] { + "Requests", "OutputConfig", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateImagesResponse_descriptor, + new java.lang.String[] { + "OutputConfig", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor, + new java.lang.String[] { + "Requests", + }); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesResponse_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Content", "MimeType", + }); + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BatchSize", + }); + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_vision_v1p4beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "State", "CreateTime", "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ColorProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java index 5f620da30..2d274047f 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Image context and/or feature-specific parameters.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageContext} */ -public final class ImageContext extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageContext) ImageContextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageContext.newBuilder() to construct. private ImageContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageContext() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,100 +71,124 @@ private ImageContext( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.LatLongRect.Builder subBuilder = null; - if (latLongRect_ != null) { - subBuilder = latLongRect_.toBuilder(); - } - latLongRect_ = input.readMessage(com.google.cloud.vision.v1p4beta1.LatLongRect.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLongRect_); - latLongRect_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languageHints_.add(s); - break; - } - case 34: { - com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder subBuilder = null; - if (cropHintsParams_ != null) { - subBuilder = cropHintsParams_.toBuilder(); - } - cropHintsParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.CropHintsParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cropHintsParams_); - cropHintsParams_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder subBuilder = null; - if (productSearchParams_ != null) { - subBuilder = productSearchParams_.toBuilder(); - } - productSearchParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSearchParams_); - productSearchParams_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder subBuilder = null; + if (latLongRect_ != null) { + subBuilder = latLongRect_.toBuilder(); + } + latLongRect_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.LatLongRect.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLongRect_); + latLongRect_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder subBuilder = null; - if (webDetectionParams_ != null) { - subBuilder = webDetectionParams_.toBuilder(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; } - webDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDetectionParams_); - webDetectionParams_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder subBuilder = null; + if (cropHintsParams_ != null) { + subBuilder = cropHintsParams_.toBuilder(); + } + cropHintsParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.CropHintsParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cropHintsParams_); + cropHintsParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 82: { - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder subBuilder = null; - if (faceRecognitionParams_ != null) { - subBuilder = faceRecognitionParams_.toBuilder(); + case 42: + { + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder subBuilder = null; + if (productSearchParams_ != null) { + subBuilder = productSearchParams_.toBuilder(); + } + productSearchParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSearchParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSearchParams_); + productSearchParams_ = subBuilder.buildPartial(); + } + + break; } - faceRecognitionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(faceRecognitionParams_); - faceRecognitionParams_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder subBuilder = null; + if (webDetectionParams_ != null) { + subBuilder = webDetectionParams_.toBuilder(); + } + webDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDetectionParams_); + webDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder subBuilder = null; - if (textDetectionParams_ != null) { - subBuilder = textDetectionParams_.toBuilder(); + case 82: + { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder subBuilder = null; + if (faceRecognitionParams_ != null) { + subBuilder = faceRecognitionParams_.toBuilder(); + } + faceRecognitionParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(faceRecognitionParams_); + faceRecognitionParams_ = subBuilder.buildPartial(); + } + + break; } - textDetectionParams_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextDetectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textDetectionParams_); - textDetectionParams_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder subBuilder = null; + if (textDetectionParams_ != null) { + subBuilder = textDetectionParams_.toBuilder(); + } + textDetectionParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextDetectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionParams_); + textDetectionParams_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -155,8 +196,7 @@ private ImageContext( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); @@ -165,27 +205,33 @@ private ImageContext( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageContext.class, com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageContext.class, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); } public static final int LAT_LONG_RECT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.LatLongRect latLongRect_; /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ @java.lang.Override @@ -193,18 +239,25 @@ public boolean hasLatLongRect() { return latLongRect_ != null; } /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect() { - return latLongRect_ == null ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } /** + * + * *
    * Not used.
    * 
@@ -219,6 +272,8 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu public static final int LANGUAGE_HINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList languageHints_; /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -231,13 +286,15 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -250,12 +307,15 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -268,6 +328,7 @@ public int getLanguageHintsCount() {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -275,6 +336,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -287,22 +350,25 @@ public java.lang.String getLanguageHints(int index) {
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } public static final int CROP_HINTS_PARAMS_FIELD_NUMBER = 4; private com.google.cloud.vision.v1p4beta1.CropHintsParams cropHintsParams_; /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ @java.lang.Override @@ -310,18 +376,25 @@ public boolean hasCropHintsParams() { return cropHintsParams_ != null; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams() { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -336,11 +409,14 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsPa public static final int FACE_RECOGNITION_PARAMS_FIELD_NUMBER = 10; private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; /** + * + * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * * @return Whether the faceRecognitionParams field is set. */ @java.lang.Override @@ -348,18 +424,25 @@ public boolean hasFaceRecognitionParams() { return faceRecognitionParams_ != null; } /** + * + * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * * @return The faceRecognitionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { - return faceRecognitionParams_ == null ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; } /** + * + * *
    * Parameters for face recognition.
    * 
@@ -367,18 +450,22 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitio * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder() { return getFaceRecognitionParams(); } public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ @java.lang.Override @@ -386,18 +473,25 @@ public boolean hasProductSearchParams() { return productSearchParams_ != null; } /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams() { - return productSearchParams_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } /** + * + * *
    * Parameters for product search.
    * 
@@ -405,18 +499,22 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchPar * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder + getProductSearchParamsOrBuilder() { return getProductSearchParams(); } public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.vision.v1p4beta1.WebDetectionParams webDetectionParams_; /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ @java.lang.Override @@ -424,18 +522,25 @@ public boolean hasWebDetectionParams() { return webDetectionParams_ != null; } /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams() { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } /** + * + * *
    * Parameters for web detection.
    * 
@@ -443,18 +548,22 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParam * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { return getWebDetectionParams(); } public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER = 12; private com.google.cloud.vision.v1p4beta1.TextDetectionParams textDetectionParams_; /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ @java.lang.Override @@ -462,18 +571,25 @@ public boolean hasTextDetectionParams() { return textDetectionParams_ != null; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams() { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } /** + * + * *
    * Parameters for text detection and document text detection.
    * 
@@ -481,11 +597,13 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionPar * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { return getTextDetectionParams(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -497,8 +615,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLongRect_ != null) { output.writeMessage(1, getLatLongRect()); } @@ -530,8 +647,7 @@ public int getSerializedSize() { size = 0; if (latLongRect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLongRect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLongRect()); } { int dataSize = 0; @@ -542,24 +658,21 @@ public int getSerializedSize() { size += 1 * getLanguageHintsList().size(); } if (cropHintsParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCropHintsParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCropHintsParams()); } if (productSearchParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProductSearchParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProductSearchParams()); } if (webDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWebDetectionParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } if (faceRecognitionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getFaceRecognitionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFaceRecognitionParams()); } if (textDetectionParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTextDetectionParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTextDetectionParams()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -569,44 +682,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageContext)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageContext other = (com.google.cloud.vision.v1p4beta1.ImageContext) obj; + com.google.cloud.vision.v1p4beta1.ImageContext other = + (com.google.cloud.vision.v1p4beta1.ImageContext) obj; if (hasLatLongRect() != other.hasLatLongRect()) return false; if (hasLatLongRect()) { - if (!getLatLongRect() - .equals(other.getLatLongRect())) return false; + if (!getLatLongRect().equals(other.getLatLongRect())) return false; } - if (!getLanguageHintsList() - .equals(other.getLanguageHintsList())) return false; + if (!getLanguageHintsList().equals(other.getLanguageHintsList())) return false; if (hasCropHintsParams() != other.hasCropHintsParams()) return false; if (hasCropHintsParams()) { - if (!getCropHintsParams() - .equals(other.getCropHintsParams())) return false; + if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } if (hasFaceRecognitionParams() != other.hasFaceRecognitionParams()) return false; if (hasFaceRecognitionParams()) { - if (!getFaceRecognitionParams() - .equals(other.getFaceRecognitionParams())) return false; + if (!getFaceRecognitionParams().equals(other.getFaceRecognitionParams())) return false; } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { - if (!getProductSearchParams() - .equals(other.getProductSearchParams())) return false; + if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; } if (hasWebDetectionParams() != other.hasWebDetectionParams()) return false; if (hasWebDetectionParams()) { - if (!getWebDetectionParams() - .equals(other.getWebDetectionParams())) return false; + if (!getWebDetectionParams().equals(other.getWebDetectionParams())) return false; } if (hasTextDetectionParams() != other.hasTextDetectionParams()) return false; if (hasTextDetectionParams()) { - if (!getTextDetectionParams() - .equals(other.getTextDetectionParams())) return false; + if (!getTextDetectionParams().equals(other.getTextDetectionParams())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -652,118 +759,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image context and/or feature-specific parameters.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageContext) com.google.cloud.vision.v1p4beta1.ImageContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageContext.class, com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageContext.class, + com.google.cloud.vision.v1p4beta1.ImageContext.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageContext.newBuilder() @@ -771,16 +887,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -826,9 +941,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor; } @java.lang.Override @@ -847,7 +962,8 @@ public com.google.cloud.vision.v1p4beta1.ImageContext build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageContext buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageContext result = new com.google.cloud.vision.v1p4beta1.ImageContext(this); + com.google.cloud.vision.v1p4beta1.ImageContext result = + new com.google.cloud.vision.v1p4beta1.ImageContext(this); int from_bitField0_ = bitField0_; if (latLongRectBuilder_ == null) { result.latLongRect_ = latLongRect_; @@ -892,38 +1008,39 @@ public com.google.cloud.vision.v1p4beta1.ImageContext buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageContext) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageContext)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageContext) other); } else { super.mergeFrom(other); return this; @@ -988,38 +1105,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.LatLongRect latLongRect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> latLongRectBuilder_; + com.google.cloud.vision.v1p4beta1.LatLongRect, + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> + latLongRectBuilder_; /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ public boolean hasLatLongRect() { return latLongRectBuilder_ != null || latLongRect_ != null; } /** + * + * *
      * Not used.
      * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ public com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { - return latLongRect_ == null ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /** + * + * *
      * Not used.
      * 
@@ -1040,6 +1171,8 @@ public Builder setLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect valu return this; } /** + * + * *
      * Not used.
      * 
@@ -1058,6 +1191,8 @@ public Builder setLatLongRect( return this; } /** + * + * *
      * Not used.
      * 
@@ -1068,7 +1203,9 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect va if (latLongRectBuilder_ == null) { if (latLongRect_ != null) { latLongRect_ = - com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder(latLongRect_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder(latLongRect_) + .mergeFrom(value) + .buildPartial(); } else { latLongRect_ = value; } @@ -1080,6 +1217,8 @@ public Builder mergeLatLongRect(com.google.cloud.vision.v1p4beta1.LatLongRect va return this; } /** + * + * *
      * Not used.
      * 
@@ -1098,6 +1237,8 @@ public Builder clearLatLongRect() { return this; } /** + * + * *
      * Not used.
      * 
@@ -1105,11 +1246,13 @@ public Builder clearLatLongRect() { * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; */ public com.google.cloud.vision.v1p4beta1.LatLongRect.Builder getLatLongRectBuilder() { - + onChanged(); return getLatLongRectFieldBuilder().getBuilder(); } /** + * + * *
      * Not used.
      * 
@@ -1120,11 +1263,14 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu if (latLongRectBuilder_ != null) { return latLongRectBuilder_.getMessageOrBuilder(); } else { - return latLongRect_ == null ? - com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() : latLongRect_; + return latLongRect_ == null + ? com.google.cloud.vision.v1p4beta1.LatLongRect.getDefaultInstance() + : latLongRect_; } } /** + * + * *
      * Not used.
      * 
@@ -1132,27 +1278,34 @@ public com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBu * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> + com.google.cloud.vision.v1p4beta1.LatLongRect, + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder> getLatLongRectFieldBuilder() { if (latLongRectBuilder_ == null) { - latLongRectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.LatLongRect, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder>( - getLatLongRect(), - getParentForChildren(), - isClean()); + latLongRectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.LatLongRect, + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder, + com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder>( + getLatLongRect(), getParentForChildren(), isClean()); latLongRect_ = null; } return latLongRectBuilder_; } - private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1165,13 +1318,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - public com.google.protobuf.ProtocolStringList - getLanguageHintsList() { + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1184,12 +1339,15 @@ private void ensureLanguageHintsIsMutable() {
      * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1202,6 +1360,7 @@ public int getLanguageHintsCount() {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ @@ -1209,6 +1368,8 @@ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1221,14 +1382,16 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - public com.google.protobuf.ByteString - getLanguageHintsBytes(int index) { + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1241,21 +1404,23 @@ public java.lang.String getLanguageHints(int index) {
      * 
* * repeated string language_hints = 2; + * * @param index The index to set the value at. * @param value The languageHints to set. * @return This builder for chaining. */ - public Builder setLanguageHints( - int index, java.lang.String value) { + public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1268,20 +1433,22 @@ public Builder setLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param value The languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHints( - java.lang.String value) { + public Builder addLanguageHints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageHintsIsMutable(); + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1294,18 +1461,19 @@ public Builder addLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @param values The languageHints to add. * @return This builder for chaining. */ - public Builder addAllLanguageHints( - java.lang.Iterable values) { + public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); onChanged(); return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1318,6 +1486,7 @@ public Builder addAllLanguageHints(
      * 
* * repeated string language_hints = 2; + * * @return This builder for chaining. */ public Builder clearLanguageHints() { @@ -1327,6 +1496,8 @@ public Builder clearLanguageHints() { return this; } /** + * + * *
      * List of languages to use for TEXT_DETECTION. In most cases, an empty value
      * yields the best results since it enables automatic language detection. For
@@ -1339,15 +1510,15 @@ public Builder clearLanguageHints() {
      * 
* * repeated string language_hints = 2; + * * @param value The bytes of the languageHints to add. * @return This builder for chaining. */ - public Builder addLanguageHintsBytes( - com.google.protobuf.ByteString value) { + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageHintsIsMutable(); languageHints_.add(value); onChanged(); @@ -1356,34 +1527,47 @@ public Builder addLanguageHintsBytes( private com.google.cloud.vision.v1p4beta1.CropHintsParams cropHintsParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> cropHintsParamsBuilder_; + com.google.cloud.vision.v1p4beta1.CropHintsParams, + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> + cropHintsParamsBuilder_; /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ public boolean hasCropHintsParams() { return cropHintsParamsBuilder_ != null || cropHintsParams_ != null; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ public com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams() { if (cropHintsParamsBuilder_ == null) { - return cropHintsParams_ == null ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } else { return cropHintsParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1404,6 +1588,8 @@ public Builder setCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsPar return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1422,6 +1608,8 @@ public Builder setCropHintsParams( return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1432,7 +1620,9 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsP if (cropHintsParamsBuilder_ == null) { if (cropHintsParams_ != null) { cropHintsParams_ = - com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder(cropHintsParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.CropHintsParams.newBuilder(cropHintsParams_) + .mergeFrom(value) + .buildPartial(); } else { cropHintsParams_ = value; } @@ -1444,6 +1634,8 @@ public Builder mergeCropHintsParams(com.google.cloud.vision.v1p4beta1.CropHintsP return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1462,6 +1654,8 @@ public Builder clearCropHintsParams() { return this; } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1469,26 +1663,32 @@ public Builder clearCropHintsParams() { * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ public com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder getCropHintsParamsBuilder() { - + onChanged(); return getCropHintsParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ - public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder + getCropHintsParamsOrBuilder() { if (cropHintsParamsBuilder_ != null) { return cropHintsParamsBuilder_.getMessageOrBuilder(); } else { - return cropHintsParams_ == null ? - com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() : cropHintsParams_; + return cropHintsParams_ == null + ? com.google.cloud.vision.v1p4beta1.CropHintsParams.getDefaultInstance() + : cropHintsParams_; } } /** + * + * *
      * Parameters for crop hints annotation request.
      * 
@@ -1496,14 +1696,17 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsPa * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.CropHintsParams, + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder> getCropHintsParamsFieldBuilder() { if (cropHintsParamsBuilder_ == null) { - cropHintsParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.CropHintsParams, com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder>( - getCropHintsParams(), - getParentForChildren(), - isClean()); + cropHintsParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.CropHintsParams, + com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder, + com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder>( + getCropHintsParams(), getParentForChildren(), isClean()); cropHintsParams_ = null; } return cropHintsParamsBuilder_; @@ -1511,41 +1714,58 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsPa private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> faceRecognitionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> + faceRecognitionParamsBuilder_; /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + * * @return Whether the faceRecognitionParams field is set. */ public boolean hasFaceRecognitionParams() { return faceRecognitionParamsBuilder_ != null || faceRecognitionParams_ != null; } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + * * @return The faceRecognitionParams. */ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { if (faceRecognitionParamsBuilder_ == null) { - return faceRecognitionParams_ == null ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; } else { return faceRecognitionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ - public Builder setFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + public Builder setFaceRecognitionParams( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { if (faceRecognitionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1559,11 +1779,14 @@ public Builder setFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.FaceRe return this; } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ public Builder setFaceRecognitionParams( com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder builderForValue) { @@ -1577,17 +1800,24 @@ public Builder setFaceRecognitionParams( return this; } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ - public Builder mergeFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + public Builder mergeFaceRecognitionParams( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { if (faceRecognitionParamsBuilder_ == null) { if (faceRecognitionParams_ != null) { faceRecognitionParams_ = - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder(faceRecognitionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder( + faceRecognitionParams_) + .mergeFrom(value) + .buildPartial(); } else { faceRecognitionParams_ = value; } @@ -1599,11 +1829,14 @@ public Builder mergeFaceRecognitionParams(com.google.cloud.vision.v1p4beta1.Face return this; } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ public Builder clearFaceRecognitionParams() { if (faceRecognitionParamsBuilder_ == null) { @@ -1617,48 +1850,63 @@ public Builder clearFaceRecognitionParams() { return this; } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder getFaceRecognitionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder + getFaceRecognitionParamsBuilder() { + onChanged(); return getFaceRecognitionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ - public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder() { if (faceRecognitionParamsBuilder_ != null) { return faceRecognitionParamsBuilder_.getMessageOrBuilder(); } else { - return faceRecognitionParams_ == null ? - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() : faceRecognitionParams_; + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; } } /** + * + * *
      * Parameters for face recognition.
      * 
* - * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> getFaceRecognitionParamsFieldBuilder() { if (faceRecognitionParamsBuilder_ == null) { - faceRecognitionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder>( - getFaceRecognitionParams(), - getParentForChildren(), - isClean()); + faceRecognitionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder>( + getFaceRecognitionParams(), getParentForChildren(), isClean()); faceRecognitionParams_ = null; } return faceRecognitionParamsBuilder_; @@ -1666,41 +1914,55 @@ public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceR private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> productSearchParamsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchParams, + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> + productSearchParamsBuilder_; /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ public boolean hasProductSearchParams() { return productSearchParamsBuilder_ != null || productSearchParams_ != null; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ public com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams() { if (productSearchParamsBuilder_ == null) { - return productSearchParams_ == null ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } else { return productSearchParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public Builder setProductSearchParams(com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { + public Builder setProductSearchParams( + com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1714,6 +1976,8 @@ public Builder setProductSearchParams(com.google.cloud.vision.v1p4beta1.ProductS return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1732,17 +1996,22 @@ public Builder setProductSearchParams( return this; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public Builder mergeProductSearchParams(com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { + public Builder mergeProductSearchParams( + com.google.cloud.vision.v1p4beta1.ProductSearchParams value) { if (productSearchParamsBuilder_ == null) { if (productSearchParams_ != null) { productSearchParams_ = - com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder(productSearchParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder(productSearchParams_) + .mergeFrom(value) + .buildPartial(); } else { productSearchParams_ = value; } @@ -1754,6 +2023,8 @@ public Builder mergeProductSearchParams(com.google.cloud.vision.v1p4beta1.Produc return this; } /** + * + * *
      * Parameters for product search.
      * 
@@ -1772,33 +2043,42 @@ public Builder clearProductSearchParams() { return this; } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder getProductSearchParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder + getProductSearchParamsBuilder() { + onChanged(); return getProductSearchParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for product search.
      * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder + getProductSearchParamsOrBuilder() { if (productSearchParamsBuilder_ != null) { return productSearchParamsBuilder_.getMessageOrBuilder(); } else { - return productSearchParams_ == null ? - com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() : productSearchParams_; + return productSearchParams_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance() + : productSearchParams_; } } /** + * + * *
      * Parameters for product search.
      * 
@@ -1806,14 +2086,17 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProduct * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchParams, + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder> getProductSearchParamsFieldBuilder() { if (productSearchParamsBuilder_ == null) { - productSearchParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchParams, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder>( - getProductSearchParams(), - getParentForChildren(), - isClean()); + productSearchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchParams, + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder>( + getProductSearchParams(), getParentForChildren(), isClean()); productSearchParams_ = null; } return productSearchParamsBuilder_; @@ -1821,41 +2104,55 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProduct private com.google.cloud.vision.v1p4beta1.WebDetectionParams webDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> webDetectionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetectionParams, + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> + webDetectionParamsBuilder_; /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ public boolean hasWebDetectionParams() { return webDetectionParamsBuilder_ != null || webDetectionParams_ != null; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ public com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams() { if (webDetectionParamsBuilder_ == null) { - return webDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } else { return webDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public Builder setWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { + public Builder setWebDetectionParams( + com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1869,6 +2166,8 @@ public Builder setWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDetect return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1887,17 +2186,22 @@ public Builder setWebDetectionParams( return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { + public Builder mergeWebDetectionParams( + com.google.cloud.vision.v1p4beta1.WebDetectionParams value) { if (webDetectionParamsBuilder_ == null) { if (webDetectionParams_ != null) { webDetectionParams_ = - com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder(webDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder(webDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { webDetectionParams_ = value; } @@ -1909,6 +2213,8 @@ public Builder mergeWebDetectionParams(com.google.cloud.vision.v1p4beta1.WebDete return this; } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1927,33 +2233,42 @@ public Builder clearWebDetectionParams() { return this; } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder getWebDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder + getWebDetectionParamsBuilder() { + onChanged(); return getWebDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for web detection.
      * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ - public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder + getWebDetectionParamsOrBuilder() { if (webDetectionParamsBuilder_ != null) { return webDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return webDetectionParams_ == null ? - com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() : webDetectionParams_; + return webDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance() + : webDetectionParams_; } } /** + * + * *
      * Parameters for web detection.
      * 
@@ -1961,14 +2276,17 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetec * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetectionParams, + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder> getWebDetectionParamsFieldBuilder() { if (webDetectionParamsBuilder_ == null) { - webDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetectionParams, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder>( - getWebDetectionParams(), - getParentForChildren(), - isClean()); + webDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetectionParams, + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder>( + getWebDetectionParams(), getParentForChildren(), isClean()); webDetectionParams_ = null; } return webDetectionParamsBuilder_; @@ -1976,41 +2294,55 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetec private com.google.cloud.vision.v1p4beta1.TextDetectionParams textDetectionParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> textDetectionParamsBuilder_; + com.google.cloud.vision.v1p4beta1.TextDetectionParams, + com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> + textDetectionParamsBuilder_; /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ public boolean hasTextDetectionParams() { return textDetectionParamsBuilder_ != null || textDetectionParams_ != null; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ public com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams() { if (textDetectionParamsBuilder_ == null) { - return textDetectionParams_ == null ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } else { return textDetectionParamsBuilder_.getMessage(); } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public Builder setTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { + public Builder setTextDetectionParams( + com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2024,6 +2356,8 @@ public Builder setTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDete return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -2042,17 +2376,22 @@ public Builder setTextDetectionParams( return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { + public Builder mergeTextDetectionParams( + com.google.cloud.vision.v1p4beta1.TextDetectionParams value) { if (textDetectionParamsBuilder_ == null) { if (textDetectionParams_ != null) { textDetectionParams_ = - com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder(textDetectionParams_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder(textDetectionParams_) + .mergeFrom(value) + .buildPartial(); } else { textDetectionParams_ = value; } @@ -2064,6 +2403,8 @@ public Builder mergeTextDetectionParams(com.google.cloud.vision.v1p4beta1.TextDe return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -2082,33 +2423,42 @@ public Builder clearTextDetectionParams() { return this; } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder getTextDetectionParamsBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder + getTextDetectionParamsBuilder() { + onChanged(); return getTextDetectionParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ - public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder + getTextDetectionParamsOrBuilder() { if (textDetectionParamsBuilder_ != null) { return textDetectionParamsBuilder_.getMessageOrBuilder(); } else { - return textDetectionParams_ == null ? - com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() : textDetectionParams_; + return textDetectionParams_ == null + ? com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance() + : textDetectionParams_; } } /** + * + * *
      * Parameters for text detection and document text detection.
      * 
@@ -2116,21 +2466,24 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder getTextDet * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> + com.google.cloud.vision.v1p4beta1.TextDetectionParams, + com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder> getTextDetectionParamsFieldBuilder() { if (textDetectionParamsBuilder_ == null) { - textDetectionParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextDetectionParams, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder>( - getTextDetectionParams(), - getParentForChildren(), - isClean()); + textDetectionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextDetectionParams, + com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder, + com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder>( + getTextDetectionParams(), getParentForChildren(), isClean()); textDetectionParams_ = null; } return textDetectionParamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2140,12 +2493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageContext) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageContext) private static final com.google.cloud.vision.v1p4beta1.ImageContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageContext(); } @@ -2154,16 +2507,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageContext getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2178,6 +2531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java similarity index 88% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java index 7c65993e3..a75d128cf 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageContextOrBuilder extends +public interface ImageContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return Whether the latLongRect field is set. */ boolean hasLatLongRect(); /** + * + * *
    * Not used.
    * 
* * .google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1; + * * @return The latLongRect. */ com.google.cloud.vision.v1p4beta1.LatLongRect getLatLongRect(); /** + * + * *
    * Not used.
    * 
@@ -35,6 +59,8 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder getLatLongRectOrBuilder(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -47,11 +73,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return A list containing the languageHints. */ - java.util.List - getLanguageHintsList(); + java.util.List getLanguageHintsList(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -64,10 +92,13 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @return The count of languageHints. */ int getLanguageHintsCount(); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -80,11 +111,14 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the element to return. * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** + * + * *
    * List of languages to use for TEXT_DETECTION. In most cases, an empty value
    * yields the best results since it enables automatic language detection. For
@@ -97,31 +131,39 @@ public interface ImageContextOrBuilder extends
    * 
* * repeated string language_hints = 2; + * * @param index The index of the value to return. * @return The bytes of the languageHints at the given index. */ - com.google.protobuf.ByteString - getLanguageHintsBytes(int index); + com.google.protobuf.ByteString getLanguageHintsBytes(int index); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return Whether the cropHintsParams field is set. */ boolean hasCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
* * .google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4; + * * @return The cropHintsParams. */ com.google.cloud.vision.v1p4beta1.CropHintsParams getCropHintsParams(); /** + * + * *
    * Parameters for crop hints annotation request.
    * 
@@ -131,51 +173,68 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); /** + * + * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * * @return Whether the faceRecognitionParams field is set. */ boolean hasFaceRecognitionParams(); /** + * + * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * * @return The faceRecognitionParams. */ com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams(); /** + * + * *
    * Parameters for face recognition.
    * 
* * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; */ - com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder(); + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return Whether the productSearchParams field is set. */ boolean hasProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5; + * * @return The productSearchParams. */ com.google.cloud.vision.v1p4beta1.ProductSearchParams getProductSearchParams(); /** + * + * *
    * Parameters for product search.
    * 
@@ -185,24 +244,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return Whether the webDetectionParams field is set. */ boolean hasWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
* * .google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6; + * * @return The webDetectionParams. */ com.google.cloud.vision.v1p4beta1.WebDetectionParams getWebDetectionParams(); /** + * + * *
    * Parameters for web detection.
    * 
@@ -212,24 +279,32 @@ public interface ImageContextOrBuilder extends com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return Whether the textDetectionParams field is set. */ boolean hasTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
* * .google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12; + * * @return The textDetectionParams. */ com.google.cloud.vision.v1p4beta1.TextDetectionParams getTextDetectionParams(); /** + * + * *
    * Parameters for text detection and document text detection.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java index 710fcc3e1..c8d901bad 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -15,11 +33,14 @@ public interface ImageOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -27,10 +48,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
@@ -38,10 +62,13 @@ public interface ImageOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.ImageSource source = 2; + * * @return The source. */ com.google.cloud.vision.v1p4beta1.ImageSource getSource(); /** + * + * *
    * Google Cloud Storage image location, or publicly-accessible image
    * URL. If both `content` and `source` are provided for an image, `content`
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
similarity index 69%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
index 14f27e7c7..13968dfc8 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageProperties.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Stores image properties, such as dominant colors.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageProperties} */ -public final class ImageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageProperties) ImagePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageProperties.newBuilder() to construct. private ImageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageProperties() { - } + + private ImageProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageProperties( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder subBuilder = null; - if (dominantColors_ != null) { - subBuilder = dominantColors_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder subBuilder = null; + if (dominantColors_ != null) { + subBuilder = dominantColors_.toBuilder(); + } + dominantColors_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dominantColors_); + dominantColors_ = subBuilder.buildPartial(); + } + + break; } - dominantColors_ = input.readMessage(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dominantColors_); - dominantColors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +99,39 @@ private ImageProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageProperties.class, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageProperties.class, + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); } public static final int DOMINANT_COLORS_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominantColors_; /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasDominantColors() { return dominantColors_ != null; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors() { - return dominantColors_ == null ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } /** + * + * *
    * If present, dominant colors completed successfully.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantCol * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { return getDominantColors(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dominantColors_ != null) { output.writeMessage(1, getDominantColors()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (dominantColors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDominantColors()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDominantColors()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageProperties)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageProperties other = (com.google.cloud.vision.v1p4beta1.ImageProperties) obj; + com.google.cloud.vision.v1p4beta1.ImageProperties other = + (com.google.cloud.vision.v1p4beta1.ImageProperties) obj; if (hasDominantColors() != other.hasDominantColors()) return false; if (hasDominantColors()) { - if (!getDominantColors() - .equals(other.getDominantColors())) return false; + if (!getDominantColors().equals(other.getDominantColors())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +240,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stores image properties, such as dominant colors.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageProperties) com.google.cloud.vision.v1p4beta1.ImagePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageProperties.class, com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageProperties.class, + com.google.cloud.vision.v1p4beta1.ImageProperties.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageProperties.newBuilder() @@ -326,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageProperties_descriptor; } @java.lang.Override @@ -370,7 +410,8 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageProperties buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageProperties result = new com.google.cloud.vision.v1p4beta1.ImageProperties(this); + com.google.cloud.vision.v1p4beta1.ImageProperties result = + new com.google.cloud.vision.v1p4beta1.ImageProperties(this); if (dominantColorsBuilder_ == null) { result.dominantColors_ = dominantColors_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.vision.v1p4beta1.ImageProperties buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageProperties) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageProperties)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageProperties) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImageProperties other) { - if (other == com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ImageProperties.getDefaultInstance()) + return this; if (other.hasDominantColors()) { mergeDominantColors(other.getDominantColors()); } @@ -446,7 +489,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ImageProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ImageProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +502,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominantColors_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> dominantColorsBuilder_; + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> + dominantColorsBuilder_; /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ public boolean hasDominantColors() { return dominantColorsBuilder_ != null || dominantColors_ != null; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors() { if (dominantColorsBuilder_ == null) { - return dominantColors_ == null ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } else { return dominantColorsBuilder_.getMessage(); } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder setDominantColors(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { + public Builder setDominantColors( + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +564,8 @@ public Builder setDominantColors(com.google.cloud.vision.v1p4beta1.DominantColor return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -524,17 +584,22 @@ public Builder setDominantColors( return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public Builder mergeDominantColors(com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { + public Builder mergeDominantColors( + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation value) { if (dominantColorsBuilder_ == null) { if (dominantColors_ != null) { dominantColors_ = - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder(dominantColors_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.newBuilder(dominantColors_) + .mergeFrom(value) + .buildPartial(); } else { dominantColors_ = value; } @@ -546,6 +611,8 @@ public Builder mergeDominantColors(com.google.cloud.vision.v1p4beta1.DominantCol return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -564,33 +631,42 @@ public Builder clearDominantColors() { return this; } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder getDominantColorsBuilder() { - + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder + getDominantColorsBuilder() { + onChanged(); return getDominantColorsFieldBuilder().getBuilder(); } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ - public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder getDominantColorsOrBuilder() { + public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder + getDominantColorsOrBuilder() { if (dominantColorsBuilder_ != null) { return dominantColorsBuilder_.getMessageOrBuilder(); } else { - return dominantColors_ == null ? - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() : dominantColors_; + return dominantColors_ == null + ? com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.getDefaultInstance() + : dominantColors_; } } /** + * + * *
      * If present, dominant colors completed successfully.
      * 
@@ -598,21 +674,24 @@ public com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder getDo * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder> getDominantColorsFieldBuilder() { if (dominantColorsBuilder_ == null) { - dominantColorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder>( - getDominantColors(), - getParentForChildren(), - isClean()); + dominantColorsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.DominantColorsAnnotationOrBuilder>( + getDominantColors(), getParentForChildren(), isClean()); dominantColors_ = null; } return dominantColorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageProperties) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageProperties) private static final com.google.cloud.vision.v1p4beta1.ImageProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageProperties(); } @@ -636,16 +715,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java index b0fffd0ba..4a6497c4c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImagePropertiesOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImagePropertiesOrBuilder extends +public interface ImagePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return Whether the dominantColors field is set. */ boolean hasDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
* * .google.cloud.vision.v1p4beta1.DominantColorsAnnotation dominant_colors = 1; + * * @return The dominantColors. */ com.google.cloud.vision.v1p4beta1.DominantColorsAnnotation getDominantColors(); /** + * + * *
    * If present, dominant colors completed successfully.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java similarity index 77% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java index 0bb4bbfa1..e18486524 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * External image source (Google Cloud Storage or web URL image location).
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageSource} */ -public final class ImageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImageSource) ImageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSource.newBuilder() to construct. private ImageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSource() { gcsImageUri_ = ""; imageUri_ = ""; @@ -26,16 +44,15 @@ private ImageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ImageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsImageUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + gcsImageUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private ImageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageSource.class, com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageSource.class, + com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); } public static final int GCS_IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsImageUri_; /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -112,6 +135,7 @@ private ImageSource(
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ @java.lang.Override @@ -120,14 +144,15 @@ public java.lang.String getGcsImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; } } /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -137,16 +162,15 @@ public java.lang.String getGcsImageUri() {
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -157,6 +181,8 @@ public java.lang.String getGcsImageUri() { public static final int IMAGE_URI_FIELD_NUMBER = 2; private volatile java.lang.Object imageUri_; /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -175,6 +201,7 @@ public java.lang.String getGcsImageUri() {
    * 
* * string image_uri = 2; + * * @return The imageUri. */ @java.lang.Override @@ -183,14 +210,15 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -209,16 +237,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -227,6 +254,7 @@ public java.lang.String getImageUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsImageUri_); } @@ -269,17 +296,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImageSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImageSource other = (com.google.cloud.vision.v1p4beta1.ImageSource) obj; + com.google.cloud.vision.v1p4beta1.ImageSource other = + (com.google.cloud.vision.v1p4beta1.ImageSource) obj; - if (!getGcsImageUri() - .equals(other.getGcsImageUri())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; + if (!getGcsImageUri().equals(other.getGcsImageUri())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,118 +326,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * External image source (Google Cloud Storage or web URL image location).
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImageSource) com.google.cloud.vision.v1p4beta1.ImageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImageSource.class, com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); + com.google.cloud.vision.v1p4beta1.ImageSource.class, + com.google.cloud.vision.v1p4beta1.ImageSource.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImageSource.newBuilder() @@ -419,16 +454,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_ImageSource_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p4beta1.ImageSource build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImageSource buildPartial() { - com.google.cloud.vision.v1p4beta1.ImageSource result = new com.google.cloud.vision.v1p4beta1.ImageSource(this); + com.google.cloud.vision.v1p4beta1.ImageSource result = + new com.google.cloud.vision.v1p4beta1.ImageSource(this); result.gcsImageUri_ = gcsImageUri_; result.imageUri_ = imageUri_; onBuilt(); @@ -472,38 +507,39 @@ public com.google.cloud.vision.v1p4beta1.ImageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImageSource) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageSource)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImageSource) other); } else { super.mergeFrom(other); return this; @@ -551,6 +587,8 @@ public Builder mergeFrom( private java.lang.Object gcsImageUri_ = ""; /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -560,13 +598,13 @@ public Builder mergeFrom(
      * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ public java.lang.String getGcsImageUri() { java.lang.Object ref = gcsImageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsImageUri_ = s; return s; @@ -575,6 +613,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -584,15 +624,14 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - public com.google.protobuf.ByteString - getGcsImageUriBytes() { + public com.google.protobuf.ByteString getGcsImageUriBytes() { java.lang.Object ref = gcsImageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsImageUri_ = b; return b; } else { @@ -600,6 +639,8 @@ public java.lang.String getGcsImageUri() { } } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -609,20 +650,22 @@ public java.lang.String getGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUri( - java.lang.String value) { + public Builder setGcsImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsImageUri_ = value; onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -632,15 +675,18 @@ public Builder setGcsImageUri(
      * 
* * string gcs_image_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsImageUri() { - + gcsImageUri_ = getDefaultInstance().getGcsImageUri(); onChanged(); return this; } /** + * + * *
      * **Use `image_uri` instead.**
      * The Google Cloud Storage  URI of the form
@@ -650,16 +696,16 @@ public Builder clearGcsImageUri() {
      * 
* * string gcs_image_uri = 1; + * * @param value The bytes for gcsImageUri to set. * @return This builder for chaining. */ - public Builder setGcsImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsImageUri_ = value; onChanged(); return this; @@ -667,6 +713,8 @@ public Builder setGcsImageUriBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -685,13 +733,13 @@ public Builder setGcsImageUriBytes(
      * 
* * string image_uri = 2; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -700,6 +748,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -718,15 +768,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -734,6 +783,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -752,20 +803,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 2; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -784,15 +837,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 2; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * The URI of the source image. Can be either:
      * 1. A Google Cloud Storage URI of the form
@@ -811,23 +867,23 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 2; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImageSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageSource) private static final com.google.cloud.vision.v1p4beta1.ImageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImageSource(); } @@ -851,16 +907,16 @@ public static com.google.cloud.vision.v1p4beta1.ImageSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java index f0aaf41fd..ddaf2c110 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface ImageSourceOrBuilder extends +public interface ImageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -17,10 +35,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The gcsImageUri. */ java.lang.String getGcsImageUri(); /** + * + * *
    * **Use `image_uri` instead.**
    * The Google Cloud Storage  URI of the form
@@ -30,12 +51,14 @@ public interface ImageSourceOrBuilder extends
    * 
* * string gcs_image_uri = 1; + * * @return The bytes for gcsImageUri. */ - com.google.protobuf.ByteString - getGcsImageUriBytes(); + com.google.protobuf.ByteString getGcsImageUriBytes(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -54,10 +77,13 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * The URI of the source image. Can be either:
    * 1. A Google Cloud Storage URI of the form
@@ -76,8 +102,8 @@ public interface ImageSourceOrBuilder extends
    * 
* * string image_uri = 2; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java similarity index 83% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java index fb590200b..42d3e7f41 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The Google Cloud Storage location for a csv file which preserves a list of
  * ImportProductSetRequests in each line.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource}
  */
-public final class ImportProductSetsGcsSource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsGcsSource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)
     ImportProductSetsGcsSourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsGcsSource.newBuilder() to construct.
   private ImportProductSetsGcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsGcsSource() {
     csvFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsGcsSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsGcsSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private ImportProductSetsGcsSource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            csvFileUri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              csvFileUri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private ImportProductSetsGcsSource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class,
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
   }
 
   public static final int CSV_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object csvFileUri_;
   /**
+   *
+   *
    * 
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -150,6 +172,7 @@ private ImportProductSetsGcsSource(
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ @java.lang.Override @@ -158,14 +181,15 @@ public java.lang.String getCsvFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; } } /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -219,16 +243,15 @@ public java.lang.String getCsvFileUri() {
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -237,6 +260,7 @@ public java.lang.String getCsvFileUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csvFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, csvFileUri_); } @@ -273,15 +296,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) obj; + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other = + (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) obj; - if (!getCsvFileUri() - .equals(other.getCsvFileUri())) return false; + if (!getCsvFileUri().equals(other.getCsvFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,96 +324,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list of
    * ImportProductSetRequests in each line.
@@ -398,21 +429,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)
       com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.class,
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder()
@@ -420,16 +453,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -439,13 +471,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDefaultInstanceForType() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource
+        getDefaultInstanceForType() {
       return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
     }
 
@@ -460,7 +493,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(this);
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource result =
+          new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(this);
       result.csvFileUri_ = csvFileUri_;
       onBuilt();
       return result;
@@ -470,38 +504,39 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,7 +544,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance())
+        return this;
       if (!other.getCsvFileUri().isEmpty()) {
         csvFileUri_ = other.csvFileUri_;
         onChanged();
@@ -533,7 +570,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -545,6 +583,8 @@ public Builder mergeFrom(
 
     private java.lang.Object csvFileUri_ = "";
     /**
+     *
+     *
      * 
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -598,13 +638,13 @@ public Builder mergeFrom(
      * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ public java.lang.String getCsvFileUri() { java.lang.Object ref = csvFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); csvFileUri_ = s; return s; @@ -613,6 +653,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -666,15 +708,14 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - public com.google.protobuf.ByteString - getCsvFileUriBytes() { + public com.google.protobuf.ByteString getCsvFileUriBytes() { java.lang.Object ref = csvFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); csvFileUri_ = b; return b; } else { @@ -682,6 +723,8 @@ public java.lang.String getCsvFileUri() { } } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -735,20 +778,22 @@ public java.lang.String getCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUri( - java.lang.String value) { + public Builder setCsvFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + csvFileUri_ = value; onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -802,15 +847,18 @@ public Builder setCsvFileUri(
      * 
* * string csv_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearCsvFileUri() { - + csvFileUri_ = getDefaultInstance().getCsvFileUri(); onChanged(); return this; } /** + * + * *
      * The Google Cloud Storage URI of the input csv file.
      * The URI must start with `gs://`.
@@ -864,23 +912,23 @@ public Builder clearCsvFileUri() {
      * 
* * string csv_file_uri = 1; + * * @param value The bytes for csvFileUri to set. * @return This builder for chaining. */ - public Builder setCsvFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setCsvFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csvFileUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -890,12 +938,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) - private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource(); } @@ -904,16 +953,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsGcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsGcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsGcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsGcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java similarity index 89% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java index adea37a5b..dd1f2d87c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsGcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ImportProductSetsGcsSourceOrBuilder extends +public interface ImportProductSetsGcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -61,10 +79,13 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The csvFileUri. */ java.lang.String getCsvFileUri(); /** + * + * *
    * The Google Cloud Storage URI of the input csv file.
    * The URI must start with `gs://`.
@@ -118,8 +139,8 @@ public interface ImportProductSetsGcsSourceOrBuilder extends
    * 
* * string csv_file_uri = 1; + * * @return The bytes for csvFileUri. */ - com.google.protobuf.ByteString - getCsvFileUriBytes(); + com.google.protobuf.ByteString getCsvFileUriBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java similarity index 68% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java index c703bb523..54314a249 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The input content for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig} */ -public final class ImportProductSetsInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) ImportProductSetsInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsInputConfig.newBuilder() to construct. private ImportProductSetsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportProductSetsInputConfig() { - } + + private ImportProductSetsInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,34 @@ private ImportProductSetsInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder subBuilder = + null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_) + .toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +103,39 @@ private ImportProductSetsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -123,30 +151,35 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -154,22 +187,27 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_; + return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_; } return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
@@ -178,14 +216,16 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource
    * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
+  public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder
+      getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_;
+      return (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_;
     }
     return com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,10 +237,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
-      output.writeMessage(1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
+      output.writeMessage(
+          1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
     }
     unknownFields.writeTo(output);
   }
@@ -212,8 +252,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -223,18 +264,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) obj;
+    com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other =
+        (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -264,117 +305,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The input content for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.class, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder() @@ -382,16 +433,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,13 +451,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance(); } @@ -422,7 +473,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig(this); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig result = + new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -439,38 +491,39 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) other); } else { super.mergeFrom(other); return this; @@ -478,15 +531,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig other) { - if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -507,7 +564,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -516,12 +575,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -531,16 +590,21 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, + com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -548,12 +612,15 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
      * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -571,6 +638,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource } } /** + * + * *
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -578,7 +647,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
+    public Builder setGcsSource(
+        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -592,6 +662,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSetsG
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -611,6 +683,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -618,12 +692,18 @@ public Builder setGcsSource(
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
+    public Builder mergeGcsSource(
+        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder((com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_
+                != com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource
+                    .getDefaultInstance()) {
+          source_ =
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.newBuilder(
+                      (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -639,6 +719,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.ImportProductSet
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -663,6 +745,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -670,10 +754,13 @@ public Builder clearGcsSource() {
      *
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder getGcsSourceBuilder() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder
+        getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -682,7 +769,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder getG
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     @java.lang.Override
-    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder getGcsSourceOrBuilder() {
+    public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder
+        getGcsSourceOrBuilder() {
       if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) {
         return gcsSourceBuilder_.getMessageOrBuilder();
       } else {
@@ -693,6 +781,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder get
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location for a csv file which preserves a list
      * of ImportProductSetRequests in each line.
@@ -701,26 +791,33 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder get
      * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource,
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder,
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
-          source_ = com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
+          source_ =
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource,
+                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.Builder,
+                com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceOrBuilder>(
                 (com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -730,30 +827,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
-  private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig DEFAULT_INSTANCE;
+  private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig();
   }
 
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstance() {
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsInputConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -765,9 +864,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getDefaultInstanceForType() {
+  public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
index a76404b96..1260a78e3 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsInputConfigOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ImportProductSetsInputConfigOrBuilder extends
+public interface ImportProductSetsInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
    * 
* * .google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location for a csv file which preserves a list
    * of ImportProductSetRequests in each line.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
similarity index 63%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
index 660a4779a..eb8a03560 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Request message for the `ImportProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsRequest} */ -public final class ImportProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) ImportProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportProductSetsRequest.newBuilder() to construct. private ImportProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportProductSetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,38 @@ private ImportProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + parent_ = s; + break; } - inputConfig_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder subBuilder = + null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +109,42 @@ private ImportProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +153,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +189,16 @@ public java.lang.String getParent() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig inputConfig_; /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -169,30 +206,43 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) obj; + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other = + (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ImportProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) com.google.cloud.vision.v1p4beta1.ImportProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.class, + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.newBuilder() @@ -391,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; } @java.lang.Override @@ -437,7 +493,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(this); + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest result = + new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(this); result.parent_ = parent_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -452,38 +509,39 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +577,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +590,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +615,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +640,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,41 +711,61 @@ public Builder setParentBytes( private com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { + public Builder setInputConfig( + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +779,15 @@ public Builder setInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductSet return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -697,17 +801,25 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { + public Builder mergeInputConfig( + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.newBuilder( + inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -719,11 +831,15 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1p4beta1.ImportProductS return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -737,55 +853,73 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { - + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder + getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder, + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest(); } @@ -809,16 +943,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java new file mode 100644 index 000000000..1cc43d821 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface ImportProductSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project in which the ProductSets should be imported.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputConfig field is set. + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputConfig. + */ + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig(); + /** + * + * + *
+   * Required. The input content for the list of requests.
+   * 
+ * + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java similarity index 79% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java index 46f251f6a..5c4a1043e 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsResponse}
  */
-public final class ImportProductSetsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImportProductSetsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
     ImportProductSetsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImportProductSetsResponse.newBuilder() to construct.
   private ImportProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ImportProductSetsResponse() {
     referenceImages_ = java.util.Collections.emptyList();
     statuses_ = java.util.Collections.emptyList();
@@ -31,16 +49,15 @@ private ImportProductSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImportProductSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImportProductSetsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,31 +77,35 @@ private ImportProductSetsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              referenceImages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                referenceImages_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              referenceImages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(),
+                      extensionRegistry));
+              break;
             }
-            referenceImages_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              statuses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                statuses_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              statuses_.add(input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
+              break;
             }
-            statuses_.add(
-                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +113,7 @@ private ImportProductSetsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_);
@@ -105,22 +125,27 @@ private ImportProductSetsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class,
+            com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
   }
 
   public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1;
   private java.util.List referenceImages_;
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
@@ -132,6 +157,8 @@ public java.util.List getRefer return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -139,11 +166,13 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -155,6 +184,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -181,6 +214,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -196,6 +231,8 @@ public java.util.List getStatusesList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -207,11 +244,12 @@ public java.util.List getStatusesList() {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public java.util.List 
-      getStatusesOrBuilderList() {
+  public java.util.List getStatusesOrBuilderList() {
     return statuses_;
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -227,6 +265,8 @@ public int getStatusesCount() {
     return statuses_.size();
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -242,6 +282,8 @@ public com.google.rpc.Status getStatuses(int index) {
     return statuses_.get(index);
   }
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -253,12 +295,12 @@ public com.google.rpc.Status getStatuses(int index) {
    * repeated .google.rpc.Status statuses = 2;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
     return statuses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -270,8 +312,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < referenceImages_.size(); i++) {
       output.writeMessage(1, referenceImages_.get(i));
     }
@@ -288,12 +329,10 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < referenceImages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, referenceImages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i));
     }
     for (int i = 0; i < statuses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, statuses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statuses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -303,17 +342,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other = (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) obj;
+    com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other =
+        (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) obj;
 
-    if (!getReferenceImagesList()
-        .equals(other.getReferenceImagesList())) return false;
-    if (!getStatusesList()
-        .equals(other.getStatusesList())) return false;
+    if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false;
+    if (!getStatusesList().equals(other.getStatusesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -339,96 +377,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
@@ -440,21 +486,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ImportProductSetsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
       com.google.cloud.vision.v1p4beta1.ImportProductSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.class,
+              com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.newBuilder()
@@ -462,18 +510,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReferenceImagesFieldBuilder();
         getStatusesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +541,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -514,7 +562,8 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse result = new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse(this);
+      com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse result =
+          new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse(this);
       int from_bitField0_ = bitField0_;
       if (referenceImagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -542,38 +591,39 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -581,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse.getDefaultInstance())
+        return this;
       if (referenceImagesBuilder_ == null) {
         if (!other.referenceImages_.isEmpty()) {
           if (referenceImages_.isEmpty()) {
@@ -600,9 +651,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResp
             referenceImagesBuilder_ = null;
             referenceImages_ = other.referenceImages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referenceImagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReferenceImagesFieldBuilder() : null;
+            referenceImagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReferenceImagesFieldBuilder()
+                    : null;
           } else {
             referenceImagesBuilder_.addAllMessages(other.referenceImages_);
           }
@@ -626,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImportProductSetsResp
             statusesBuilder_ = null;
             statuses_ = other.statuses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStatusesFieldBuilder() : null;
+            statusesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStatusesFieldBuilder()
+                    : null;
           } else {
             statusesBuilder_.addAllMessages(other.statuses_);
           }
@@ -653,7 +706,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -662,28 +716,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List referenceImages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureReferenceImagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        referenceImages_ = new java.util.ArrayList(referenceImages_);
+        referenceImages_ =
+            new java.util.ArrayList(
+                referenceImages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImagesBuilder_;
+            com.google.cloud.vision.v1p4beta1.ReferenceImage,
+            com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder,
+            com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>
+        referenceImagesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List getReferenceImagesList() { + public java.util.List + getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -691,6 +755,8 @@ public java.util.List getRefer } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -705,6 +771,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -719,6 +787,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -740,6 +810,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -758,6 +830,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -778,6 +852,8 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p4beta1.ReferenceIma return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -799,6 +875,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -817,6 +895,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -835,6 +915,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -845,8 +927,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -854,6 +935,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -871,6 +954,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -888,6 +973,8 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -899,6 +986,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -908,19 +997,22 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -928,6 +1020,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma } } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -935,10 +1029,12 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
@@ -947,26 +1043,34 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference_images that are imported successfully.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -976,19 +1080,22 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private java.util.List statuses_ = - java.util.Collections.emptyList(); + private java.util.List statuses_ = java.util.Collections.emptyList(); + private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusesBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusesBuilder_; /** + * + * *
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1007,6 +1114,8 @@ public java.util.List getStatusesList() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1025,6 +1134,8 @@ public int getStatusesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1043,6 +1154,8 @@ public com.google.rpc.Status getStatuses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1053,8 +1166,7 @@ public com.google.rpc.Status getStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder setStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1068,6 +1180,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1078,8 +1192,7 @@ public Builder setStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder setStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.set(index, builderForValue.build());
@@ -1090,6 +1203,8 @@ public Builder setStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1114,6 +1229,8 @@ public Builder addStatuses(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1124,8 +1241,7 @@ public Builder addStatuses(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status value) {
+    public Builder addStatuses(int index, com.google.rpc.Status value) {
       if (statusesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1139,6 +1255,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1149,8 +1267,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(builderForValue.build());
@@ -1161,6 +1278,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1171,8 +1290,7 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addStatuses(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addStatuses(int index, com.google.rpc.Status.Builder builderForValue) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
         statuses_.add(index, builderForValue.build());
@@ -1183,6 +1301,8 @@ public Builder addStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1193,12 +1313,10 @@ public Builder addStatuses(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public Builder addAllStatuses(
-        java.lang.Iterable values) {
+    public Builder addAllStatuses(java.lang.Iterable values) {
       if (statusesBuilder_ == null) {
         ensureStatusesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, statuses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statuses_);
         onChanged();
       } else {
         statusesBuilder_.addAllMessages(values);
@@ -1206,6 +1324,8 @@ public Builder addAllStatuses(
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1227,6 +1347,8 @@ public Builder clearStatuses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1248,6 +1370,8 @@ public Builder removeStatuses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1258,11 +1382,12 @@ public Builder removeStatuses(int index) {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder getStatusesBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getStatusesBuilder(int index) {
       return getStatusesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1273,14 +1398,16 @@ public com.google.rpc.Status.Builder getStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index) {
       if (statusesBuilder_ == null) {
-        return statuses_.get(index);  } else {
+        return statuses_.get(index);
+      } else {
         return statusesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1291,8 +1418,7 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesOrBuilderList() {
+    public java.util.List getStatusesOrBuilderList() {
       if (statusesBuilder_ != null) {
         return statusesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1300,6 +1426,8 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1311,10 +1439,11 @@ public com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
      * repeated .google.rpc.Status statuses = 2;
      */
     public com.google.rpc.Status.Builder addStatusesBuilder() {
-      return getStatusesFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getStatusesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1325,12 +1454,13 @@ public com.google.rpc.Status.Builder addStatusesBuilder() {
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public com.google.rpc.Status.Builder addStatusesBuilder(
-        int index) {
-      return getStatusesFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addStatusesBuilder(int index) {
+      return getStatusesFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The rpc status for each ImportProductSet request, including both successes
      * and errors.
@@ -1341,27 +1471,27 @@ public com.google.rpc.Status.Builder addStatusesBuilder(
      *
      * repeated .google.rpc.Status statuses = 2;
      */
-    public java.util.List 
-         getStatusesBuilderList() {
+    public java.util.List getStatusesBuilderList() {
       return getStatusesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getStatusesFieldBuilder() {
       if (statusesBuilder_ == null) {
-        statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                statuses_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        statusesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                statuses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         statuses_ = null;
       }
       return statusesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1371,12 +1501,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
   private static final com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse();
   }
@@ -1385,16 +1515,16 @@ public static com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ImportProductSetsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ImportProductSetsResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ImportProductSetsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ImportProductSetsResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1409,6 +1539,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
index 01f166bcc..498ccdf2e 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsResponseOrBuilder.java
@@ -1,22 +1,41 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ImportProductSetsResponseOrBuilder extends
+public interface ImportProductSetsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ImportProductSetsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -25,6 +44,8 @@ public interface ImportProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
@@ -33,25 +54,30 @@ public interface ImportProductSetsResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference_images that are imported successfully.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -62,9 +88,10 @@ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesList();
+  java.util.List getStatusesList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -77,6 +104,8 @@ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    */
   com.google.rpc.Status getStatuses(int index);
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -89,6 +118,8 @@ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    */
   int getStatusesCount();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -99,9 +130,10 @@ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  java.util.List 
-      getStatusesOrBuilderList();
+  java.util.List getStatusesOrBuilderList();
   /**
+   *
+   *
    * 
    * The rpc status for each ImportProductSet request, including both successes
    * and errors.
@@ -112,6 +144,5 @@ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBu
    *
    * repeated .google.rpc.Status statuses = 2;
    */
-  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getStatusesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
similarity index 73%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
index 3cb8c40ce..ccb0fd56b 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/image_annotator.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * The desired input location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { content_ = com.google.protobuf.ByteString.EMPTY; mimeType_ = ""; @@ -26,16 +44,15 @@ private InputConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,37 +71,41 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.GcsSource.Builder subBuilder = null; - if (gcsSource_ != null) { - subBuilder = gcsSource_.toBuilder(); - } - gcsSource_ = input.readMessage(com.google.cloud.vision.v1p4beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsSource_); - gcsSource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.vision.v1p4beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } - mimeType_ = s; - break; - } - case 26: { + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - content_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + case 26: + { + content_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.InputConfig.class, com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.InputConfig.class, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.GcsSource gcsSource_; /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -127,18 +153,25 @@ public boolean hasGcsSource() { return gcsSource_ != null; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource() { - return gcsSource_ == null ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() + : gcsSource_; } /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -153,6 +186,8 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde public static final int CONTENT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString content_; /** + * + * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -162,6 +197,7 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde
    * 
* * bytes content = 3; + * * @return The content. */ @java.lang.Override @@ -172,12 +208,15 @@ public com.google.protobuf.ByteString getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -186,30 +225,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -218,6 +257,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } @@ -250,15 +289,13 @@ public int getSerializedSize() { size = 0; if (gcsSource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, content_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, content_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,22 +305,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.InputConfig other = (com.google.cloud.vision.v1p4beta1.InputConfig) obj; + com.google.cloud.vision.v1p4beta1.InputConfig other = + (com.google.cloud.vision.v1p4beta1.InputConfig) obj; if (hasGcsSource() != other.hasGcsSource()) return false; if (hasGcsSource()) { - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; } - if (!getContent() - .equals(other.getContent())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,118 +343,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.InputConfig) com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.InputConfig.class, com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.InputConfig.class, + com.google.cloud.vision.v1p4beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.InputConfig.newBuilder() @@ -427,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_InputConfig_descriptor; } @java.lang.Override @@ -475,7 +518,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.InputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.InputConfig result = new com.google.cloud.vision.v1p4beta1.InputConfig(this); + com.google.cloud.vision.v1p4beta1.InputConfig result = + new com.google.cloud.vision.v1p4beta1.InputConfig(this); if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { @@ -491,38 +535,39 @@ public com.google.cloud.vision.v1p4beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.InputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.InputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -572,34 +617,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.vision.v1p4beta1.GcsSource, + com.google.cloud.vision.v1p4beta1.GcsSource.Builder, + com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { return gcsSourceBuilder_ != null || gcsSource_ != null; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ public com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource() { if (gcsSourceBuilder_ == null) { - return gcsSource_ == null ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() + : gcsSource_; } else { return gcsSourceBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -620,6 +678,8 @@ public Builder setGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -638,6 +698,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -648,7 +710,9 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) if (gcsSourceBuilder_ == null) { if (gcsSource_ != null) { gcsSource_ = - com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder(gcsSource_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); } else { gcsSource_ = value; } @@ -660,6 +724,8 @@ public Builder mergeGcsSource(com.google.cloud.vision.v1p4beta1.GcsSource value) return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -678,6 +744,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -685,11 +753,13 @@ public Builder clearGcsSource() { * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; */ public com.google.cloud.vision.v1p4beta1.GcsSource.Builder getGcsSourceBuilder() { - + onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -700,11 +770,14 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde if (gcsSourceBuilder_ != null) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return gcsSource_ == null ? - com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() : gcsSource_; + return gcsSource_ == null + ? com.google.cloud.vision.v1p4beta1.GcsSource.getDefaultInstance() + : gcsSource_; } } /** + * + * *
      * The Google Cloud Storage location to read the input from.
      * 
@@ -712,14 +785,17 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> + com.google.cloud.vision.v1p4beta1.GcsSource, + com.google.cloud.vision.v1p4beta1.GcsSource.Builder, + com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsSource, com.google.cloud.vision.v1p4beta1.GcsSource.Builder, com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder>( - getGcsSource(), - getParentForChildren(), - isClean()); + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.GcsSource, + com.google.cloud.vision.v1p4beta1.GcsSource.Builder, + com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); gcsSource_ = null; } return gcsSourceBuilder_; @@ -727,6 +803,8 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -736,6 +814,7 @@ public com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilde
      * 
* * bytes content = 3; + * * @return The content. */ @java.lang.Override @@ -743,6 +822,8 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -752,19 +833,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 3; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** + * + * *
      * File content, represented as a stream of bytes.
      * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -774,10 +858,11 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 3; + * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -785,19 +870,21 @@ public Builder clearContent() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -806,21 +893,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -828,64 +916,71 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * The type of the file. Currently only "application/pdf", "image/tiff" and
      * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.InputConfig) private static final com.google.cloud.vision.v1p4beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.InputConfig(); } @@ -909,16 +1004,16 @@ public static com.google.cloud.vision.v1p4beta1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1028,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java index 9f58b2070..2183cd158 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
* * .google.cloud.vision.v1p4beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.vision.v1p4beta1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from.
    * 
@@ -35,6 +59,8 @@ public interface InputConfigOrBuilder extends com.google.cloud.vision.v1p4beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * File content, represented as a stream of bytes.
    * Note: As with all `bytes` fields, protobuffers use a pure binary
@@ -44,29 +70,35 @@ public interface InputConfigOrBuilder extends
    * 
* * bytes content = 3; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The type of the file. Currently only "application/pdf", "image/tiff" and
    * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java index e0df3f18e..0f7b90551 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRect.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Rectangle determined by min and max `LatLng` pairs.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LatLongRect} */ -public final class LatLongRect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LatLongRect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LatLongRect) LatLongRectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatLongRect.newBuilder() to construct. private LatLongRect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatLongRect() { - } + + private LatLongRect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatLongRect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LatLongRect( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,41 @@ private LatLongRect( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (minLatLng_ != null) { - subBuilder = minLatLng_.toBuilder(); - } - minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minLatLng_); - minLatLng_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.type.LatLng.Builder subBuilder = null; - if (maxLatLng_ != null) { - subBuilder = maxLatLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (minLatLng_ != null) { + subBuilder = minLatLng_.toBuilder(); + } + minLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minLatLng_); + minLatLng_ = subBuilder.buildPartial(); + } + + break; } - maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxLatLng_); - maxLatLng_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (maxLatLng_ != null) { + subBuilder = maxLatLng_.toBuilder(); + } + maxLatLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxLatLng_); + maxLatLng_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +110,39 @@ private LatLongRect( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LatLongRect.class, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p4beta1.LatLongRect.class, + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); } public static final int MIN_LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng minLatLng_; /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ @java.lang.Override @@ -127,11 +150,14 @@ public boolean hasMinLatLng() { return minLatLng_ != null; } /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ @java.lang.Override @@ -139,6 +165,8 @@ public com.google.type.LatLng getMinLatLng() { return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } /** + * + * *
    * Min lat/long pair.
    * 
@@ -153,11 +181,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { public static final int MAX_LAT_LNG_FIELD_NUMBER = 2; private com.google.type.LatLng maxLatLng_; /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ @java.lang.Override @@ -165,11 +196,14 @@ public boolean hasMaxLatLng() { return maxLatLng_ != null; } /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ @java.lang.Override @@ -177,6 +211,8 @@ public com.google.type.LatLng getMaxLatLng() { return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } /** + * + * *
    * Max lat/long pair.
    * 
@@ -189,6 +225,7 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } @@ -218,12 +254,10 @@ public int getSerializedSize() { size = 0; if (minLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +267,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LatLongRect)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LatLongRect other = (com.google.cloud.vision.v1p4beta1.LatLongRect) obj; + com.google.cloud.vision.v1p4beta1.LatLongRect other = + (com.google.cloud.vision.v1p4beta1.LatLongRect) obj; if (hasMinLatLng() != other.hasMinLatLng()) return false; if (hasMinLatLng()) { - if (!getMinLatLng() - .equals(other.getMinLatLng())) return false; + if (!getMinLatLng().equals(other.getMinLatLng())) return false; } if (hasMaxLatLng() != other.hasMaxLatLng()) return false; if (hasMaxLatLng()) { - if (!getMaxLatLng() - .equals(other.getMaxLatLng())) return false; + if (!getMaxLatLng().equals(other.getMaxLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +307,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LatLongRect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LatLongRect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rectangle determined by min and max `LatLng` pairs.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LatLongRect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LatLongRect) com.google.cloud.vision.v1p4beta1.LatLongRectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LatLongRect.class, com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); + com.google.cloud.vision.v1p4beta1.LatLongRect.class, + com.google.cloud.vision.v1p4beta1.LatLongRect.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LatLongRect.newBuilder() @@ -393,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LatLongRect_descriptor; } @java.lang.Override @@ -443,7 +484,8 @@ public com.google.cloud.vision.v1p4beta1.LatLongRect build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LatLongRect buildPartial() { - com.google.cloud.vision.v1p4beta1.LatLongRect result = new com.google.cloud.vision.v1p4beta1.LatLongRect(this); + com.google.cloud.vision.v1p4beta1.LatLongRect result = + new com.google.cloud.vision.v1p4beta1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { @@ -462,38 +504,39 @@ public com.google.cloud.vision.v1p4beta1.LatLongRect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LatLongRect) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LatLongRect)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LatLongRect) other); } else { super.mergeFrom(other); return this; @@ -539,24 +582,31 @@ public Builder mergeFrom( private com.google.type.LatLng minLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> minLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + minLatLngBuilder_; /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ public boolean hasMinLatLng() { return minLatLngBuilder_ != null || minLatLng_ != null; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ public com.google.type.LatLng getMinLatLng() { @@ -567,6 +617,8 @@ public com.google.type.LatLng getMinLatLng() { } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -587,14 +639,15 @@ public Builder setMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
* * .google.type.LatLng min_lat_lng = 1; */ - public Builder setMinLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMinLatLng(com.google.type.LatLng.Builder builderForValue) { if (minLatLngBuilder_ == null) { minLatLng_ = builderForValue.build(); onChanged(); @@ -605,6 +658,8 @@ public Builder setMinLatLng( return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -615,7 +670,7 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { if (minLatLngBuilder_ == null) { if (minLatLng_ != null) { minLatLng_ = - com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(minLatLng_).mergeFrom(value).buildPartial(); } else { minLatLng_ = value; } @@ -627,6 +682,8 @@ public Builder mergeMinLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -645,6 +702,8 @@ public Builder clearMinLatLng() { return this; } /** + * + * *
      * Min lat/long pair.
      * 
@@ -652,11 +711,13 @@ public Builder clearMinLatLng() { * .google.type.LatLng min_lat_lng = 1; */ public com.google.type.LatLng.Builder getMinLatLngBuilder() { - + onChanged(); return getMinLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Min lat/long pair.
      * 
@@ -667,11 +728,12 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { if (minLatLngBuilder_ != null) { return minLatLngBuilder_.getMessageOrBuilder(); } else { - return minLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : minLatLng_; + return minLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : minLatLng_; } } /** + * + * *
      * Min lat/long pair.
      * 
@@ -679,14 +741,14 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { * .google.type.LatLng min_lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMinLatLngFieldBuilder() { if (minLatLngBuilder_ == null) { - minLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMinLatLng(), - getParentForChildren(), - isClean()); + minLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMinLatLng(), getParentForChildren(), isClean()); minLatLng_ = null; } return minLatLngBuilder_; @@ -694,24 +756,31 @@ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { private com.google.type.LatLng maxLatLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> maxLatLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + maxLatLngBuilder_; /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ public boolean hasMaxLatLng() { return maxLatLngBuilder_ != null || maxLatLng_ != null; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ public com.google.type.LatLng getMaxLatLng() { @@ -722,6 +791,8 @@ public com.google.type.LatLng getMaxLatLng() { } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -742,14 +813,15 @@ public Builder setMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
* * .google.type.LatLng max_lat_lng = 2; */ - public Builder setMaxLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setMaxLatLng(com.google.type.LatLng.Builder builderForValue) { if (maxLatLngBuilder_ == null) { maxLatLng_ = builderForValue.build(); onChanged(); @@ -760,6 +832,8 @@ public Builder setMaxLatLng( return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -770,7 +844,7 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { if (maxLatLngBuilder_ == null) { if (maxLatLng_ != null) { maxLatLng_ = - com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); + com.google.type.LatLng.newBuilder(maxLatLng_).mergeFrom(value).buildPartial(); } else { maxLatLng_ = value; } @@ -782,6 +856,8 @@ public Builder mergeMaxLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -800,6 +876,8 @@ public Builder clearMaxLatLng() { return this; } /** + * + * *
      * Max lat/long pair.
      * 
@@ -807,11 +885,13 @@ public Builder clearMaxLatLng() { * .google.type.LatLng max_lat_lng = 2; */ public com.google.type.LatLng.Builder getMaxLatLngBuilder() { - + onChanged(); return getMaxLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * Max lat/long pair.
      * 
@@ -822,11 +902,12 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { if (maxLatLngBuilder_ != null) { return maxLatLngBuilder_.getMessageOrBuilder(); } else { - return maxLatLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : maxLatLng_; + return maxLatLng_ == null ? com.google.type.LatLng.getDefaultInstance() : maxLatLng_; } } /** + * + * *
      * Max lat/long pair.
      * 
@@ -834,21 +915,21 @@ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { * .google.type.LatLng max_lat_lng = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getMaxLatLngFieldBuilder() { if (maxLatLngBuilder_ == null) { - maxLatLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getMaxLatLng(), - getParentForChildren(), - isClean()); + maxLatLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getMaxLatLng(), getParentForChildren(), isClean()); maxLatLng_ = null; } return maxLatLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LatLongRect) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LatLongRect) private static final com.google.cloud.vision.v1p4beta1.LatLongRect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LatLongRect(); } @@ -872,16 +953,16 @@ public static com.google.cloud.vision.v1p4beta1.LatLongRect getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LatLongRect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LatLongRect(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LatLongRect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LatLongRect(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.LatLongRect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java index cdbd20fc7..ce181ed3a 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LatLongRectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LatLongRectOrBuilder extends +public interface LatLongRectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LatLongRect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return Whether the minLatLng field is set. */ boolean hasMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
* * .google.type.LatLng min_lat_lng = 1; + * * @return The minLatLng. */ com.google.type.LatLng getMinLatLng(); /** + * + * *
    * Min lat/long pair.
    * 
@@ -35,24 +59,32 @@ public interface LatLongRectOrBuilder extends com.google.type.LatLngOrBuilder getMinLatLngOrBuilder(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return Whether the maxLatLng field is set. */ boolean hasMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
* * .google.type.LatLng max_lat_lng = 2; + * * @return The maxLatLng. */ com.google.type.LatLng getMaxLatLng(); /** + * + * *
    * Max lat/long pair.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java similarity index 68% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java index c9e148cfe..973d03e9c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A bucketized representation of likelihood, which is intended to give clients
  * highly stable results across model upgrades.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.vision.v1p4beta1.Likelihood}
  */
-public enum Likelihood
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unknown likelihood.
    * 
@@ -22,6 +40,8 @@ public enum Likelihood */ UNKNOWN(0), /** + * + * *
    * It is very unlikely.
    * 
@@ -30,6 +50,8 @@ public enum Likelihood */ VERY_UNLIKELY(1), /** + * + * *
    * It is unlikely.
    * 
@@ -38,6 +60,8 @@ public enum Likelihood */ UNLIKELY(2), /** + * + * *
    * It is possible.
    * 
@@ -46,6 +70,8 @@ public enum Likelihood */ POSSIBLE(3), /** + * + * *
    * It is likely.
    * 
@@ -54,6 +80,8 @@ public enum Likelihood */ LIKELY(4), /** + * + * *
    * It is very likely.
    * 
@@ -65,6 +93,8 @@ public enum Likelihood ; /** + * + * *
    * Unknown likelihood.
    * 
@@ -73,6 +103,8 @@ public enum Likelihood */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
    * It is very unlikely.
    * 
@@ -81,6 +113,8 @@ public enum Likelihood */ public static final int VERY_UNLIKELY_VALUE = 1; /** + * + * *
    * It is unlikely.
    * 
@@ -89,6 +123,8 @@ public enum Likelihood */ public static final int UNLIKELY_VALUE = 2; /** + * + * *
    * It is possible.
    * 
@@ -97,6 +133,8 @@ public enum Likelihood */ public static final int POSSIBLE_VALUE = 3; /** + * + * *
    * It is likely.
    * 
@@ -105,6 +143,8 @@ public enum Likelihood */ public static final int LIKELY_VALUE = 4; /** + * + * *
    * It is very likely.
    * 
@@ -113,7 +153,6 @@ public enum Likelihood */ public static final int VERY_LIKELY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,52 +177,57 @@ public static Likelihood valueOf(int value) { */ public static Likelihood forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return VERY_UNLIKELY; - case 2: return UNLIKELY; - case 3: return POSSIBLE; - case 4: return LIKELY; - case 5: return VERY_LIKELY; - default: return null; + case 0: + return UNKNOWN; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Likelihood> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final Likelihood[] VALUES = values(); - public static Likelihood valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -199,4 +243,3 @@ private Likelihood(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1p4beta1.Likelihood) } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java index f06a7a024..2cfac52fc 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsRequest} */ -public final class ListProductSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductSetsRequest) ListProductSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsRequest.newBuilder() to construct. private ListProductSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductSetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListProductSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,11 +184,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,11 +202,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -184,29 +218,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -250,8 +284,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -264,19 +297,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other = (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other = + (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductSetsRequest) com.google.cloud.vision.v1p4beta1.ListProductSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.newBuilder() @@ -418,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; } @java.lang.Override @@ -462,7 +502,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest result = new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest result = + new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -474,38 +515,39 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -544,7 +587,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,19 +600,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -577,21 +625,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -599,69 +650,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -669,30 +736,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -700,18 +773,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -720,20 +795,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -741,61 +817,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +888,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsRequest) private static final com.google.cloud.vision.v1p4beta1.ListProductSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductSetsRequest(); } @@ -819,16 +902,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java index 123a9b789..ca91b22a9 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductSetsRequestOrBuilder extends +public interface ListProductSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java index 1f6d9f941..78e412970 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response message for the `ListProductSets` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsResponse} */ -public final class ListProductSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductSetsResponse) ListProductSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductSetsResponse.newBuilder() to construct. private ListProductSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductSetsResponse() { productSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListProductSetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productSets_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry)); + break; } - productSets_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListProductSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productSets_ = java.util.Collections.unmodifiableList(productSets_); @@ -94,22 +114,27 @@ private ListProductSetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); } public static final int PRODUCT_SETS_FIELD_NUMBER = 1; private java.util.List productSets_; /** + * + * *
    * List of ProductSets.
    * 
@@ -121,6 +146,8 @@ public java.util.List getProductSe return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -128,11 +155,13 @@ public java.util.List getProductSe * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductSetsOrBuilderList() { return productSets_; } /** + * + * *
    * List of ProductSets.
    * 
@@ -144,6 +173,8 @@ public int getProductSetsCount() { return productSets_.size(); } /** + * + * *
    * List of ProductSets.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { return productSets_.get(index); } /** + * + * *
    * List of ProductSets.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index) { return productSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < productSets_.size(); i++) { output.writeMessage(1, productSets_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < productSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, productSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, productSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other = (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other = + (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) obj; - if (!getProductSetsList() - .equals(other.getProductSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductSetsList().equals(other.getProductSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductSetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductSets` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductSetsResponse) com.google.cloud.vision.v1p4beta1.ListProductSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductSetsResponse result = new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductSetsResponse result = + new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(this); int from_bitField0_ = bitField0_; if (productSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductSetsResponse.getDefaultInstance()) + return this; if (productSetsBuilder_ == null) { if (!other.productSets_.isEmpty()) { if (productSets_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductSetsRespon productSetsBuilder_ = null; productSets_ = other.productSets_; bitField0_ = (bitField0_ & ~0x00000001); - productSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductSetsFieldBuilder() : null; + productSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductSetsFieldBuilder() + : null; } else { productSetsBuilder_.addAllMessages(other.productSets_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List productSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productSets_ = new java.util.ArrayList(productSets_); + productSets_ = + new java.util.ArrayList(productSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + productSetsBuilder_; /** + * + * *
      * List of ProductSets.
      * 
@@ -605,6 +661,8 @@ public java.util.List getProductSe } } /** + * + * *
      * List of ProductSets.
      * 
@@ -619,6 +677,8 @@ public int getProductSetsCount() { } } /** + * + * *
      * List of ProductSets.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index) { } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public Builder setProductSets( - int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { + public Builder setProductSets(int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -672,6 +735,8 @@ public Builder setProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -692,14 +757,15 @@ public Builder addProductSets(com.google.cloud.vision.v1p4beta1.ProductSet value return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public Builder addProductSets( - int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { + public Builder addProductSets(int index, com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -731,6 +799,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -749,6 +819,8 @@ public Builder addProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -759,8 +831,7 @@ public Builder addAllProductSets( java.lang.Iterable values) { if (productSetsBuilder_ == null) { ensureProductSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productSets_); onChanged(); } else { productSetsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllProductSets( return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -785,6 +858,8 @@ public Builder clearProductSets() { return this; } /** + * + * *
      * List of ProductSets.
      * 
@@ -802,17 +877,20 @@ public Builder removeProductSets(int index) { return this; } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilder(int index) { return getProductSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of ProductSets.
      * 
@@ -822,19 +900,22 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetsBuilde public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( int index) { if (productSetsBuilder_ == null) { - return productSets_.get(index); } else { + return productSets_.get(index); + } else { return productSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsOrBuilderList() { + public java.util.List + getProductSetsOrBuilderList() { if (productSetsBuilder_ != null) { return productSetsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +923,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBui } } /** + * + * *
      * List of ProductSets.
      * 
@@ -849,42 +932,48 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBui * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder() { - return getProductSetsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); + return getProductSetsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder( - int index) { - return getProductSetsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilder(int index) { + return getProductSetsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance()); } /** + * + * *
      * List of ProductSets.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - public java.util.List - getProductSetsBuilderList() { + public java.util.List + getProductSetsBuilderList() { return getProductSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetsFieldBuilder() { if (productSetsBuilder_ == null) { - productSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - productSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + productSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); productSets_ = null; } return productSetsBuilder_; @@ -892,19 +981,21 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder addProductSetsBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1004,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1027,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsResponse) private static final com.google.cloud.vision.v1p4beta1.ListProductSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductSetsResponse(); } @@ -1016,16 +1115,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java index d7fb99296..4c029ec87 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductSetsResponseOrBuilder extends +public interface ListProductSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - java.util.List - getProductSetsList(); + java.util.List getProductSetsList(); /** + * + * *
    * List of ProductSets.
    * 
@@ -25,6 +44,8 @@ public interface ListProductSetsResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSets(int index); /** + * + * *
    * List of ProductSets.
    * 
@@ -33,43 +54,51 @@ public interface ListProductSetsResponseOrBuilder extends */ int getProductSetsCount(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - java.util.List + java.util.List getProductSetsOrBuilderList(); /** + * + * *
    * List of ProductSets.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSet product_sets = 1; */ - com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java index 5a3f3996f..853bffbfc 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest} */ -public final class ListProductsInProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) ListProductsInProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetRequest.newBuilder() to construct. - private ListProductsInProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetRequest() { name_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private ListProductsInProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +105,43 @@ private ListProductsInProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -123,31 +150,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -158,11 +187,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +205,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +221,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -252,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,134 +334,145 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,13 +486,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance(); } @@ -464,7 +508,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest result = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,46 +521,50 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -546,7 +595,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +609,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,22 +635,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -603,72 +661,88 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +750,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +787,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +809,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +831,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,30 +902,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,9 +939,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java index d85881897..0eb4691bf 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsInProductSetRequestOrBuilder extends +public interface ListProductsInProductSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java index 87c18456e..654a94b31 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response message for the `ListProductsInProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse} */ -public final class ListProductsInProductSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsInProductSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) ListProductsInProductSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsInProductSetResponse.newBuilder() to construct. - private ListProductsInProductSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProductsInProductSetResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsInProductSetResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListProductsInProductSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsInProductSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsInProductSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,31 @@ private ListProductsInProductSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListProductsInProductSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +114,27 @@ private ListProductsInProductSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * The list of Products.
    * 
@@ -121,6 +146,8 @@ public java.util.List getProductsList return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -128,11 +155,13 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * The list of Products.
    * 
@@ -144,6 +173,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * The list of Products.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * The list of Products.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other = + (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +326,147 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProductsInProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +482,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +505,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse build( @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse result = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse result = + new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +526,51 @@ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse)other); + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse other) { + if (other + == com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + .getDefaultInstance()) return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsInProduct productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -567,7 +621,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +632,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * The list of Products.
      * 
@@ -605,6 +668,8 @@ public java.util.List getProductsList } } /** + * + * *
      * The list of Products.
      * 
@@ -619,6 +684,8 @@ public int getProductsCount() { } } /** + * + * *
      * The list of Products.
      * 
@@ -633,14 +700,15 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +722,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -672,6 +742,8 @@ public Builder setProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -692,14 +764,15 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +786,15 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +805,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -749,6 +825,8 @@ public Builder addProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -759,8 +837,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +845,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * The list of Products.
      * 
@@ -785,6 +864,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * The list of Products.
      * 
@@ -802,39 +883,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +928,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * The list of Products.
      * 
@@ -849,42 +937,48 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** + * + * *
      * The list of Products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +986,21 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1009,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1032,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1106,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) - private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse(); } - public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsInProductSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsInProductSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsInProductSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsInProductSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1143,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java index f3bf90041..44999f2cf 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsInProductSetResponseOrBuilder extends +public interface ListProductsInProductSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * The list of Products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Product getProducts(int index); /** + * + * *
    * The list of Products.
    * 
@@ -33,43 +54,51 @@ public interface ListProductsInProductSetResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** + * + * *
    * The list of Products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java index a9f76c9e5..47f8808f3 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsRequest} */ -public final class ListProductsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsRequest) ListProductsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsRequest.newBuilder() to construct. private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProductsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,11 +204,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,29 +220,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -217,6 +251,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -252,8 +286,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -266,19 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsRequest other = (com.google.cloud.vision.v1p4beta1.ListProductsRequest) obj; + com.google.cloud.vision.v1p4beta1.ListProductsRequest other = + (com.google.cloud.vision.v1p4beta1.ListProductsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,117 +333,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsRequest) com.google.cloud.vision.v1p4beta1.ListProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsRequest.class, + com.google.cloud.vision.v1p4beta1.ListProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductsRequest.newBuilder() @@ -420,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; } @java.lang.Override @@ -464,7 +504,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsRequest result = new com.google.cloud.vision.v1p4beta1.ListProductsRequest(this); + com.google.cloud.vision.v1p4beta1.ListProductsRequest result = + new com.google.cloud.vision.v1p4beta1.ListProductsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +517,39 @@ public com.google.cloud.vision.v1p4beta1.ListProductsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsRequest) other); } else { super.mergeFrom(other); return this; @@ -515,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -546,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +602,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -580,22 +628,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -603,72 +654,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +743,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,18 +780,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -727,20 +802,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -748,61 +824,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsRequest) private static final com.google.cloud.vision.v1p4beta1.ListProductsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsRequest(); } @@ -826,16 +909,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +933,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java index 900fcf86f..090524e9e 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsRequestOrBuilder extends +public interface ListProductsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java index ac7a78e41..cfb0d92f4 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response message for the `ListProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsResponse} */ -public final class ListProductsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListProductsResponse) ListProductsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProductsResponse.newBuilder() to construct. private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProductsResponse() { products_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListProductsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProductsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListProductsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListProductsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - products_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + products_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); + break; } - products_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListProductsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { products_ = java.util.Collections.unmodifiableList(products_); @@ -94,22 +113,27 @@ private ListProductsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); } public static final int PRODUCTS_FIELD_NUMBER = 1; private java.util.List products_; /** + * + * *
    * List of products.
    * 
@@ -121,6 +145,8 @@ public java.util.List getProductsList return products_; } /** + * + * *
    * List of products.
    * 
@@ -128,11 +154,13 @@ public java.util.List getProductsList * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public java.util.List + public java.util.List getProductsOrBuilderList() { return products_; } /** + * + * *
    * List of products.
    * 
@@ -144,6 +172,8 @@ public int getProductsCount() { return products_.size(); } /** + * + * *
    * List of products.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { return products_.get(index); } /** + * + * *
    * List of products.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { return products_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < products_.size(); i++) { output.writeMessage(1, products_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < products_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, products_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListProductsResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListProductsResponse other = (com.google.cloud.vision.v1p4beta1.ListProductsResponse) obj; + com.google.cloud.vision.v1p4beta1.ListProductsResponse other = + (com.google.cloud.vision.v1p4beta1.ListProductsResponse) obj; - if (!getProductsList() - .equals(other.getProductsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListProductsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListProductsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListProductsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListProductsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListProductsResponse) com.google.cloud.vision.v1p4beta1.ListProductsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListProductsResponse.class, + com.google.cloud.vision.v1p4beta1.ListProductsResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListProductsResponse.newBuilder() @@ -411,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; } @java.lang.Override @@ -458,7 +500,8 @@ public com.google.cloud.vision.v1p4beta1.ListProductsResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListProductsResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListProductsResponse result = new com.google.cloud.vision.v1p4beta1.ListProductsResponse(this); + com.google.cloud.vision.v1p4beta1.ListProductsResponse result = + new com.google.cloud.vision.v1p4beta1.ListProductsResponse(this); int from_bitField0_ = bitField0_; if (productsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +521,39 @@ public com.google.cloud.vision.v1p4beta1.ListProductsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListProductsResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListProductsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ListProductsResponse.getDefaultInstance()) + return this; if (productsBuilder_ == null) { if (!other.products_.isEmpty()) { if (products_.isEmpty()) { @@ -536,9 +581,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListProductsResponse productsBuilder_ = null; products_ = other.products_; bitField0_ = (bitField0_ & ~0x00000001); - productsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductsFieldBuilder() : null; + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; } else { productsBuilder_.addAllMessages(other.products_); } @@ -567,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListProductsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListProductsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +623,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List products_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { products_ = new java.util.ArrayList(products_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productsBuilder_; + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + productsBuilder_; /** + * + * *
      * List of products.
      * 
@@ -605,6 +659,8 @@ public java.util.List getProductsList } } /** + * + * *
      * List of products.
      * 
@@ -619,6 +675,8 @@ public int getProductsCount() { } } /** + * + * *
      * List of products.
      * 
@@ -633,14 +691,15 @@ public com.google.cloud.vision.v1p4beta1.Product getProducts(int index) { } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder setProducts( - int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder setProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +713,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -672,6 +733,8 @@ public Builder setProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -692,14 +755,15 @@ public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts( - int index, com.google.cloud.vision.v1p4beta1.Product value) { + public Builder addProducts(int index, com.google.cloud.vision.v1p4beta1.Product value) { if (productsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +777,15 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public Builder addProducts( - com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder addProducts(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productsBuilder_ == null) { ensureProductsIsMutable(); products_.add(builderForValue.build()); @@ -731,6 +796,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -749,6 +816,8 @@ public Builder addProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -759,8 +828,7 @@ public Builder addAllProducts( java.lang.Iterable values) { if (productsBuilder_ == null) { ensureProductsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, products_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); onChanged(); } else { productsBuilder_.addAllMessages(values); @@ -768,6 +836,8 @@ public Builder addAllProducts( return this; } /** + * + * *
      * List of products.
      * 
@@ -785,6 +855,8 @@ public Builder clearProducts() { return this; } /** + * + * *
      * List of products.
      * 
@@ -802,39 +874,44 @@ public Builder removeProducts(int index) { return this; } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Product.Builder getProductsBuilder(int index) { return getProductsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index) { if (productsBuilder_ == null) { - return products_.get(index); } else { + return products_.get(index); + } else { return productsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsOrBuilderList() { + public java.util.List + getProductsOrBuilderList() { if (productsBuilder_ != null) { return productsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +919,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( } } /** + * + * *
      * List of products.
      * 
@@ -849,42 +928,48 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder() { - return getProductsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( - int index) { - return getProductsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance()); } /** + * + * *
      * List of products.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - public java.util.List - getProductsBuilderList() { + public java.util.List + getProductsBuilderList() { return getProductsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductsFieldBuilder() { if (productsBuilder_ == null) { - productsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - products_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); products_ = null; } return productsBuilder_; @@ -892,19 +977,21 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder addProductsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1000,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1023,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListProductsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsResponse) private static final com.google.cloud.vision.v1p4beta1.ListProductsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListProductsResponse(); } @@ -1016,16 +1111,16 @@ public static com.google.cloud.vision.v1p4beta1.ListProductsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProductsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProductsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProductsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ListProductsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java index 5844ea2a1..064f53dd1 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListProductsResponseOrBuilder extends +public interface ListProductsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListProductsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List - getProductsList(); + java.util.List getProductsList(); /** + * + * *
    * List of products.
    * 
@@ -25,6 +44,8 @@ public interface ListProductsResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Product getProducts(int index); /** + * + * *
    * List of products.
    * 
@@ -33,43 +54,51 @@ public interface ListProductsResponseOrBuilder extends */ int getProductsCount(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - java.util.List + java.util.List getProductsOrBuilderList(); /** + * + * *
    * List of products.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Product products = 1; */ - com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java index 45e744070..5eba823a6 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesRequest} */ -public final class ListReferenceImagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) ListReferenceImagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesRequest.newBuilder() to construct. private ListReferenceImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListReferenceImagesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListReferenceImagesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,11 +186,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +204,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -180,6 +213,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -188,14 +222,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -203,16 +238,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -221,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -256,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) obj; + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other = + (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +337,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.class, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance(); } @@ -468,7 +509,8 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest result = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(this); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest result = + new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -480,38 +522,39 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +562,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,20 +608,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -584,22 +634,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -607,72 +660,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -680,30 +749,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -711,6 +786,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -718,13 +795,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -733,6 +810,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -740,15 +819,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -756,6 +834,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -763,20 +843,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -784,15 +866,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This is the value
      * of `nextPageToken` returned in a previous reference image list request.
@@ -800,23 +885,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +911,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) - private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest(); } @@ -840,16 +926,16 @@ public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java index 421a08033..a8a4fb83a 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListReferenceImagesRequestOrBuilder extends +public interface ListReferenceImagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -49,10 +79,13 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This is the value
    * of `nextPageToken` returned in a previous reference image list request.
@@ -60,8 +93,8 @@ public interface ListReferenceImagesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java index 3edd79740..2f5999148 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Response message for the `ListReferenceImages` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesResponse} */ -public final class ListReferenceImagesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListReferenceImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) ListReferenceImagesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListReferenceImagesResponse.newBuilder() to construct. private ListReferenceImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListReferenceImagesResponse() { referenceImages_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListReferenceImagesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListReferenceImagesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListReferenceImagesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,38 @@ private ListReferenceImagesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + referenceImages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + referenceImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), + extensionRegistry)); + break; } - referenceImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.ReferenceImage.parser(), extensionRegistry)); - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +111,7 @@ private ListReferenceImagesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { referenceImages_ = java.util.Collections.unmodifiableList(referenceImages_); @@ -99,22 +120,27 @@ private ListReferenceImagesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); } public static final int REFERENCE_IMAGES_FIELD_NUMBER = 1; private java.util.List referenceImages_; /** + * + * *
    * The list of reference images.
    * 
@@ -126,6 +152,8 @@ public java.util.List getRefer return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -133,11 +161,13 @@ public java.util.List getRefer * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReferenceImagesOrBuilderList() { return referenceImages_; } /** + * + * *
    * The list of reference images.
    * 
@@ -149,6 +179,8 @@ public int getReferenceImagesCount() { return referenceImages_.size(); } /** + * + * *
    * The list of reference images.
    * 
@@ -160,6 +192,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i return referenceImages_.get(index); } /** + * + * *
    * The list of reference images.
    * 
@@ -175,11 +209,14 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,11 +227,14 @@ public int getPageSize() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -203,29 +243,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,6 +274,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < referenceImages_.size(); i++) { output.writeMessage(1, referenceImages_.get(i)); } @@ -266,12 +306,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < referenceImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, referenceImages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, referenceImages_.get(i)); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -284,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) obj; + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other = + (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) obj; - if (!getReferenceImagesList() - .equals(other.getReferenceImagesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getReferenceImagesList().equals(other.getReferenceImagesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,117 +358,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `ListReferenceImages` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ListReferenceImagesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.class, + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.newBuilder() @@ -440,17 +486,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReferenceImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,13 +514,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance(); } @@ -489,7 +536,8 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse buildPartial() { - com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse result = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(this); + com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse result = + new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(this); int from_bitField0_ = bitField0_; if (referenceImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -510,38 +558,39 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) other); } else { super.mergeFrom(other); return this; @@ -549,7 +598,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse other) { - if (other == com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse.getDefaultInstance()) + return this; if (referenceImagesBuilder_ == null) { if (!other.referenceImages_.isEmpty()) { if (referenceImages_.isEmpty()) { @@ -568,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ListReferenceImagesRe referenceImagesBuilder_ = null; referenceImages_ = other.referenceImages_; bitField0_ = (bitField0_ & ~0x00000001); - referenceImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReferenceImagesFieldBuilder() : null; + referenceImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReferenceImagesFieldBuilder() + : null; } else { referenceImagesBuilder_.addAllMessages(other.referenceImages_); } @@ -602,7 +654,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,28 +665,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List referenceImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReferenceImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - referenceImages_ = new java.util.ArrayList(referenceImages_); + referenceImages_ = + new java.util.ArrayList( + referenceImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> referenceImagesBuilder_; + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + referenceImagesBuilder_; /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List getReferenceImagesList() { + public java.util.List + getReferenceImagesList() { if (referenceImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(referenceImages_); } else { @@ -640,6 +704,8 @@ public java.util.List getRefer } } /** + * + * *
      * The list of reference images.
      * 
@@ -654,6 +720,8 @@ public int getReferenceImagesCount() { } } /** + * + * *
      * The list of reference images.
      * 
@@ -668,6 +736,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int i } } /** + * + * *
      * The list of reference images.
      * 
@@ -689,6 +759,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -707,6 +779,8 @@ public Builder setReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -727,6 +801,8 @@ public Builder addReferenceImages(com.google.cloud.vision.v1p4beta1.ReferenceIma return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -748,6 +824,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -766,6 +844,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -784,6 +864,8 @@ public Builder addReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -794,8 +876,7 @@ public Builder addAllReferenceImages( java.lang.Iterable values) { if (referenceImagesBuilder_ == null) { ensureReferenceImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, referenceImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceImages_); onChanged(); } else { referenceImagesBuilder_.addAllMessages(values); @@ -803,6 +884,8 @@ public Builder addAllReferenceImages( return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -820,6 +903,8 @@ public Builder clearReferenceImages() { return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -837,6 +922,8 @@ public Builder removeReferenceImages(int index) { return this; } /** + * + * *
      * The list of reference images.
      * 
@@ -848,6 +935,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag return getReferenceImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of reference images.
      * 
@@ -857,19 +946,22 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( int index) { if (referenceImagesBuilder_ == null) { - return referenceImages_.get(index); } else { + return referenceImages_.get(index); + } else { return referenceImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesOrBuilderList() { + public java.util.List + getReferenceImagesOrBuilderList() { if (referenceImagesBuilder_ != null) { return referenceImagesBuilder_.getMessageOrBuilderList(); } else { @@ -877,6 +969,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma } } /** + * + * *
      * The list of reference images.
      * 
@@ -884,10 +978,12 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder() { - return getReferenceImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
@@ -896,26 +992,34 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImagesBuilder( int index) { - return getReferenceImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); + return getReferenceImagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()); } /** + * + * *
      * The list of reference images.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - public java.util.List - getReferenceImagesBuilderList() { + public java.util.List + getReferenceImagesBuilderList() { return getReferenceImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder> getReferenceImagesFieldBuilder() { if (referenceImagesBuilder_ == null) { - referenceImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ReferenceImage, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( + referenceImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ReferenceImage, + com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder, + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder>( referenceImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -925,13 +1029,16 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder addReferenceImag return referenceImagesBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -939,30 +1046,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of items to return. Default 10, maximum 100.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -970,18 +1083,20 @@ public Builder clearPageSize() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -990,20 +1105,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1011,61 +1127,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next_page_token returned from a previous List request, if any.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +1198,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) - private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse(); } @@ -1089,16 +1213,16 @@ public static com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReferenceImagesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReferenceImagesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReferenceImagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReferenceImagesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java index 0460633c3..99ca65159 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ListReferenceImagesResponseOrBuilder extends +public interface ListReferenceImagesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List - getReferenceImagesList(); + java.util.List getReferenceImagesList(); /** + * + * *
    * The list of reference images.
    * 
@@ -25,6 +44,8 @@ public interface ListReferenceImagesResponseOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImages(int index); /** + * + * *
    * The list of reference images.
    * 
@@ -33,51 +54,62 @@ public interface ListReferenceImagesResponseOrBuilder extends */ int getReferenceImagesCount(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - java.util.List + java.util.List getReferenceImagesOrBuilderList(); /** + * + * *
    * The list of reference images.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ReferenceImage reference_images = 1; */ - com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index); /** + * + * *
    * The maximum number of items to return. Default 10, maximum 100.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next_page_token returned from a previous List request, if any.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java index d1e2d9eaf..5783f6bfe 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Set of detected objects with bounding boxes.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation} */ -public final class LocalizedObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalizedObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) LocalizedObjectAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalizedObjectAnnotation.newBuilder() to construct. private LocalizedObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocalizedObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -27,16 +45,15 @@ private LocalizedObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocalizedObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,49 +72,55 @@ private LocalizedObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 42: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + name_ = s; + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 37: + { + score_ = input.readFloat(); + break; } + case 42: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +128,39 @@ private LocalizedObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -141,29 +169,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -174,6 +202,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -181,6 +211,7 @@ public java.lang.String getMid() {
    * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -189,14 +220,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -204,16 +236,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -224,11 +255,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -237,29 +271,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -270,11 +304,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -285,11 +322,14 @@ public float getScore() { public static final int BOUNDING_POLY_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -297,18 +337,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
@@ -321,6 +368,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +380,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -368,12 +415,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,26 +428,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other = (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) obj; + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other = + (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -422,8 +463,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); if (hasBoundingPoly()) { hash = (37 * hash) + BOUNDING_POLY_FIELD_NUMBER; hash = (53 * hash) + getBoundingPoly().hashCode(); @@ -434,117 +474,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of detected objects with bounding boxes.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.newBuilder() @@ -552,16 +602,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocalizedObjectAnnotation_descriptor; } @java.lang.Override @@ -604,7 +653,8 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation result = new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(this); + com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation result = + new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -622,38 +672,39 @@ public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) other); } else { super.mergeFrom(other); return this; @@ -661,7 +712,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation.getDefaultInstance()) + return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -699,7 +751,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,18 +764,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -731,20 +786,21 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -752,54 +808,61 @@ public java.lang.String getMid() { } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -807,6 +870,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -814,13 +879,13 @@ public Builder setMidBytes(
      * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -829,6 +894,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -836,15 +903,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -852,6 +918,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -859,20 +927,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -880,15 +950,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -896,16 +969,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -913,18 +986,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -933,20 +1008,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -954,66 +1030,76 @@ public java.lang.String getName() { } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1021,30 +1107,36 @@ public float getScore() { return score_; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -1052,34 +1144,47 @@ public Builder clearScore() { private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1100,6 +1205,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1118,6 +1225,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1128,7 +1237,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -1140,6 +1251,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1158,6 +1271,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1165,11 +1280,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1180,11 +1297,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
      * Image region to which this object belongs. This must be populated.
      * 
@@ -1192,21 +1312,24 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1339,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) private static final com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation(); } @@ -1230,16 +1353,16 @@ public static com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalizedObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocalizedObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java index f73265e41..655a25db6 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocalizedObjectAnnotationOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LocalizedObjectAnnotationOrBuilder extends +public interface LocalizedObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
    * Object ID that should align with EntityAnnotation mid.
    * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -35,10 +58,13 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -46,60 +72,76 @@ public interface LocalizedObjectAnnotationOrBuilder extends
    * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Object name, expressed in its `language_code` language.
    * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Score of the result. Range [0, 1].
    * 
* * float score = 4; + * * @return The score. */ float getScore(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * Image region to which this object belongs. This must be populated.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java index 7f8849a10..a96ef4372 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfo.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Detected entity location information.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocationInfo} */ -public final class LocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.LocationInfo) LocationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationInfo.newBuilder() to construct. private LocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationInfo() { - } + + private LocationInfo() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,27 @@ private LocationInfo( case 0: done = true; break; - case 10: { - com.google.type.LatLng.Builder subBuilder = null; - if (latLng_ != null) { - subBuilder = latLng_.toBuilder(); + case 10: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; } - latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latLng_); - latLng_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +96,39 @@ private LocationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocationInfo.class, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p4beta1.LocationInfo.class, + com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); } public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -114,11 +136,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -126,6 +151,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * lat/long location coordinates.
    * 
@@ -138,6 +165,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -164,8 +191,7 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.LocationInfo)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.LocationInfo other = (com.google.cloud.vision.v1p4beta1.LocationInfo) obj; + com.google.cloud.vision.v1p4beta1.LocationInfo other = + (com.google.cloud.vision.v1p4beta1.LocationInfo) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +233,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.LocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.LocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected entity location information.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.LocationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.LocationInfo) com.google.cloud.vision.v1p4beta1.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.LocationInfo.class, com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); + com.google.cloud.vision.v1p4beta1.LocationInfo.class, + com.google.cloud.vision.v1p4beta1.LocationInfo.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.LocationInfo.newBuilder() @@ -326,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_LocationInfo_descriptor; } @java.lang.Override @@ -370,7 +404,8 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.LocationInfo buildPartial() { - com.google.cloud.vision.v1p4beta1.LocationInfo result = new com.google.cloud.vision.v1p4beta1.LocationInfo(this); + com.google.cloud.vision.v1p4beta1.LocationInfo result = + new com.google.cloud.vision.v1p4beta1.LocationInfo(this); if (latLngBuilder_ == null) { result.latLng_ = latLng_; } else { @@ -384,38 +419,39 @@ public com.google.cloud.vision.v1p4beta1.LocationInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.LocationInfo) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.LocationInfo)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.LocationInfo) other); } else { super.mergeFrom(other); return this; @@ -458,24 +494,31 @@ public Builder mergeFrom( private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return latLngBuilder_ != null || latLng_ != null; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -486,6 +529,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -506,14 +551,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); onChanged(); @@ -524,6 +570,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -533,8 +581,7 @@ public Builder setLatLng( public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { if (latLng_ != null) { - latLng_ = - com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); } else { latLng_ = value; } @@ -546,6 +593,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -564,6 +613,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -571,11 +622,13 @@ public Builder clearLatLng() { * .google.type.LatLng lat_lng = 1; */ public com.google.type.LatLng.Builder getLatLngBuilder() { - + onChanged(); return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -586,11 +639,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * lat/long location coordinates.
      * 
@@ -598,21 +652,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.LocationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocationInfo) private static final com.google.cloud.vision.v1p4beta1.LocationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.LocationInfo(); } @@ -636,16 +690,16 @@ public static com.google.cloud.vision.v1p4beta1.LocationInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocationInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +714,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.LocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java index f186f7fc0..b7044f9bc 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationInfoOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface LocationInfoOrBuilder extends +public interface LocationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.LocationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * lat/long location coordinates.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java index 8a6062a4a..1d29d9c7b 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertex.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.NormalizedVertex}
  */
-public final class NormalizedVertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.NormalizedVertex)
     NormalizedVertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NormalizedVertex.newBuilder() to construct.
   private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private NormalizedVertex() {
-  }
+
+  private NormalizedVertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NormalizedVertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NormalizedVertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,23 +70,23 @@ private NormalizedVertex(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,34 +94,39 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.NormalizedVertex.class, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.vision.v1p4beta1.NormalizedVertex.class,
+            com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -116,11 +137,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -129,6 +153,7 @@ public float getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,19 +195,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.NormalizedVertex other = (com.google.cloud.vision.v1p4beta1.NormalizedVertex) obj; + com.google.cloud.vision.v1p4beta1.NormalizedVertex other = + (com.google.cloud.vision.v1p4beta1.NormalizedVertex) obj; - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -198,107 +219,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.NormalizedVertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.NormalizedVertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -307,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.NormalizedVertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.NormalizedVertex)
       com.google.cloud.vision.v1p4beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.NormalizedVertex.class, com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.vision.v1p4beta1.NormalizedVertex.class,
+              com.google.cloud.vision.v1p4beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.NormalizedVertex.newBuilder()
@@ -329,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -371,7 +398,8 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.vision.v1p4beta1.NormalizedVertex result = new com.google.cloud.vision.v1p4beta1.NormalizedVertex(this);
+      com.google.cloud.vision.v1p4beta1.NormalizedVertex result =
+          new com.google.cloud.vision.v1p4beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -382,38 +410,39 @@ public com.google.cloud.vision.v1p4beta1.NormalizedVertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -421,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.NormalizedVertex.getDefaultInstance())
+        return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -447,7 +477,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -457,13 +488,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -471,42 +505,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -514,37 +557,43 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -554,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.NormalizedVertex) private static final com.google.cloud.vision.v1p4beta1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.NormalizedVertex(); } @@ -568,16 +617,16 @@ public static com.google.cloud.vision.v1p4beta1.NormalizedVertex getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedVertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedVertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000..fcdcfed07 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java index 87edb7fc7..739315313 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadata.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Contains metadata for the BatchAnnotateImages operation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,50 @@ private OperationMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + state_ = rawValue; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +121,41 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OperationMetadata.class, com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p4beta1.OperationMetadata.class, + com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); } /** + * + * *
    * Batch operation states.
    * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.OperationMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -137,6 +164,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is received.
      * 
@@ -145,6 +174,8 @@ public enum State */ CREATED(1), /** + * + * *
      * Request is actively being processed.
      * 
@@ -153,6 +184,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The batch processing is done.
      * 
@@ -161,6 +194,8 @@ public enum State */ DONE(3), /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -172,6 +207,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -180,6 +217,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is received.
      * 
@@ -188,6 +227,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * Request is actively being processed.
      * 
@@ -196,6 +237,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The batch processing is done.
      * 
@@ -204,6 +247,8 @@ public enum State */ public static final int DONE_VALUE = 3; /** + * + * *
      * The batch processing was cancelled.
      * 
@@ -212,7 +257,6 @@ public enum State */ public static final int CANCELLED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -237,51 +281,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATED; - case 2: return RUNNING; - case 3: return DONE; - case 4: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.OperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.OperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -301,38 +349,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -340,11 +402,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ @java.lang.Override @@ -352,6 +417,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the batch request was received.
    * 
@@ -366,11 +433,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -378,11 +448,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -390,6 +463,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the operation result was last updated.
    * 
@@ -402,6 +477,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,9 +489,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (createTime_ != null) { @@ -433,17 +510,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.vision.v1p4beta1.OperationMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,23 +529,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.OperationMetadata other = (com.google.cloud.vision.v1p4beta1.OperationMetadata) obj; + com.google.cloud.vision.v1p4beta1.OperationMetadata other = + (com.google.cloud.vision.v1p4beta1.OperationMetadata) obj; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -498,117 +573,126 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains metadata for the BatchAnnotateImages operation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.OperationMetadata) com.google.cloud.vision.v1p4beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OperationMetadata.class, com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); + com.google.cloud.vision.v1p4beta1.OperationMetadata.class, + com.google.cloud.vision.v1p4beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.OperationMetadata.newBuilder() @@ -616,16 +700,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,9 +730,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -668,7 +751,8 @@ public com.google.cloud.vision.v1p4beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata buildPartial() { - com.google.cloud.vision.v1p4beta1.OperationMetadata result = new com.google.cloud.vision.v1p4beta1.OperationMetadata(this); + com.google.cloud.vision.v1p4beta1.OperationMetadata result = + new com.google.cloud.vision.v1p4beta1.OperationMetadata(this); result.state_ = state_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -688,38 +772,39 @@ public com.google.cloud.vision.v1p4beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -727,7 +812,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.OperationMetadata other) { - if (other == com.google.cloud.vision.v1p4beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -756,7 +842,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,51 +855,67 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.OperationMetadata.State result = + com.google.cloud.vision.v1p4beta1.OperationMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.vision.v1p4beta1.OperationMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -820,21 +923,24 @@ public Builder setState(com.google.cloud.vision.v1p4beta1.OperationMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Current state of the batch operation.
      * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -842,34 +948,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -890,14 +1009,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
* * .google.protobuf.Timestamp create_time = 5; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -908,6 +1028,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -918,7 +1040,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -930,6 +1052,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -948,6 +1072,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -955,11 +1081,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -970,11 +1098,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the batch request was received.
      * 
@@ -982,14 +1113,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -997,34 +1131,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1045,14 +1192,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 6; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1063,6 +1211,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1073,7 +1223,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1085,6 +1235,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1103,6 +1255,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1110,11 +1264,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 6; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1125,11 +1281,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the operation result was last updated.
      * 
@@ -1137,21 +1296,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1161,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OperationMetadata) private static final com.google.cloud.vision.v1p4beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.OperationMetadata(); } @@ -1175,16 +1337,16 @@ public static com.google.cloud.vision.v1p4beta1.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java index 3bb865124..4b44fd177 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OperationMetadataOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Current state of the batch operation.
    * 
* * .google.cloud.vision.v1p4beta1.OperationMetadata.State state = 1; + * * @return The state. */ com.google.cloud.vision.v1p4beta1.OperationMetadata.State getState(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
* * .google.protobuf.Timestamp create_time = 5; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the batch request was received.
    * 
@@ -54,24 +84,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the operation result was last updated.
    * 
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java index 6bdb7e150..5e6d44b85 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * The desired output location and metadata.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.GcsDestination.Builder subBuilder = null; - if (gcsDestination_ != null) { - subBuilder = gcsDestination_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = subBuilder.buildPartial(); + } + + break; } - gcsDestination_ = input.readMessage(com.google.cloud.vision.v1p4beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gcsDestination_); - gcsDestination_ = subBuilder.buildPartial(); + case 16: + { + batchSize_ = input.readInt32(); + break; } - - break; - } - case 16: { - - batchSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,34 +103,39 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OutputConfig.class, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.OutputConfig.class, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.GcsDestination gcsDestination_; /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -119,18 +143,25 @@ public boolean hasGcsDestination() { return gcsDestination_ != null; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination() { - return gcsDestination_ == null ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -145,6 +176,8 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati public static final int BATCH_SIZE_FIELD_NUMBER = 2; private int batchSize_; /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -158,6 +191,7 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -166,6 +200,7 @@ public int getBatchSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gcsDestination_ != null) { output.writeMessage(1, getGcsDestination()); } @@ -195,12 +229,10 @@ public int getSerializedSize() { size = 0; if (gcsDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcsDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); } if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, batchSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, batchSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,20 +242,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.OutputConfig other = (com.google.cloud.vision.v1p4beta1.OutputConfig) obj; + com.google.cloud.vision.v1p4beta1.OutputConfig other = + (com.google.cloud.vision.v1p4beta1.OutputConfig) obj; if (hasGcsDestination() != other.hasGcsDestination()) return false; if (hasGcsDestination()) { - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; } - if (getBatchSize() - != other.getBatchSize()) return false; + if (getBatchSize() != other.getBatchSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,118 +277,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired output location and metadata.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.OutputConfig) com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.OutputConfig.class, com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.OutputConfig.class, + com.google.cloud.vision.v1p4beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.OutputConfig.newBuilder() @@ -365,16 +405,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_OutputConfig_descriptor; } @java.lang.Override @@ -411,7 +450,8 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.OutputConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.OutputConfig result = new com.google.cloud.vision.v1p4beta1.OutputConfig(this); + com.google.cloud.vision.v1p4beta1.OutputConfig result = + new com.google.cloud.vision.v1p4beta1.OutputConfig(this); if (gcsDestinationBuilder_ == null) { result.gcsDestination_ = gcsDestination_; } else { @@ -426,38 +466,39 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.OutputConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -503,34 +544,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.vision.v1p4beta1.GcsDestination, + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return gcsDestinationBuilder_ != null || gcsDestination_ != null; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ public com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { - return gcsDestination_ == null ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } else { return gcsDestinationBuilder_.getMessage(); } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -551,6 +605,8 @@ public Builder setGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinatio return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -569,6 +625,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -579,7 +637,9 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinat if (gcsDestinationBuilder_ == null) { if (gcsDestination_ != null) { gcsDestination_ = - com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder(gcsDestination_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); } else { gcsDestination_ = value; } @@ -591,6 +651,8 @@ public Builder mergeGcsDestination(com.google.cloud.vision.v1p4beta1.GcsDestinat return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -609,6 +671,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -616,11 +680,13 @@ public Builder clearGcsDestination() { * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; */ public com.google.cloud.vision.v1p4beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -631,11 +697,14 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati if (gcsDestinationBuilder_ != null) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { - return gcsDestination_ == null ? - com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() : gcsDestination_; + return gcsDestination_ == null + ? com.google.cloud.vision.v1p4beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } } /** + * + * *
      * The Google Cloud Storage location to write the output(s) to.
      * 
@@ -643,21 +712,26 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> + com.google.cloud.vision.v1p4beta1.GcsDestination, + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.GcsDestination, com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder>( - getGcsDestination(), - getParentForChildren(), - isClean()); + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.GcsDestination, + com.google.cloud.vision.v1p4beta1.GcsDestination.Builder, + com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); gcsDestination_ = null; } return gcsDestinationBuilder_; } - private int batchSize_ ; + private int batchSize_; /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -671,6 +745,7 @@ public com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinati
      * 
* * int32 batch_size = 2; + * * @return The batchSize. */ @java.lang.Override @@ -678,6 +753,8 @@ public int getBatchSize() { return batchSize_; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -691,16 +768,19 @@ public int getBatchSize() {
      * 
* * int32 batch_size = 2; + * * @param value The batchSize to set. * @return This builder for chaining. */ public Builder setBatchSize(int value) { - + batchSize_ = value; onChanged(); return this; } /** + * + * *
      * The max number of response protos to put into each output JSON file on
      * Google Cloud Storage.
@@ -714,17 +794,18 @@ public Builder setBatchSize(int value) {
      * 
* * int32 batch_size = 2; + * * @return This builder for chaining. */ public Builder clearBatchSize() { - + batchSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OutputConfig) private static final com.google.cloud.vision.v1p4beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.OutputConfig(); } @@ -748,16 +829,16 @@ public static com.google.cloud.vision.v1p4beta1.OutputConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +853,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java index 3548d5df2..267ca0c4c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
* * .google.cloud.vision.v1p4beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.vision.v1p4beta1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output(s) to.
    * 
@@ -35,6 +59,8 @@ public interface OutputConfigOrBuilder extends com.google.cloud.vision.v1p4beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * The max number of response protos to put into each output JSON file on
    * Google Cloud Storage.
@@ -48,6 +74,7 @@ public interface OutputConfigOrBuilder extends
    * 
* * int32 batch_size = 2; + * * @return The batchSize. */ int getBatchSize(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java index 779046420..9d437ab64 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Page.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Detected page from OCR.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Page} */ -public final class Page extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Page extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Page) PageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Page() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Page( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,50 +71,57 @@ private Page( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 16: + { + width_ = input.readInt32(); + break; } - - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - height_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blocks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 24: + { + height_ = input.readInt32(); + break; } - blocks_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Block.parser(), extensionRegistry)); - break; - } - case 45: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blocks_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Block.parser(), extensionRegistry)); + break; + } + case 45: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +129,7 @@ private Page( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); @@ -115,27 +138,33 @@ private Page( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Page.class, com.google.cloud.vision.v1p4beta1.Page.Builder.class); + com.google.cloud.vision.v1p4beta1.Page.class, + com.google.cloud.vision.v1p4beta1.Page.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -143,18 +172,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected on the page.
    * 
@@ -162,19 +198,23 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int WIDTH_FIELD_NUMBER = 2; private int width_; /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -185,12 +225,15 @@ public int getWidth() { public static final int HEIGHT_FIELD_NUMBER = 3; private int height_; /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -201,6 +244,8 @@ public int getHeight() { public static final int BLOCKS_FIELD_NUMBER = 4; private java.util.List blocks_; /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -212,6 +257,8 @@ public java.util.List getBlocksList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -219,11 +266,13 @@ public java.util.List getBlocksList() { * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ @java.lang.Override - public java.util.List + public java.util.List getBlocksOrBuilderList() { return blocks_; } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -235,6 +284,8 @@ public int getBlocksCount() { return blocks_.size(); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -246,6 +297,8 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { return blocks_.get(index); } /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -253,19 +306,21 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index) { return blocks_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 5; private float confidence_; /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -274,6 +329,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -312,24 +367,19 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); } for (int i = 0; i < blocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, blocks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blocks_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,7 +389,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Page)) { return super.equals(obj); @@ -348,18 +398,13 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!getBlocksList() - .equals(other.getBlocksList())) return false; + if (!getProperty().equals(other.getProperty())) return false; + } + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) return false; + if (!getBlocksList().equals(other.getBlocksList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,125 +429,133 @@ public int hashCode() { hash = (53 * hash) + getBlocksList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Page parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Page parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Page parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Page prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Detected page from OCR.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Page} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Page) com.google.cloud.vision.v1p4beta1.PageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Page.class, com.google.cloud.vision.v1p4beta1.Page.Builder.class); + com.google.cloud.vision.v1p4beta1.Page.class, + com.google.cloud.vision.v1p4beta1.Page.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Page.newBuilder() @@ -510,17 +563,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; } @java.lang.Override @@ -567,7 +620,8 @@ public com.google.cloud.vision.v1p4beta1.Page build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Page buildPartial() { - com.google.cloud.vision.v1p4beta1.Page result = new com.google.cloud.vision.v1p4beta1.Page(this); + com.google.cloud.vision.v1p4beta1.Page result = + new com.google.cloud.vision.v1p4beta1.Page(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -594,38 +648,39 @@ public com.google.cloud.vision.v1p4beta1.Page buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Page) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Page)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Page) other); } else { super.mergeFrom(other); return this; @@ -661,9 +716,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Page other) { blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); - blocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlocksFieldBuilder() : null; + blocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlocksFieldBuilder() + : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } @@ -700,45 +756,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +823,8 @@ public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -770,17 +843,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -792,6 +870,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -810,33 +890,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected on the page.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected on the page.
      * 
@@ -844,27 +933,33 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } - private int width_ ; + private int width_; /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return The width. */ @java.lang.Override @@ -872,45 +967,54 @@ public int getWidth() { return width_; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
      * Page width. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 width = 2; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return The height. */ @java.lang.Override @@ -918,50 +1022,62 @@ public int getHeight() { return height_; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
      * Page height. For PDFs the unit is points. For images (including
      * TIFFs) the unit is pixels.
      * 
* * int32 height = 3; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } private java.util.List blocks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder> blocksBuilder_; + com.google.cloud.vision.v1p4beta1.Block, + com.google.cloud.vision.v1p4beta1.Block.Builder, + com.google.cloud.vision.v1p4beta1.BlockOrBuilder> + blocksBuilder_; /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -976,6 +1092,8 @@ public java.util.List getBlocksList() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -990,6 +1108,8 @@ public int getBlocksCount() { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1004,14 +1124,15 @@ public com.google.cloud.vision.v1p4beta1.Block getBlocks(int index) { } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder setBlocks( - int index, com.google.cloud.vision.v1p4beta1.Block value) { + public Builder setBlocks(int index, com.google.cloud.vision.v1p4beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1025,6 +1146,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1043,6 +1166,8 @@ public Builder setBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1063,14 +1188,15 @@ public Builder addBlocks(com.google.cloud.vision.v1p4beta1.Block value) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder addBlocks( - int index, com.google.cloud.vision.v1p4beta1.Block value) { + public Builder addBlocks(int index, com.google.cloud.vision.v1p4beta1.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1084,14 +1210,15 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public Builder addBlocks( - com.google.cloud.vision.v1p4beta1.Block.Builder builderForValue) { + public Builder addBlocks(com.google.cloud.vision.v1p4beta1.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); @@ -1102,6 +1229,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1120,6 +1249,8 @@ public Builder addBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1130,8 +1261,7 @@ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blocks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); @@ -1139,6 +1269,8 @@ public Builder addAllBlocks( return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1156,6 +1288,8 @@ public Builder clearBlocks() { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1173,39 +1307,44 @@ public Builder removeBlocks(int index) { return this; } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.Block.Builder getBlocksBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Block.Builder getBlocksBuilder(int index) { return getBlocksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index) { if (blocksBuilder_ == null) { - return blocks_.get(index); } else { + return blocks_.get(index); + } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public java.util.List - getBlocksOrBuilderList() { + public java.util.List + getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { @@ -1213,6 +1352,8 @@ public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( } } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
@@ -1220,54 +1361,62 @@ public com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder() { - return getBlocksFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); + return getBlocksFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder( - int index) { - return getBlocksFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Block.Builder addBlocksBuilder(int index) { + return getBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Block.getDefaultInstance()); } /** + * + * *
      * List of blocks of text, images etc on this page.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - public java.util.List - getBlocksBuilderList() { + public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder> + com.google.cloud.vision.v1p4beta1.Block, + com.google.cloud.vision.v1p4beta1.Block.Builder, + com.google.cloud.vision.v1p4beta1.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { - blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Block, com.google.cloud.vision.v1p4beta1.Block.Builder, com.google.cloud.vision.v1p4beta1.BlockOrBuilder>( - blocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Block, + com.google.cloud.vision.v1p4beta1.Block.Builder, + com.google.cloud.vision.v1p4beta1.BlockOrBuilder>( + blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return The confidence. */ @java.lang.Override @@ -1275,37 +1424,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results on the page. Range [0, 1].
      * 
* * float confidence = 5; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Page) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Page) private static final com.google.cloud.vision.v1p4beta1.Page DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Page(); } @@ -1329,16 +1484,16 @@ public static com.google.cloud.vision.v1p4beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Page parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Page(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Page parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Page(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java similarity index 76% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java index 28ea75a68..0b6186c42 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PageOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface PageOrBuilder extends +public interface PageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Page) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected on the page.
    * 
@@ -35,37 +59,46 @@ public interface PageOrBuilder extends com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * Page width. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 width = 2; + * * @return The width. */ int getWidth(); /** + * + * *
    * Page height. For PDFs the unit is points. For images (including
    * TIFFs) the unit is pixels.
    * 
* * int32 height = 3; + * * @return The height. */ int getHeight(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - java.util.List - getBlocksList(); + java.util.List getBlocksList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -74,6 +107,8 @@ public interface PageOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Block getBlocks(int index); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
@@ -82,30 +117,36 @@ public interface PageOrBuilder extends */ int getBlocksCount(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - java.util.List + java.util.List getBlocksOrBuilderList(); /** + * + * *
    * List of blocks of text, images etc on this page.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Block blocks = 4; */ - com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.BlockOrBuilder getBlocksOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results on the page. Range [0, 1].
    * 
* * float confidence = 5; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java similarity index 77% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java index b12009a75..5074698c9 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Structural unit of text representing a number of words in certain order.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Paragraph} */ -public final class Paragraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Paragraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Paragraph) ParagraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Paragraph.newBuilder() to construct. private Paragraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Paragraph() { words_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Paragraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Paragraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Paragraph( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Word.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - words_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Word.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Paragraph( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +144,33 @@ private Paragraph( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Paragraph.class, com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p4beta1.Paragraph.class, + com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int WORDS_FIELD_NUMBER = 3;
   private java.util.List words_;
   /**
+   *
+   *
    * 
    * List of all words in this paragraph.
    * 
@@ -263,6 +315,8 @@ public java.util.List getWordsList() { return words_; } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -270,11 +324,13 @@ public java.util.List getWordsList() { * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ @java.lang.Override - public java.util.List + public java.util.List getWordsOrBuilderList() { return words_; } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -286,6 +342,8 @@ public int getWordsCount() { return words_.size(); } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -297,6 +355,8 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { return words_.get(index); } /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -304,19 +364,21 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index) { return words_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -325,6 +387,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -360,20 +422,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < words_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, words_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,28 +441,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Paragraph)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Paragraph other = (com.google.cloud.vision.v1p4beta1.Paragraph) obj; + com.google.cloud.vision.v1p4beta1.Paragraph other = + (com.google.cloud.vision.v1p4beta1.Paragraph) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,125 +484,133 @@ public int hashCode() { hash = (53 * hash) + getWordsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Paragraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Paragraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structural unit of text representing a number of words in certain order.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Paragraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Paragraph) com.google.cloud.vision.v1p4beta1.ParagraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Paragraph.class, com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); + com.google.cloud.vision.v1p4beta1.Paragraph.class, + com.google.cloud.vision.v1p4beta1.Paragraph.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Paragraph.newBuilder() @@ -555,17 +618,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; } @java.lang.Override @@ -614,7 +677,8 @@ public com.google.cloud.vision.v1p4beta1.Paragraph build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Paragraph buildPartial() { - com.google.cloud.vision.v1p4beta1.Paragraph result = new com.google.cloud.vision.v1p4beta1.Paragraph(this); + com.google.cloud.vision.v1p4beta1.Paragraph result = + new com.google.cloud.vision.v1p4beta1.Paragraph(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -644,38 +708,39 @@ public com.google.cloud.vision.v1p4beta1.Paragraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Paragraph) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Paragraph)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Paragraph) other); } else { super.mergeFrom(other); return this; @@ -708,9 +773,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Paragraph other) { wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -747,45 +813,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,6 +880,8 @@ public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -817,17 +900,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -839,6 +927,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -857,33 +947,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the paragraph.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the paragraph.
      * 
@@ -891,14 +990,17 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -906,8 +1008,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -927,12 +1034,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -952,16 +1062,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -996,6 +1111,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1028,6 +1145,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1052,7 +1171,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1064,6 +1185,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1096,6 +1219,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1117,11 +1242,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1146,11 +1273,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the paragraph.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1172,32 +1302,41 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List words_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWordsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         words_ = new java.util.ArrayList(words_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder> wordsBuilder_;
+            com.google.cloud.vision.v1p4beta1.Word,
+            com.google.cloud.vision.v1p4beta1.Word.Builder,
+            com.google.cloud.vision.v1p4beta1.WordOrBuilder>
+        wordsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of all words in this paragraph.
      * 
@@ -1212,6 +1351,8 @@ public java.util.List getWordsList() { } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1226,6 +1367,8 @@ public int getWordsCount() { } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1240,14 +1383,15 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { } } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder setWords( - int index, com.google.cloud.vision.v1p4beta1.Word value) { + public Builder setWords(int index, com.google.cloud.vision.v1p4beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1261,6 +1405,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1279,6 +1425,8 @@ public Builder setWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1299,14 +1447,15 @@ public Builder addWords(com.google.cloud.vision.v1p4beta1.Word value) { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder addWords( - int index, com.google.cloud.vision.v1p4beta1.Word value) { + public Builder addWords(int index, com.google.cloud.vision.v1p4beta1.Word value) { if (wordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1320,14 +1469,15 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public Builder addWords( - com.google.cloud.vision.v1p4beta1.Word.Builder builderForValue) { + public Builder addWords(com.google.cloud.vision.v1p4beta1.Word.Builder builderForValue) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); words_.add(builderForValue.build()); @@ -1338,6 +1488,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1356,6 +1508,8 @@ public Builder addWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1366,8 +1520,7 @@ public Builder addAllWords( java.lang.Iterable values) { if (wordsBuilder_ == null) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); onChanged(); } else { wordsBuilder_.addAllMessages(values); @@ -1375,6 +1528,8 @@ public Builder addAllWords( return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1392,6 +1547,8 @@ public Builder clearWords() { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1409,39 +1566,44 @@ public Builder removeWords(int index) { return this; } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.Word.Builder getWordsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Word.Builder getWordsBuilder(int index) { return getWordsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index) { if (wordsBuilder_ == null) { - return words_.get(index); } else { + return words_.get(index); + } else { return wordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public java.util.List - getWordsOrBuilderList() { + public java.util.List + getWordsOrBuilderList() { if (wordsBuilder_ != null) { return wordsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,6 +1611,8 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( } } /** + * + * *
      * List of all words in this paragraph.
      * 
@@ -1456,54 +1620,62 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder() { - return getWordsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); + return getWordsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder( - int index) { - return getWordsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder(int index) { + return getWordsFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Word.getDefaultInstance()); } /** + * + * *
      * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - public java.util.List - getWordsBuilderList() { + public java.util.List getWordsBuilderList() { return getWordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder> + com.google.cloud.vision.v1p4beta1.Word, + com.google.cloud.vision.v1p4beta1.Word.Builder, + com.google.cloud.vision.v1p4beta1.WordOrBuilder> getWordsFieldBuilder() { if (wordsBuilder_ == null) { - wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Word, com.google.cloud.vision.v1p4beta1.Word.Builder, com.google.cloud.vision.v1p4beta1.WordOrBuilder>( - words_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + wordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Word, + com.google.cloud.vision.v1p4beta1.Word.Builder, + com.google.cloud.vision.v1p4beta1.WordOrBuilder>( + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1511,37 +1683,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the paragraph. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1551,12 +1729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Paragraph) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Paragraph) private static final com.google.cloud.vision.v1p4beta1.Paragraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Paragraph(); } @@ -1565,16 +1743,16 @@ public static com.google.cloud.vision.v1p4beta1.Paragraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Paragraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Paragraph(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Paragraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Paragraph(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1767,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Paragraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java index 96b561659..a6337cbb7 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface ParagraphOrBuilder extends +public interface ParagraphOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Paragraph) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the paragraph.
    * 
@@ -35,6 +59,8 @@ public interface ParagraphOrBuilder extends com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface ParagraphOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the paragraph.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,15 +136,18 @@ public interface ParagraphOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -121,6 +156,8 @@ public interface ParagraphOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Word getWords(int index); /** + * + * *
    * List of all words in this paragraph.
    * 
@@ -129,30 +166,35 @@ public interface ParagraphOrBuilder extends */ int getWordsCount(); /** + * + * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - java.util.List - getWordsOrBuilderList(); + java.util.List getWordsOrBuilderList(); /** + * + * *
    * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; */ - com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int index); /** + * + * *
    * Confidence of the OCR results for the paragraph. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java similarity index 68% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java index 78d4cbbeb..dc5469c7d 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Position.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A 3D position in the image, used primarily for Face detection landmarks.
  * A valid Position must have both x and y coordinates.
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Position}
  */
-public final class Position extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Position extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Position)
     PositionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Position.newBuilder() to construct.
   private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Position() {
-  }
+
+  private Position() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Position();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Position(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,28 +70,28 @@ private Position(
           case 0:
             done = true;
             break;
-          case 13: {
-
-            x_ = input.readFloat();
-            break;
-          }
-          case 21: {
-
-            y_ = input.readFloat();
-            break;
-          }
-          case 29: {
-
-            z_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 13:
+            {
+              x_ = input.readFloat();
+              break;
+            }
+          case 21:
+            {
+              y_ = input.readFloat();
+              break;
+            }
+          case 29:
+            {
+              z_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +99,39 @@ private Position(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Position.class, com.google.cloud.vision.v1p4beta1.Position.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Position.class,
+            com.google.cloud.vision.v1p4beta1.Position.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -121,11 +142,14 @@ public float getX() { public static final int Y_FIELD_NUMBER = 2; private float y_; /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -136,11 +160,14 @@ public float getY() { public static final int Z_FIELD_NUMBER = 3; private float z_; /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -149,6 +176,7 @@ public float getZ() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -181,16 +208,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); } if (java.lang.Float.floatToRawIntBits(z_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -200,22 +224,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Position)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Position other = (com.google.cloud.vision.v1p4beta1.Position) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; + com.google.cloud.vision.v1p4beta1.Position other = + (com.google.cloud.vision.v1p4beta1.Position) obj; + + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,110 +250,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A 3D position in the image, used primarily for Face detection landmarks.
    * A valid Position must have both x and y coordinates.
@@ -340,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Position}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Position)
       com.google.cloud.vision.v1p4beta1.PositionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Position_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Position.class, com.google.cloud.vision.v1p4beta1.Position.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Position.class,
+              com.google.cloud.vision.v1p4beta1.Position.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Position.newBuilder()
@@ -362,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -385,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Position_descriptor;
     }
 
     @java.lang.Override
@@ -406,7 +433,8 @@ public com.google.cloud.vision.v1p4beta1.Position build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Position buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Position result = new com.google.cloud.vision.v1p4beta1.Position(this);
+      com.google.cloud.vision.v1p4beta1.Position result =
+          new com.google.cloud.vision.v1p4beta1.Position(this);
       result.x_ = x_;
       result.y_ = y_;
       result.z_ = z_;
@@ -418,38 +446,39 @@ public com.google.cloud.vision.v1p4beta1.Position buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Position) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Position)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Position) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,13 +525,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -510,42 +542,51 @@ public float getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(float value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -553,42 +594,51 @@ public float getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(float value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0F; onChanged(); return this; } - private float z_ ; + private float z_; /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return The z. */ @java.lang.Override @@ -596,37 +646,43 @@ public float getZ() { return z_; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @param value The z to set. * @return This builder for chaining. */ public Builder setZ(float value) { - + z_ = value; onChanged(); return this; } /** + * + * *
      * Z coordinate (or depth).
      * 
* * float z = 3; + * * @return This builder for chaining. */ public Builder clearZ() { - + z_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Position) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Position) private static final com.google.cloud.vision.v1p4beta1.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Position(); } @@ -650,16 +706,16 @@ public static com.google.cloud.vision.v1p4beta1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Position(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Position(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java similarity index 50% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java index 780b193f9..989c23eac 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PositionOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/geometry.proto package com.google.cloud.vision.v1p4beta1; -public interface PositionOrBuilder extends +public interface PositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Position) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * X coordinate.
    * 
* * float x = 1; + * * @return The x. */ float getX(); /** + * + * *
    * Y coordinate.
    * 
* * float y = 2; + * * @return The y. */ float getY(); /** + * + * *
    * Z coordinate (or depth).
    * 
* * float z = 3; + * * @return The z. */ float getZ(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java similarity index 80% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java index e00e0bca2..13d3ad520 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A Product contains ReferenceImages.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product} */ -public final class Product extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Product extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Product) ProductOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Product.newBuilder() to construct. private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Product() { name_ = ""; displayName_ = ""; @@ -29,16 +47,15 @@ private Product() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Product(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Product( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,46 +75,54 @@ private Product( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - productCategory_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + productCategory_ = s; + break; } - productLabels_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Product.KeyValue.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productLabels_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.KeyValue.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,8 +130,7 @@ private Product( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productLabels_ = java.util.Collections.unmodifiableList(productLabels_); @@ -115,83 +139,100 @@ private Product( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.class, com.google.cloud.vision.v1p4beta1.Product.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.class, + com.google.cloud.vision.v1p4beta1.Product.Builder.class); } - public interface KeyValueOrBuilder extends + public interface KeyValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Product.KeyValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * A product label represented as a key-value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product.KeyValue} */ - public static final class KeyValue extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Product.KeyValue) KeyValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KeyValue() { key_ = ""; value_ = ""; @@ -199,16 +240,15 @@ private KeyValue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KeyValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -227,25 +267,27 @@ private KeyValue( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + key_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -253,35 +295,40 @@ private KeyValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, + com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The key. */ @java.lang.Override @@ -290,30 +337,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
      * The key of the label attached to the product. Cannot be empty and cannot
      * exceed 128 bytes.
      * 
* * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -324,12 +371,15 @@ public java.lang.String getKey() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -338,30 +388,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The value of the label attached to the product. Cannot be empty and
      * cannot exceed 128 bytes.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -370,6 +420,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +432,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -412,17 +462,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Product.KeyValue)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Product.KeyValue other = (com.google.cloud.vision.v1p4beta1.Product.KeyValue) obj; + com.google.cloud.vision.v1p4beta1.Product.KeyValue other = + (com.google.cloud.vision.v1p4beta1.Product.KeyValue) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,87 +493,93 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Product.KeyValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Product.KeyValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -534,27 +589,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A product label represented as a key-value pair.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product.KeyValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Product.KeyValue) com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.KeyValue.class, + com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Product.KeyValue.newBuilder() @@ -562,16 +622,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; } @java.lang.Override @@ -604,7 +663,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product.KeyValue buildPartial() { - com.google.cloud.vision.v1p4beta1.Product.KeyValue result = new com.google.cloud.vision.v1p4beta1.Product.KeyValue(this); + com.google.cloud.vision.v1p4beta1.Product.KeyValue result = + new com.google.cloud.vision.v1p4beta1.Product.KeyValue(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -615,38 +675,41 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Product.KeyValue) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Product.KeyValue)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Product.KeyValue) other); } else { super.mergeFrom(other); return this; @@ -654,7 +717,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Product.KeyValue other) { - if (other == com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance()) + return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -682,7 +746,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.Product.KeyValue) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.Product.KeyValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,19 +759,21 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -715,21 +782,22 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -737,57 +805,64 @@ public java.lang.String getKey() { } } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
        * The key of the label attached to the product. Cannot be empty and cannot
        * exceed 128 bytes.
        * 
* * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -795,19 +870,21 @@ public Builder setKeyBytes( private java.lang.Object value_ = ""; /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -816,21 +893,22 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -838,61 +916,69 @@ public java.lang.String getValue() { } } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The value of the label attached to the product. Cannot be empty and
        * cannot exceed 128 bytes.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -905,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Product.KeyValue) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product.KeyValue) private static final com.google.cloud.vision.v1p4beta1.Product.KeyValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Product.KeyValue(); } @@ -919,16 +1005,16 @@ public static com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,12 +1029,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -957,6 +1044,7 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getDefaultInstanceForT
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -965,14 +1053,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -981,16 +1070,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1001,12 +1089,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1015,30 +1106,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1049,12 +1140,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -1063,30 +1157,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1097,6 +1191,8 @@ public java.lang.String getDescription() { public static final int PRODUCT_CATEGORY_FIELD_NUMBER = 4; private volatile java.lang.Object productCategory_; /** + * + * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -1105,6 +1201,7 @@ public java.lang.String getDescription() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ @java.lang.Override @@ -1113,14 +1210,15 @@ public java.lang.String getProductCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; } } /** + * + * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -1129,16 +1227,15 @@ public java.lang.String getProductCategory() {
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -1149,6 +1246,8 @@ public java.lang.String getProductCategory() { public static final int PRODUCT_LABELS_FIELD_NUMBER = 5; private java.util.List productLabels_; /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1169,6 +1268,8 @@ public java.util.List getPro
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1185,11 +1286,13 @@ public java.util.List getPro
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getProductLabelsOrBuilderList() {
     return productLabels_;
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1210,6 +1313,8 @@ public int getProductLabelsCount() {
     return productLabels_.size();
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1230,6 +1335,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i
     return productLabels_.get(index);
   }
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -1252,6 +1359,7 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1263,8 +1371,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1302,8 +1409,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, productCategory_);
     }
     for (int i = 0; i < productLabels_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, productLabels_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, productLabels_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1313,23 +1419,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Product)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.Product other = (com.google.cloud.vision.v1p4beta1.Product) obj;
-
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getProductCategory()
-        .equals(other.getProductCategory())) return false;
-    if (!getProductLabelsList()
-        .equals(other.getProductLabelsList())) return false;
+    com.google.cloud.vision.v1p4beta1.Product other =
+        (com.google.cloud.vision.v1p4beta1.Product) obj;
+
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getProductCategory().equals(other.getProductCategory())) return false;
+    if (!getProductLabelsList().equals(other.getProductLabelsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1358,118 +1460,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.Product parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.Product parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Product prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A Product contains ReferenceImages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Product} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Product) com.google.cloud.vision.v1p4beta1.ProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Product.class, com.google.cloud.vision.v1p4beta1.Product.Builder.class); + com.google.cloud.vision.v1p4beta1.Product.class, + com.google.cloud.vision.v1p4beta1.Product.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Product.newBuilder() @@ -1477,17 +1588,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1509,9 +1620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; } @java.lang.Override @@ -1530,7 +1641,8 @@ public com.google.cloud.vision.v1p4beta1.Product build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product buildPartial() { - com.google.cloud.vision.v1p4beta1.Product result = new com.google.cloud.vision.v1p4beta1.Product(this); + com.google.cloud.vision.v1p4beta1.Product result = + new com.google.cloud.vision.v1p4beta1.Product(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1553,38 +1665,39 @@ public com.google.cloud.vision.v1p4beta1.Product buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Product) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Product)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Product) other); } else { super.mergeFrom(other); return this; @@ -1627,9 +1740,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Product other) { productLabelsBuilder_ = null; productLabels_ = other.productLabels_; bitField0_ = (bitField0_ & ~0x00000001); - productLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductLabelsFieldBuilder() : null; + productLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductLabelsFieldBuilder() + : null; } else { productLabelsBuilder_.addAllMessages(other.productLabels_); } @@ -1663,10 +1777,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1675,13 +1792,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1690,6 +1807,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1698,15 +1817,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1714,6 +1832,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1722,20 +1842,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1744,15 +1866,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the product.
      * Format is:
@@ -1761,16 +1886,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1778,19 +1903,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1799,21 +1926,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1821,57 +1949,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this Product. Must not be empty. Must be at most
      * 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1879,19 +2014,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1900,21 +2037,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1922,57 +2060,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User-provided metadata to be stored with this product. Must be at most 4096
      * characters long.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1980,6 +2125,8 @@ public Builder setDescriptionBytes( private java.lang.Object productCategory_ = ""; /** + * + * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -1988,13 +2135,13 @@ public Builder setDescriptionBytes(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productCategory_ = s; return s; @@ -2003,6 +2150,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2011,15 +2160,14 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - public com.google.protobuf.ByteString - getProductCategoryBytes() { + public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productCategory_ = b; return b; } else { @@ -2027,6 +2175,8 @@ public java.lang.String getProductCategory() { } } /** + * + * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2035,20 +2185,22 @@ public java.lang.String getProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategory( - java.lang.String value) { + public Builder setProductCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productCategory_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2057,15 +2209,18 @@ public Builder setProductCategory(
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearProductCategory() { - + productCategory_ = getDefaultInstance().getProductCategory(); onChanged(); return this; } /** + * + * *
      * Immutable. The category for the product identified by the reference image.
      * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -2074,34 +2229,42 @@ public Builder clearProductCategory() {
      * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for productCategory to set. * @return This builder for chaining. */ - public Builder setProductCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCategory_ = value; onChanged(); return this; } private java.util.List productLabels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProductLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - productLabels_ = new java.util.ArrayList(productLabels_); + productLabels_ = + new java.util.ArrayList( + productLabels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> productLabelsBuilder_; + com.google.cloud.vision.v1p4beta1.Product.KeyValue, + com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, + com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> + productLabelsBuilder_; /** + * + * *
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2117,7 +2280,8 @@ private void ensureProductLabelsIsMutable() {
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List getProductLabelsList() {
+    public java.util.List
+        getProductLabelsList() {
       if (productLabelsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(productLabels_);
       } else {
@@ -2125,6 +2289,8 @@ public java.util.List getPro
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2148,6 +2314,8 @@ public int getProductLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2171,6 +2339,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2201,6 +2371,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2228,6 +2400,8 @@ public Builder setProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2257,6 +2431,8 @@ public Builder addProductLabels(com.google.cloud.vision.v1p4beta1.Product.KeyVal
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2287,6 +2463,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2314,6 +2492,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2341,6 +2521,8 @@ public Builder addProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2360,8 +2542,7 @@ public Builder addAllProductLabels(
         java.lang.Iterable values) {
       if (productLabelsBuilder_ == null) {
         ensureProductLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, productLabels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productLabels_);
         onChanged();
       } else {
         productLabelsBuilder_.addAllMessages(values);
@@ -2369,6 +2550,8 @@ public Builder addAllProductLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2395,6 +2578,8 @@ public Builder clearProductLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2421,6 +2606,8 @@ public Builder removeProductLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2441,6 +2628,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder getProductLabe
       return getProductLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2459,11 +2648,14 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder getProductLabe
     public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
         int index) {
       if (productLabelsBuilder_ == null) {
-        return productLabels_.get(index);  } else {
+        return productLabels_.get(index);
+      } else {
         return productLabelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2479,8 +2671,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsOrBuilderList() {
+    public java.util.List
+        getProductLabelsOrBuilderList() {
       if (productLabelsBuilder_ != null) {
         return productLabelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2488,6 +2680,8 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
       }
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2504,10 +2698,12 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
     public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabelsBuilder() {
-      return getProductLabelsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2525,10 +2721,13 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
      */
     public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabelsBuilder(
         int index) {
-      return getProductLabelsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
+      return getProductLabelsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.vision.v1p4beta1.Product.KeyValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Key-value pairs that can be attached to a product. At query time,
      * constraints can be specified based on the product_labels.
@@ -2544,16 +2743,22 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
      *
      * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
      */
-    public java.util.List 
-         getProductLabelsBuilderList() {
+    public java.util.List
+        getProductLabelsBuilderList() {
       return getProductLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.Product.KeyValue,
+            com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder,
+            com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>
         getProductLabelsFieldBuilder() {
       if (productLabelsBuilder_ == null) {
-        productLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Product.KeyValue, com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder, com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>(
+        productLabelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.Product.KeyValue,
+                com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder,
+                com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder>(
                 productLabels_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2562,9 +2767,9 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe
       }
       return productLabelsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2574,12 +2779,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Product)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product)
   private static final com.google.cloud.vision.v1p4beta1.Product DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Product();
   }
@@ -2588,16 +2793,16 @@ public static com.google.cloud.vision.v1p4beta1.Product getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Product parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Product(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Product parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Product(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2612,6 +2817,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.Product getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
similarity index 100%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
index 1255e6fd9..8df40ae97 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ProductOrBuilder extends
+public interface ProductOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Product)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the product.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the product.
    * Format is:
@@ -28,56 +49,68 @@ public interface ProductOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this Product. Must not be empty. Must be at most
    * 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided metadata to be stored with this product. Must be at most 4096
    * characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -86,10 +119,13 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The productCategory. */ java.lang.String getProductCategory(); /** + * + * *
    * Immutable. The category for the product identified by the reference image.
    * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
@@ -98,12 +134,14 @@ public interface ProductOrBuilder extends
    * 
* * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for productCategory. */ - com.google.protobuf.ByteString - getProductCategoryBytes(); + com.google.protobuf.ByteString getProductCategoryBytes(); /** + * + * *
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -119,9 +157,10 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
-      getProductLabelsList();
+  java.util.List getProductLabelsList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -139,6 +178,8 @@ public interface ProductOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int index);
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -156,6 +197,8 @@ public interface ProductOrBuilder extends
    */
   int getProductLabelsCount();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -171,9 +214,11 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  java.util.List 
+  java.util.List
       getProductLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * Key-value pairs that can be attached to a product. At query time,
    * constraints can be specified based on the product_labels.
@@ -189,6 +234,5 @@ public interface ProductOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5;
    */
-  com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLabelsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
similarity index 78%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
index abb07a792..81f65c9a3 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Parameters for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchParams} */ -public final class ProductSearchParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchParams) ProductSearchParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchParams.newBuilder() to construct. private ProductSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchParams() { productSet_ = ""; productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ProductSearchParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,53 @@ private ProductSearchParams( case 0: done = true; break; - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - productSet_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - productCategories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + productSet_ = s; + break; } - productCategories_.add(s); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 74: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingPoly_ != null) { - subBuilder = boundingPoly_.toBuilder(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + productCategories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + productCategories_.add(s); + break; } - boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingPoly_); - boundingPoly_ = subBuilder.buildPartial(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; } + case 74: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingPoly_ != null) { + subBuilder = boundingPoly_.toBuilder(); + } + boundingPoly_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingPoly_); + boundingPoly_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +127,7 @@ private ProductSearchParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { productCategories_ = productCategories_.getUnmodifiableView(); @@ -114,28 +136,34 @@ private ProductSearchParams( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); } public static final int BOUNDING_POLY_FIELD_NUMBER = 9; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -143,19 +171,26 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -171,6 +206,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
   public static final int PRODUCT_SET_FIELD_NUMBER = 6;
   private volatile java.lang.Object productSet_;
   /**
+   *
+   *
    * 
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -180,6 +217,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ @java.lang.Override @@ -188,14 +226,15 @@ public java.lang.String getProductSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; } } /** + * + * *
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -205,16 +244,15 @@ public java.lang.String getProductSet() {
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -225,6 +263,8 @@ public java.lang.String getProductSet() { public static final int PRODUCT_CATEGORIES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList productCategories_; /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -236,13 +276,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_; } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -254,12 +296,15 @@ public java.lang.String getProductSet() {
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -271,6 +316,7 @@ public int getProductCategoriesCount() {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -278,6 +324,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -289,17 +337,19 @@ public java.lang.String getProductCategories(int index) {
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 8; private volatile java.lang.Object filter_; /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -311,6 +361,7 @@ public java.lang.String getProductCategories(int index) {
    * 
* * string filter = 8; + * * @return The filter. */ @java.lang.Override @@ -319,14 +370,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -338,16 +390,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 8; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -356,6 +407,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +419,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productSet_); } @@ -405,8 +456,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); } if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBoundingPoly()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -416,24 +466,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchParams other = (com.google.cloud.vision.v1p4beta1.ProductSearchParams) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchParams other = + (com.google.cloud.vision.v1p4beta1.ProductSearchParams) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; - } - if (!getProductSet() - .equals(other.getProductSet())) return false; - if (!getProductCategoriesList() - .equals(other.getProductCategoriesList())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + } + if (!getProductSet().equals(other.getProductSet())) return false; + if (!getProductCategoriesList().equals(other.getProductCategoriesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,117 +510,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchParams) com.google.cloud.vision.v1p4beta1.ProductSearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchParams.class, + com.google.cloud.vision.v1p4beta1.ProductSearchParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchParams.newBuilder() @@ -581,16 +638,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -610,9 +666,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; } @java.lang.Override @@ -631,7 +687,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchParams buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchParams result = new com.google.cloud.vision.v1p4beta1.ProductSearchParams(this); + com.google.cloud.vision.v1p4beta1.ProductSearchParams result = + new com.google.cloud.vision.v1p4beta1.ProductSearchParams(this); int from_bitField0_ = bitField0_; if (boundingPolyBuilder_ == null) { result.boundingPoly_ = boundingPoly_; @@ -653,38 +710,39 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchParams)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchParams) other); } else { super.mergeFrom(other); return this; @@ -692,7 +750,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchParams other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchParams.getDefaultInstance()) + return this; if (other.hasBoundingPoly()) { mergeBoundingPoly(other.getBoundingPoly()); } @@ -733,7 +792,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSearchParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -742,40 +802,54 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -797,6 +871,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -816,6 +892,8 @@ public Builder setBoundingPoly(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -827,7 +905,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       if (boundingPolyBuilder_ == null) {
         if (boundingPoly_ != null) {
           boundingPoly_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingPoly_ = value;
         }
@@ -839,6 +919,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -858,6 +940,8 @@ public Builder clearBoundingPoly() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -866,11 +950,13 @@ public Builder clearBoundingPoly() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
-      
+
       onChanged();
       return getBoundingPolyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -882,11 +968,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
       if (boundingPolyBuilder_ != null) {
         return boundingPolyBuilder_.getMessageOrBuilder();
       } else {
-        return boundingPoly_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_;
+        return boundingPoly_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingPoly_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding polygon around the area of interest in the image.
      * If it is not specified, system discretion will be applied.
@@ -895,14 +984,17 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingPoly(),
-                getParentForChildren(),
-                isClean());
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingPoly(), getParentForChildren(), isClean());
         boundingPoly_ = null;
       }
       return boundingPolyBuilder_;
@@ -910,6 +1002,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
 
     private java.lang.Object productSet_ = "";
     /**
+     *
+     *
      * 
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -919,13 +1013,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSet_ = s; return s; @@ -934,6 +1028,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -943,15 +1039,14 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - public com.google.protobuf.ByteString - getProductSetBytes() { + public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSet_ = b; return b; } else { @@ -959,6 +1054,8 @@ public java.lang.String getProductSet() { } } /** + * + * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -968,20 +1065,22 @@ public java.lang.String getProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The productSet to set. * @return This builder for chaining. */ - public Builder setProductSet( - java.lang.String value) { + public Builder setProductSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSet_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -991,15 +1090,18 @@ public Builder setProductSet(
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearProductSet() { - + productSet_ = getDefaultInstance().getProductSet(); onChanged(); return this; } /** + * + * *
      * The resource name of a
      * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -1009,29 +1111,33 @@ public Builder clearProductSet() {
      * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for productSet to set. * @return This builder for chaining. */ - public Builder setProductSetBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSet_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList productCategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList productCategories_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProductCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { productCategories_ = new com.google.protobuf.LazyStringArrayList(productCategories_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1043,13 +1149,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - public com.google.protobuf.ProtocolStringList - getProductCategoriesList() { + public com.google.protobuf.ProtocolStringList getProductCategoriesList() { return productCategories_.getUnmodifiableView(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1061,12 +1169,15 @@ private void ensureProductCategoriesIsMutable() {
      * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ public int getProductCategoriesCount() { return productCategories_.size(); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1078,6 +1189,7 @@ public int getProductCategoriesCount() {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ @@ -1085,6 +1197,8 @@ public java.lang.String getProductCategories(int index) { return productCategories_.get(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1096,14 +1210,16 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - public com.google.protobuf.ByteString - getProductCategoriesBytes(int index) { + public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { return productCategories_.getByteString(index); } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1115,21 +1231,23 @@ public java.lang.String getProductCategories(int index) {
      * 
* * repeated string product_categories = 7; + * * @param index The index to set the value at. * @param value The productCategories to set. * @return This builder for chaining. */ - public Builder setProductCategories( - int index, java.lang.String value) { + public Builder setProductCategories(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1141,20 +1259,22 @@ public Builder setProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param value The productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategories( - java.lang.String value) { + public Builder addProductCategories(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProductCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1166,18 +1286,19 @@ public Builder addProductCategories(
      * 
* * repeated string product_categories = 7; + * * @param values The productCategories to add. * @return This builder for chaining. */ - public Builder addAllProductCategories( - java.lang.Iterable values) { + public Builder addAllProductCategories(java.lang.Iterable values) { ensureProductCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCategories_); onChanged(); return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1189,6 +1310,7 @@ public Builder addAllProductCategories(
      * 
* * repeated string product_categories = 7; + * * @return This builder for chaining. */ public Builder clearProductCategories() { @@ -1198,6 +1320,8 @@ public Builder clearProductCategories() { return this; } /** + * + * *
      * The list of product categories to search in. Currently, we only consider
      * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -1209,15 +1333,15 @@ public Builder clearProductCategories() {
      * 
* * repeated string product_categories = 7; + * * @param value The bytes of the productCategories to add. * @return This builder for chaining. */ - public Builder addProductCategoriesBytes( - com.google.protobuf.ByteString value) { + public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProductCategoriesIsMutable(); productCategories_.add(value); onChanged(); @@ -1226,6 +1350,8 @@ public Builder addProductCategoriesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1237,13 +1363,13 @@ public Builder addProductCategoriesBytes(
      * 
* * string filter = 8; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1252,6 +1378,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1263,15 +1391,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1279,6 +1406,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1290,20 +1419,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 8; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1315,15 +1446,18 @@ public Builder setFilter(
      * 
* * string filter = 8; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
@@ -1335,23 +1469,23 @@ public Builder clearFilter() {
      * 
* * string filter = 8; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1361,12 +1495,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchParams) private static final com.google.cloud.vision.v1p4beta1.ProductSearchParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchParams(); } @@ -1375,16 +1509,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSearchParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,6 +1533,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java index 865e292ba..dcff9e74d 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSearchParamsOrBuilder extends +public interface ProductSearchParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
    * The bounding polygon around the area of interest in the image.
    * If it is not specified, system discretion will be applied.
@@ -38,6 +62,8 @@ public interface ProductSearchParamsOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -47,10 +73,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The productSet. */ java.lang.String getProductSet(); /** + * + * *
    * The resource name of a
    * [ProductSet][google.cloud.vision.v1p4beta1.ProductSet] to be searched for
@@ -60,12 +89,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string product_set = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for productSet. */ - com.google.protobuf.ByteString - getProductSetBytes(); + com.google.protobuf.ByteString getProductSetBytes(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -77,11 +108,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return A list containing the productCategories. */ - java.util.List - getProductCategoriesList(); + java.util.List getProductCategoriesList(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -93,10 +126,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @return The count of productCategories. */ int getProductCategoriesCount(); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -108,11 +144,14 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the element to return. * @return The productCategories at the given index. */ java.lang.String getProductCategories(int index); /** + * + * *
    * The list of product categories to search in. Currently, we only consider
    * the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
@@ -124,13 +163,15 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * repeated string product_categories = 7; + * * @param index The index of the value to return. * @return The bytes of the productCategories at the given index. */ - com.google.protobuf.ByteString - getProductCategoriesBytes(int index); + com.google.protobuf.ByteString getProductCategoriesBytes(int index); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -142,10 +183,13 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
@@ -157,8 +201,8 @@ public interface ProductSearchParamsOrBuilder extends
    * 
* * string filter = 8; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java new file mode 100644 index 000000000..d3f4b5c7c --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ProductSearchProto { + private ProductSearchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/vision/v1p4beta1/product_" + + "search.proto\022\035google.cloud.vision.v1p4be" + + "ta1\032\034google/api/annotations.proto\032\031googl" + + "e/api/resource.proto\032,google/cloud/visio" + + "n/v1p4beta1/geometry.proto\032:google/cloud" + + "/vision/v1p4beta1/product_search_service" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" + + "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" + + "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" + + "ision.googleapis.com/ProductSet\022\032\n\022produ" + + "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" + + "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022K\n\007results\030" + + "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" + + "oductSearchResults.Result\022b\n\027product_gro" + + "uped_results\030\006 \003(\0132A.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.GroupedR" + + "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" + + "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" + + "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" + + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" + + "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" + + "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" + + "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" + + "a1.ProductSearchResults.Result\022`\n\022object" + + "_annotations\030\003 \003(\0132D.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.ObjectAn" + + "notationB\210\001\n!com.google.cloud.vision.v1p" + + "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchParams_descriptor, + new java.lang.String[] { + "BoundingPoly", "ProductSet", "ProductCategories", "Filter", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor, + new java.lang.String[] { + "IndexTime", "Results", "ProductGroupedResults", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor, + new java.lang.String[] { + "Product", "Score", "Image", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor, + new java.lang.String[] { + "Mid", "LanguageCode", "Name", "Score", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor, + new java.lang.String[] { + "BoundingPoly", "Results", "ObjectAnnotations", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java index f2313eff9..819e5892c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Results for a product search request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults} */ -public final class ProductSearchResults extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults) ProductSearchResultsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSearchResults.newBuilder() to construct. private ProductSearchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSearchResults() { results_ = java.util.Collections.emptyList(); productGroupedResults_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private ProductSearchResults() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSearchResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSearchResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,56 @@ private ProductSearchResults( case 0: done = true; break; - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (indexTime_ != null) { - subBuilder = indexTime_.toBuilder(); - } - indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(indexTime_); - indexTime_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexTime_ != null) { + subBuilder = indexTime_.toBuilder(); + } + indexTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexTime_); + indexTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - results_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), + extensionRegistry)); + break; } - productGroupedResults_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + productGroupedResults_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult>(); + mutable_bitField0_ |= 0x00000002; + } + productGroupedResults_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,8 +129,7 @@ private ProductSearchResults( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -113,42 +141,54 @@ private ProductSearchResults( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); } - public interface ResultOrBuilder extends + public interface ResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** + * + * *
      * The Product.
      * 
@@ -158,70 +198,80 @@ public interface ResultOrBuilder extends com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); } /** + * + * *
    * Information about a product.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.Result} */ - public static final class Result extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Result extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) ResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Result() { image_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Result( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -240,37 +290,41 @@ private Result( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } + + break; } - product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); + case 21: + { + score_ = input.readFloat(); + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + image_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,34 +332,39 @@ private Result( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Product product_; /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return Whether the product field is set. */ @java.lang.Override @@ -313,18 +372,25 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
      * The Product.
      * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
      * The Product.
      * 
@@ -339,12 +405,15 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * A confidence level on the match, ranging from 0 (no confidence) to
      * 1 (full confidence).
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -355,12 +424,15 @@ public float getScore() { public static final int IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object image_; /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The image. */ @java.lang.Override @@ -369,30 +441,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * The resource name of the image from the product that is the closest match
      * to the query.
      * 
* * string image = 3; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -401,6 +473,7 @@ public java.lang.String getImage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +485,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (product_ != null) { output.writeMessage(1, getProduct()); } @@ -433,12 +505,10 @@ public int getSerializedSize() { size = 0; if (product_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProduct()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); @@ -451,23 +521,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) obj; if (hasProduct() != other.hasProduct()) return false; if (hasProduct()) { - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getProduct().equals(other.getProduct())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getImage() - .equals(other.getImage())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getImage().equals(other.getImage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,8 +552,7 @@ public int hashCode() { hash = (53 * hash) + getProduct().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -494,87 +561,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -584,27 +658,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about a product.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.Result} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.newBuilder() @@ -612,16 +691,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -639,13 +717,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance(); } @@ -660,7 +739,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(this); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result result = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -676,46 +756,52 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result other) { + if (other + == com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -745,7 +831,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -757,34 +845,47 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; + * * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
        * The Product.
        * 
@@ -805,14 +906,15 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
* * .google.cloud.vision.v1p4beta1.Product product = 1; */ - public Builder setProduct( - com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -823,6 +925,8 @@ public Builder setProduct( return this; } /** + * + * *
        * The Product.
        * 
@@ -833,7 +937,9 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -845,6 +951,8 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
        * The Product.
        * 
@@ -863,6 +971,8 @@ public Builder clearProduct() { return this; } /** + * + * *
        * The Product.
        * 
@@ -870,11 +980,13 @@ public Builder clearProduct() { * .google.cloud.vision.v1p4beta1.Product product = 1; */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
        * The Product.
        * 
@@ -885,11 +997,14 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
        * The Product.
        * 
@@ -897,27 +1012,33 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() * .google.cloud.vision.v1p4beta1.Product product = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; } - private float score_ ; + private float score_; /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -925,32 +1046,38 @@ public float getScore() { return score_; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * A confidence level on the match, ranging from 0 (no confidence) to
        * 1 (full confidence).
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -958,19 +1085,21 @@ public Builder clearScore() { private java.lang.Object image_ = ""; /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -979,21 +1108,22 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1001,61 +1131,69 @@ public java.lang.String getImage() { } } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
        * The resource name of the image from the product that is the closest match
        * to the query.
        * 
* * string image = 3; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1068,30 +1206,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Result parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Result(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,37 +1243,45 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ObjectAnnotationOrBuilder extends + public interface ObjectAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ java.lang.String getMid(); /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ - com.google.protobuf.ByteString - getMidBytes(); + com.google.protobuf.ByteString getMidBytes(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1141,10 +1289,13 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1152,57 +1303,68 @@ public interface ObjectAnnotationOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ float getScore(); } /** + * + * *
    * Prediction for what the object in the bounding box is.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class ObjectAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) ObjectAnnotationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectAnnotation.newBuilder() to construct. private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ObjectAnnotation() { mid_ = ""; languageCode_ = ""; @@ -1211,16 +1373,15 @@ private ObjectAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1239,36 +1400,39 @@ private ObjectAnnotation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - mid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 37: { + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 37: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1276,34 +1440,40 @@ private ObjectAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); } public static final int MID_FIELD_NUMBER = 1; private volatile java.lang.Object mid_; /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The mid. */ @java.lang.Override @@ -1312,29 +1482,29 @@ public java.lang.String getMid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; } } /** + * + * *
      * Object ID that should align with EntityAnnotation mid.
      * 
* * string mid = 1; + * * @return The bytes for mid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1345,6 +1515,8 @@ public java.lang.String getMid() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1352,6 +1524,7 @@ public java.lang.String getMid() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -1360,14 +1533,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -1375,16 +1549,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1395,11 +1568,14 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The name. */ @java.lang.Override @@ -1408,29 +1584,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Object name, expressed in its `language_code` language.
      * 
* * string name = 3; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1441,11 +1617,14 @@ public java.lang.String getName() { public static final int SCORE_FIELD_NUMBER = 4; private float score_; /** + * + * *
      * Score of the result. Range [0, 1].
      * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -1454,6 +1633,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1465,8 +1645,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); } @@ -1498,8 +1677,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1509,22 +1687,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)) { + if (!(obj + instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) obj; - if (!getMid() - .equals(other.getMid())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1543,95 +1719,102 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1641,44 +1824,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Prediction for what the object in the bounding box is.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); } - // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1694,19 +1883,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation build() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1714,8 +1906,10 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation b } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(this); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + buildPartial() { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(this); result.mid_ = mid_; result.languageCode_ = languageCode_; result.name_ = name_; @@ -1728,46 +1922,54 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)other); + if (other + instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) { + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other) { + if (other + == com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()) return this; if (!other.getMid().isEmpty()) { mid_ = other.mid_; onChanged(); @@ -1798,11 +2000,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parsedMessage = null; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1814,18 +2019,20 @@ public Builder mergeFrom( private java.lang.Object mid_ = ""; /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The mid. */ public java.lang.String getMid() { java.lang.Object ref = mid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mid_ = s; return s; @@ -1834,20 +2041,21 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return The bytes for mid. */ - public com.google.protobuf.ByteString - getMidBytes() { + public com.google.protobuf.ByteString getMidBytes() { java.lang.Object ref = mid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mid_ = b; return b; } else { @@ -1855,54 +2063,61 @@ public java.lang.String getMid() { } } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The mid to set. * @return This builder for chaining. */ - public Builder setMid( - java.lang.String value) { + public Builder setMid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mid_ = value; onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @return This builder for chaining. */ public Builder clearMid() { - + mid_ = getDefaultInstance().getMid(); onChanged(); return this; } /** + * + * *
        * Object ID that should align with EntityAnnotation mid.
        * 
* * string mid = 1; + * * @param value The bytes for mid to set. * @return This builder for chaining. */ - public Builder setMidBytes( - com.google.protobuf.ByteString value) { + public Builder setMidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mid_ = value; onChanged(); return this; @@ -1910,6 +2125,8 @@ public Builder setMidBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1917,13 +2134,13 @@ public Builder setMidBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1932,6 +2149,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1939,15 +2158,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1955,6 +2173,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1962,20 +2182,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1983,15 +2205,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -1999,16 +2224,16 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -2016,18 +2241,20 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2036,20 +2263,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2057,66 +2285,76 @@ public java.lang.String getName() { } } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Object name, expressed in its `language_code` language.
        * 
* * string name = 3; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return The score. */ @java.lang.Override @@ -2124,34 +2362,41 @@ public float getScore() { return score_; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Score of the result. Range [0, 1].
        * 
* * float score = 4; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2164,30 +2409,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(); + DEFAULT_INSTANCE = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2199,35 +2447,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GroupedResultOrBuilder extends + public interface GroupedResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly(); /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2237,15 +2494,18 @@ public interface GroupedResultOrBuilder extends com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2254,6 +2514,8 @@ public interface GroupedResultOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2262,15 +2524,19 @@ public interface GroupedResultOrBuilder extends */ int getResultsCount(); /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2281,50 +2547,75 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List getObjectAnnotationsList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ int getObjectAnnotationsCount(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList(); /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); } /** + * + * *
    * Information about the products similar to a single product in a query
    * image.
@@ -2332,15 +2623,16 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult}
    */
-  public static final class GroupedResult extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GroupedResult extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
       GroupedResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GroupedResult.newBuilder() to construct.
     private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private GroupedResult() {
       results_ = java.util.Collections.emptyList();
       objectAnnotations_ = java.util.Collections.emptyList();
@@ -2348,16 +2640,15 @@ private GroupedResult() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GroupedResult();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private GroupedResult(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2377,44 +2668,59 @@ private GroupedResult(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null;
-              if (boundingPoly_ != null) {
-                subBuilder = boundingPoly_.toBuilder();
-              }
-              boundingPoly_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(boundingPoly_);
-                boundingPoly_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null;
+                if (boundingPoly_ != null) {
+                  subBuilder = boundingPoly_.toBuilder();
+                }
+                boundingPoly_ =
+                    input.readMessage(
+                        com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(boundingPoly_);
+                  boundingPoly_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  results_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                results_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(),
+                        extensionRegistry));
+                break;
               }
-              results_.add(
-                  input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.parser(), extensionRegistry));
-              break;
-            }
-            case 26: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                objectAnnotations_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 26:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  objectAnnotations_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.vision.v1p4beta1.ProductSearchResults
+                              .ObjectAnnotation>();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                objectAnnotations_.add(
+                    input.readMessage(
+                        com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation
+                            .parser(),
+                        extensionRegistry));
+                break;
               }
-              objectAnnotations_.add(
-                  input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2422,8 +2728,7 @@ private GroupedResult(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -2435,27 +2740,33 @@ private GroupedResult(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchProto
+          .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class,
+              com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
     }
 
     public static final int BOUNDING_POLY_FIELD_NUMBER = 1;
     private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_;
     /**
+     *
+     *
      * 
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -2463,18 +2774,25 @@ public boolean hasBoundingPoly() { return boundingPoly_ != null; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } /** + * + * *
      * The bounding polygon around the product detected in the query image.
      * 
@@ -2489,6 +2807,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2496,10 +2816,13 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List + getResultsList() { return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2507,11 +2830,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2523,6 +2849,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2534,6 +2862,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -2541,72 +2871,98 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { return results_.get(index); } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; - private java.util.List objectAnnotations_; + private java.util.List + objectAnnotations_; /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { return objectAnnotations_.get(index); } /** + * + * *
      * List of generic predictions for the object in the bounding box.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2618,8 +2974,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundingPoly_ != null) { output.writeMessage(1, getBoundingPoly()); } @@ -2639,16 +2994,14 @@ public int getSerializedSize() { size = 0; if (boundingPoly_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundingPoly()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingPoly()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } for (int i = 0; i < objectAnnotations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, objectAnnotations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2658,22 +3011,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) obj; if (hasBoundingPoly() != other.hasBoundingPoly()) return false; if (hasBoundingPoly()) { - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getObjectAnnotationsList() - .equals(other.getObjectAnnotationsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2703,87 +3054,95 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2793,6 +3152,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about the products similar to a single product in a query
      * image.
@@ -2800,40 +3161,44 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
         com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
+                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.class,
+                com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder.class);
       }
 
-      // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.newBuilder()
+      // Construct using
+      // com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getResultsFieldBuilder();
           getObjectAnnotationsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2859,19 +3224,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchProto
+            .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() {
-        return com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance();
+      public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
+          getDefaultInstanceForType() {
+        return com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult build() {
-        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result = buildPartial();
+        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2880,7 +3248,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buil
 
       @java.lang.Override
       public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buildPartial() {
-        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(this);
+        com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult result =
+            new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(this);
         int from_bitField0_ = bitField0_;
         if (boundingPolyBuilder_ == null) {
           result.boundingPoly_ = boundingPoly_;
@@ -2913,46 +3282,53 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buil
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) {
-          return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)other);
+          return mergeFrom(
+              (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other) {
-        if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult other) {
+        if (other
+            == com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult
+                .getDefaultInstance()) return this;
         if (other.hasBoundingPoly()) {
           mergeBoundingPoly(other.getBoundingPoly());
         }
@@ -2974,9 +3350,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.
               resultsBuilder_ = null;
               results_ = other.results_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              resultsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getResultsFieldBuilder() : null;
+              resultsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getResultsFieldBuilder()
+                      : null;
             } else {
               resultsBuilder_.addAllMessages(other.results_);
             }
@@ -3000,9 +3377,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults.
               objectAnnotationsBuilder_ = null;
               objectAnnotations_ = other.objectAnnotations_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              objectAnnotationsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getObjectAnnotationsFieldBuilder() : null;
+              objectAnnotationsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getObjectAnnotationsFieldBuilder()
+                      : null;
             } else {
               objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_);
             }
@@ -3027,7 +3405,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3036,38 +3416,52 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingPoly_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
+              com.google.cloud.vision.v1p4beta1.BoundingPoly,
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+              com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
+          boundingPolyBuilder_;
       /**
+       *
+       *
        * 
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ public boolean hasBoundingPoly() { return boundingPolyBuilder_ != null || boundingPoly_ != null; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { if (boundingPolyBuilder_ == null) { - return boundingPoly_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } else { return boundingPolyBuilder_.getMessage(); } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3088,6 +3482,8 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3106,6 +3502,8 @@ public Builder setBoundingPoly( return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3116,7 +3514,9 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly if (boundingPolyBuilder_ == null) { if (boundingPoly_ != null) { boundingPoly_ = - com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingPoly_) + .mergeFrom(value) + .buildPartial(); } else { boundingPoly_ = value; } @@ -3128,6 +3528,8 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3146,6 +3548,8 @@ public Builder clearBoundingPoly() { return this; } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3153,11 +3557,13 @@ public Builder clearBoundingPoly() { * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBuilder() { - + onChanged(); return getBoundingPolyFieldBuilder().getBuilder(); } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3168,11 +3574,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr if (boundingPolyBuilder_ != null) { return boundingPolyBuilder_.getMessageOrBuilder(); } else { - return boundingPoly_ == null ? - com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingPoly_; + return boundingPoly_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingPoly_; } } /** + * + * *
        * The bounding polygon around the product detected in the query image.
        * 
@@ -3180,39 +3589,52 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( - getBoundingPoly(), - getParentForChildren(), - isClean()); + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + getBoundingPoly(), getParentForChildren(), isClean()); boundingPoly_ = null; } return boundingPolyBuilder_; } - private java.util.List results_ = - java.util.Collections.emptyList(); + private java.util.List + results_ = java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + resultsBuilder_; /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -3220,11 +3642,14 @@ public java.util.List * List of results, one for each product match. *
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -3234,11 +3659,14 @@ public int getResultsCount() { } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index) { if (resultsBuilder_ == null) { @@ -3248,11 +3676,14 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder setResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { @@ -3269,14 +3700,18 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder setResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -3287,13 +3722,17 @@ public Builder setResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public Builder addResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { + public Builder addResults( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3307,11 +3746,14 @@ public Builder addResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result value) { @@ -3328,11 +3770,14 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { @@ -3346,14 +3791,18 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder addResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -3364,18 +3813,22 @@ public Builder addResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result> + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -3383,11 +3836,14 @@ public Builder addAllResults( return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -3400,11 +3856,14 @@ public Builder clearResults() { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -3417,39 +3876,50 @@ public Builder removeResults(int index) { return this; } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder getResultsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder + getResultsBuilder(int index) { return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -3457,74 +3927,103 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge } } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder + addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder( - int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder + addResultsBuilder(int index) { + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
        * List of results, one for each product match.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 2; + * */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List objectAnnotations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> + objectAnnotations_ = java.util.Collections.emptyList(); + private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation>( + objectAnnotations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> objectAnnotationsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + objectAnnotationsBuilder_; /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List getObjectAnnotationsList() { + public java.util.List + getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { @@ -3532,11 +4031,15 @@ public java.util.List * List of generic predictions for the object in the bounding box. *
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { @@ -3546,13 +4049,18 @@ public int getObjectAnnotationsCount() { } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { @@ -3560,14 +4068,19 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation g } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3581,14 +4094,20 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder setObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); @@ -3599,13 +4118,18 @@ public Builder setObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public Builder addObjectAnnotations(com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + public Builder addObjectAnnotations( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3619,14 +4143,19 @@ public Builder addObjectAnnotations(com.google.cloud.vision.v1p4beta1.ProductSea return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3640,14 +4169,19 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); @@ -3658,14 +4192,20 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addObjectAnnotations( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); @@ -3676,18 +4216,23 @@ public Builder addObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder addAllObjectAnnotations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> + values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectAnnotations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); @@ -3695,11 +4240,15 @@ public Builder addAllObjectAnnotations( return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { @@ -3712,11 +4261,15 @@ public Builder clearObjectAnnotations() { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { @@ -3729,39 +4282,54 @@ public Builder removeObjectAnnotations(int index) { return this; } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + getObjectAnnotationsBuilder(int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { if (objectAnnotationsBuilder_ == null) { - return objectAnnotations_.get(index); } else { + return objectAnnotations_.get(index); + } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { @@ -3769,45 +4337,70 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOr } } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder() { - return getObjectAnnotationsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder( - int index) { - return getObjectAnnotationsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); } /** + * + * *
        * List of generic predictions for the object in the bounding box.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * */ - public java.util.List - getObjectAnnotationsBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder> + getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { - objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3816,6 +4409,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.B } return objectAnnotationsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3828,30 +4422,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) - private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult(); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupedResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupedResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupedResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupedResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3863,15 +4459,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INDEX_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3879,6 +4477,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getD
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -3886,6 +4485,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3893,6 +4494,7 @@ public boolean hasIndexTime() {
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ @java.lang.Override @@ -3900,6 +4502,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -3916,6 +4520,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 5;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
@@ -3923,10 +4529,13 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List + getResultsList() { return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3934,11 +4543,14 @@ public java.util.Listrepeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3950,6 +4562,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3961,6 +4575,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( return results_.get(index); } /** + * + * *
    * List of results, one for each product match.
    * 
@@ -3974,8 +4590,11 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge } public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER = 6; - private java.util.List productGroupedResults_; + private java.util.List + productGroupedResults_; /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3983,13 +4602,18 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { return productGroupedResults_; } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -3997,14 +4621,19 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>
       getProductGroupedResultsOrBuilderList() {
     return productGroupedResults_;
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4012,13 +4641,17 @@ public java.util.List
    *
-   * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
+   * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
+   * 
    */
   @java.lang.Override
   public int getProductGroupedResultsCount() {
     return productGroupedResults_.size();
   }
   /**
+   *
+   *
    * 
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4026,13 +4659,18 @@ public int getProductGroupedResultsCount() {
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + getProductGroupedResults(int index) { return productGroupedResults_.get(index); } /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -4040,15 +4678,18 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getP
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { return productGroupedResults_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4060,8 +4701,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } @@ -4081,16 +4721,15 @@ public int getSerializedSize() { size = 0; if (indexTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIndexTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, productGroupedResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, productGroupedResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4100,22 +4739,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSearchResults other = (com.google.cloud.vision.v1p4beta1.ProductSearchResults) obj; + com.google.cloud.vision.v1p4beta1.ProductSearchResults other = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults) obj; if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { - if (!getIndexTime() - .equals(other.getIndexTime())) return false; + if (!getIndexTime().equals(other.getIndexTime())) return false; } - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getProductGroupedResultsList() - .equals(other.getProductGroupedResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getProductGroupedResultsList().equals(other.getProductGroupedResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4145,117 +4782,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSearchResults prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results for a product search request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults) com.google.cloud.vision.v1p4beta1.ProductSearchResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSearchResults.newBuilder() @@ -4263,18 +4910,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResultsFieldBuilder(); getProductGroupedResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4300,9 +4947,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchProto.internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor; } @java.lang.Override @@ -4321,7 +4968,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSearchResults buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSearchResults result = new com.google.cloud.vision.v1p4beta1.ProductSearchResults(this); + com.google.cloud.vision.v1p4beta1.ProductSearchResults result = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults(this); int from_bitField0_ = bitField0_; if (indexTimeBuilder_ == null) { result.indexTime_ = indexTime_; @@ -4354,38 +5002,39 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSearchResults) other); } else { super.mergeFrom(other); return this; @@ -4393,7 +5042,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSearchResults.getDefaultInstance()) + return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -4415,9 +5065,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -4441,9 +5092,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSearchResults productGroupedResultsBuilder_ = null; productGroupedResults_ = other.productGroupedResults_; bitField0_ = (bitField0_ & ~0x00000002); - productGroupedResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProductGroupedResultsFieldBuilder() : null; + productGroupedResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductGroupedResultsFieldBuilder() + : null; } else { productGroupedResultsBuilder_.addAllMessages(other.productGroupedResults_); } @@ -4468,7 +5120,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSearchResults) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4477,12 +5130,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4490,12 +5149,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4503,6 +5165,7 @@ public boolean hasIndexTime() {
      * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -4513,6 +5176,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4535,6 +5200,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4543,8 +5210,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp index_time = 2;
      */
-    public Builder setIndexTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (indexTimeBuilder_ == null) {
         indexTime_ = builderForValue.build();
         onChanged();
@@ -4555,6 +5221,8 @@ public Builder setIndexTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4567,7 +5235,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       if (indexTimeBuilder_ == null) {
         if (indexTime_ != null) {
           indexTime_ =
-            com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial();
         } else {
           indexTime_ = value;
         }
@@ -4579,6 +5247,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4599,6 +5269,8 @@ public Builder clearIndexTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4608,11 +5280,13 @@ public Builder clearIndexTime() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
-      
+
       onChanged();
       return getIndexTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4625,11 +5299,12 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
       if (indexTimeBuilder_ != null) {
         return indexTimeBuilder_.getMessageOrBuilder();
       } else {
-        return indexTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
+        return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Timestamp of the index which provided these results. Products added to the
      * product set and products removed from the product set after this time are
@@ -4639,39 +5314,51 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * .google.protobuf.Timestamp index_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getIndexTimeFieldBuilder() {
       if (indexTimeBuilder_ == null) {
-        indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getIndexTime(),
-                getParentForChildren(),
-                isClean());
+        indexTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getIndexTime(), getParentForChildren(), isClean());
         indexTime_ = null;
       }
       return indexTimeBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> resultsBuilder_;
+            com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result,
+            com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder,
+            com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -4679,6 +5366,8 @@ public java.util.List * List of results, one for each product match. *
@@ -4693,6 +5382,8 @@ public int getResultsCount() { } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4707,6 +5398,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( } } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4728,6 +5421,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4735,7 +5430,8 @@ public Builder setResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder setResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -4746,6 +5442,8 @@ public Builder setResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4766,6 +5464,8 @@ public Builder addResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4787,6 +5487,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4805,6 +5507,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4812,7 +5516,8 @@ public Builder addResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder addResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -4823,6 +5528,8 @@ public Builder addResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4830,11 +5537,11 @@ public Builder addResults( * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -4842,6 +5549,8 @@ public Builder addAllResults( return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4859,6 +5568,8 @@ public Builder clearResults() { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4876,6 +5587,8 @@ public Builder removeResults(int index) { return this; } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4887,28 +5600,34 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder get return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder + getResultsOrBuilder(int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -4916,17 +5635,23 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder ge } } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder + addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
@@ -4935,48 +5660,64 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder add */ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.getDefaultInstance()); } /** + * + * *
      * List of results, one for each product match.
      * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } - private java.util.List productGroupedResults_ = - java.util.Collections.emptyList(); + private java.util.List + productGroupedResults_ = java.util.Collections.emptyList(); + private void ensureProductGroupedResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productGroupedResults_ = new java.util.ArrayList(productGroupedResults_); + productGroupedResults_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult>( + productGroupedResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> productGroupedResultsBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + productGroupedResultsBuilder_; /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -4984,9 +5725,12 @@ private void ensureProductGroupedResultsIsMutable() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List getProductGroupedResultsList() { + public java.util.List + getProductGroupedResultsList() { if (productGroupedResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(productGroupedResults_); } else { @@ -4994,6 +5738,8 @@ public java.util.List * List of results grouped by products detected in the query image. Each entry * corresponds to one bounding polygon in the query image, and contains the @@ -5001,7 +5747,9 @@ public java.util.List * - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public int getProductGroupedResultsCount() { if (productGroupedResultsBuilder_ == null) { @@ -5011,6 +5759,8 @@ public int getProductGroupedResultsCount() { } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5018,9 +5768,12 @@ public int getProductGroupedResultsCount() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + getProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { return productGroupedResults_.get(index); } else { @@ -5028,6 +5781,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getP } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5035,7 +5790,9 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getP
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { @@ -5052,6 +5809,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5059,10 +5818,14 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder setProductGroupedResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.set(index, builderForValue.build()); @@ -5073,6 +5836,8 @@ public Builder setProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5080,9 +5845,12 @@ public Builder setProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public Builder addProductGroupedResults(com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { + public Builder addProductGroupedResults( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { if (productGroupedResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5096,6 +5864,8 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1p4beta1.Produc return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5103,7 +5873,9 @@ public Builder addProductGroupedResults(com.google.cloud.vision.v1p4beta1.Produc
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult value) { @@ -5120,6 +5892,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5127,10 +5901,13 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(builderForValue.build()); @@ -5141,6 +5918,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5148,10 +5927,14 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addProductGroupedResults( - int index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + builderForValue) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); productGroupedResults_.add(index, builderForValue.build()); @@ -5162,6 +5945,8 @@ public Builder addProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5169,14 +5954,17 @@ public Builder addProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder addAllProductGroupedResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult> + values) { if (productGroupedResultsBuilder_ == null) { ensureProductGroupedResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productGroupedResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productGroupedResults_); onChanged(); } else { productGroupedResultsBuilder_.addAllMessages(values); @@ -5184,6 +5972,8 @@ public Builder addAllProductGroupedResults( return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5191,7 +5981,9 @@ public Builder addAllProductGroupedResults(
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder clearProductGroupedResults() { if (productGroupedResultsBuilder_ == null) { @@ -5204,6 +5996,8 @@ public Builder clearProductGroupedResults() { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5211,7 +6005,9 @@ public Builder clearProductGroupedResults() {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ public Builder removeProductGroupedResults(int index) { if (productGroupedResultsBuilder_ == null) { @@ -5224,6 +6020,8 @@ public Builder removeProductGroupedResults(int index) { return this; } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5231,13 +6029,17 @@ public Builder removeProductGroupedResults(int index) {
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + getProductGroupedResultsBuilder(int index) { return getProductGroupedResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5245,16 +6047,21 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index) { if (productGroupedResultsBuilder_ == null) { - return productGroupedResults_.get(index); } else { + return productGroupedResults_.get(index); + } else { return productGroupedResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5262,10 +6069,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBui
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + getProductGroupedResultsOrBuilderList() { if (productGroupedResultsBuilder_ != null) { return productGroupedResultsBuilder_.getMessageOrBuilderList(); } else { @@ -5273,6 +6083,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBui } } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5280,13 +6092,20 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBui
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder() { - return getProductGroupedResultsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder() { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + .getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5294,14 +6113,21 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder( - int index) { - return getProductGroupedResultsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder + addProductGroupedResultsBuilder(int index) { + return getProductGroupedResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult + .getDefaultInstance()); } /** + * + * *
      * List of results grouped by products detected in the query image. Each entry
      * corresponds to one bounding polygon in the query image, and contains the
@@ -5309,18 +6135,27 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Buil
      * matches in the union of all the per-product results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - public java.util.List - getProductGroupedResultsBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder> + getProductGroupedResultsBuilderList() { return getProductGroupedResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsFieldBuilder() { if (productGroupedResultsBuilder_ == null) { - productGroupedResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>( + productGroupedResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>( productGroupedResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5329,9 +6164,9 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult.Buil } return productGroupedResultsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5341,12 +6176,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults) private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSearchResults(); } @@ -5355,16 +6190,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSearchResults getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSearchResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSearchResults(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSearchResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSearchResults(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5379,6 +6214,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSearchResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java index 727cac78c..c2073ad9c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSearchResultsOrBuilder extends +public interface ProductSearchResultsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -15,10 +33,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -26,10 +47,13 @@ public interface ProductSearchResultsOrBuilder extends
    * 
* * .google.protobuf.Timestamp index_time = 2; + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Timestamp of the index which provided these results. Products added to the
    * product set and products removed from the product set after this time are
@@ -41,15 +65,18 @@ public interface ProductSearchResultsOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -58,6 +85,8 @@ public interface ProductSearchResultsOrBuilder extends */ com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults(int index); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -66,15 +95,19 @@ public interface ProductSearchResultsOrBuilder extends */ int getResultsCount(); /** + * + * *
    * List of results, one for each product match.
    * 
* * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
    * List of results, one for each product match.
    * 
@@ -85,6 +118,8 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -92,11 +127,15 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List getProductGroupedResultsList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -104,10 +143,15 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults(int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult getProductGroupedResults( + int index); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -115,10 +159,14 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ int getProductGroupedResultsCount(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -126,11 +174,16 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsOrBuilderList(); /** + * + * *
    * List of results grouped by products detected in the query image. Each entry
    * corresponds to one bounding polygon in the query image, and contains the
@@ -138,8 +191,10 @@ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResult
    * matches in the union of all the per-product results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6; + * */ - com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder + getProductGroupedResultsOrBuilder(int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java new file mode 100644 index 000000000..1e9331c31 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java @@ -0,0 +1,695 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class ProductSearchServiceProto { + private ProductSearchServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/vision/v1p4beta1/product_" + + "search_service.proto\022\035google.cloud.visio" + + "n.v1p4beta1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032,google/cloud/vision/v1p4beta1/ge" + + "ometry.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + + "4beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + + "gleapis.com/Product\022:projects/{project}/" + + "locations/{location}/products/{product}\"" + + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + + "on.googleapis.com/ProductSet\022Aprojects/{" + + "project}/locations/{location}/productSet" + + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + + "olys\030\003 \003(\0132+.google.cloud.vision.v1p4bet" + + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + + "leapis.com/ReferenceImage\022\\projects/{pro" + + "ject}/locations/{location}/products/{pro" + + "duct}/referenceImages/{reference_image}\"" + + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + + "on.v1p4beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + + "ts\030\001 \003(\0132&.google.cloud.vision.v1p4beta1" + + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + + "loud.vision.v1p4beta1.ProductB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + + "oud.vision.v1p4beta1.ProductSetB\003\340A\002\022\026\n\016" + + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + + "le.cloud.vision.v1p4beta1.ProductSet\022\027\n\017" + + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + + "cloud.vision.v1p4beta1.ProductSetB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + + "ProductSet\"\275\001\n\033CreateReferenceImageReque" + + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + + "eapis.com/Product\022K\n\017reference_image\030\002 \001" + + "(\0132-.google.cloud.vision.v1p4beta1.Refer" + + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + + "\n\020reference_images\030\001 \003(\0132-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\022\021\n\tpage_" + + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + + "ReferenceImage\"\217\001\n\035AddProductToProductSe" + + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"u\n ListProductsInProductSetResponse\0228" + + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + + "1p4beta1.Product\022\027\n\017next_page_token\030\002 \001(" + + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + + ".vision.v1p4beta1.ImportProductSetsGcsSo" + + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022V\n\014input_config" + + "\030\002 \001(\0132;.google.cloud.vision.v1p4beta1.I" + + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + + "ortProductSetsResponse\022G\n\020reference_imag" + + "es\030\001 \003(\0132-.google.cloud.vision.v1p4beta1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + + "p4beta1.BatchOperationMetadata.State\022/\n\013" + + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + + "AILED\020\003\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurg" + + "eConfig\022\026\n\016product_set_id\030\001 \001(\t\"\346\001\n\024Purg" + + "eProductsRequest\022X\n\030product_set_purge_co" + + "nfig\030\002 \001(\01324.google.cloud.vision.v1p4bet" + + "a1.ProductSetPurgeConfigH\000\022 \n\026delete_orp" + + "han_products\030\003 \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\r\n\005force\030\004 \001(\010B\010\n\006target2\322 \n\rProductSear" + + "ch\022\346\001\n\020CreateProductSet\0226.google.cloud.v" + + "ision.v1p4beta1.CreateProductSetRequest\032" + + ").google.cloud.vision.v1p4beta1.ProductS" + + "et\"o\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" + + "*/locations/*}/productSets:\013product_set\332" + + "A!parent,product_set,product_set_id\022\311\001\n\017" + + "ListProductSets\0225.google.cloud.vision.v1" + + "p4beta1.ListProductSetsRequest\0326.google." + + "cloud.vision.v1p4beta1.ListProductSetsRe" + + "sponse\"G\202\323\344\223\0028\0226/v1p4beta1/{parent=proje" + + "cts/*/locations/*}/productSets\332A\006parent\022" + + "\266\001\n\rGetProductSet\0223.google.cloud.vision." + + "v1p4beta1.GetProductSetRequest\032).google." + + "cloud.vision.v1p4beta1.ProductSet\"E\202\323\344\223\002" + + "8\0226/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}\332A\004name\022\350\001\n\020UpdateProdu" + + "ctSet\0226.google.cloud.vision.v1p4beta1.Up" + + "dateProductSetRequest\032).google.cloud.vis" + + "ion.v1p4beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p4b" + + "eta1/{product_set.name=projects/*/locati" + + "ons/*/productSets/*}:\013product_set\332A\027prod" + + "uct_set,update_mask\022\251\001\n\020DeleteProductSet" + + "\0226.google.cloud.vision.v1p4beta1.DeleteP" + + "roductSetRequest\032\026.google.protobuf.Empty" + + "\"E\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/lo" + + "cations/*/productSets/*}\332A\004name\022\316\001\n\rCrea" + + "teProduct\0223.google.cloud.vision.v1p4beta" + + "1.CreateProductRequest\032&.google.cloud.vi" + + "sion.v1p4beta1.Product\"`\202\323\344\223\002>\"3/v1p4bet" + + "a1/{parent=projects/*/locations/*}/produ" + + "cts:\007product\332A\031parent,product,product_id" + + "\022\275\001\n\014ListProducts\0222.google.cloud.vision." + + "v1p4beta1.ListProductsRequest\0323.google.c" + + "loud.vision.v1p4beta1.ListProductsRespon" + + "se\"D\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/" + + "*/locations/*}/products\332A\006parent\022\252\001\n\nGet" + + "Product\0220.google.cloud.vision.v1p4beta1." + + "GetProductRequest\032&.google.cloud.vision." + + "v1p4beta1.Product\"B\202\323\344\223\0025\0223/v1p4beta1/{n" + + "ame=projects/*/locations/*/products/*}\332A" + + "\004name\022\320\001\n\rUpdateProduct\0223.google.cloud.v" + + "ision.v1p4beta1.UpdateProductRequest\032&.g" + + "oogle.cloud.vision.v1p4beta1.Product\"b\202\323" + + "\344\223\002F2;/v1p4beta1/{product.name=projects/" + + "*/locations/*/products/*}:\007product\332A\023pro" + + "duct,update_mask\022\240\001\n\rDeleteProduct\0223.goo" + + "gle.cloud.vision.v1p4beta1.DeleteProduct" + + "Request\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*" + + "3/v1p4beta1/{name=projects/*/locations/*" + + "/products/*}\332A\004name\022\216\002\n\024CreateReferenceI" + + "mage\022:.google.cloud.vision.v1p4beta1.Cre" + + "ateReferenceImageRequest\032-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\"\212\001\202\323\344\223\002X" + + "\"E/v1p4beta1/{parent=projects/*/location" + + "s/*/products/*}/referenceImages:\017referen" + + "ce_image\332A)parent,reference_image,refere" + + "nce_image_id\022\300\001\n\024DeleteReferenceImage\022:." + + "google.cloud.vision.v1p4beta1.DeleteRefe" + + "renceImageRequest\032\026.google.protobuf.Empt" + + "y\"T\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/l" + + "ocations/*/products/*/referenceImages/*}" + + "\332A\004name\022\344\001\n\023ListReferenceImages\0229.google" + + ".cloud.vision.v1p4beta1.ListReferenceIma" + + "gesRequest\032:.google.cloud.vision.v1p4bet" + + "a1.ListReferenceImagesResponse\"V\202\323\344\223\002G\022E" + + "/v1p4beta1/{parent=projects/*/locations/" + + "*/products/*}/referenceImages\332A\006parent\022\321" + + "\001\n\021GetReferenceImage\0227.google.cloud.visi" + + "on.v1p4beta1.GetReferenceImageRequest\032-." + + "google.cloud.vision.v1p4beta1.ReferenceI" + + "mage\"T\202\323\344\223\002G\022E/v1p4beta1/{name=projects/" + + "*/locations/*/products/*/referenceImages" + + "/*}\332A\004name\022\313\001\n\026AddProductToProductSet\022<." + + "google.cloud.vision.v1p4beta1.AddProduct" + + "ToProductSetRequest\032\026.google.protobuf.Em" + + "pty\"[\202\323\344\223\002F\"A/v1p4beta1/{name=projects/*" + + "/locations/*/productSets/*}:addProduct:\001" + + "*\332A\014name,product\022\330\001\n\033RemoveProductFromPr" + + "oductSet\022A.google.cloud.vision.v1p4beta1" + + ".RemoveProductFromProductSetRequest\032\026.go" + + "ogle.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p4beta1/" + + "{name=projects/*/locations/*/productSets" + + "/*}:removeProduct:\001*\332A\014name,product\022\353\001\n\030" + + "ListProductsInProductSet\022>.google.cloud." + + "vision.v1p4beta1.ListProductsInProductSe" + + "tRequest\032?.google.cloud.vision.v1p4beta1" + + ".ListProductsInProductSetResponse\"N\202\323\344\223\002" + + "A\022?/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}/products\332A\004name\022\202\002\n\021Im" + + "portProductSets\0227.google.cloud.vision.v1" + + "p4beta1.ImportProductSetsRequest\032\035.googl" + + "e.longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p4b" + + "eta1/{parent=projects/*/locations/*}/pro" + + "ductSets:import:\001*\332A\023parent,input_config" + + "\312A3\n\031ImportProductSetsResponse\022\026BatchOpe" + + "rationMetadata\022\344\001\n\rPurgeProducts\0223.googl" + + "e.cloud.vision.v1p4beta1.PurgeProductsRe" + + "quest\032\035.google.longrunning.Operation\"\177\202\323" + + "\344\223\002>\"9/v1p4beta1/{parent=projects/*/loca" + + "tions/*}/products:purge:\001*\332A\006parent\312A/\n\025" + + "google.protobuf.Empty\022\026BatchOperationMet" + + "adata\032v\312A\025vision.googleapis.com\322A[https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/cloud-v" + + "isionB\217\001\n!com.google.cloud.vision.v1p4be" + + "ta1B\031ProductSearchServiceProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/vi" + + "sion/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Product_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "ProductCategory", "ProductLabels", + }); + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor = + internal_static_google_cloud_vision_v1p4beta1_Product_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Product_KeyValue_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "IndexTime", "IndexError", + }); + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor, + new java.lang.String[] { + "Name", "Uri", "BoundingPolys", + }); + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateProductRequest_descriptor, + new java.lang.String[] { + "Parent", "Product", "ProductId", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsResponse_descriptor, + new java.lang.String[] { + "Products", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetProductRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor, + new java.lang.String[] { + "Product", "UpdateMask", + }); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteProductRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateProductSetRequest_descriptor, + new java.lang.String[] { + "Parent", "ProductSet", "ProductSetId", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductSetsResponse_descriptor, + new java.lang.String[] { + "ProductSets", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetProductSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor, + new java.lang.String[] { + "ProductSet", "UpdateMask", + }); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteProductSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_CreateReferenceImageRequest_descriptor, + new java.lang.String[] { + "Parent", "ReferenceImage", "ReferenceImageId", + }); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListReferenceImagesResponse_descriptor, + new java.lang.String[] { + "ReferenceImages", "PageSize", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_GetReferenceImageRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_DeleteReferenceImageRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AddProductToProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "Product", + }); + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "Product", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ListProductsInProductSetResponse_descriptor, + new java.lang.String[] { + "Products", "NextPageToken", + }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsGcsSource_descriptor, + new java.lang.String[] { + "CsvFileUri", + }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "InputConfig", + }); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ImportProductSetsResponse_descriptor, + new java.lang.String[] { + "ReferenceImages", "Statuses", + }); + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor, + new java.lang.String[] { + "State", "SubmitTime", "EndTime", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor, + new java.lang.String[] { + "ProductSetId", + }); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor, + new java.lang.String[] { + "ProductSetPurgeConfig", "DeleteOrphanProducts", "Parent", "Force", "Target", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java similarity index 76% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java index 322846f8d..b2f56da7b 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A ProductSet contains Products. A ProductSet can contain a maximum of 1
  * million reference images. If the limit is exceeded, periodic indexing will
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSet}
  */
-public final class ProductSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ProductSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSet)
     ProductSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ProductSet.newBuilder() to construct.
   private ProductSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ProductSet() {
     name_ = "";
     displayName_ = "";
@@ -28,16 +46,15 @@ private ProductSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ProductSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ProductSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,51 +73,56 @@ private ProductSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (indexTime_ != null) {
-              subBuilder = indexTime_.toBuilder();
-            }
-            indexTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(indexTime_);
-              indexTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (indexError_ != null) {
-              subBuilder = indexError_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(indexError_);
-              indexError_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (indexTime_ != null) {
+                subBuilder = indexTime_.toBuilder();
+              }
+              indexTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(indexTime_);
+                indexTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (indexError_ != null) {
+                subBuilder = indexError_.toBuilder();
+              }
+              indexError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(indexError_);
+                indexError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,29 +130,33 @@ private ProductSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ProductSet.class, com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ProductSet.class,
+            com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -139,6 +165,7 @@ private ProductSet(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -147,14 +174,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -163,16 +191,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -183,12 +210,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -197,30 +227,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -231,6 +261,8 @@ public java.lang.String getDisplayName() { public static final int INDEX_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp indexTime_; /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -239,7 +271,9 @@ public java.lang.String getDisplayName() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ @java.lang.Override @@ -247,6 +281,8 @@ public boolean hasIndexTime() { return indexTime_ != null; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -255,7 +291,9 @@ public boolean hasIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ @java.lang.Override @@ -263,6 +301,8 @@ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -271,7 +311,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { @@ -281,6 +322,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { public static final int INDEX_ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status indexError_; /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -288,6 +331,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ @java.lang.Override @@ -295,6 +339,8 @@ public boolean hasIndexError() { return indexError_ != null; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -302,6 +348,7 @@ public boolean hasIndexError() {
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ @java.lang.Override @@ -309,6 +356,8 @@ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; } /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -323,6 +372,7 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -334,8 +384,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -364,12 +413,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (indexTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getIndexTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIndexTime());
     }
     if (indexError_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getIndexError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIndexError());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -379,26 +426,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSet)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.ProductSet other = (com.google.cloud.vision.v1p4beta1.ProductSet) obj;
+    com.google.cloud.vision.v1p4beta1.ProductSet other =
+        (com.google.cloud.vision.v1p4beta1.ProductSet) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasIndexTime() != other.hasIndexTime()) return false;
     if (hasIndexTime()) {
-      if (!getIndexTime()
-          .equals(other.getIndexTime())) return false;
+      if (!getIndexTime().equals(other.getIndexTime())) return false;
     }
     if (hasIndexError() != other.hasIndexError()) return false;
     if (hasIndexError()) {
-      if (!getIndexError()
-          .equals(other.getIndexError())) return false;
+      if (!getIndexError().equals(other.getIndexError())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -428,97 +472,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.ProductSet parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSet prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A ProductSet contains Products. A ProductSet can contain a maximum of 1
    * million reference images. If the limit is exceeded, periodic indexing will
@@ -527,21 +578,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSet)
       com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ProductSet.class, com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ProductSet.class,
+              com.google.cloud.vision.v1p4beta1.ProductSet.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder()
@@ -549,16 +602,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,9 +634,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ProductSet_descriptor;
     }
 
     @java.lang.Override
@@ -603,7 +655,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSet build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ProductSet buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ProductSet result = new com.google.cloud.vision.v1p4beta1.ProductSet(this);
+      com.google.cloud.vision.v1p4beta1.ProductSet result =
+          new com.google.cloud.vision.v1p4beta1.ProductSet(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       if (indexTimeBuilder_ == null) {
@@ -624,38 +677,39 @@ public com.google.cloud.vision.v1p4beta1.ProductSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSet) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSet)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -709,6 +763,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the ProductSet.
      * Format is:
@@ -717,13 +773,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -732,6 +788,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -740,15 +798,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -756,6 +813,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -764,20 +823,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -786,15 +847,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ProductSet.
      * Format is:
@@ -803,16 +867,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -820,19 +884,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -841,21 +907,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -863,57 +930,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The user-provided name for this ProductSet. Must not be empty. Must be at
      * most 4096 characters long.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -921,8 +995,13 @@ public Builder setDisplayNameBytes( private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> indexTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -931,13 +1010,17 @@ public Builder setDisplayNameBytes(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -946,7 +1029,9 @@ public boolean hasIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ public com.google.protobuf.Timestamp getIndexTime() { @@ -957,6 +1042,8 @@ public com.google.protobuf.Timestamp getIndexTime() { } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -965,7 +1052,8 @@ public com.google.protobuf.Timestamp getIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -981,6 +1069,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -989,10 +1079,10 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setIndexTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { indexTime_ = builderForValue.build(); onChanged(); @@ -1003,6 +1093,8 @@ public Builder setIndexTime( return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1011,13 +1103,14 @@ public Builder setIndexTime(
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { if (indexTime_ != null) { indexTime_ = - com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(indexTime_).mergeFrom(value).buildPartial(); } else { indexTime_ = value; } @@ -1029,6 +1122,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1037,7 +1132,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1051,6 +1147,8 @@ public Builder clearIndexTime() { return this; } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1059,14 +1157,17 @@ public Builder clearIndexTime() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - + onChanged(); return getIndexTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1075,17 +1176,19 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { return indexTimeBuilder_.getMessageOrBuilder(); } else { - return indexTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; } } /** + * + * *
      * Output only. The time at which this ProductSet was last indexed. Query
      * results will reflect all updates before this time. If this ProductSet has
@@ -1094,17 +1197,21 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * This field is ignored when creating a ProductSet.
      * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getIndexTimeFieldBuilder() { if (indexTimeBuilder_ == null) { - indexTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getIndexTime(), - getParentForChildren(), - isClean()); + indexTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), getParentForChildren(), isClean()); indexTime_ = null; } return indexTimeBuilder_; @@ -1112,8 +1219,11 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { private com.google.rpc.Status indexError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> indexErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + indexErrorBuilder_; /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1121,12 +1231,15 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1134,6 +1247,7 @@ public boolean hasIndexError() {
      * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ public com.google.rpc.Status getIndexError() { @@ -1144,6 +1258,8 @@ public com.google.rpc.Status getIndexError() { } } /** + * + * *
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1166,6 +1282,8 @@ public Builder setIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1174,8 +1292,7 @@ public Builder setIndexError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setIndexError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) {
       if (indexErrorBuilder_ == null) {
         indexError_ = builderForValue.build();
         onChanged();
@@ -1186,6 +1303,8 @@ public Builder setIndexError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1198,7 +1317,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       if (indexErrorBuilder_ == null) {
         if (indexError_ != null) {
           indexError_ =
-            com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
+              com.google.rpc.Status.newBuilder(indexError_).mergeFrom(value).buildPartial();
         } else {
           indexError_ = value;
         }
@@ -1210,6 +1329,8 @@ public Builder mergeIndexError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1230,6 +1351,8 @@ public Builder clearIndexError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1239,11 +1362,13 @@ public Builder clearIndexError() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getIndexErrorBuilder() {
-      
+
       onChanged();
       return getIndexErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1256,11 +1381,12 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
       if (indexErrorBuilder_ != null) {
         return indexErrorBuilder_.getMessageOrBuilder();
       } else {
-        return indexError_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : indexError_;
+        return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If there was an error with indexing the product set, the field
      * is populated.
@@ -1270,21 +1396,21 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() {
      * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getIndexErrorFieldBuilder() {
       if (indexErrorBuilder_ == null) {
-        indexErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getIndexError(),
-                getParentForChildren(),
-                isClean());
+        indexErrorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getIndexError(), getParentForChildren(), isClean());
         indexError_ = null;
       }
       return indexErrorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1294,12 +1420,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSet)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSet)
   private static final com.google.cloud.vision.v1p4beta1.ProductSet DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSet();
   }
@@ -1308,16 +1434,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSet getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ProductSet parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ProductSet(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ProductSet parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ProductSet(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1332,6 +1458,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.ProductSet getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
similarity index 100%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
index 9b10318dc..b067ed338 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface ProductSetOrBuilder extends
+public interface ProductSetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSet)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The resource name of the ProductSet.
    * Format is:
@@ -16,10 +34,13 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ProductSet.
    * Format is:
@@ -28,34 +49,41 @@ public interface ProductSetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The user-provided name for this ProductSet. Must not be empty. Must be at
    * most 4096 characters long.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -64,11 +92,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the indexTime field is set. */ boolean hasIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -77,11 +109,15 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The indexTime. */ com.google.protobuf.Timestamp getIndexTime(); /** + * + * *
    * Output only. The time at which this ProductSet was last indexed. Query
    * results will reflect all updates before this time. If this ProductSet has
@@ -90,11 +126,14 @@ public interface ProductSetOrBuilder extends
    * This field is ignored when creating a ProductSet.
    * 
* - * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -102,10 +141,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the indexError field is set. */ boolean hasIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
@@ -113,10 +155,13 @@ public interface ProductSetOrBuilder extends
    * 
* * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The indexError. */ com.google.rpc.Status getIndexError(); /** + * + * *
    * Output only. If there was an error with indexing the product set, the field
    * is populated.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
similarity index 70%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
index 30d6cd995..d1118b075 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Config to control which ProductSet contains the Products to be deleted.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} */ -public final class ProductSetPurgeConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductSetPurgeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) ProductSetPurgeConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductSetPurgeConfig.newBuilder() to construct. private ProductSetPurgeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductSetPurgeConfig() { productSetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductSetPurgeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductSetPurgeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ProductSetPurgeConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - productSetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private ProductSetPurgeConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); } public static final int PRODUCT_SET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object productSetId_; /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -103,6 +125,7 @@ private ProductSetPurgeConfig(
    * 
* * string product_set_id = 1; + * * @return The productSetId. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getProductSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; } } /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -126,16 +150,15 @@ public java.lang.String getProductSetId() {
    * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getProductSetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productSetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productSetId_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other = (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) obj; + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other = + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) obj; - if (!getProductSetId() - .equals(other.getProductSetId())) return false; + if (!getProductSetId().equals(other.getProductSetId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to control which ProductSet contains the Products to be deleted.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; } @java.lang.Override @@ -366,7 +398,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig buildPartial() { - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(this); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = + new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(this); result.productSetId_ = productSetId_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other) { - if (other == com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) + return this; if (!other.getProductSetId().isEmpty()) { productSetId_ = other.productSetId_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object productSetId_ = ""; /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -458,13 +496,13 @@ public Builder mergeFrom(
      * 
* * string product_set_id = 1; + * * @return The productSetId. */ public java.lang.String getProductSetId() { java.lang.Object ref = productSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productSetId_ = s; return s; @@ -473,6 +511,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -480,15 +520,14 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ - public com.google.protobuf.ByteString - getProductSetIdBytes() { + public com.google.protobuf.ByteString getProductSetIdBytes() { java.lang.Object ref = productSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); productSetId_ = b; return b; } else { @@ -496,6 +535,8 @@ public java.lang.String getProductSetId() { } } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -503,20 +544,22 @@ public java.lang.String getProductSetId() {
      * 
* * string product_set_id = 1; + * * @param value The productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetId( - java.lang.String value) { + public Builder setProductSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + productSetId_ = value; onChanged(); return this; } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -524,15 +567,18 @@ public Builder setProductSetId(
      * 
* * string product_set_id = 1; + * * @return This builder for chaining. */ public Builder clearProductSetId() { - + productSetId_ = getDefaultInstance().getProductSetId(); onChanged(); return this; } /** + * + * *
      * The ProductSet that contains the Products to delete. If a Product is a
      * member of product_set_id in addition to other ProductSets, the Product will
@@ -540,23 +586,23 @@ public Builder clearProductSetId() {
      * 
* * string product_set_id = 1; + * * @param value The bytes for productSetId to set. * @return This builder for chaining. */ - public Builder setProductSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productSetId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) private static final com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(); } @@ -580,16 +626,16 @@ public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductSetPurgeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductSetPurgeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSetPurgeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSetPurgeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java index 6da4f7de9..9c93161da 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ProductSetPurgeConfigOrBuilder extends +public interface ProductSetPurgeConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -15,10 +33,13 @@ public interface ProductSetPurgeConfigOrBuilder extends
    * 
* * string product_set_id = 1; + * * @return The productSetId. */ java.lang.String getProductSetId(); /** + * + * *
    * The ProductSet that contains the Products to delete. If a Product is a
    * member of product_set_id in addition to other ProductSets, the Product will
@@ -26,8 +47,8 @@ public interface ProductSetPurgeConfigOrBuilder extends
    * 
* * string product_set_id = 1; + * * @return The bytes for productSetId. */ - com.google.protobuf.ByteString - getProductSetIdBytes(); + com.google.protobuf.ByteString getProductSetIdBytes(); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java index 102b6ba75..e18c65ce9 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Property.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A `Property` consists of a user-supplied name/value pair.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; value_ = ""; @@ -26,16 +44,15 @@ private Property() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private Property( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uint64Value_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + case 24: + { + uint64Value_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private Property( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Property.class, com.google.cloud.vision.v1p4beta1.Property.Builder.class); + com.google.cloud.vision.v1p4beta1.Property.class, + com.google.cloud.vision.v1p4beta1.Property.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,11 +178,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -167,29 +194,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -200,11 +227,14 @@ public java.lang.String getValue() { public static final int UINT64_VALUE_FIELD_NUMBER = 3; private long uint64Value_; /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -213,6 +243,7 @@ public long getUint64Value() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +281,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (uint64Value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, uint64Value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,19 +291,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Property)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.Property other = (com.google.cloud.vision.v1p4beta1.Property) obj; + com.google.cloud.vision.v1p4beta1.Property other = + (com.google.cloud.vision.v1p4beta1.Property) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getUint64Value() - != other.getUint64Value()) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (getUint64Value() != other.getUint64Value()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,125 +318,133 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUint64Value()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Property parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Property prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Property` consists of a user-supplied name/value pair.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Property) com.google.cloud.vision.v1p4beta1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Property.class, com.google.cloud.vision.v1p4beta1.Property.Builder.class); + com.google.cloud.vision.v1p4beta1.Property.class, + com.google.cloud.vision.v1p4beta1.Property.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Property.newBuilder() @@ -417,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_Property_descriptor; } @java.lang.Override @@ -461,7 +495,8 @@ public com.google.cloud.vision.v1p4beta1.Property build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Property buildPartial() { - com.google.cloud.vision.v1p4beta1.Property result = new com.google.cloud.vision.v1p4beta1.Property(this); + com.google.cloud.vision.v1p4beta1.Property result = + new com.google.cloud.vision.v1p4beta1.Property(this); result.name_ = name_; result.value_ = value_; result.uint64Value_ = uint64Value_; @@ -473,38 +508,39 @@ public com.google.cloud.vision.v1p4beta1.Property buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Property) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Property)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Property) other); } else { super.mergeFrom(other); return this; @@ -555,18 +591,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,20 +613,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -596,54 +635,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the property.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -651,18 +697,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -671,20 +719,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -692,66 +741,76 @@ public java.lang.String getValue() { } } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * Value of the property.
      * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private long uint64Value_ ; + private long uint64Value_; /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ @java.lang.Override @@ -759,37 +818,43 @@ public long getUint64Value() { return uint64Value_; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { - + uint64Value_ = value; onChanged(); return this; } /** + * + * *
      * Value of numeric properties.
      * 
* * uint64 uint64_value = 3; + * * @return This builder for chaining. */ public Builder clearUint64Value() { - + uint64Value_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Property) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Property) private static final com.google.cloud.vision.v1p4beta1.Property DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Property(); } @@ -813,16 +878,16 @@ public static com.google.cloud.vision.v1p4beta1.Property getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Property getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java index eba732a7d..a9023f1fd 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PropertyOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the property.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Value of the property.
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Value of numeric properties.
    * 
* * uint64 uint64_value = 3; + * * @return The uint64Value. */ long getUint64Value(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java index 30c0e2389..c4a79219c 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `PurgeProducts` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} */ -public final class PurgeProductsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) PurgeProductsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PurgeProductsRequest.newBuilder() to construct. private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PurgeProductsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PurgeProductsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PurgeProductsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,43 +70,50 @@ private PurgeProductsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_).toBuilder(); + parent_ = s; + break; } - target_ = - input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); - target_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = + ((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; } - targetCase_ = 2; - break; - } - case 24: { - target_ = input.readBool(); - targetCase_ = 3; - break; - } - case 32: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + target_ = input.readBool(); + targetCase_ = 3; + break; + } + case 32: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,35 +121,40 @@ private PurgeProductsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_SET_PURGE_CONFIG(2), DELETE_ORPHAN_PRODUCTS(3), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -141,30 +170,36 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: return PRODUCT_SET_PURGE_CONFIG; - case 3: return DELETE_ORPHAN_PRODUCTS; - case 0: return TARGET_NOT_SET; - default: return null; + case 2: + return PRODUCT_SET_PURGE_CONFIG; + case 3: + return DELETE_ORPHAN_PRODUCTS; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER = 2; /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -172,21 +207,26 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return The productSetPurgeConfig. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
@@ -194,21 +234,25 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurg * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { if (targetCase_ == 2) { - return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; } return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER = 3; /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ @java.lang.Override @@ -216,12 +260,15 @@ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ @java.lang.Override @@ -235,12 +282,17 @@ public boolean getDeleteOrphanProducts() { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -249,30 +301,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -283,12 +337,15 @@ public java.lang.String getParent() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_; /** + * + * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -297,6 +354,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +366,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -317,8 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) target_)); + output.writeBool(3, (boolean) ((java.lang.Boolean) target_)); } if (force_ != false) { output.writeBool(4, force_); @@ -336,17 +392,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); } if (targetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) target_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) target_)); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,26 +412,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other = (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) obj; + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other = + (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getForce() - != other.getForce()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getForce() != other.getForce()) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getProductSetPurgeConfig() - .equals(other.getProductSetPurgeConfig())) return false; + if (!getProductSetPurgeConfig().equals(other.getProductSetPurgeConfig())) return false; break; case 3: - if (getDeleteOrphanProducts() - != other.getDeleteOrphanProducts()) return false; + if (getDeleteOrphanProducts() != other.getDeleteOrphanProducts()) return false; break; case 0: default: @@ -394,8 +447,7 @@ public int hashCode() { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); switch (targetCase_) { case 2: hash = (37 * hash) + PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER; @@ -403,8 +455,7 @@ public int hashCode() { break; case 3: hash = (37 * hash) + DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleteOrphanProducts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteOrphanProducts()); break; case 0: default: @@ -415,117 +466,127 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `PurgeProducts` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) com.google.cloud.vision.v1p4beta1.PurgeProductsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.newBuilder() @@ -533,16 +594,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; } @java.lang.Override @@ -577,7 +637,8 @@ public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(this); + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = + new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(this); if (targetCase_ == 2) { if (productSetPurgeConfigBuilder_ == null) { result.target_ = target_; @@ -599,38 +660,39 @@ public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) other); } else { super.mergeFrom(other); return this; @@ -638,7 +700,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -647,17 +710,20 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest setForce(other.getForce()); } switch (other.getTargetCase()) { - case PRODUCT_SET_PURGE_CONFIG: { - mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); - break; - } - case DELETE_ORPHAN_PRODUCTS: { - setDeleteOrphanProducts(other.getDeleteOrphanProducts()); - break; - } - case TARGET_NOT_SET: { - break; - } + case PRODUCT_SET_PURGE_CONFIG: + { + mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); + break; + } + case DELETE_ORPHAN_PRODUCTS: + { + setDeleteOrphanProducts(other.getDeleteOrphanProducts()); + break; + } + case TARGET_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -678,7 +744,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -687,12 +754,12 @@ public Builder mergeFrom( } return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -702,15 +769,21 @@ public Builder clearTarget() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> productSetPurgeConfigBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> + productSetPurgeConfigBuilder_; /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + * * @return Whether the productSetPurgeConfig field is set. */ @java.lang.Override @@ -718,11 +791,15 @@ public boolean hasProductSetPurgeConfig() { return targetCase_ == 2; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + * * @return The productSetPurgeConfig. */ @java.lang.Override @@ -740,13 +817,17 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurg } } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ - public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + public Builder setProductSetPurgeConfig( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -760,11 +841,14 @@ public Builder setProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.Produc return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ public Builder setProductSetPurgeConfig( com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder builderForValue) { @@ -778,18 +862,26 @@ public Builder setProductSetPurgeConfig( return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ - public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + public Builder mergeProductSetPurgeConfig( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { if (productSetPurgeConfigBuilder_ == null) { - if (targetCase_ == 2 && - target_ != com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) { - target_ = com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 2 + && target_ + != com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) { + target_ = + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder( + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -805,11 +897,14 @@ public Builder mergeProductSetPurgeConfig(com.google.cloud.vision.v1p4beta1.Prod return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ public Builder clearProductSetPurgeConfig() { if (productSetPurgeConfigBuilder_ == null) { @@ -828,24 +923,32 @@ public Builder clearProductSetPurgeConfig() { return this; } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder getProductSetPurgeConfigBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder + getProductSetPurgeConfigBuilder() { return getProductSetPurgeConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder() { + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { if ((targetCase_ == 2) && (productSetPurgeConfigBuilder_ != null)) { return productSetPurgeConfigBuilder_.getMessageOrBuilder(); } else { @@ -856,50 +959,65 @@ public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProdu } } /** + * + * *
      * Specify which ProductSet contains the Products to be deleted.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> getProductSetPurgeConfigFieldBuilder() { if (productSetPurgeConfigBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); } - productSetPurgeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder>( + productSetPurgeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder>( (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; - onChanged();; + onChanged(); + ; return productSetPurgeConfigBuilder_; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ public boolean hasDeleteOrphanProducts() { return targetCase_ == 3; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ public boolean getDeleteOrphanProducts() { @@ -909,12 +1027,15 @@ public boolean getDeleteOrphanProducts() { return false; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @param value The deleteOrphanProducts to set. * @return This builder for chaining. */ @@ -925,12 +1046,15 @@ public Builder setDeleteOrphanProducts(boolean value) { return this; } /** + * + * *
      * If delete_orphan_products is true, all Products that are not in any
      * ProductSet will be deleted.
      * 
* * bool delete_orphan_products = 3; + * * @return This builder for chaining. */ public Builder clearDeleteOrphanProducts() { @@ -944,19 +1068,23 @@ public Builder clearDeleteOrphanProducts() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -965,21 +1093,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -987,70 +1118,86 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The project and location in which the Products should be deleted.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -1058,39 +1205,45 @@ public boolean getForce() { return force_; } /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * The default value is false. Override this value to true to actually perform
      * the purge.
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1253,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) private static final com.google.cloud.vision.v1p4beta1.PurgeProductsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(); } @@ -1114,16 +1267,16 @@ public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeProductsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeProductsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeProductsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,6 +1291,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java index 1674236f2..d373cefe8 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java @@ -1,89 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface PurgeProductsRequestOrBuilder extends +public interface PurgeProductsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.PurgeProductsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return Whether the productSetPurgeConfig field is set. */ boolean hasProductSetPurgeConfig(); /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * * @return The productSetPurgeConfig. */ com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig(); /** + * + * *
    * Specify which ProductSet contains the Products to be deleted.
    * 
* * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; */ - com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder(); + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder(); /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return Whether the deleteOrphanProducts field is set. */ boolean hasDeleteOrphanProducts(); /** + * + * *
    * If delete_orphan_products is true, all Products that are not in any
    * ProductSet will be deleted.
    * 
* * bool delete_orphan_products = 3; + * * @return The deleteOrphanProducts. */ boolean getDeleteOrphanProducts(); /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location in which the Products should be deleted.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The default value is false. Override this value to true to actually perform
    * the purge.
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java index 1db5a0eb6..9cd9e61de 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A `ReferenceImage` represents a product image and its associated metadata,
  * such as bounding boxes.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.ReferenceImage}
  */
-public final class ReferenceImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReferenceImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ReferenceImage)
     ReferenceImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReferenceImage.newBuilder() to construct.
   private ReferenceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReferenceImage() {
     name_ = "";
     uri_ = "";
@@ -28,16 +46,15 @@ private ReferenceImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReferenceImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReferenceImage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,34 +74,39 @@ private ReferenceImage(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              boundingPolys_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              uri_ = s;
+              break;
             }
-            boundingPolys_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                boundingPolys_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              boundingPolys_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +114,7 @@ private ReferenceImage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         boundingPolys_ = java.util.Collections.unmodifiableList(boundingPolys_);
@@ -102,22 +123,27 @@ private ReferenceImage(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+        .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.ReferenceImage.class, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
+            com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
+            com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the reference image.
    * Format is:
@@ -126,6 +152,7 @@ private ReferenceImage(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -134,14 +161,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -150,16 +178,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,12 +197,15 @@ public java.lang.String getName() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -184,30 +214,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -218,6 +248,8 @@ public java.lang.String getUri() { public static final int BOUNDING_POLYS_FIELD_NUMBER = 3; private java.util.List boundingPolys_; /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -228,13 +260,17 @@ public java.lang.String getUri() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getBoundingPolysList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -245,14 +281,18 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getBoundingPolysOrBuilderList() { return boundingPolys_; } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -263,13 +303,17 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getBoundingPolysCount() { return boundingPolys_.size(); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -280,13 +324,17 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); } /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -297,7 +345,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( @@ -306,6 +356,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,8 +368,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -344,8 +394,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < boundingPolys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, boundingPolys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, boundingPolys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,19 +404,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ReferenceImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.ReferenceImage other = (com.google.cloud.vision.v1p4beta1.ReferenceImage) obj; + com.google.cloud.vision.v1p4beta1.ReferenceImage other = + (com.google.cloud.vision.v1p4beta1.ReferenceImage) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getBoundingPolysList() - .equals(other.getBoundingPolysList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getBoundingPolysList().equals(other.getBoundingPolysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,97 +439,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.ReferenceImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.ReferenceImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `ReferenceImage` represents a product image and its associated metadata,
    * such as bounding boxes.
@@ -490,21 +544,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.ReferenceImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ReferenceImage)
       com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.ReferenceImage.class, com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
+              com.google.cloud.vision.v1p4beta1.ReferenceImage.class,
+              com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.ReferenceImage.newBuilder()
@@ -512,17 +568,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBoundingPolysFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -540,9 +596,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto
+          .internal_static_google_cloud_vision_v1p4beta1_ReferenceImage_descriptor;
     }
 
     @java.lang.Override
@@ -561,7 +617,8 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.ReferenceImage buildPartial() {
-      com.google.cloud.vision.v1p4beta1.ReferenceImage result = new com.google.cloud.vision.v1p4beta1.ReferenceImage(this);
+      com.google.cloud.vision.v1p4beta1.ReferenceImage result =
+          new com.google.cloud.vision.v1p4beta1.ReferenceImage(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uri_ = uri_;
@@ -582,38 +639,39 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.ReferenceImage) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.ReferenceImage)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.ReferenceImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -621,7 +679,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ReferenceImage other) {
-      if (other == com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.ReferenceImage.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -648,9 +707,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ReferenceImage other)
             boundingPolysBuilder_ = null;
             boundingPolys_ = other.boundingPolys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            boundingPolysBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBoundingPolysFieldBuilder() : null;
+            boundingPolysBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBoundingPolysFieldBuilder()
+                    : null;
           } else {
             boundingPolysBuilder_.addAllMessages(other.boundingPolys_);
           }
@@ -684,10 +744,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the reference image.
      * Format is:
@@ -696,13 +759,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -711,6 +774,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -719,15 +784,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -735,6 +799,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -743,20 +809,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -765,15 +833,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the reference image.
      * Format is:
@@ -782,16 +853,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -799,19 +870,21 @@ public Builder setNameBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -820,21 +893,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -842,75 +916,89 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
      * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } private java.util.List boundingPolys_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBoundingPolysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - boundingPolys_ = new java.util.ArrayList(boundingPolys_); + boundingPolys_ = + new java.util.ArrayList(boundingPolys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingPolysBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingPolysBuilder_; /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -921,7 +1009,9 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -931,6 +1021,8 @@ public java.util.List getBoundin } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -941,7 +1033,9 @@ public java.util.List getBoundin
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -951,6 +1045,8 @@ public int getBoundingPolysCount() { } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -961,7 +1057,9 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -971,6 +1069,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -981,7 +1081,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -998,6 +1100,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1008,7 +1112,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1022,6 +1128,8 @@ public Builder setBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1032,7 +1140,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1048,6 +1158,8 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1058,7 +1170,9 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -1075,6 +1189,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1085,7 +1201,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1099,6 +1217,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1109,7 +1229,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1123,6 +1245,8 @@ public Builder addBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1133,14 +1257,15 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllBoundingPolys( java.lang.Iterable values) { if (boundingPolysBuilder_ == null) { ensureBoundingPolysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundingPolys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingPolys_); onChanged(); } else { boundingPolysBuilder_.addAllMessages(values); @@ -1148,6 +1273,8 @@ public Builder addAllBoundingPolys( return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1158,7 +1285,9 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1171,6 +1300,8 @@ public Builder clearBoundingPolys() { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1181,7 +1312,9 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1194,6 +1327,8 @@ public Builder removeBoundingPolys(int index) { return this; } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1204,13 +1339,17 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBuilder( int index) { return getBoundingPolysFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1221,16 +1360,21 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { if (boundingPolysBuilder_ == null) { - return boundingPolys_.get(index); } else { + return boundingPolys_.get(index); + } else { return boundingPolysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1241,10 +1385,12 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysOrBuilderList() { + public java.util.List + getBoundingPolysOrBuilderList() { if (boundingPolysBuilder_ != null) { return boundingPolysBuilder_.getMessageOrBuilderList(); } else { @@ -1252,6 +1398,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO } } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1262,13 +1410,17 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder() { - return getBoundingPolysFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1279,14 +1431,18 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder( int index) { - return getBoundingPolysFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); + return getBoundingPolysFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()); } /** + * + * *
      * Optional. Bounding polygons around the areas of interest in the reference
      * image. If this field is empty, the system will try to detect regions of
@@ -1297,18 +1453,26 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getBoundingPolysBuilderList() { + public java.util.List + getBoundingPolysBuilderList() { return getBoundingPolysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> getBoundingPolysFieldBuilder() { if (boundingPolysBuilder_ == null) { - boundingPolysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( + boundingPolysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>( boundingPolys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1317,9 +1481,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu } return boundingPolysBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ReferenceImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ReferenceImage) private static final com.google.cloud.vision.v1p4beta1.ReferenceImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ReferenceImage(); } @@ -1343,16 +1507,16 @@ public static com.google.cloud.vision.v1p4beta1.ReferenceImage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReferenceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReferenceImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.ReferenceImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java index 0168999b0..04149af76 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; -public interface ReferenceImageOrBuilder extends +public interface ReferenceImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ReferenceImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -16,10 +34,13 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the reference image.
    * Format is:
@@ -28,34 +49,41 @@ public interface ReferenceImageOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
    * 
* * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -66,11 +94,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getBoundingPolysList(); + java.util.List getBoundingPolysList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -81,10 +112,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -95,10 +130,14 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getBoundingPolysCount(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -109,11 +148,15 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getBoundingPolysOrBuilderList(); /** + * + * *
    * Optional. Bounding polygons around the areas of interest in the reference
    * image. If this field is empty, the system will try to detect regions of
@@ -124,8 +167,9 @@ public interface ReferenceImageOrBuilder extends
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java similarity index 63% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java index fdcef3b96..7232b3ee7 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `RemoveProductFromProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest} */ -public final class RemoveProductFromProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RemoveProductFromProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) RemoveProductFromProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RemoveProductFromProductSetRequest.newBuilder() to construct. - private RemoveProductFromProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RemoveProductFromProductSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RemoveProductFromProductSetRequest() { name_ = ""; product_ = ""; @@ -26,16 +45,15 @@ private RemoveProductFromProductSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RemoveProductFromProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RemoveProductFromProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +72,27 @@ private RemoveProductFromProductSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - product_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + product_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +100,43 @@ private RemoveProductFromProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +145,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,6 +182,8 @@ public java.lang.String getName() { public static final int PRODUCT_FIELD_NUMBER = 2; private volatile java.lang.Object product_; /** + * + * *
    * Required. The resource name for the Product to be removed from this
    * ProductSet.
@@ -160,7 +191,10 @@ public java.lang.String getName() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ @java.lang.Override @@ -169,14 +203,15 @@ public java.lang.String getProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; } } /** + * + * *
    * Required. The resource name for the Product to be removed from this
    * ProductSet.
@@ -184,17 +219,18 @@ public java.lang.String getProduct() {
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ @java.lang.Override - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -203,6 +239,7 @@ public java.lang.String getProduct() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -245,17 +281,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other = (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) obj; + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other = + (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProduct() - .equals(other.getProduct())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProduct().equals(other.getProduct())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -277,134 +312,145 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `RemoveProductFromProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +462,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_RemoveProductFromProductSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + .getDefaultInstance(); } @java.lang.Override @@ -437,7 +485,8 @@ public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buil @java.lang.Override public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest result = new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(this); result.name_ = name_; result.product_ = product_; onBuilt(); @@ -448,46 +497,51 @@ public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest)other); + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest other) { + if (other + == com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -515,7 +569,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -527,20 +583,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -549,22 +609,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -572,60 +635,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -633,6 +709,8 @@ public Builder setNameBytes( private java.lang.Object product_ = ""; /** + * + * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -640,14 +718,16 @@ public Builder setNameBytes(
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The product. */ public java.lang.String getProduct() { java.lang.Object ref = product_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); product_ = s; return s; @@ -656,6 +736,8 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -663,16 +745,17 @@ public java.lang.String getProduct() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for product. */ - public com.google.protobuf.ByteString - getProductBytes() { + public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); product_ = b; return b; } else { @@ -680,6 +763,8 @@ public java.lang.String getProduct() { } } /** + * + * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -687,21 +772,25 @@ public java.lang.String getProduct() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The product to set. * @return This builder for chaining. */ - public Builder setProduct( - java.lang.String value) { + public Builder setProduct(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + product_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -709,16 +798,21 @@ public Builder setProduct(
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProduct() { - + product_ = getDefaultInstance().getProduct(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the Product to be removed from this
      * ProductSet.
@@ -726,24 +820,26 @@ public Builder clearProduct() {
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for product to set. * @return This builder for chaining. */ - public Builder setProductBytes( - com.google.protobuf.ByteString value) { + public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -753,30 +849,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - private static final com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest(); } - public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveProductFromProductSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveProductFromProductSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductFromProductSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoveProductFromProductSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -788,9 +886,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java new file mode 100644 index 000000000..d855b5dbd --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface RemoveProductFromProductSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the ProductSet to modify.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + /** + * + * + *
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
+   * Format is:
+   * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
+   * 
+ * + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java similarity index 76% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java index 7586ab5ab..19309a52f 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Set of features pertaining to the image, computed by computer vision
  * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.SafeSearchAnnotation}
  */
-public final class SafeSearchAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.SafeSearchAnnotation)
     SafeSearchAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SafeSearchAnnotation.newBuilder() to construct.
   private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SafeSearchAnnotation() {
     adult_ = 0;
     spoof_ = 0;
@@ -31,16 +49,15 @@ private SafeSearchAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SafeSearchAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SafeSearchAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,43 +76,48 @@ private SafeSearchAnnotation(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            adult_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              adult_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            spoof_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              spoof_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            medical_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              medical_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            violence_ = rawValue;
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
+              violence_ = rawValue;
+              break;
+            }
+          case 72:
+            {
+              int rawValue = input.readEnum();
 
-            racy_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              racy_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,29 +125,33 @@ private SafeSearchAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class,
+            com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
   }
 
   public static final int ADULT_FIELD_NUMBER = 1;
   private int adult_;
   /**
+   *
+   *
    * 
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -133,12 +159,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -146,17 +176,22 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The adult. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int SPOOF_FIELD_NUMBER = 2; private int spoof_; /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -164,12 +199,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -177,71 +216,94 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The spoof. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int MEDICAL_FIELD_NUMBER = 3; private int medical_; /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The medical. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int VIOLENCE_FIELD_NUMBER = 4; private int violence_; /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The violence. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } public static final int RACY_FIELD_NUMBER = 9; private int racy_; /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -250,12 +312,16 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -264,15 +330,19 @@ private SafeSearchAnnotation(
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The racy. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (adult_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(1, adult_); } @@ -311,24 +380,19 @@ public int getSerializedSize() { size = 0; if (adult_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, adult_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_); } if (spoof_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, spoof_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_); } if (medical_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, medical_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_); } if (violence_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, violence_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violence_); } if (racy_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, racy_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,12 +402,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other = (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) obj; + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other = + (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) obj; if (adult_ != other.adult_) return false; if (spoof_ != other.spoof_) return false; @@ -377,96 +442,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Set of features pertaining to the image, computed by computer vision
    * methods over safe-search verticals (for example, adult, spoof, medical,
@@ -475,21 +548,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.SafeSearchAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.SafeSearchAnnotation)
       com.google.cloud.vision.v1p4beta1.SafeSearchAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class, com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
+              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.class,
+              com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.newBuilder()
@@ -497,16 +572,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_SafeSearchAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +619,8 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation buildPartial() {
-      com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation result = new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(this);
+      com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation result =
+          new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(this);
       result.adult_ = adult_;
       result.spoof_ = spoof_;
       result.medical_ = medical_;
@@ -559,38 +634,39 @@ public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation other) {
-      if (other == com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation.getDefaultInstance())
+        return this;
       if (other.adult_ != 0) {
         setAdultValue(other.getAdultValue());
       }
@@ -633,7 +710,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -645,6 +723,8 @@ public Builder mergeFrom(
 
     private int adult_ = 0;
     /**
+     *
+     *
      * 
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -652,12 +732,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ - @java.lang.Override public int getAdultValue() { + @java.lang.Override + public int getAdultValue() { return adult_; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -665,16 +749,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @param value The enum numeric value on the wire for adult to set. * @return This builder for chaining. */ public Builder setAdultValue(int value) { - + adult_ = value; onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -682,15 +769,19 @@ public Builder setAdultValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The adult. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(adult_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -698,6 +789,7 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getAdult() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @param value The adult to set. * @return This builder for chaining. */ @@ -705,12 +797,14 @@ public Builder setAdult(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + adult_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents the adult content likelihood for the image. Adult content may
      * contain elements such as nudity, pornographic images or cartoons, or
@@ -718,10 +812,11 @@ public Builder setAdult(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return This builder for chaining. */ public Builder clearAdult() { - + adult_ = 0; onChanged(); return this; @@ -729,6 +824,8 @@ public Builder clearAdult() { private int spoof_ = 0; /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -736,12 +833,16 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ - @java.lang.Override public int getSpoofValue() { + @java.lang.Override + public int getSpoofValue() { return spoof_; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -749,16 +850,19 @@ public Builder clearAdult() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @param value The enum numeric value on the wire for spoof to set. * @return This builder for chaining. */ public Builder setSpoofValue(int value) { - + spoof_ = value; onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -766,15 +870,19 @@ public Builder setSpoofValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The spoof. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(spoof_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -782,6 +890,7 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getSpoof() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @param value The spoof to set. * @return This builder for chaining. */ @@ -789,12 +898,14 @@ public Builder setSpoof(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + spoof_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Spoof likelihood. The likelihood that an modification
      * was made to the image's canonical version to make it appear
@@ -802,10 +913,11 @@ public Builder setSpoof(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return This builder for chaining. */ public Builder clearSpoof() { - + spoof_ = 0; onChanged(); return this; @@ -813,51 +925,65 @@ public Builder clearSpoof() { private int medical_ = 0; /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ - @java.lang.Override public int getMedicalValue() { + @java.lang.Override + public int getMedicalValue() { return medical_; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @param value The enum numeric value on the wire for medical to set. * @return This builder for chaining. */ public Builder setMedicalValue(int value) { - + medical_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The medical. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getMedical() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(medical_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @param value The medical to set. * @return This builder for chaining. */ @@ -865,21 +991,24 @@ public Builder setMedical(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + medical_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this is a medical image.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return This builder for chaining. */ public Builder clearMedical() { - + medical_ = 0; onChanged(); return this; @@ -887,51 +1016,65 @@ public Builder clearMedical() { private int violence_ = 0; /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ - @java.lang.Override public int getViolenceValue() { + @java.lang.Override + public int getViolenceValue() { return violence_; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @param value The enum numeric value on the wire for violence to set. * @return This builder for chaining. */ public Builder setViolenceValue(int value) { - + violence_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The violence. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getViolence() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(violence_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @param value The violence to set. * @return This builder for chaining. */ @@ -939,21 +1082,24 @@ public Builder setViolence(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + violence_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that this image contains violent content.
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return This builder for chaining. */ public Builder clearViolence() { - + violence_ = 0; onChanged(); return this; @@ -961,6 +1107,8 @@ public Builder clearViolence() { private int racy_ = 0; /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -969,12 +1117,16 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ - @java.lang.Override public int getRacyValue() { + @java.lang.Override + public int getRacyValue() { return racy_; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -983,16 +1135,19 @@ public Builder clearViolence() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @param value The enum numeric value on the wire for racy to set. * @return This builder for chaining. */ public Builder setRacyValue(int value) { - + racy_ = value; onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1001,15 +1156,19 @@ public Builder setRacyValue(int value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The racy. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.Likelihood result = com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); + com.google.cloud.vision.v1p4beta1.Likelihood result = + com.google.cloud.vision.v1p4beta1.Likelihood.valueOf(racy_); return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1018,6 +1177,7 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getRacy() {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @param value The racy to set. * @return This builder for chaining. */ @@ -1025,12 +1185,14 @@ public Builder setRacy(com.google.cloud.vision.v1p4beta1.Likelihood value) { if (value == null) { throw new NullPointerException(); } - + racy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Likelihood that the request image contains racy content. Racy content may
      * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -1039,17 +1201,18 @@ public Builder setRacy(com.google.cloud.vision.v1p4beta1.Likelihood value) {
      * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return This builder for chaining. */ public Builder clearRacy() { - + racy_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) private static final com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation(); } @@ -1073,16 +1236,16 @@ public static com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafeSearchAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SafeSearchAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.SafeSearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java index 215efc070..5938a5045 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SafeSearchAnnotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface SafeSearchAnnotationOrBuilder extends +public interface SafeSearchAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -15,10 +33,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The enum numeric value on the wire for adult. */ int getAdultValue(); /** + * + * *
    * Represents the adult content likelihood for the image. Adult content may
    * contain elements such as nudity, pornographic images or cartoons, or
@@ -26,11 +47,14 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood adult = 1; + * * @return The adult. */ com.google.cloud.vision.v1p4beta1.Likelihood getAdult(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -38,10 +62,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The enum numeric value on the wire for spoof. */ int getSpoofValue(); /** + * + * *
    * Spoof likelihood. The likelihood that an modification
    * was made to the image's canonical version to make it appear
@@ -49,49 +76,64 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood spoof = 2; + * * @return The spoof. */ com.google.cloud.vision.v1p4beta1.Likelihood getSpoof(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The enum numeric value on the wire for medical. */ int getMedicalValue(); /** + * + * *
    * Likelihood that this is a medical image.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood medical = 3; + * * @return The medical. */ com.google.cloud.vision.v1p4beta1.Likelihood getMedical(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The enum numeric value on the wire for violence. */ int getViolenceValue(); /** + * + * *
    * Likelihood that this image contains violent content.
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood violence = 4; + * * @return The violence. */ com.google.cloud.vision.v1p4beta1.Likelihood getViolence(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -100,10 +142,13 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The enum numeric value on the wire for racy. */ int getRacyValue(); /** + * + * *
    * Likelihood that the request image contains racy content. Racy content may
    * include (but is not limited to) skimpy or sheer clothing, strategically
@@ -112,6 +157,7 @@ public interface SafeSearchAnnotationOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.Likelihood racy = 9; + * * @return The racy. */ com.google.cloud.vision.v1p4beta1.Likelihood getRacy(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java similarity index 75% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java index 704cc93c6..363cde8de 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A single symbol representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Symbol} */ -public final class Symbol extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Symbol extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Symbol) SymbolOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Symbol() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Symbol(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Symbol( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,50 +70,59 @@ private Symbol( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); + case 10: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } - property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + text_ = s; + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - text_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,34 +130,39 @@ private Symbol( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Symbol.class, com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p4beta1.Symbol.class, + com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -139,18 +170,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -158,13 +196,16 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -184,6 +225,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -191,6 +233,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -210,13 +254,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -245,11 +294,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int TEXT_FIELD_NUMBER = 3;
   private volatile java.lang.Object text_;
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -258,29 +310,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -291,11 +343,14 @@ public java.lang.String getText() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -304,6 +359,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -339,19 +394,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,7 +413,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Symbol)) { return super.equals(obj); @@ -370,19 +422,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,125 +453,133 @@ public int hashCode() { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Symbol parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Symbol prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single symbol representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Symbol} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Symbol) com.google.cloud.vision.v1p4beta1.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Symbol.class, com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); + com.google.cloud.vision.v1p4beta1.Symbol.class, + com.google.cloud.vision.v1p4beta1.Symbol.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Symbol.newBuilder() @@ -531,16 +587,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; } @java.lang.Override @@ -585,7 +640,8 @@ public com.google.cloud.vision.v1p4beta1.Symbol build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Symbol buildPartial() { - com.google.cloud.vision.v1p4beta1.Symbol result = new com.google.cloud.vision.v1p4beta1.Symbol(this); + com.google.cloud.vision.v1p4beta1.Symbol result = + new com.google.cloud.vision.v1p4beta1.Symbol(this); if (propertyBuilder_ == null) { result.property_ = property_; } else { @@ -606,38 +662,39 @@ public com.google.cloud.vision.v1p4beta1.Symbol buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Symbol) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Symbol)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Symbol) other); } else { super.mergeFrom(other); return this; @@ -690,41 +747,55 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -738,6 +809,8 @@ public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -756,17 +829,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -778,6 +856,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -796,33 +876,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the symbol.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the symbol.
      * 
@@ -830,14 +919,17 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -845,8 +937,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -866,12 +963,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -891,16 +991,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -935,6 +1040,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -967,6 +1074,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -991,7 +1100,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1003,6 +1114,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1035,6 +1148,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1056,11 +1171,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1085,11 +1202,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the symbol.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1111,14 +1231,17 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
@@ -1126,18 +1249,20 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
 
     private java.lang.Object text_ = "";
     /**
+     *
+     *
      * 
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1146,20 +1271,21 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -1167,66 +1293,76 @@ public java.lang.String getText() { } } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * The actual UTF-8 representation of the symbol.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1234,37 +1370,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the symbol. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Symbol) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Symbol) private static final com.google.cloud.vision.v1p4beta1.Symbol DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Symbol(); } @@ -1288,16 +1430,16 @@ public static com.google.cloud.vision.v1p4beta1.Symbol getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Symbol(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Symbol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java similarity index 83% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java index b4ee30e25..ef397e425 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface SymbolOrBuilder extends +public interface SymbolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Symbol) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the symbol.
    * 
@@ -35,6 +59,8 @@ public interface SymbolOrBuilder extends com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface SymbolOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the symbol.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,31 +136,39 @@ public interface SymbolOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The actual UTF-8 representation of the symbol.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * Confidence of the OCR results for the symbol. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java similarity index 70% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java index 70b394e9c..2e1bbca8d 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * TextAnnotation contains a structured representation of OCR extracted text.
  * The hierarchy of an OCR extracted text structure is like this:
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation}
  */
-public final class TextAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation)
     TextAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextAnnotation.newBuilder() to construct.
   private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextAnnotation() {
     pages_ = java.util.Collections.emptyList();
     text_ = "";
@@ -33,16 +51,15 @@ private TextAnnotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,28 +79,31 @@ private TextAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pages_.add(
+                  input.readMessage(
+                      com.google.cloud.vision.v1p4beta1.Page.parser(), extensionRegistry));
+              break;
             }
-            pages_.add(
-                input.readMessage(com.google.cloud.vision.v1p4beta1.Page.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            text_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              text_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +111,7 @@ private TextAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pages_ = java.util.Collections.unmodifiableList(pages_);
@@ -101,24 +120,30 @@ private TextAnnotation(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
+        .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.TextAnnotation.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.class,
+            com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
   }
 
-  public interface DetectedLanguageOrBuilder extends
+  public interface DetectedLanguageOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -126,10 +151,13 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -137,53 +165,58 @@ public interface DetectedLanguageOrBuilder extends
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); } /** + * + * *
    * Detected language for a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage} */ - public static final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -202,24 +235,25 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 21: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,29 +261,33 @@ private DetectedLanguage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -257,6 +295,7 @@ private DetectedLanguage(
      * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -265,14 +304,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -280,16 +320,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -300,11 +339,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
      * Confidence of detected language. Range [0, 1].
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -313,6 +355,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -345,8 +387,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,18 +397,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,95 +422,102 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -480,44 +527,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected language for a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.newBuilder() + // Construct using + // com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,14 +581,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance(); } @java.lang.Override @@ -550,7 +604,8 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage build() @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage result = + new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -561,46 +616,53 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage)other); + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other) { - if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage other) { + if (other + == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -627,7 +689,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,6 +703,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -646,13 +712,13 @@ public Builder mergeFrom(
        * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -661,6 +727,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -668,15 +736,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -684,6 +751,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -691,20 +760,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -712,15 +783,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
        * information, see
@@ -728,28 +802,31 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -757,34 +834,41 @@ public float getConfidence() { return confidence_; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
        * Confidence of detected language. Range [0, 1].
        * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -797,30 +881,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedLanguage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,77 +918,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DetectedBreakOrBuilder extends + public interface DetectedBreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType(); /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ boolean getIsPrefix(); } /** + * + * *
    * Detected start or end of a structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak} */ - public static final class DetectedBreak extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DetectedBreak extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) DetectedBreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedBreak.newBuilder() to construct. private DetectedBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedBreak() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedBreak(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedBreak( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -921,24 +1019,25 @@ private DetectedBreak( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { + case 8: + { + int rawValue = input.readEnum(); - isPrefix_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 16: + { + isPrefix_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -946,36 +1045,41 @@ private DetectedBreak( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); } /** + * + * *
      * Enum to denote the type of break found. New line, space etc.
      * 
* * Protobuf enum {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType} */ - public enum BreakType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BreakType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown break label type.
        * 
@@ -984,6 +1088,8 @@ public enum BreakType */ UNKNOWN(0), /** + * + * *
        * Regular space.
        * 
@@ -992,6 +1098,8 @@ public enum BreakType */ SPACE(1), /** + * + * *
        * Sure space (very wide).
        * 
@@ -1000,6 +1108,8 @@ public enum BreakType */ SURE_SPACE(2), /** + * + * *
        * Line-wrapping break.
        * 
@@ -1008,6 +1118,8 @@ public enum BreakType */ EOL_SURE_SPACE(3), /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1017,6 +1129,8 @@ public enum BreakType
        */
       HYPHEN(4),
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1028,6 +1142,8 @@ public enum BreakType ; /** + * + * *
        * Unknown break label type.
        * 
@@ -1036,6 +1152,8 @@ public enum BreakType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
        * Regular space.
        * 
@@ -1044,6 +1162,8 @@ public enum BreakType */ public static final int SPACE_VALUE = 1; /** + * + * *
        * Sure space (very wide).
        * 
@@ -1052,6 +1172,8 @@ public enum BreakType */ public static final int SURE_SPACE_VALUE = 2; /** + * + * *
        * Line-wrapping break.
        * 
@@ -1060,6 +1182,8 @@ public enum BreakType */ public static final int EOL_SURE_SPACE_VALUE = 3; /** + * + * *
        * End-line hyphen that is not present in text; does not co-occur with
        * `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
@@ -1069,6 +1193,8 @@ public enum BreakType
        */
       public static final int HYPHEN_VALUE = 4;
       /**
+       *
+       *
        * 
        * Line break that ends a paragraph.
        * 
@@ -1077,7 +1203,6 @@ public enum BreakType */ public static final int LINE_BREAK_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1102,52 +1227,57 @@ public static BreakType valueOf(int value) { */ public static BreakType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return SPACE; - case 2: return SURE_SPACE; - case 3: return EOL_SURE_SPACE; - case 4: return HYPHEN; - case 5: return LINE_BREAK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return SPACE; + case 2: + return SURE_SPACE; + case 3: + return EOL_SURE_SPACE; + case 4: + return HYPHEN; + case 5: + return LINE_BREAK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BreakType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BreakType findValueByNumber(int number) { - return BreakType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BreakType findValueByNumber(int number) { + return BreakType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDescriptor() + .getEnumTypes() + .get(0); } private static final BreakType[] VALUES = values(); - public static BreakType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static BreakType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1167,38 +1297,52 @@ private BreakType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Detected break type.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } public static final int IS_PREFIX_FIELD_NUMBER = 2; private boolean isPrefix_; /** + * + * *
      * True if break prepends the element.
      * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1207,6 +1351,7 @@ public boolean getIsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1218,9 +1363,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { output.writeEnum(1, type_); } if (isPrefix_ != false) { @@ -1235,13 +1381,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (isPrefix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPrefix_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPrefix_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1251,16 +1397,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) obj; if (type_ != other.type_) return false; - if (getIsPrefix() - != other.getIsPrefix()) return false; + if (getIsPrefix() != other.getIsPrefix()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1275,95 +1421,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + IS_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrefix()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrefix()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1373,27 +1525,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detected start or end of a structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder() @@ -1401,16 +1558,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1422,13 +1578,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance(); } @@ -1443,7 +1600,8 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak result = + new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(this); result.type_ = type_; result.isPrefix_ = isPrefix_; onBuilt(); @@ -1454,46 +1612,52 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other) { - if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak other) { + if (other + == com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -1519,7 +1683,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1531,85 +1697,113 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType getType() { @SuppressWarnings("deprecation") - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); - return result == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED : result; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType result = + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.valueOf(type_); + return result == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType.UNRECOGNIZED + : result; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType value) { + public Builder setType( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Detected break type.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType type = 1; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean isPrefix_ ; + private boolean isPrefix_; /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return The isPrefix. */ @java.lang.Override @@ -1617,34 +1811,41 @@ public boolean getIsPrefix() { return isPrefix_; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @param value The isPrefix to set. * @return This builder for chaining. */ public Builder setIsPrefix(boolean value) { - + isPrefix_ = value; onChanged(); return this; } /** + * + * *
        * True if break prepends the element.
        * 
* * bool is_prefix = 2; + * * @return This builder for chaining. */ public Builder clearIsPrefix() { - + isPrefix_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1657,30 +1858,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedBreak parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectedBreak(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectedBreak(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1692,119 +1895,153 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TextPropertyOrBuilder extends + public interface TextPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List getDetectedLanguagesList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ int getDetectedLanguagesCount(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList(); /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ boolean hasDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak(); /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder(); } /** + * + * *
    * Additional information detected on the structural component.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty} */ - public static final class TextProperty extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TextProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) TextPropertyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextProperty.newBuilder() to construct. private TextProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextProperty() { detectedLanguages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextProperty(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextProperty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1824,35 +2061,45 @@ private TextProperty( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage>(); + mutable_bitField0_ |= 0x00000001; + } + detectedLanguages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.parser(), + extensionRegistry)); + break; } - detectedLanguages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder subBuilder = null; - if (detectedBreak_ != null) { - subBuilder = detectedBreak_.toBuilder(); + case 18: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder subBuilder = + null; + if (detectedBreak_ != null) { + subBuilder = detectedBreak_.toBuilder(); + } + detectedBreak_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectedBreak_); + detectedBreak_ = subBuilder.buildPartial(); + } + + break; } - detectedBreak_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectedBreak_); - detectedBreak_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1860,8 +2107,7 @@ private TextProperty( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { detectedLanguages_ = java.util.Collections.unmodifiableList(detectedLanguages_); @@ -1870,87 +2116,117 @@ private TextProperty( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); } public static final int DETECTED_LANGUAGES_FIELD_NUMBER = 1; - private java.util.List detectedLanguages_; + private java.util.List + detectedLanguages_; /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList() { return detectedLanguages_; } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override public int getDetectedLanguagesCount() { return detectedLanguages_.size(); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { return detectedLanguages_.get(index); } /** + * + * *
      * A list of detected languages together with confidence.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { return detectedLanguages_.get(index); } public static final int DETECTED_BREAK_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detectedBreak_; /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return Whether the detectedBreak field is set. */ @java.lang.Override @@ -1958,18 +2234,25 @@ public boolean hasDetectedBreak() { return detectedBreak_ != null; } /** + * + * *
      * Detected start or end of a text segment.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * * @return The detectedBreak. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak() { - return detectedBreak_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } /** + * + * *
      * Detected start or end of a text segment.
      * 
@@ -1977,11 +2260,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetecte * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { return getDetectedBreak(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1993,8 +2278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < detectedLanguages_.size(); i++) { output.writeMessage(1, detectedLanguages_.get(i)); } @@ -2011,12 +2295,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < detectedLanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, detectedLanguages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, detectedLanguages_.get(i)); } if (detectedBreak_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetectedBreak()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetectedBreak()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2026,19 +2309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other = (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) obj; - if (!getDetectedLanguagesList() - .equals(other.getDetectedLanguagesList())) return false; + if (!getDetectedLanguagesList().equals(other.getDetectedLanguagesList())) return false; if (hasDetectedBreak() != other.hasDetectedBreak()) return false; if (hasDetectedBreak()) { - if (!getDetectedBreak() - .equals(other.getDetectedBreak())) return false; + if (!getDetectedBreak().equals(other.getDetectedBreak())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2065,87 +2347,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2155,27 +2444,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional information detected on the structural component.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.class, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder() @@ -2183,17 +2477,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2213,13 +2507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance(); } @@ -2234,7 +2529,8 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty buildPartial() { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty result = new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(this); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty result = + new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(this); int from_bitField0_ = bitField0_; if (detectedLanguagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2258,46 +2554,52 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other) { - if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty other) { + if (other + == com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance()) + return this; if (detectedLanguagesBuilder_ == null) { if (!other.detectedLanguages_.isEmpty()) { if (detectedLanguages_.isEmpty()) { @@ -2316,9 +2618,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPr detectedLanguagesBuilder_ = null; detectedLanguages_ = other.detectedLanguages_; bitField0_ = (bitField0_ & ~0x00000001); - detectedLanguagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetectedLanguagesFieldBuilder() : null; + detectedLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetectedLanguagesFieldBuilder() + : null; } else { detectedLanguagesBuilder_.addAllMessages(other.detectedLanguages_); } @@ -2346,7 +2649,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2355,28 +2660,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List detectedLanguages_ = - java.util.Collections.emptyList(); + private java.util.List + detectedLanguages_ = java.util.Collections.emptyList(); + private void ensureDetectedLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - detectedLanguages_ = new java.util.ArrayList(detectedLanguages_); + detectedLanguages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage>( + detectedLanguages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> detectedLanguagesBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + detectedLanguagesBuilder_; /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List getDetectedLanguagesList() { + public java.util.List + getDetectedLanguagesList() { if (detectedLanguagesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedLanguages_); } else { @@ -2384,11 +2702,15 @@ public java.util.List * A list of detected languages together with confidence. *
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public int getDetectedLanguagesCount() { if (detectedLanguagesBuilder_ == null) { @@ -2398,13 +2720,18 @@ public int getDetectedLanguagesCount() { } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages(int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDetectedLanguages( + int index) { if (detectedLanguagesBuilder_ == null) { return detectedLanguages_.get(index); } else { @@ -2412,11 +2739,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage getDete } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { @@ -2433,14 +2764,20 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder setDetectedLanguages( - int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.set(index, builderForValue.build()); @@ -2451,13 +2788,18 @@ public Builder setDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public Builder addDetectedLanguages(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { + public Builder addDetectedLanguages( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { if (detectedLanguagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2471,11 +2813,15 @@ public Builder addDetectedLanguages(com.google.cloud.vision.v1p4beta1.TextAnnota return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage value) { @@ -2492,14 +2838,19 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(builderForValue.build()); @@ -2510,14 +2861,20 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addDetectedLanguages( - int index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + builderForValue) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); detectedLanguages_.add(index, builderForValue.build()); @@ -2528,18 +2885,23 @@ public Builder addDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder addAllDetectedLanguages( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage> + values) { if (detectedLanguagesBuilder_ == null) { ensureDetectedLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, detectedLanguages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedLanguages_); onChanged(); } else { detectedLanguagesBuilder_.addAllMessages(values); @@ -2547,11 +2909,15 @@ public Builder addAllDetectedLanguages( return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder clearDetectedLanguages() { if (detectedLanguagesBuilder_ == null) { @@ -2564,11 +2930,15 @@ public Builder clearDetectedLanguages() { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ public Builder removeDetectedLanguages(int index) { if (detectedLanguagesBuilder_ == null) { @@ -2581,39 +2951,53 @@ public Builder removeDetectedLanguages(int index) { return this; } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + getDetectedLanguagesBuilder(int index) { return getDetectedLanguagesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder + getDetectedLanguagesOrBuilder(int index) { if (detectedLanguagesBuilder_ == null) { - return detectedLanguages_.get(index); } else { + return detectedLanguages_.get(index); + } else { return detectedLanguagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + getDetectedLanguagesOrBuilderList() { if (detectedLanguagesBuilder_ != null) { return detectedLanguagesBuilder_.getMessageOrBuilderList(); } else { @@ -2621,45 +3005,70 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilde } } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder() { - return getDetectedLanguagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder() { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder( - int index) { - return getDetectedLanguagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder + addDetectedLanguagesBuilder(int index) { + return getDetectedLanguagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage + .getDefaultInstance()); } /** + * + * *
        * A list of detected languages together with confidence.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * + * repeated .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1; + * */ - public java.util.List - getDetectedLanguagesBuilderList() { + public java.util.List< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder> + getDetectedLanguagesBuilderList() { return getDetectedLanguagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesFieldBuilder() { if (detectedLanguagesBuilder_ == null) { - detectedLanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder>( + detectedLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder>( detectedLanguages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2671,41 +3080,58 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage.Builder private com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detectedBreak_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> detectedBreakBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> + detectedBreakBuilder_; /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return Whether the detectedBreak field is set. */ public boolean hasDetectedBreak() { return detectedBreakBuilder_ != null || detectedBreak_ != null; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * + * * @return The detectedBreak. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak getDetectedBreak() { if (detectedBreakBuilder_ == null) { - return detectedBreak_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } else { return detectedBreakBuilder_.getMessage(); } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder setDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { + public Builder setDetectedBreak( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2719,11 +3145,14 @@ public Builder setDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotation return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder setDetectedBreak( com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder builderForValue) { @@ -2737,17 +3166,24 @@ public Builder setDetectedBreak( return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public Builder mergeDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { + public Builder mergeDetectedBreak( + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak value) { if (detectedBreakBuilder_ == null) { if (detectedBreak_ != null) { detectedBreak_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder(detectedBreak_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.newBuilder( + detectedBreak_) + .mergeFrom(value) + .buildPartial(); } else { detectedBreak_ = value; } @@ -2759,11 +3195,14 @@ public Builder mergeDetectedBreak(com.google.cloud.vision.v1p4beta1.TextAnnotati return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ public Builder clearDetectedBreak() { if (detectedBreakBuilder_ == null) { @@ -2777,52 +3216,68 @@ public Builder clearDetectedBreak() { return this; } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder + getDetectedBreakBuilder() { + onChanged(); return getDetectedBreakFieldBuilder().getBuilder(); } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder + getDetectedBreakOrBuilder() { if (detectedBreakBuilder_ != null) { return detectedBreakBuilder_.getMessageOrBuilder(); } else { - return detectedBreak_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() : detectedBreak_; + return detectedBreak_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.getDefaultInstance() + : detectedBreak_; } } /** + * + * *
        * Detected start or end of a text segment.
        * 
* - * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * .google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder> getDetectedBreakFieldBuilder() { if (detectedBreakBuilder_ == null) { - detectedBreakBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder>( - getDetectedBreak(), - getParentForChildren(), - isClean()); + detectedBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreakOrBuilder>( + getDetectedBreak(), getParentForChildren(), isClean()); detectedBreak_ = null; } return detectedBreakBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2835,30 +3290,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) - private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty DEFAULT_INSTANCE; + private static final com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty(); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextProperty(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextProperty(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2870,15 +3327,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PAGES_FIELD_NUMBER = 1; private java.util.List pages_; /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2890,6 +3349,8 @@ public java.util.List getPagesList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2897,11 +3358,13 @@ public java.util.List getPagesList() { * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPagesOrBuilderList() { return pages_; } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2913,6 +3376,8 @@ public int getPagesCount() { return pages_.size(); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2924,6 +3389,8 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { return pages_.get(index); } /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -2931,19 +3398,21 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index) { return pages_.get(index); } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ @java.lang.Override @@ -2952,29 +3421,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -2983,6 +3452,7 @@ public java.lang.String getText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2994,8 +3464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } @@ -3012,8 +3481,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); @@ -3026,17 +3494,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextAnnotation other = (com.google.cloud.vision.v1p4beta1.TextAnnotation) obj; + com.google.cloud.vision.v1p4beta1.TextAnnotation other = + (com.google.cloud.vision.v1p4beta1.TextAnnotation) obj; - if (!getPagesList() - .equals(other.getPagesList())) return false; - if (!getText() - .equals(other.getText())) return false; + if (!getPagesList().equals(other.getPagesList())) return false; + if (!getText().equals(other.getText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3059,97 +3526,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TextAnnotation contains a structured representation of OCR extracted text.
    * The hierarchy of an OCR extracted text structure is like this:
@@ -3163,21 +3637,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.TextAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextAnnotation)
       com.google.cloud.vision.v1p4beta1.TextAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.TextAnnotation.class, com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
+              com.google.cloud.vision.v1p4beta1.TextAnnotation.class,
+              com.google.cloud.vision.v1p4beta1.TextAnnotation.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.TextAnnotation.newBuilder()
@@ -3185,17 +3661,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3211,9 +3687,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.TextAnnotationProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor;
     }
 
     @java.lang.Override
@@ -3232,7 +3708,8 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.TextAnnotation buildPartial() {
-      com.google.cloud.vision.v1p4beta1.TextAnnotation result = new com.google.cloud.vision.v1p4beta1.TextAnnotation(this);
+      com.google.cloud.vision.v1p4beta1.TextAnnotation result =
+          new com.google.cloud.vision.v1p4beta1.TextAnnotation(this);
       int from_bitField0_ = bitField0_;
       if (pagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3252,38 +3729,39 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.TextAnnotation) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3291,7 +3769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation other) {
-      if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.TextAnnotation.getDefaultInstance())
+        return this;
       if (pagesBuilder_ == null) {
         if (!other.pages_.isEmpty()) {
           if (pages_.isEmpty()) {
@@ -3310,9 +3789,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextAnnotation other)
             pagesBuilder_ = null;
             pages_ = other.pages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPagesFieldBuilder() : null;
+            pagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPagesFieldBuilder()
+                    : null;
           } else {
             pagesBuilder_.addAllMessages(other.pages_);
           }
@@ -3350,21 +3830,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         pages_ = new java.util.ArrayList(pages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder> pagesBuilder_;
+            com.google.cloud.vision.v1p4beta1.Page,
+            com.google.cloud.vision.v1p4beta1.Page.Builder,
+            com.google.cloud.vision.v1p4beta1.PageOrBuilder>
+        pagesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of pages detected by OCR.
      * 
@@ -3379,6 +3866,8 @@ public java.util.List getPagesList() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3393,6 +3882,8 @@ public int getPagesCount() { } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3407,14 +3898,15 @@ public com.google.cloud.vision.v1p4beta1.Page getPages(int index) { } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder setPages( - int index, com.google.cloud.vision.v1p4beta1.Page value) { + public Builder setPages(int index, com.google.cloud.vision.v1p4beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3428,6 +3920,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3446,6 +3940,8 @@ public Builder setPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3466,14 +3962,15 @@ public Builder addPages(com.google.cloud.vision.v1p4beta1.Page value) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder addPages( - int index, com.google.cloud.vision.v1p4beta1.Page value) { + public Builder addPages(int index, com.google.cloud.vision.v1p4beta1.Page value) { if (pagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3487,14 +3984,15 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public Builder addPages( - com.google.cloud.vision.v1p4beta1.Page.Builder builderForValue) { + public Builder addPages(com.google.cloud.vision.v1p4beta1.Page.Builder builderForValue) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); pages_.add(builderForValue.build()); @@ -3505,6 +4003,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3523,6 +4023,8 @@ public Builder addPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3533,8 +4035,7 @@ public Builder addAllPages( java.lang.Iterable values) { if (pagesBuilder_ == null) { ensurePagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pages_); onChanged(); } else { pagesBuilder_.addAllMessages(values); @@ -3542,6 +4043,8 @@ public Builder addAllPages( return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3559,6 +4062,8 @@ public Builder clearPages() { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3576,39 +4081,44 @@ public Builder removePages(int index) { return this; } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.Page.Builder getPagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.Page.Builder getPagesBuilder(int index) { return getPagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index) { if (pagesBuilder_ == null) { - return pages_.get(index); } else { + return pages_.get(index); + } else { return pagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public java.util.List - getPagesOrBuilderList() { + public java.util.List + getPagesOrBuilderList() { if (pagesBuilder_ != null) { return pagesBuilder_.getMessageOrBuilderList(); } else { @@ -3616,6 +4126,8 @@ public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( } } /** + * + * *
      * List of pages detected by OCR.
      * 
@@ -3623,42 +4135,47 @@ public com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder() { - return getPagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); + return getPagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder( - int index) { - return getPagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder(int index) { + return getPagesFieldBuilder() + .addBuilder(index, com.google.cloud.vision.v1p4beta1.Page.getDefaultInstance()); } /** + * + * *
      * List of pages detected by OCR.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - public java.util.List - getPagesBuilderList() { + public java.util.List getPagesBuilderList() { return getPagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder> + com.google.cloud.vision.v1p4beta1.Page, + com.google.cloud.vision.v1p4beta1.Page.Builder, + com.google.cloud.vision.v1p4beta1.PageOrBuilder> getPagesFieldBuilder() { if (pagesBuilder_ == null) { - pagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Page, com.google.cloud.vision.v1p4beta1.Page.Builder, com.google.cloud.vision.v1p4beta1.PageOrBuilder>( - pages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + pagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Page, + com.google.cloud.vision.v1p4beta1.Page.Builder, + com.google.cloud.vision.v1p4beta1.PageOrBuilder>( + pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pages_ = null; } return pagesBuilder_; @@ -3666,18 +4183,20 @@ public com.google.cloud.vision.v1p4beta1.Page.Builder addPagesBuilder( private java.lang.Object text_ = ""; /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -3686,20 +4205,21 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { @@ -3707,61 +4227,68 @@ public java.lang.String getText() { } } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** + * + * *
      * UTF-8 text detected on the pages.
      * 
* * string text = 2; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3771,12 +4298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation) private static final com.google.cloud.vision.v1p4beta1.TextAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextAnnotation(); } @@ -3785,16 +4312,16 @@ public static com.google.cloud.vision.v1p4beta1.TextAnnotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3809,6 +4336,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.TextAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java similarity index 63% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java index 5883d723e..029f1e130 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface TextAnnotationOrBuilder extends +public interface TextAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - java.util.List - getPagesList(); + java.util.List getPagesList(); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -25,6 +44,8 @@ public interface TextAnnotationOrBuilder extends */ com.google.cloud.vision.v1p4beta1.Page getPages(int index); /** + * + * *
    * List of pages detected by OCR.
    * 
@@ -33,41 +54,48 @@ public interface TextAnnotationOrBuilder extends */ int getPagesCount(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - java.util.List - getPagesOrBuilderList(); + java.util.List getPagesOrBuilderList(); /** + * + * *
    * List of pages detected by OCR.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Page pages = 1; */ - com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.PageOrBuilder getPagesOrBuilder(int index); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * UTF-8 text detected on the pages.
    * 
* * string text = 2; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java new file mode 100644 index 000000000..d163ca670 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java @@ -0,0 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/text_annotation.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class TextAnnotationProto { + private TextAnnotationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/vision/v1p4beta1/text_ann" + + "otation.proto\022\035google.cloud.vision.v1p4b" + + "eta1\032\034google/api/annotations.proto\032,goog" + + "le/cloud/vision/v1p4beta1/geometry.proto" + + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" + + "gle.cloud.vision.v1p4beta1.Page\022\014\n\004text\030" + + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" + + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" + + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" + + "on.v1p4beta1.TextAnnotation.DetectedBrea" + + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" + + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" + + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" + + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" + + "_languages\030\001 \003(\0132>.google.cloud.vision.v" + + "1p4beta1.TextAnnotation.DetectedLanguage" + + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." + + "vision.v1p4beta1.TextAnnotation.Detected" + + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" + + "e.cloud.vision.v1p4beta1.TextAnnotation." + + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " + + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" + + "n.v1p4beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" + + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" + + ".vision.v1p4beta1.TextAnnotation.TextPro" + + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" + + "ud.vision.v1p4beta1.BoundingPoly\022<\n\npara" + + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p4b" + + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" + + "gle.cloud.vision.v1p4beta1.Block.BlockTy" + + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" + + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" + + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" + + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" + + ".v1p4beta1.TextAnnotation.TextProperty\022A" + + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" + + "2#.google.cloud.vision.v1p4beta1.Word\022\022\n" + + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" + + " \001(\0132:.google.cloud.vision.v1p4beta1.Tex" + + "tAnnotation.TextProperty\022A\n\014bounding_box" + + "\030\002 \001(\0132+.google.cloud.vision.v1p4beta1.B" + + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" + + "oud.vision.v1p4beta1.Symbol\022\022\n\nconfidenc" + + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" + + "oogle.cloud.vision.v1p4beta1.TextAnnotat" + + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.BoundingP" + + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\211\001" + + "\n!com.google.cloud.vision.v1p4beta1B\023Tex" + + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" + + "nproto/googleapis/cloud/vision/v1p4beta1" + + ";vision\370\001\001\242\002\004GCVNb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor, + new java.lang.String[] { + "Pages", "Text", + }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_DetectedBreak_descriptor, + new java.lang.String[] { + "Type", "IsPrefix", + }); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor = + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_TextProperty_descriptor, + new java.lang.String[] { + "DetectedLanguages", "DetectedBreak", + }); + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_Page_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Page_descriptor, + new java.lang.String[] { + "Property", "Width", "Height", "Blocks", "Confidence", + }); + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_Block_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Block_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence", + }); + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vision_v1p4beta1_Paragraph_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Paragraph_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Words", "Confidence", + }); + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Word_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Symbols", "Confidence", + }); + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vision_v1p4beta1_Symbol_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Symbol_descriptor, + new java.lang.String[] { + "Property", "BoundingBox", "Text", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java similarity index 73% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java index c77dee331..afdc5a7eb 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Parameters for text detections. This is used to control TEXT_DETECTION and
  * DOCUMENT_TEXT_DETECTION features.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.TextDetectionParams}
  */
-public final class TextDetectionParams extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextDetectionParams extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.TextDetectionParams)
     TextDetectionParamsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextDetectionParams.newBuilder() to construct.
   private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextDetectionParams() {
     advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextDetectionParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TextDetectionParams(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private TextDetectionParams(
           case 0:
             done = true;
             break;
-          case 72: {
-
-            enableTextDetectionConfidenceScore_ = input.readBool();
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              enableTextDetectionConfidenceScore_ = input.readBool();
+              break;
             }
-            advancedOcrOptions_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              advancedOcrOptions_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private TextDetectionParams(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private TextDetectionParams(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+        .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.TextDetectionParams.class, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
+            com.google.cloud.vision.v1p4beta1.TextDetectionParams.class,
+            com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
   }
 
   public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER = 9;
   private boolean enableTextDetectionConfidenceScore_;
   /**
+   *
+   *
    * 
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -116,6 +138,7 @@ private TextDetectionParams(
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -126,34 +149,42 @@ public boolean getEnableTextDetectionConfidenceScore() { public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList advancedOcrOptions_; /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_; } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -161,20 +192,23 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableTextDetectionConfidenceScore_ != false) { output.writeBool(9, enableTextDetectionConfidenceScore_); } @@ -204,8 +237,9 @@ public int getSerializedSize() { size = 0; if (enableTextDetectionConfidenceScore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableTextDetectionConfidenceScore_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, enableTextDetectionConfidenceScore_); } { int dataSize = 0; @@ -223,17 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.TextDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.TextDetectionParams other = (com.google.cloud.vision.v1p4beta1.TextDetectionParams) obj; + com.google.cloud.vision.v1p4beta1.TextDetectionParams other = + (com.google.cloud.vision.v1p4beta1.TextDetectionParams) obj; - if (getEnableTextDetectionConfidenceScore() - != other.getEnableTextDetectionConfidenceScore()) return false; - if (!getAdvancedOcrOptionsList() - .equals(other.getAdvancedOcrOptionsList())) return false; + if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore()) + return false; + if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,8 +280,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableTextDetectionConfidenceScore()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore()); if (getAdvancedOcrOptionsCount() > 0) { hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode(); @@ -258,96 +293,104 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.TextDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.TextDetectionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.TextDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for text detections. This is used to control TEXT_DETECTION and
    * DOCUMENT_TEXT_DETECTION features.
@@ -355,21 +398,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.TextDetectionParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.TextDetectionParams)
       com.google.cloud.vision.v1p4beta1.TextDetectionParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.TextDetectionParams.class, com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
+              com.google.cloud.vision.v1p4beta1.TextDetectionParams.class,
+              com.google.cloud.vision.v1p4beta1.TextDetectionParams.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.TextDetectionParams.newBuilder()
@@ -377,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
+          .internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +463,8 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.TextDetectionParams buildPartial() {
-      com.google.cloud.vision.v1p4beta1.TextDetectionParams result = new com.google.cloud.vision.v1p4beta1.TextDetectionParams(this);
+      com.google.cloud.vision.v1p4beta1.TextDetectionParams result =
+          new com.google.cloud.vision.v1p4beta1.TextDetectionParams(this);
       int from_bitField0_ = bitField0_;
       result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -435,38 +480,39 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.TextDetectionParams) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextDetectionParams)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.TextDetectionParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,7 +520,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextDetectionParams other) {
-      if (other == com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance()) return this;
+      if (other == com.google.cloud.vision.v1p4beta1.TextDetectionParams.getDefaultInstance())
+        return this;
       if (other.getEnableTextDetectionConfidenceScore() != false) {
         setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
       }
@@ -507,7 +554,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.vision.v1p4beta1.TextDetectionParams) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.vision.v1p4beta1.TextDetectionParams) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -516,10 +564,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private boolean enableTextDetectionConfidenceScore_ ;
+    private boolean enableTextDetectionConfidenceScore_;
     /**
+     *
+     *
      * 
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -527,6 +578,7 @@ public Builder mergeFrom(
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ @java.lang.Override @@ -534,6 +586,8 @@ public boolean getEnableTextDetectionConfidenceScore() { return enableTextDetectionConfidenceScore_; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -541,16 +595,19 @@ public boolean getEnableTextDetectionConfidenceScore() {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @param value The enableTextDetectionConfidenceScore to set. * @return This builder for chaining. */ public Builder setEnableTextDetectionConfidenceScore(boolean value) { - + enableTextDetectionConfidenceScore_ = value; onChanged(); return this; } /** + * + * *
      * By default, Cloud Vision API only includes confidence score for
      * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -558,51 +615,62 @@ public Builder setEnableTextDetectionConfidenceScore(boolean value) {
      * 
* * bool enable_text_detection_confidence_score = 9; + * * @return This builder for chaining. */ public Builder clearEnableTextDetectionConfidenceScore() { - + enableTextDetectionConfidenceScore_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList advancedOcrOptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdvancedOcrOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - public com.google.protobuf.ProtocolStringList - getAdvancedOcrOptionsList() { + public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { return advancedOcrOptions_.getUnmodifiableView(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ public int getAdvancedOcrOptionsCount() { return advancedOcrOptions_.size(); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ @@ -610,80 +678,90 @@ public java.lang.String getAdvancedOcrOptions(int index) { return advancedOcrOptions_.get(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - public com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index) { + public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { return advancedOcrOptions_.getByteString(index); } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index to set the value at. * @param value The advancedOcrOptions to set. * @return This builder for chaining. */ - public Builder setAdvancedOcrOptions( - int index, java.lang.String value) { + public Builder setAdvancedOcrOptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptions( - java.lang.String value) { + public Builder addAdvancedOcrOptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdvancedOcrOptionsIsMutable(); + throw new NullPointerException(); + } + ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param values The advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAllAdvancedOcrOptions( - java.lang.Iterable values) { + public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) { ensureAdvancedOcrOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, advancedOcrOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_); onChanged(); return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @return This builder for chaining. */ public Builder clearAdvancedOcrOptions() { @@ -693,28 +771,30 @@ public Builder clearAdvancedOcrOptions() { return this; } /** + * + * *
      * A list of advanced OCR options to fine-tune OCR behavior.
      * 
* * repeated string advanced_ocr_options = 11; + * * @param value The bytes of the advancedOcrOptions to add. * @return This builder for chaining. */ - public Builder addAdvancedOcrOptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdvancedOcrOptionsIsMutable(); advancedOcrOptions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -724,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.TextDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextDetectionParams) private static final com.google.cloud.vision.v1p4beta1.TextDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.TextDetectionParams(); } @@ -738,16 +818,16 @@ public static com.google.cloud.vision.v1p4beta1.TextDetectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.TextDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java index 6740edf2c..93df17e0f 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; -public interface TextDetectionParamsOrBuilder extends +public interface TextDetectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.TextDetectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * By default, Cloud Vision API only includes confidence score for
    * DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
@@ -15,48 +33,59 @@ public interface TextDetectionParamsOrBuilder extends
    * 
* * bool enable_text_detection_confidence_score = 9; + * * @return The enableTextDetectionConfidenceScore. */ boolean getEnableTextDetectionConfidenceScore(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return A list containing the advancedOcrOptions. */ - java.util.List - getAdvancedOcrOptionsList(); + java.util.List getAdvancedOcrOptionsList(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @return The count of advancedOcrOptions. */ int getAdvancedOcrOptionsCount(); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the element to return. * @return The advancedOcrOptions at the given index. */ java.lang.String getAdvancedOcrOptions(int index); /** + * + * *
    * A list of advanced OCR options to fine-tune OCR behavior.
    * 
* * repeated string advanced_ocr_options = 11; + * * @param index The index of the value to return. * @return The bytes of the advancedOcrOptions at the given index. */ - com.google.protobuf.ByteString - getAdvancedOcrOptionsBytes(int index); + com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index); } diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java similarity index 68% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java index 261460028..9766020d5 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/product_search_service.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Request message for the `UpdateProduct` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductRequest} */ -public final class UpdateProductRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.UpdateProductRequest) UpdateProductRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductRequest.newBuilder() to construct. private UpdateProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductRequest() { - } + + private UpdateProductRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProductRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; - if (product_ != null) { - subBuilder = product_.toBuilder(); - } - product_ = input.readMessage(com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(product_); - product_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p4beta1.Product.Builder subBuilder = null; + if (product_ != null) { + subBuilder = product_.toBuilder(); + } + product_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Product.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(product_); + product_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateProductRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); } public static final int PRODUCT_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.Product product_; /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ @java.lang.Override @@ -128,25 +156,36 @@ public boolean hasProduct() { return product_ != null; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.Product getProduct() { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { @@ -156,6 +195,8 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -165,6 +206,7 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -172,6 +214,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -181,6 +225,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -188,6 +233,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -204,6 +251,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,8 +263,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (product_ != null) {
       output.writeMessage(1, getProduct());
     }
@@ -233,12 +280,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (product_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProduct());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProduct());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -248,22 +293,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.UpdateProductRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.UpdateProductRequest other = (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) obj;
+    com.google.cloud.vision.v1p4beta1.UpdateProductRequest other =
+        (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) obj;
 
     if (hasProduct() != other.hasProduct()) return false;
     if (hasProduct()) {
-      if (!getProduct()
-          .equals(other.getProduct())) return false;
+      if (!getProduct().equals(other.getProduct())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -290,117 +334,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.UpdateProductRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.UpdateProductRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProduct` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.UpdateProductRequest) com.google.cloud.vision.v1p4beta1.UpdateProductRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.class, + com.google.cloud.vision.v1p4beta1.UpdateProductRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.UpdateProductRequest.newBuilder() @@ -408,16 +462,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductRequest_descriptor; } @java.lang.Override @@ -458,7 +511,8 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.UpdateProductRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.UpdateProductRequest result = new com.google.cloud.vision.v1p4beta1.UpdateProductRequest(this); + com.google.cloud.vision.v1p4beta1.UpdateProductRequest result = + new com.google.cloud.vision.v1p4beta1.UpdateProductRequest(this); if (productBuilder_ == null) { result.product_ = product_; } else { @@ -477,38 +531,39 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.UpdateProductRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductRequest) other); } else { super.mergeFrom(other); return this; @@ -516,7 +571,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.UpdateProductRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.UpdateProductRequest.getDefaultInstance()) + return this; if (other.hasProduct()) { mergeProduct(other.getProduct()); } @@ -542,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.UpdateProductRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,42 +611,61 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.Product product_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> productBuilder_; + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + productBuilder_; /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { - return product_ == null ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } else { return productBuilder_.getMessage(); } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -605,15 +681,18 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setProduct( - com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { + public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { product_ = builderForValue.build(); onChanged(); @@ -624,18 +703,24 @@ public Builder setProduct( return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { if (product_ != null) { product_ = - com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.Product.newBuilder(product_) + .mergeFrom(value) + .buildPartial(); } else { product_ = value; } @@ -647,12 +732,16 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -666,51 +755,67 @@ public Builder clearProduct() { return this; } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { - + onChanged(); return getProductFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { return productBuilder_.getMessageOrBuilder(); } else { - return product_ == null ? - com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() : product_; + return product_ == null + ? com.google.cloud.vision.v1p4beta1.Product.getDefaultInstance() + : product_; } } /** + * + * *
      * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder> + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder> getProductFieldBuilder() { if (productBuilder_ == null) { - productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.Product, com.google.cloud.vision.v1p4beta1.Product.Builder, com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( - getProduct(), - getParentForChildren(), - isClean()); + productBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Product, + com.google.cloud.vision.v1p4beta1.Product.Builder, + com.google.cloud.vision.v1p4beta1.ProductOrBuilder>( + getProduct(), getParentForChildren(), isClean()); product_ = null; } return productBuilder_; @@ -718,8 +823,13 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -729,12 +839,15 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -744,16 +857,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -778,6 +896,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -788,8 +908,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -800,6 +919,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -814,7 +935,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -826,6 +947,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -848,6 +971,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -859,11 +984,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -878,11 +1005,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
      * to update.
@@ -894,21 +1024,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +1051,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.UpdateProductRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductRequest)
   private static final com.google.cloud.vision.v1p4beta1.UpdateProductRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.UpdateProductRequest();
   }
@@ -932,16 +1065,16 @@ public static com.google.cloud.vision.v1p4beta1.UpdateProductRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -956,6 +1089,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.UpdateProductRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
index 238641947..4cefc7013 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java
@@ -1,43 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface UpdateProductRequestOrBuilder extends
+public interface UpdateProductRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.UpdateProductRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the product field is set. */ boolean hasProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The product. */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** + * + * *
    * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -47,10 +79,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
@@ -60,10 +95,13 @@ public interface UpdateProductRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields
    * to update.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
similarity index 68%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
index eef96da65..fb38ee202 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * Request message for the `UpdateProductSet` method.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductSetRequest} */ -public final class UpdateProductSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProductSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.UpdateProductSetRequest) UpdateProductSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProductSetRequest.newBuilder() to construct. private UpdateProductSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProductSetRequest() { - } + + private UpdateProductSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProductSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateProductSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateProductSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; - if (productSet_ != null) { - subBuilder = productSet_.toBuilder(); - } - productSet_ = input.readMessage(com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(productSet_); - productSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.vision.v1p4beta1.ProductSet.Builder subBuilder = null; + if (productSet_ != null) { + subBuilder = productSet_.toBuilder(); + } + productSet_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(productSet_); + productSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateProductSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); } public static final int PRODUCT_SET_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasProductSet() { return productSet_ != null; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { - return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -161,6 +202,7 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -168,6 +210,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -176,6 +220,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -183,6 +228,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -198,6 +245,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,8 +257,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (productSet_ != null) {
       output.writeMessage(1, getProductSet());
     }
@@ -227,12 +274,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (productSet_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProductSet());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductSet());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -242,22 +287,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other = (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) obj;
+    com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other =
+        (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) obj;
 
     if (hasProductSet() != other.hasProductSet()) return false;
     if (hasProductSet()) {
-      if (!getProductSet()
-          .equals(other.getProductSet())) return false;
+      if (!getProductSet().equals(other.getProductSet())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -284,117 +328,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for the `UpdateProductSet` method.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.UpdateProductSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.UpdateProductSetRequest) com.google.cloud.vision.v1p4beta1.UpdateProductSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.class, + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.newBuilder() @@ -402,16 +456,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_UpdateProductSetRequest_descriptor; } @java.lang.Override @@ -452,7 +505,8 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest buildPartial() { - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest result = new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest(this); + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest result = + new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest(this); if (productSetBuilder_ == null) { result.productSet_ = productSet_; } else { @@ -471,38 +525,39 @@ public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest other) { - if (other == com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest.getDefaultInstance()) + return this; if (other.hasProductSet()) { mergeProductSet(other.getProductSet()); } @@ -536,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,39 +605,58 @@ public Builder mergeFrom( private com.google.cloud.vision.v1p4beta1.ProductSet productSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> productSetBuilder_; + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + productSetBuilder_; /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { - return productSet_ == null ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } else { return productSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -596,11 +672,15 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -614,17 +694,23 @@ public Builder setProductSet( return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { if (productSet_ != null) { productSet_ = - com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.ProductSet.newBuilder(productSet_) + .mergeFrom(value) + .buildPartial(); } else { productSet_ = value; } @@ -636,11 +722,15 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -654,48 +744,64 @@ public Builder clearProductSet() { return this; } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { - + onChanged(); return getProductSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { return productSetBuilder_.getMessageOrBuilder(); } else { - return productSet_ == null ? - com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() : productSet_; + return productSet_ == null + ? com.google.cloud.vision.v1p4beta1.ProductSet.getDefaultInstance() + : productSet_; } } /** + * + * *
      * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder> getProductSetFieldBuilder() { if (productSetBuilder_ == null) { - productSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.ProductSet, com.google.cloud.vision.v1p4beta1.ProductSet.Builder, com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( - getProductSet(), - getParentForChildren(), - isClean()); + productSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSet, + com.google.cloud.vision.v1p4beta1.ProductSet.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder>( + getProductSet(), getParentForChildren(), isClean()); productSet_ = null; } return productSetBuilder_; @@ -703,8 +809,13 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -713,12 +824,15 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -727,16 +841,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -760,6 +879,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -769,8 +890,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -781,6 +901,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -794,7 +916,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -806,6 +928,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -827,6 +951,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -837,11 +963,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -855,11 +983,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
      * update.
@@ -870,21 +1001,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -894,12 +1028,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
   private static final com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest();
   }
@@ -908,16 +1042,16 @@ public static com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProductSetRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateProductSetRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProductSetRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateProductSetRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -932,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
index bf61f1ef0..6404dbf21 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java
@@ -1,40 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/product_search_service.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
-public interface UpdateProductSetRequestOrBuilder extends
+public interface UpdateProductSetRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.UpdateProductSetRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the productSet field is set. */ boolean hasProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The productSet. */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** + * + * *
    * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -43,10 +75,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
@@ -55,10 +90,13 @@ public interface UpdateProductSetRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    * update.
diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
similarity index 69%
rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
index 45a6c19c1..2a17e853e 100644
--- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Vertex.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/vision/v1p4beta1/geometry.proto
 
 package com.google.cloud.vision.v1p4beta1;
 
 /**
+ *
+ *
  * 
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.vision.v1p4beta1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.vision.v1p4beta1.GeometryProto
+        .internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.vision.v1p4beta1.Vertex.class, com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
+            com.google.cloud.vision.v1p4beta1.Vertex.class,
+            com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (x_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Vertex)) { return super.equals(obj); } com.google.cloud.vision.v1p4beta1.Vertex other = (com.google.cloud.vision.v1p4beta1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +223,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vertex represents a 2D point in the image.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +328,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.vision.v1p4beta1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Vertex)
       com.google.cloud.vision.v1p4beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.vision.v1p4beta1.Vertex.class, com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
+              com.google.cloud.vision.v1p4beta1.Vertex.class,
+              com.google.cloud.vision.v1p4beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.vision.v1p4beta1.Vertex.newBuilder()
@@ -323,16 +352,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -344,9 +372,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.vision.v1p4beta1.GeometryProto.internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.vision.v1p4beta1.GeometryProto
+          .internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -365,7 +393,8 @@ public com.google.cloud.vision.v1p4beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.vision.v1p4beta1.Vertex buildPartial() {
-      com.google.cloud.vision.v1p4beta1.Vertex result = new com.google.cloud.vision.v1p4beta1.Vertex(this);
+      com.google.cloud.vision.v1p4beta1.Vertex result =
+          new com.google.cloud.vision.v1p4beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -376,38 +405,39 @@ public com.google.cloud.vision.v1p4beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.vision.v1p4beta1.Vertex) {
-        return mergeFrom((com.google.cloud.vision.v1p4beta1.Vertex)other);
+        return mergeFrom((com.google.cloud.vision.v1p4beta1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +481,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +498,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +550,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -548,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Vertex) private static final com.google.cloud.vision.v1p4beta1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Vertex(); } @@ -562,16 +610,16 @@ public static com.google.cloud.vision.v1p4beta1.Vertex getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java new file mode 100644 index 000000000..6c731aaa9 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/VertexOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/geometry.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java similarity index 71% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java index 3c798741e..4ec5bb6b3 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/web_detection.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Relevant information for the image from the Internet.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection} */ -public final class WebDetection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection) WebDetectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetection.newBuilder() to construct. private WebDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebDetection() { webEntities_ = java.util.Collections.emptyList(); fullMatchingImages_ = java.util.Collections.emptyList(); @@ -30,16 +48,15 @@ private WebDetection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,67 +76,97 @@ private WebDetection( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webEntities_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity>(); + mutable_bitField0_ |= 0x00000001; + } + webEntities_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.parser(), + extensionRegistry)); + break; } - webEntities_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000004; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + pagesWithMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage>(); + mutable_bitField0_ |= 0x00000008; + } + pagesWithMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.parser(), + extensionRegistry)); + break; } - pagesWithMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + visuallySimilarImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000010; + } + visuallySimilarImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - visuallySimilarImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + case 66: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + bestGuessLabels_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel>(); + mutable_bitField0_ |= 0x00000020; + } + bestGuessLabels_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.parser(), + extensionRegistry)); + break; } - bestGuessLabels_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,8 +174,7 @@ private WebDetection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { webEntities_ = java.util.Collections.unmodifiableList(webEntities_); @@ -152,90 +198,110 @@ private WebDetection( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.class, com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.class, + com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); } - public interface WebEntityOrBuilder extends + public interface WebEntityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ java.lang.String getEntityId(); /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - com.google.protobuf.ByteString - getEntityIdBytes(); + com.google.protobuf.ByteString getEntityIdBytes(); /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * Entity deduced from similar images on the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebEntity} */ - public static final class WebEntity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebEntity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) WebEntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebEntity.newBuilder() to construct. private WebEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebEntity() { entityId_ = ""; description_ = ""; @@ -243,16 +309,15 @@ private WebEntity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebEntity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebEntity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -271,30 +336,32 @@ private WebEntity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - entityId_ = s; - break; - } - case 21: { - - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + entityId_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -302,34 +369,39 @@ private WebEntity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); } public static final int ENTITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object entityId_; /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The entityId. */ @java.lang.Override @@ -338,29 +410,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** + * + * *
      * Opaque entity ID.
      * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -371,12 +443,15 @@ public java.lang.String getEntityId() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * Overall relevancy score for the entity.
      * Not normalized and not comparable across different image queries.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -387,11 +462,14 @@ public float getScore() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -400,29 +478,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Canonical description of the entity, in English.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -431,6 +509,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +521,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); } @@ -466,8 +544,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -480,20 +557,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) obj; - if (!getEntityId() - .equals(other.getEntityId())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,8 +583,7 @@ public int hashCode() { hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -518,87 +592,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -608,27 +689,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Entity deduced from similar images on the Internet.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebEntity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.newBuilder() @@ -636,16 +722,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +744,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; } @java.lang.Override @@ -680,7 +765,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(this); result.entityId_ = entityId_; result.score_ = score_; result.description_ = description_; @@ -692,38 +778,41 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) other); } else { super.mergeFrom(other); return this; @@ -731,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()) + return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -762,7 +852,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -774,18 +865,20 @@ public Builder mergeFrom( private java.lang.Object entityId_ = ""; /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -794,20 +887,21 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString - getEntityIdBytes() { + public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entityId_ = b; return b; } else { @@ -815,67 +909,77 @@ public java.lang.String getEntityId() { } } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId( - java.lang.String value) { + public Builder setEntityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityId_ = value; onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @return This builder for chaining. */ public Builder clearEntityId() { - + entityId_ = getDefaultInstance().getEntityId(); onChanged(); return this; } /** + * + * *
        * Opaque entity ID.
        * 
* * string entity_id = 1; + * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -883,32 +987,38 @@ public float getScore() { return score_; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * Overall relevancy score for the entity.
        * Not normalized and not comparable across different image queries.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -916,18 +1026,20 @@ public Builder clearScore() { private java.lang.Object description_ = ""; /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,20 +1048,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -957,58 +1070,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Canonical description of the entity, in English.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity(); } @@ -1035,16 +1156,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebEntity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebEntity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,75 +1180,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebImageOrBuilder extends + public interface WebImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); } /** + * + * *
    * Metadata for online images.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebImage} */ - public static final class WebImage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebImage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebImage) WebImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebImage.newBuilder() to construct. private WebImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebImage() { url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebImage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,24 +1277,25 @@ private WebImage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,34 +1303,39 @@ private WebImage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -1207,29 +1344,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result image URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1240,11 +1377,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the image.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1253,6 +1393,7 @@ public float getScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1264,8 +1405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -1285,8 +1425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1296,18 +1435,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebImage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,95 +1460,101 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1420,27 +1564,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for online images.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebImage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebImage) com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.newBuilder() @@ -1448,16 +1597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1469,9 +1617,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; } @java.lang.Override @@ -1490,7 +1638,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(this); result.url_ = url_; result.score_ = score_; onBuilt(); @@ -1501,38 +1650,41 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebImage)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) other); } else { super.mergeFrom(other); return this; @@ -1540,7 +1692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -1567,7 +1720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1579,18 +1733,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -1599,20 +1755,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -1620,66 +1777,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result image URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -1687,34 +1854,41 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the image.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebImage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebImage) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebImage(); } @@ -1741,16 +1915,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebImage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebImage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,113 +1939,143 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebPageOrBuilder extends + public interface WebPageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ float getScore(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ java.lang.String getPageTitle(); /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - com.google.protobuf.ByteString - getPageTitleBytes(); + com.google.protobuf.ByteString getPageTitleBytes(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ int getFullMatchingImagesCount(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1879,11 +2083,15 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1891,10 +2099,14 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1902,10 +2114,14 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ int getPartialMatchingImagesCount(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1913,11 +2129,15 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -1925,27 +2145,32 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatching
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); } /** + * + * *
    * Metadata for web pages.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ - public static final class WebPage extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) WebPageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebPage.newBuilder() to construct. private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebPage() { url_ = ""; pageTitle_ = ""; @@ -1955,16 +2180,15 @@ private WebPage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebPage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1984,48 +2208,60 @@ private WebPage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - score_ = input.readFloat(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + url_ = s; + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageTitle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + pageTitle_ = s; + break; } - fullMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000001; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; } - partialMatchingImages_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000002; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2033,8 +2269,7 @@ private WebPage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); @@ -2046,27 +2281,33 @@ private WebPage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The url. */ @java.lang.Override @@ -2075,29 +2316,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
      * The result web page URL.
      * 
* * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2108,11 +2349,14 @@ public java.lang.String getUrl() { public static final int SCORE_FIELD_NUMBER = 2; private float score_; /** + * + * *
      * (Deprecated) Overall relevancy score for the web page.
      * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2123,11 +2367,14 @@ public float getScore() { public static final int PAGE_TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object pageTitle_; /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The pageTitle. */ @java.lang.Override @@ -2136,29 +2383,29 @@ public java.lang.String getPageTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; } } /** + * + * *
      * Title for the web page, may contain HTML markups.
      * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2167,73 +2414,95 @@ public java.lang.String getPageTitle() { } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( + int index) { return fullMatchingImages_.get(index); } /** + * + * *
      * Fully matching images on the page.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2241,13 +2510,18 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullM
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2255,14 +2529,19 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2270,13 +2549,17 @@ public java.util.List g
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2284,13 +2567,18 @@ public int getPartialMatchingImagesCount() {
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
      * Partial matching images on the page.
      * Those images are similar enough to share some key-point features. For
@@ -2298,15 +2586,18 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin
      * crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2318,8 +2609,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -2348,19 +2638,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2370,24 +2660,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (!getPageTitle() - .equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2402,8 +2689,7 @@ public int hashCode() { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; hash = (53 * hash) + getPageTitle().hashCode(); if (getFullMatchingImagesCount() > 0) { @@ -2420,87 +2706,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2510,27 +2803,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Metadata for web pages.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.newBuilder() @@ -2538,18 +2836,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2575,9 +2873,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override @@ -2596,7 +2894,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); int from_bitField0_ = bitField0_; result.url_ = url_; result.score_ = score_; @@ -2627,38 +2926,41 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; @@ -2666,7 +2968,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) + return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); @@ -2696,9 +2999,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000001); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -2722,9 +3026,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -2749,7 +3054,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2758,22 +3064,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object url_ = ""; /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -2782,20 +3091,21 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -2803,66 +3113,76 @@ public java.lang.String getUrl() { } } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
        * The result web page URL.
        * 
* * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; } - private float score_ ; + private float score_; /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return The score. */ @java.lang.Override @@ -2870,30 +3190,36 @@ public float getScore() { return score_; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { - + score_ = value; onChanged(); return this; } /** + * + * *
        * (Deprecated) Overall relevancy score for the web page.
        * 
* * float score = 2; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; @@ -2901,18 +3227,20 @@ public Builder clearScore() { private java.lang.Object pageTitle_ = ""; /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The pageTitle. */ public java.lang.String getPageTitle() { java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageTitle_ = s; return s; @@ -2921,20 +3249,21 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return The bytes for pageTitle. */ - public com.google.protobuf.ByteString - getPageTitleBytes() { + public com.google.protobuf.ByteString getPageTitleBytes() { java.lang.Object ref = pageTitle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageTitle_ = b; return b; } else { @@ -2942,80 +3271,98 @@ public java.lang.String getPageTitle() { } } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitle( - java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageTitle_ = value; onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @return This builder for chaining. */ public Builder clearPageTitle() { - + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } /** + * + * *
        * Title for the web page, may contain HTML markups.
        * 
* * string page_title = 3; + * * @param value The bytes for pageTitle to set. * @return This builder for chaining. */ - public Builder setPageTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageTitle_ = value; onChanged(); return this; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -3023,12 +3370,16 @@ public java.util.List g } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -3038,14 +3389,19 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -3053,12 +3409,16 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3075,15 +3435,20 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -3094,14 +3459,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3115,12 +3485,16 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetect return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3137,12 +3511,16 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3156,15 +3534,20 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -3175,19 +3558,23 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -3195,12 +3582,16 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -3213,12 +3604,16 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -3231,42 +3626,56 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3274,48 +3683,70 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Fully matching images on the page.
        * Can include resized copies of the query image.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3325,19 +3756,27 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3345,9 +3784,12 @@ private void ensurePartialMatchingImagesIsMutable() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -3355,6 +3797,8 @@ public java.util.List g } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3362,7 +3806,9 @@ public java.util.List g
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -3372,6 +3818,8 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3379,9 +3827,12 @@ public int getPartialMatchingImagesCount() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -3389,6 +3840,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3396,7 +3849,9 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3413,6 +3868,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3420,10 +3877,13 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -3434,6 +3894,8 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3441,9 +3903,12 @@ public Builder setPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,6 +3922,8 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDet return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3464,7 +3931,9 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDet
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -3481,6 +3950,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3488,7 +3959,9 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -3502,6 +3975,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3509,10 +3984,13 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -3523,6 +4001,8 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3530,14 +4010,16 @@ public Builder addPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -3545,6 +4027,8 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3552,7 +4036,9 @@ public Builder addAllPartialMatchingImages(
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -3565,6 +4051,8 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3572,7 +4060,9 @@ public Builder clearPartialMatchingImages() {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -3585,6 +4075,8 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3592,13 +4084,17 @@ public Builder removePartialMatchingImages(int index) {
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3606,16 +4102,21 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3623,10 +4124,13 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -3634,6 +4138,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3641,13 +4147,19 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getParti
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3655,14 +4167,20 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
        * Partial matching images on the page.
        * Those images are similar enough to share some key-point features. For
@@ -3670,18 +4188,26 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartia
        * crops.
        * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3690,6 +4216,7 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartia } return partialMatchingImagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3702,12 +4229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebPage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(); } @@ -3716,16 +4243,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebPage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,34 +4267,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WebLabelOrBuilder extends + public interface WebLabelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3775,10 +4309,13 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3786,27 +4323,30 @@ public interface WebLabelOrBuilder extends
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } /** + * + * *
    * Label to provide extra metadata for the web detection.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} */ - public static final class WebLabel extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) WebLabelOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebLabel.newBuilder() to construct. private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WebLabel() { label_ = ""; languageCode_ = ""; @@ -3814,16 +4354,15 @@ private WebLabel() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebLabel(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebLabel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3842,25 +4381,27 @@ private WebLabel( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3868,34 +4409,39 @@ private WebLabel( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The label. */ @java.lang.Override @@ -3904,29 +4450,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Label for extra metadata.
      * 
* * string label = 1; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -3937,6 +4483,8 @@ public java.lang.String getLabel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3944,6 +4492,7 @@ public java.lang.String getLabel() {
      * 
* * string language_code = 2; + * * @return The languageCode. */ @java.lang.Override @@ -3952,14 +4501,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
      * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
      * For more information, see
@@ -3967,16 +4517,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3985,6 +4534,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3996,8 +4546,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } @@ -4027,17 +4576,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4059,87 +4607,94 @@ public int hashCode() { } public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4149,27 +4704,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Label to provide extra metadata for the web detection.
      * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.newBuilder() @@ -4177,16 +4737,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4198,9 +4757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } @java.lang.Override @@ -4219,7 +4778,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); result.label_ = label_; result.languageCode_ = languageCode_; onBuilt(); @@ -4230,38 +4790,41 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) other); } else { super.mergeFrom(other); return this; @@ -4269,7 +4832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) + return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); @@ -4297,7 +4861,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4309,18 +4874,20 @@ public Builder mergeFrom( private java.lang.Object label_ = ""; /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4329,20 +4896,21 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4350,54 +4918,61 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
        * Label for extra metadata.
        * 
* * string label = 1; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; onChanged(); return this; @@ -4405,6 +4980,8 @@ public Builder setLabelBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4412,13 +4989,13 @@ public Builder setLabelBytes(
        * 
* * string language_code = 2; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -4427,6 +5004,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4434,15 +5013,14 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -4450,6 +5028,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4457,20 +5037,22 @@ public java.lang.String getLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4478,15 +5060,18 @@ public Builder setLanguageCode(
        * 
* * string language_code = 2; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
        * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
        * For more information, see
@@ -4494,20 +5079,21 @@ public Builder clearLanguageCode() {
        * 
* * string language_code = 2; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4520,12 +5106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(); } @@ -4534,16 +5120,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebLabel(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4558,12 +5144,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int WEB_ENTITIES_FIELD_NUMBER = 1; private java.util.List webEntities_; /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4571,10 +5158,13 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanc * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4582,11 +5172,13 @@ public java.util.List * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWebEntitiesOrBuilderList() { return webEntities_; } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4598,6 +5190,8 @@ public int getWebEntitiesCount() { return webEntities_.size(); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4609,6 +5203,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(i return webEntities_.get(index); } /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -4622,326 +5218,429 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebE } public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 2; - private java.util.List fullMatchingImages_; + private java.util.List + fullMatchingImages_; /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getFullMatchingImagesOrBuilderList() { return fullMatchingImages_; } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public int getFullMatchingImagesCount() { return fullMatchingImages_.size(); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { return fullMatchingImages_.get(index); } /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { return fullMatchingImages_.get(index); } public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 3; - private java.util.List partialMatchingImages_; + private java.util.List + partialMatchingImages_; /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPartialMatchingImagesOrBuilderList() { return partialMatchingImages_; } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override public int getPartialMatchingImagesCount() { return partialMatchingImages_.size(); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { return partialMatchingImages_.get(index); } /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { return partialMatchingImages_.get(index); } public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List pagesWithMatchingImages_; + private java.util.List + pagesWithMatchingImages_; /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getPagesWithMatchingImagesOrBuilderList() { return pagesWithMatchingImages_; } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override public int getPagesWithMatchingImagesCount() { return pagesWithMatchingImages_.size(); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { return pagesWithMatchingImages_.get(index); } /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { return pagesWithMatchingImages_.get(index); } public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER = 6; - private java.util.List visuallySimilarImages_; + private java.util.List + visuallySimilarImages_; /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List getVisuallySimilarImagesOrBuilderList() { return visuallySimilarImages_; } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override public int getVisuallySimilarImagesCount() { return visuallySimilarImages_.size(); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { return visuallySimilarImages_.get(index); } /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { return visuallySimilarImages_.get(index); } public static final int BEST_GUESS_LABELS_FIELD_NUMBER = 8; private java.util.List bestGuessLabels_; /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { return bestGuessLabels_; } /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public java.util.List + public java.util.List getBestGuessLabelsOrBuilderList() { return bestGuessLabels_; } /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public int getBestGuessLabelsCount() { return bestGuessLabels_.size(); } /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index) { return bestGuessLabels_.get(index); } /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { return bestGuessLabels_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4953,8 +5652,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < webEntities_.size(); i++) { output.writeMessage(1, webEntities_.get(i)); } @@ -4983,28 +5681,29 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < webEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, webEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webEntities_.get(i)); } for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fullMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, fullMatchingImages_.get(i)); } for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, partialMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, partialMatchingImages_.get(i)); } for (int i = 0; i < pagesWithMatchingImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, pagesWithMatchingImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, pagesWithMatchingImages_.get(i)); } for (int i = 0; i < visuallySimilarImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, visuallySimilarImages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, visuallySimilarImages_.get(i)); } for (int i = 0; i < bestGuessLabels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, bestGuessLabels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, bestGuessLabels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5014,25 +5713,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection other = (com.google.cloud.vision.v1p4beta1.WebDetection) obj; - - if (!getWebEntitiesList() - .equals(other.getWebEntitiesList())) return false; - if (!getFullMatchingImagesList() - .equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList() - .equals(other.getPartialMatchingImagesList())) return false; - if (!getPagesWithMatchingImagesList() - .equals(other.getPagesWithMatchingImagesList())) return false; - if (!getVisuallySimilarImagesList() - .equals(other.getVisuallySimilarImagesList())) return false; - if (!getBestGuessLabelsList() - .equals(other.getBestGuessLabelsList())) return false; + com.google.cloud.vision.v1p4beta1.WebDetection other = + (com.google.cloud.vision.v1p4beta1.WebDetection) obj; + + if (!getWebEntitiesList().equals(other.getWebEntitiesList())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) return false; + if (!getPagesWithMatchingImagesList().equals(other.getPagesWithMatchingImagesList())) + return false; + if (!getVisuallySimilarImagesList().equals(other.getVisuallySimilarImagesList())) return false; + if (!getBestGuessLabelsList().equals(other.getBestGuessLabelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5073,118 +5768,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Relevant information for the image from the Internet.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection) com.google.cloud.vision.v1p4beta1.WebDetectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.class, com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.class, + com.google.cloud.vision.v1p4beta1.WebDetection.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.newBuilder() @@ -5192,14 +5896,13 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWebEntitiesFieldBuilder(); getFullMatchingImagesFieldBuilder(); getPartialMatchingImagesFieldBuilder(); @@ -5208,6 +5911,7 @@ private void maybeForceBuilderInitialization() { getBestGuessLabelsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5251,9 +5955,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto.internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; } @java.lang.Override @@ -5272,7 +5976,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection result = new com.google.cloud.vision.v1p4beta1.WebDetection(this); + com.google.cloud.vision.v1p4beta1.WebDetection result = + new com.google.cloud.vision.v1p4beta1.WebDetection(this); int from_bitField0_ = bitField0_; if (webEntitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5303,7 +6008,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { } if (pagesWithMatchingImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = java.util.Collections.unmodifiableList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + java.util.Collections.unmodifiableList(pagesWithMatchingImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.pagesWithMatchingImages_ = pagesWithMatchingImages_; @@ -5336,38 +6042,39 @@ public com.google.cloud.vision.v1p4beta1.WebDetection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection) other); } else { super.mergeFrom(other); return this; @@ -5394,9 +6101,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { webEntitiesBuilder_ = null; webEntities_ = other.webEntities_; bitField0_ = (bitField0_ & ~0x00000001); - webEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebEntitiesFieldBuilder() : null; + webEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebEntitiesFieldBuilder() + : null; } else { webEntitiesBuilder_.addAllMessages(other.webEntities_); } @@ -5420,9 +6128,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { fullMatchingImagesBuilder_ = null; fullMatchingImages_ = other.fullMatchingImages_; bitField0_ = (bitField0_ & ~0x00000002); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFullMatchingImagesFieldBuilder() : null; + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; } else { fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); } @@ -5446,9 +6155,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { partialMatchingImagesBuilder_ = null; partialMatchingImages_ = other.partialMatchingImages_; bitField0_ = (bitField0_ & ~0x00000004); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialMatchingImagesFieldBuilder() : null; + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; } else { partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); } @@ -5472,9 +6182,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { pagesWithMatchingImagesBuilder_ = null; pagesWithMatchingImages_ = other.pagesWithMatchingImages_; bitField0_ = (bitField0_ & ~0x00000008); - pagesWithMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPagesWithMatchingImagesFieldBuilder() : null; + pagesWithMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPagesWithMatchingImagesFieldBuilder() + : null; } else { pagesWithMatchingImagesBuilder_.addAllMessages(other.pagesWithMatchingImages_); } @@ -5498,9 +6209,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { visuallySimilarImagesBuilder_ = null; visuallySimilarImages_ = other.visuallySimilarImages_; bitField0_ = (bitField0_ & ~0x00000010); - visuallySimilarImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVisuallySimilarImagesFieldBuilder() : null; + visuallySimilarImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVisuallySimilarImagesFieldBuilder() + : null; } else { visuallySimilarImagesBuilder_.addAllMessages(other.visuallySimilarImages_); } @@ -5524,9 +6236,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection other) { bestGuessLabelsBuilder_ = null; bestGuessLabels_ = other.bestGuessLabels_; bitField0_ = (bitField0_ & ~0x00000020); - bestGuessLabelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBestGuessLabelsFieldBuilder() : null; + bestGuessLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBestGuessLabelsFieldBuilder() + : null; } else { bestGuessLabelsBuilder_.addAllMessages(other.bestGuessLabels_); } @@ -5560,28 +6273,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List webEntities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWebEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - webEntities_ = new java.util.ArrayList(webEntities_); + webEntities_ = + new java.util.ArrayList( + webEntities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> webEntitiesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> + webEntitiesBuilder_; /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List getWebEntitiesList() { + public java.util.List + getWebEntitiesList() { if (webEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(webEntities_); } else { @@ -5589,6 +6312,8 @@ public java.util.List } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5603,6 +6328,8 @@ public int getWebEntitiesCount() { } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5617,6 +6344,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(i } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5638,6 +6367,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5645,7 +6376,8 @@ public Builder setWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder setWebEntities( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.set(index, builderForValue.build()); @@ -5656,6 +6388,8 @@ public Builder setWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5676,6 +6410,8 @@ public Builder addWebEntities(com.google.cloud.vision.v1p4beta1.WebDetection.Web return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5697,6 +6433,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5715,6 +6453,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5722,7 +6462,8 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addWebEntities( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder builderForValue) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); webEntities_.add(index, builderForValue.build()); @@ -5733,6 +6474,8 @@ public Builder addWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5740,11 +6483,11 @@ public Builder addWebEntities( * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ public Builder addAllWebEntities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (webEntitiesBuilder_ == null) { ensureWebEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webEntities_); onChanged(); } else { webEntitiesBuilder_.addAllMessages(values); @@ -5752,6 +6495,8 @@ public Builder addAllWebEntities( return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5769,6 +6514,8 @@ public Builder clearWebEntities() { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5786,6 +6533,8 @@ public Builder removeWebEntities(int index) { return this; } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5797,28 +6546,34 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder getWebEn return getWebEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder + getWebEntitiesOrBuilder(int index) { if (webEntitiesBuilder_ == null) { - return webEntities_.get(index); } else { + return webEntities_.get(index); + } else { return webEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> + getWebEntitiesOrBuilderList() { if (webEntitiesBuilder_ != null) { return webEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -5826,17 +6581,23 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebE } } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder() { - return getWebEntitiesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder + addWebEntitiesBuilder() { + return getWebEntitiesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
@@ -5845,56 +6606,72 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder addWebEn */ public com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder addWebEntitiesBuilder( int index) { - return getWebEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); + return getWebEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.getDefaultInstance()); } /** + * + * *
      * Deduced entities from similar images on the Internet.
      * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - public java.util.List - getWebEntitiesBuilderList() { + public java.util.List + getWebEntitiesBuilderList() { return getWebEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder> getWebEntitiesFieldBuilder() { if (webEntitiesBuilder_ == null) { - webEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder>( - webEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + webEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder>( + webEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); webEntities_ = null; } return webEntitiesBuilder_; } - private java.util.List fullMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); + private void ensureFullMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fullMatchingImages_ = new java.util.ArrayList(fullMatchingImages_); + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> fullMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List getFullMatchingImagesList() { + public java.util.List + getFullMatchingImagesList() { if (fullMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(fullMatchingImages_); } else { @@ -5902,12 +6679,15 @@ public java.util.List g } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public int getFullMatchingImagesCount() { if (fullMatchingImagesBuilder_ == null) { @@ -5917,14 +6697,18 @@ public int getFullMatchingImagesCount() { } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( + int index) { if (fullMatchingImagesBuilder_ == null) { return fullMatchingImages_.get(index); } else { @@ -5932,12 +6716,15 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingIm } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -5954,15 +6741,19 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.set(index, builderForValue.build()); @@ -5973,14 +6764,18 @@ public Builder setFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (fullMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5994,12 +6789,15 @@ public Builder addFullMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetect return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6016,12 +6814,15 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6035,15 +6836,19 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); fullMatchingImages_.add(index, builderForValue.build()); @@ -6054,19 +6859,22 @@ public Builder addFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder addAllFullMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fullMatchingImagesBuilder_ == null) { ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); onChanged(); } else { fullMatchingImagesBuilder_.addAllMessages(values); @@ -6074,12 +6882,15 @@ public Builder addAllFullMatchingImages( return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { @@ -6092,12 +6903,15 @@ public Builder clearFullMatchingImages() { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ public Builder removeFullMatchingImages(int index) { if (fullMatchingImagesBuilder_ == null) { @@ -6110,42 +6924,53 @@ public Builder removeFullMatchingImages(int index) { return this; } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getFullMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { return getFullMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); } else { + return fullMatchingImages_.get(index); + } else { return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { if (fullMatchingImagesBuilder_ != null) { return fullMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6153,48 +6978,65 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullM } } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMatchingImagesBuilder( - int index) { - return getFullMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Fully matching images from the Internet.
      * Can include resized copies of the query image.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - public java.util.List - getFullMatchingImagesBuilderList() { + public java.util.List + getFullMatchingImagesBuilderList() { return getFullMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getFullMatchingImagesFieldBuilder() { if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( fullMatchingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6204,28 +7046,39 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addFullMa return fullMatchingImagesBuilder_; } - private java.util.List partialMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePartialMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - partialMatchingImages_ = new java.util.ArrayList(partialMatchingImages_); + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> partialMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List getPartialMatchingImagesList() { + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { @@ -6233,13 +7086,17 @@ public java.util.List g } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public int getPartialMatchingImagesCount() { if (partialMatchingImagesBuilder_ == null) { @@ -6249,15 +7106,20 @@ public int getPartialMatchingImagesCount() { } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { if (partialMatchingImagesBuilder_ == null) { return partialMatchingImages_.get(index); } else { @@ -6265,13 +7127,17 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchin } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6288,16 +7154,21 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.set(index, builderForValue.build()); @@ -6308,15 +7179,20 @@ public Builder setPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (partialMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6330,13 +7206,17 @@ public Builder addPartialMatchingImages(com.google.cloud.vision.v1p4beta1.WebDet return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6353,13 +7233,17 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -6373,16 +7257,21 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); partialMatchingImages_.add(index, builderForValue.build()); @@ -6393,20 +7282,24 @@ public Builder addPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder addAllPartialMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (partialMatchingImagesBuilder_ == null) { ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partialMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); onChanged(); } else { partialMatchingImagesBuilder_.addAllMessages(values); @@ -6414,13 +7307,17 @@ public Builder addAllPartialMatchingImages( return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder clearPartialMatchingImages() { if (partialMatchingImagesBuilder_ == null) { @@ -6433,13 +7330,17 @@ public Builder clearPartialMatchingImages() { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ public Builder removePartialMatchingImages(int index) { if (partialMatchingImagesBuilder_ == null) { @@ -6452,45 +7353,59 @@ public Builder removePartialMatchingImages(int index) { return this; } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getPartialMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); } else { + return partialMatchingImages_.get(index); + } else { return partialMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { if (partialMatchingImagesBuilder_ != null) { return partialMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6498,51 +7413,71 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getParti } } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartialMatchingImagesBuilder( - int index) { - return getPartialMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * Partial matching images from the Internet.
      * Those images are similar enough to share some key-point features. For
      * example an original image will likely have partial matching for its crops.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - public java.util.List - getPartialMatchingImagesBuilderList() { + public java.util.List + getPartialMatchingImagesBuilderList() { return getPartialMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getPartialMatchingImagesFieldBuilder() { if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( partialMatchingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6552,26 +7487,37 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addPartia return partialMatchingImagesBuilder_; } - private java.util.List pagesWithMatchingImages_ = - java.util.Collections.emptyList(); + private java.util.List + pagesWithMatchingImages_ = java.util.Collections.emptyList(); + private void ensurePagesWithMatchingImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - pagesWithMatchingImages_ = new java.util.ArrayList(pagesWithMatchingImages_); + pagesWithMatchingImages_ = + new java.util.ArrayList( + pagesWithMatchingImages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> pagesWithMatchingImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> + pagesWithMatchingImagesBuilder_; /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List getPagesWithMatchingImagesList() { + public java.util.List + getPagesWithMatchingImagesList() { if (pagesWithMatchingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(pagesWithMatchingImages_); } else { @@ -6579,11 +7525,15 @@ public java.util.List ge } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public int getPagesWithMatchingImagesCount() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6593,13 +7543,18 @@ public int getPagesWithMatchingImagesCount() { } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages( + int index) { if (pagesWithMatchingImagesBuilder_ == null) { return pagesWithMatchingImages_.get(index); } else { @@ -6607,11 +7562,15 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchi } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { @@ -6628,11 +7587,15 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder setPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6646,13 +7609,18 @@ public Builder setPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { + public Builder addPagesWithMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { if (pagesWithMatchingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6666,11 +7634,15 @@ public Builder addPagesWithMatchingImages(com.google.cloud.vision.v1p4beta1.WebD return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage value) { @@ -6687,11 +7659,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6705,11 +7681,15 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addPagesWithMatchingImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder builderForValue) { @@ -6723,18 +7703,22 @@ public Builder addPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder addAllPagesWithMatchingImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (pagesWithMatchingImagesBuilder_ == null) { ensurePagesWithMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pagesWithMatchingImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pagesWithMatchingImages_); onChanged(); } else { pagesWithMatchingImagesBuilder_.addAllMessages(values); @@ -6742,11 +7726,15 @@ public Builder addAllPagesWithMatchingImages( return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder clearPagesWithMatchingImages() { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6759,11 +7747,15 @@ public Builder clearPagesWithMatchingImages() { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ public Builder removePagesWithMatchingImages(int index) { if (pagesWithMatchingImagesBuilder_ == null) { @@ -6776,39 +7768,52 @@ public Builder removePagesWithMatchingImages(int index) { return this; } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder getPagesWithMatchingImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder + getPagesWithMatchingImagesBuilder(int index) { return getPagesWithMatchingImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index) { if (pagesWithMatchingImagesBuilder_ == null) { - return pagesWithMatchingImages_.get(index); } else { + return pagesWithMatchingImages_.get(index); + } else { return pagesWithMatchingImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesOrBuilderList() { + public java.util.List + getPagesWithMatchingImagesOrBuilderList() { if (pagesWithMatchingImagesBuilder_ != null) { return pagesWithMatchingImagesBuilder_.getMessageOrBuilderList(); } else { @@ -6816,45 +7821,65 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesW } } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder() { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder() { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder addPagesWithMatchingImagesBuilder( - int index) { - return getPagesWithMatchingImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder + addPagesWithMatchingImagesBuilder(int index) { + return getPagesWithMatchingImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()); } /** + * + * *
      * Web pages containing the matching images from the Internet.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - public java.util.List - getPagesWithMatchingImagesBuilderList() { + public java.util.List + getPagesWithMatchingImagesBuilderList() { return getPagesWithMatchingImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesFieldBuilder() { if (pagesWithMatchingImagesBuilder_ == null) { - pagesWithMatchingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder>( + pagesWithMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder>( pagesWithMatchingImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6864,26 +7889,37 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder addPagesWi return pagesWithMatchingImagesBuilder_; } - private java.util.List visuallySimilarImages_ = - java.util.Collections.emptyList(); + private java.util.List + visuallySimilarImages_ = java.util.Collections.emptyList(); + private void ensureVisuallySimilarImagesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visuallySimilarImages_ = new java.util.ArrayList(visuallySimilarImages_); + visuallySimilarImages_ = + new java.util.ArrayList( + visuallySimilarImages_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> visuallySimilarImagesBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + visuallySimilarImagesBuilder_; /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List getVisuallySimilarImagesList() { + public java.util.List + getVisuallySimilarImagesList() { if (visuallySimilarImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(visuallySimilarImages_); } else { @@ -6891,11 +7927,15 @@ public java.util.List g } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public int getVisuallySimilarImagesCount() { if (visuallySimilarImagesBuilder_ == null) { @@ -6905,13 +7945,18 @@ public int getVisuallySimilarImagesCount() { } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages( + int index) { if (visuallySimilarImagesBuilder_ == null) { return visuallySimilarImages_.get(index); } else { @@ -6919,11 +7964,15 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimila } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6940,14 +7989,19 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder setVisuallySimilarImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.set(index, builderForValue.build()); @@ -6958,13 +8012,18 @@ public Builder setVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + public Builder addVisuallySimilarImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { if (visuallySimilarImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6978,11 +8037,15 @@ public Builder addVisuallySimilarImages(com.google.cloud.vision.v1p4beta1.WebDet return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { @@ -6999,11 +8062,15 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { @@ -7017,14 +8084,19 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addVisuallySimilarImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); visuallySimilarImages_.add(index, builderForValue.build()); @@ -7035,18 +8107,22 @@ public Builder addVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder addAllVisuallySimilarImages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (visuallySimilarImagesBuilder_ == null) { ensureVisuallySimilarImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visuallySimilarImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visuallySimilarImages_); onChanged(); } else { visuallySimilarImagesBuilder_.addAllMessages(values); @@ -7054,11 +8130,15 @@ public Builder addAllVisuallySimilarImages( return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder clearVisuallySimilarImages() { if (visuallySimilarImagesBuilder_ == null) { @@ -7071,11 +8151,15 @@ public Builder clearVisuallySimilarImages() { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ public Builder removeVisuallySimilarImages(int index) { if (visuallySimilarImagesBuilder_ == null) { @@ -7088,39 +8172,53 @@ public Builder removeVisuallySimilarImages(int index) { return this; } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder getVisuallySimilarImagesBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getVisuallySimilarImagesBuilder(int index) { return getVisuallySimilarImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index) { if (visuallySimilarImagesBuilder_ == null) { - return visuallySimilarImages_.get(index); } else { + return visuallySimilarImages_.get(index); + } else { return visuallySimilarImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getVisuallySimilarImagesOrBuilderList() { if (visuallySimilarImagesBuilder_ != null) { return visuallySimilarImagesBuilder_.getMessageOrBuilderList(); } else { @@ -7128,45 +8226,65 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisua } } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder() { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder() { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addVisuallySimilarImagesBuilder( - int index) { - return getVisuallySimilarImagesFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addVisuallySimilarImagesBuilder(int index) { + return getVisuallySimilarImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** + * + * *
      * The visually similar image results.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - public java.util.List - getVisuallySimilarImagesBuilderList() { + public java.util.List + getVisuallySimilarImagesBuilderList() { return getVisuallySimilarImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> getVisuallySimilarImagesFieldBuilder() { if (visuallySimilarImagesBuilder_ == null) { - visuallySimilarImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + visuallySimilarImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( visuallySimilarImages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7176,27 +8294,37 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder addVisual return visuallySimilarImagesBuilder_; } - private java.util.List bestGuessLabels_ = - java.util.Collections.emptyList(); + private java.util.List + bestGuessLabels_ = java.util.Collections.emptyList(); + private void ensureBestGuessLabelsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - bestGuessLabels_ = new java.util.ArrayList(bestGuessLabels_); + bestGuessLabels_ = + new java.util.ArrayList( + bestGuessLabels_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> bestGuessLabelsBuilder_; + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> + bestGuessLabelsBuilder_; /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List getBestGuessLabelsList() { + public java.util.List + getBestGuessLabelsList() { if (bestGuessLabelsBuilder_ == null) { return java.util.Collections.unmodifiableList(bestGuessLabels_); } else { @@ -7204,12 +8332,15 @@ public java.util.List g } } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public int getBestGuessLabelsCount() { if (bestGuessLabelsBuilder_ == null) { @@ -7219,12 +8350,15 @@ public int getBestGuessLabelsCount() { } } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7234,12 +8368,15 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabel } } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { @@ -7256,15 +8393,19 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder setBestGuessLabels( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.set(index, builderForValue.build()); @@ -7275,14 +8416,18 @@ public Builder setBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public Builder addBestGuessLabels(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { + public Builder addBestGuessLabels( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { if (bestGuessLabelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7296,12 +8441,15 @@ public Builder addBestGuessLabels(com.google.cloud.vision.v1p4beta1.WebDetection return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel value) { @@ -7318,12 +8466,15 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { @@ -7337,15 +8488,19 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addBestGuessLabels( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder builderForValue) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); bestGuessLabels_.add(index, builderForValue.build()); @@ -7356,19 +8511,22 @@ public Builder addBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder addAllBestGuessLabels( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (bestGuessLabelsBuilder_ == null) { ensureBestGuessLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bestGuessLabels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bestGuessLabels_); onChanged(); } else { bestGuessLabelsBuilder_.addAllMessages(values); @@ -7376,12 +8534,15 @@ public Builder addAllBestGuessLabels( return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder clearBestGuessLabels() { if (bestGuessLabelsBuilder_ == null) { @@ -7394,12 +8555,15 @@ public Builder clearBestGuessLabels() { return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ public Builder removeBestGuessLabels(int index) { if (bestGuessLabelsBuilder_ == null) { @@ -7412,42 +8576,53 @@ public Builder removeBestGuessLabels(int index) { return this; } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder getBestGuessLabelsBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder + getBestGuessLabelsBuilder(int index) { return getBestGuessLabelsFieldBuilder().getBuilder(index); } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( - int index) { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder + getBestGuessLabelsOrBuilder(int index) { if (bestGuessLabelsBuilder_ == null) { - return bestGuessLabels_.get(index); } else { + return bestGuessLabels_.get(index); + } else { return bestGuessLabelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> + getBestGuessLabelsOrBuilderList() { if (bestGuessLabelsBuilder_ != null) { return bestGuessLabelsBuilder_.getMessageOrBuilderList(); } else { @@ -7455,48 +8630,65 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestG } } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder() { - return getBestGuessLabelsFieldBuilder().addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder() { + return getBestGuessLabelsFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder addBestGuessLabelsBuilder( - int index) { - return getBestGuessLabelsFieldBuilder().addBuilder( - index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder + addBestGuessLabelsBuilder(int index) { + return getBestGuessLabelsFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()); } /** + * + * *
      * The service's best guess as to the topic of the request image.
      * Inferred from similar images on the open web.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - public java.util.List - getBestGuessLabelsBuilderList() { + public java.util.List + getBestGuessLabelsBuilderList() { return getBestGuessLabelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder> getBestGuessLabelsFieldBuilder() { if (bestGuessLabelsBuilder_ == null) { - bestGuessLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder>( + bestGuessLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder>( bestGuessLabels_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -7505,9 +8697,9 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder addBestGu } return bestGuessLabelsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7517,12 +8709,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection) private static final com.google.cloud.vision.v1p4beta1.WebDetection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection(); } @@ -7531,16 +8723,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetection getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7555,6 +8747,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java similarity index 68% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java index a82240253..6170b2292 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/web_detection.proto package com.google.cloud.vision.v1p4beta1; -public interface WebDetectionOrBuilder extends +public interface WebDetectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List - getWebEntitiesList(); + java.util.List getWebEntitiesList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -25,6 +44,8 @@ public interface WebDetectionOrBuilder extends */ com.google.cloud.vision.v1p4beta1.WebDetection.WebEntity getWebEntities(int index); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -33,15 +54,19 @@ public interface WebDetectionOrBuilder extends */ int getWebEntitiesCount(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
* * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebEntity web_entities = 1; */ - java.util.List + java.util.List getWebEntitiesOrBuilderList(); /** + * + * *
    * Deduced entities from similar images on the Internet.
    * 
@@ -52,241 +77,330 @@ com.google.cloud.vision.v1p4beta1.WebDetection.WebEntityOrBuilder getWebEntities int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ int getFullMatchingImagesCount(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ - java.util.List + java.util.List getFullMatchingImagesOrBuilderList(); /** + * + * *
    * Fully matching images from the Internet.
    * Can include resized copies of the query image.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 2; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ int getPartialMatchingImagesCount(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - java.util.List + java.util.List getPartialMatchingImagesOrBuilderList(); /** + * + * *
    * Partial matching images from the Internet.
    * Those images are similar enough to share some key-point features. For
    * example an original image will likely have partial matching for its crops.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 3; + * */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getPagesWithMatchingImages(int index); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ int getPagesWithMatchingImagesCount(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - java.util.List + java.util.List getPagesWithMatchingImagesOrBuilderList(); /** + * + * *
    * Web pages containing the matching images from the Internet.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebPage pages_with_matching_images = 4; + * */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder + getPagesWithMatchingImagesOrBuilder(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getVisuallySimilarImages(int index); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ int getVisuallySimilarImagesCount(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - java.util.List + java.util.List getVisuallySimilarImagesOrBuilderList(); /** + * + * *
    * The visually similar image results.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage visually_similar_images = 6; + * */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder( - int index); + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getVisuallySimilarImagesOrBuilder(int index); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List - getBestGuessLabelsList(); + java.util.List getBestGuessLabelsList(); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getBestGuessLabels(int index); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ int getBestGuessLabelsCount(); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ - java.util.List + java.util.List getBestGuessLabelsOrBuilderList(); /** + * + * *
    * The service's best guess as to the topic of the request image.
    * Inferred from similar images on the open web.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebLabel best_guess_labels = 8; + * */ com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder( int index); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java similarity index 69% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java index e49a16c72..67b9d7a37 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParams.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * Parameters for web detection request.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetectionParams} */ -public final class WebDetectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WebDetectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetectionParams) WebDetectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WebDetectionParams.newBuilder() to construct. private WebDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebDetectionParams() { - } + + private WebDetectionParams() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WebDetectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WebDetectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private WebDetectionParams( case 0: done = true; break; - case 16: { - - includeGeoResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + includeGeoResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private WebDetectionParams( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); } public static final int INCLUDE_GEO_RESULTS_FIELD_NUMBER = 2; private boolean includeGeoResults_; /** + * + * *
    * Whether to include results derived from the geo information in the image.
    * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIncludeGeoResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeGeoResults_ != false) { output.writeBool(2, includeGeoResults_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (includeGeoResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeGeoResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGeoResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetectionParams)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetectionParams other = (com.google.cloud.vision.v1p4beta1.WebDetectionParams) obj; + com.google.cloud.vision.v1p4beta1.WebDetectionParams other = + (com.google.cloud.vision.v1p4beta1.WebDetectionParams) obj; - if (getIncludeGeoResults() - != other.getIncludeGeoResults()) return false; + if (getIncludeGeoResults() != other.getIncludeGeoResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,133 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_GEO_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeGeoResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGeoResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.WebDetectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.WebDetectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Parameters for web detection request.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetectionParams) com.google.cloud.vision.v1p4beta1.WebDetectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetectionParams.class, + com.google.cloud.vision.v1p4beta1.WebDetectionParams.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.WebDetectionParams.newBuilder() @@ -291,16 +319,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto.internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetectionParams_descriptor; } @java.lang.Override @@ -331,7 +358,8 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.WebDetectionParams buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetectionParams result = new com.google.cloud.vision.v1p4beta1.WebDetectionParams(this); + com.google.cloud.vision.v1p4beta1.WebDetectionParams result = + new com.google.cloud.vision.v1p4beta1.WebDetectionParams(this); result.includeGeoResults_ = includeGeoResults_; onBuilt(); return result; @@ -341,38 +369,39 @@ public com.google.cloud.vision.v1p4beta1.WebDetectionParams buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetectionParams) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetectionParams)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetectionParams) other); } else { super.mergeFrom(other); return this; @@ -380,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetectionParams other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.vision.v1p4beta1.WebDetectionParams.getDefaultInstance()) + return this; if (other.getIncludeGeoResults() != false) { setIncludeGeoResults(other.getIncludeGeoResults()); } @@ -403,7 +433,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vision.v1p4beta1.WebDetectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,13 +444,16 @@ public Builder mergeFrom( return this; } - private boolean includeGeoResults_ ; + private boolean includeGeoResults_; /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return The includeGeoResults. */ @java.lang.Override @@ -427,37 +461,43 @@ public boolean getIncludeGeoResults() { return includeGeoResults_; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @param value The includeGeoResults to set. * @return This builder for chaining. */ public Builder setIncludeGeoResults(boolean value) { - + includeGeoResults_ = value; onChanged(); return this; } /** + * + * *
      * Whether to include results derived from the geo information in the image.
      * 
* * bool include_geo_results = 2; + * * @return This builder for chaining. */ public Builder clearIncludeGeoResults() { - + includeGeoResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +507,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetectionParams) private static final com.google.cloud.vision.v1p4beta1.WebDetectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetectionParams(); } @@ -481,16 +521,16 @@ public static com.google.cloud.vision.v1p4beta1.WebDetectionParams getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDetectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDetectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDetectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDetectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +545,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.WebDetectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java new file mode 100644 index 000000000..7ed859bba --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionParamsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/image_annotator.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface WebDetectionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to include results derived from the geo information in the image.
+   * 
+ * + * bool include_geo_results = 2; + * + * @return The includeGeoResults. + */ + boolean getIncludeGeoResults(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java new file mode 100644 index 000000000..04f25e33d --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/web_detection.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class WebDetectionProto { + private WebDetectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vision/v1p4beta1/web_dete" + + "ction.proto\022\035google.cloud.vision.v1p4bet" + + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" + + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" + + ".cloud.vision.v1p4beta1.WebDetection.Web" + + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" + + "oogle.cloud.vision.v1p4beta1.WebDetectio" + + "n.WebImage\022U\n\027partial_matching_images\030\003 " + + "\003(\01324.google.cloud.vision.v1p4beta1.WebD" + + "etection.WebImage\022W\n\032pages_with_matching" + + "_images\030\004 \003(\01323.google.cloud.vision.v1p4" + + "beta1.WebDetection.WebPage\022U\n\027visually_s" + + "imilar_images\030\006 \003(\01324.google.cloud.visio" + + "n.v1p4beta1.WebDetection.WebImage\022O\n\021bes" + + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" + + "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" + + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p4beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p4beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" + + "loud.vision.v1p4beta1B\021WebDetectionProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" + + "Nb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor, + new java.lang.String[] { + "WebEntities", + "FullMatchingImages", + "PartialMatchingImages", + "PagesWithMatchingImages", + "VisuallySimilarImages", + "BestGuessLabels", + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebEntity_descriptor, + new java.lang.String[] { + "EntityId", "Score", "Description", + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor, + new java.lang.String[] { + "Url", "Score", + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, + new java.lang.String[] { + "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", + }); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, + new java.lang.String[] { + "Label", "LanguageCode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java similarity index 77% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java index e27b6e943..1a1e63322 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Word.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; /** + * + * *
  * A word representation.
  * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Word} */ -public final class Word extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Word extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Word) WordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Word.newBuilder() to construct. private Word(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Word() { symbols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Word(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Word( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,63 @@ private Word( case 0: done = true; break; - case 10: { - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = null; - if (property_ != null) { - subBuilder = property_.toBuilder(); - } - property_ = input.readMessage(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(property_); - property_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder subBuilder = + null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder subBuilder = null; - if (boundingBox_ != null) { - subBuilder = boundingBox_.toBuilder(); + break; } - boundingBox_ = input.readMessage(com.google.cloud.vision.v1p4beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(boundingBox_); - boundingBox_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + symbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + symbols_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.Symbol.parser(), extensionRegistry)); + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - symbols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 37: + { + confidence_ = input.readFloat(); + break; } - symbols_.add( - input.readMessage(com.google.cloud.vision.v1p4beta1.Symbol.parser(), extensionRegistry)); - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,8 +135,7 @@ private Word( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { symbols_ = java.util.Collections.unmodifiableList(symbols_); @@ -118,27 +144,33 @@ private Word( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Word.class, com.google.cloud.vision.v1p4beta1.Word.Builder.class); + com.google.cloud.vision.v1p4beta1.Word.class, + com.google.cloud.vision.v1p4beta1.Word.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ @java.lang.Override @@ -146,18 +178,25 @@ public boolean hasProperty() { return property_ != null; } /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } /** + * + * *
    * Additional information detected for the word.
    * 
@@ -165,13 +204,16 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ @java.lang.Override - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { return getProperty(); } public static final int BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -191,6 +233,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ @java.lang.Override @@ -198,6 +241,8 @@ public boolean hasBoundingBox() { return boundingBox_ != null; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -217,13 +262,18 @@ public boolean hasBoundingBox() {
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -252,6 +302,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
   public static final int SYMBOLS_FIELD_NUMBER = 3;
   private java.util.List symbols_;
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -264,6 +316,8 @@ public java.util.List getSymbolsList()
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -272,11 +326,13 @@ public java.util.List getSymbolsList()
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSymbolsOrBuilderList() {
     return symbols_;
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -289,6 +345,8 @@ public int getSymbolsCount() {
     return symbols_.size();
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -301,6 +359,8 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
     return symbols_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -309,19 +369,21 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
   @java.lang.Override
-  public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index) {
+  public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
     return symbols_.get(index);
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
   private float confidence_;
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -330,6 +392,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +404,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (property_ != null) { output.writeMessage(1, getProperty()); } @@ -365,20 +427,16 @@ public int getSerializedSize() { size = 0; if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); } if (boundingBox_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundingBox()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBoundingBox()); } for (int i = 0; i < symbols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, symbols_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, symbols_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,7 +446,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Word)) { return super.equals(obj); @@ -397,19 +455,15 @@ public boolean equals(final java.lang.Object obj) { if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; + if (!getProperty().equals(other.getProperty())) return false; } if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { - if (!getBoundingBox() - .equals(other.getBoundingBox())) return false; + if (!getBoundingBox().equals(other.getBoundingBox())) return false; } - if (!getSymbolsList() - .equals(other.getSymbolsList())) return false; + if (!getSymbolsList().equals(other.getSymbolsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,125 +488,133 @@ public int hashCode() { hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vision.v1p4beta1.Word parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Word parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Word parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vision.v1p4beta1.Word parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Word prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A word representation.
    * 
* * Protobuf type {@code google.cloud.vision.v1p4beta1.Word} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Word) com.google.cloud.vision.v1p4beta1.WordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Word_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.Word.class, com.google.cloud.vision.v1p4beta1.Word.Builder.class); + com.google.cloud.vision.v1p4beta1.Word.class, + com.google.cloud.vision.v1p4beta1.Word.Builder.class); } // Construct using com.google.cloud.vision.v1p4beta1.Word.newBuilder() @@ -560,17 +622,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSymbolsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.TextAnnotationProto.internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.TextAnnotationProto + .internal_static_google_cloud_vision_v1p4beta1_Word_descriptor; } @java.lang.Override @@ -619,7 +681,8 @@ public com.google.cloud.vision.v1p4beta1.Word build() { @java.lang.Override public com.google.cloud.vision.v1p4beta1.Word buildPartial() { - com.google.cloud.vision.v1p4beta1.Word result = new com.google.cloud.vision.v1p4beta1.Word(this); + com.google.cloud.vision.v1p4beta1.Word result = + new com.google.cloud.vision.v1p4beta1.Word(this); int from_bitField0_ = bitField0_; if (propertyBuilder_ == null) { result.property_ = property_; @@ -649,38 +712,39 @@ public com.google.cloud.vision.v1p4beta1.Word buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vision.v1p4beta1.Word) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.Word)other); + return mergeFrom((com.google.cloud.vision.v1p4beta1.Word) other); } else { super.mergeFrom(other); return this; @@ -713,9 +777,10 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Word other) { symbolsBuilder_ = null; symbols_ = other.symbols_; bitField0_ = (bitField0_ & ~0x00000001); - symbolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSymbolsFieldBuilder() : null; + symbolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSymbolsFieldBuilder() + : null; } else { symbolsBuilder_.addAllMessages(other.symbols_); } @@ -752,45 +817,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> propertyBuilder_; + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + propertyBuilder_; /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ public boolean hasProperty() { return propertyBuilder_ != null || property_ != null; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty() { if (propertyBuilder_ == null) { - return property_ == null ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } else { return propertyBuilder_.getMessage(); } } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder setProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,6 +884,8 @@ public Builder setProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Text return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -822,17 +904,22 @@ public Builder setProperty( return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { + public Builder mergeProperty( + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty value) { if (propertyBuilder_ == null) { if (property_ != null) { property_ = - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_).mergeFrom(value).buildPartial(); + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.newBuilder(property_) + .mergeFrom(value) + .buildPartial(); } else { property_ = value; } @@ -844,6 +931,8 @@ public Builder mergeProperty(com.google.cloud.vision.v1p4beta1.TextAnnotation.Te return this; } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -862,33 +951,42 @@ public Builder clearProperty() { return this; } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder getPropertyBuilder() { - + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder + getPropertyBuilder() { + onChanged(); return getPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information detected for the word.
      * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ - public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder() { + public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder + getPropertyOrBuilder() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilder(); } else { - return property_ == null ? - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() : property_; + return property_ == null + ? com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.getDefaultInstance() + : property_; } } /** + * + * *
      * Additional information detected for the word.
      * 
@@ -896,14 +994,17 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.Builder, + com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; @@ -911,8 +1012,13 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge private com.google.cloud.vision.v1p4beta1.BoundingPoly boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> boundingBoxBuilder_; + com.google.cloud.vision.v1p4beta1.BoundingPoly, + com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, + com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -932,12 +1038,15 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder ge
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -957,16 +1066,21 @@ public boolean hasBoundingBox() {
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { if (boundingBoxBuilder_ == null) { - return boundingBox_ == null ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_; + return boundingBox_ == null + ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** + * + * *
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1001,6 +1115,8 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1033,6 +1149,8 @@ public Builder setBoundingBox(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1057,7 +1175,9 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       if (boundingBoxBuilder_ == null) {
         if (boundingBox_ != null) {
           boundingBox_ =
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_).mergeFrom(value).buildPartial();
+              com.google.cloud.vision.v1p4beta1.BoundingPoly.newBuilder(boundingBox_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundingBox_ = value;
         }
@@ -1069,6 +1189,8 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1101,6 +1223,8 @@ public Builder clearBoundingBox() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1122,11 +1246,13 @@ public Builder clearBoundingBox() {
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuilder() {
-      
+
       onChanged();
       return getBoundingBoxFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1151,11 +1277,14 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
       if (boundingBoxBuilder_ != null) {
         return boundingBoxBuilder_.getMessageOrBuilder();
       } else {
-        return boundingBox_ == null ?
-            com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance() : boundingBox_;
+        return boundingBox_ == null
+            ? com.google.cloud.vision.v1p4beta1.BoundingPoly.getDefaultInstance()
+            : boundingBox_;
       }
     }
     /**
+     *
+     *
      * 
      * The bounding box for the word.
      * The vertices are in the order of top-left, top-right, bottom-right,
@@ -1177,32 +1306,41 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB
      * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.BoundingPoly,
+            com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+            com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>
         getBoundingBoxFieldBuilder() {
       if (boundingBoxBuilder_ == null) {
-        boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.BoundingPoly, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder, com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
-                getBoundingBox(),
-                getParentForChildren(),
-                isClean());
+        boundingBoxBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.BoundingPoly,
+                com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder,
+                com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder>(
+                getBoundingBox(), getParentForChildren(), isClean());
         boundingBox_ = null;
       }
       return boundingBoxBuilder_;
     }
 
     private java.util.List symbols_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSymbolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         symbols_ = new java.util.ArrayList(symbols_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder> symbolsBuilder_;
+            com.google.cloud.vision.v1p4beta1.Symbol,
+            com.google.cloud.vision.v1p4beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>
+        symbolsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1218,6 +1356,8 @@ public java.util.List getSymbolsList()
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1233,6 +1373,8 @@ public int getSymbolsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1248,6 +1390,8 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1255,8 +1399,7 @@ public com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder setSymbols(
-        int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
+    public Builder setSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1270,6 +1413,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1289,6 +1434,8 @@ public Builder setSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1310,6 +1457,8 @@ public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1317,8 +1466,7 @@ public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol value) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
+    public Builder addSymbols(int index, com.google.cloud.vision.v1p4beta1.Symbol value) {
       if (symbolsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1332,6 +1480,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1339,8 +1489,7 @@ public Builder addSymbols(
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public Builder addSymbols(
-        com.google.cloud.vision.v1p4beta1.Symbol.Builder builderForValue) {
+    public Builder addSymbols(com.google.cloud.vision.v1p4beta1.Symbol.Builder builderForValue) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
         symbols_.add(builderForValue.build());
@@ -1351,6 +1500,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1370,6 +1521,8 @@ public Builder addSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1381,8 +1534,7 @@ public Builder addAllSymbols(
         java.lang.Iterable values) {
       if (symbolsBuilder_ == null) {
         ensureSymbolsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, symbols_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symbols_);
         onChanged();
       } else {
         symbolsBuilder_.addAllMessages(values);
@@ -1390,6 +1542,8 @@ public Builder addAllSymbols(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1408,6 +1562,8 @@ public Builder clearSymbols() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1426,6 +1582,8 @@ public Builder removeSymbols(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1433,11 +1591,12 @@ public Builder removeSymbols(int index) {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(int index) {
       return getSymbolsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1445,14 +1604,16 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder getSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
-        int index) {
+    public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index) {
       if (symbolsBuilder_ == null) {
-        return symbols_.get(index);  } else {
+        return symbols_.get(index);
+      } else {
         return symbolsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1460,8 +1621,8 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsOrBuilderList() {
+    public java.util.List
+        getSymbolsOrBuilderList() {
       if (symbolsBuilder_ != null) {
         return symbolsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1469,6 +1630,8 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1477,10 +1640,12 @@ public com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
     public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder() {
-      return getSymbolsFieldBuilder().addBuilder(
-          com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
+      return getSymbolsFieldBuilder()
+          .addBuilder(com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1488,12 +1653,13 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder() {
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(
-        int index) {
-      return getSymbolsFieldBuilder().addBuilder(
-          index, com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
+    public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(int index) {
+      return getSymbolsFieldBuilder()
+          .addBuilder(index, com.google.cloud.vision.v1p4beta1.Symbol.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of symbols in the word.
      * The order of the symbols follows the natural reading order.
@@ -1501,32 +1667,38 @@ public com.google.cloud.vision.v1p4beta1.Symbol.Builder addSymbolsBuilder(
      *
      * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
      */
-    public java.util.List 
-         getSymbolsBuilderList() {
+    public java.util.List
+        getSymbolsBuilderList() {
       return getSymbolsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder> 
+            com.google.cloud.vision.v1p4beta1.Symbol,
+            com.google.cloud.vision.v1p4beta1.Symbol.Builder,
+            com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>
         getSymbolsFieldBuilder() {
       if (symbolsBuilder_ == null) {
-        symbolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.vision.v1p4beta1.Symbol, com.google.cloud.vision.v1p4beta1.Symbol.Builder, com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>(
-                symbols_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        symbolsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.vision.v1p4beta1.Symbol,
+                com.google.cloud.vision.v1p4beta1.Symbol.Builder,
+                com.google.cloud.vision.v1p4beta1.SymbolOrBuilder>(
+                symbols_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         symbols_ = null;
       }
       return symbolsBuilder_;
     }
 
-    private float confidence_ ;
+    private float confidence_;
     /**
+     *
+     *
      * 
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1534,37 +1706,43 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * Confidence of the OCR results for the word. Range [0, 1].
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1574,12 +1752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Word) } // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Word) private static final com.google.cloud.vision.v1p4beta1.Word DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Word(); } @@ -1588,16 +1766,16 @@ public static com.google.cloud.vision.v1p4beta1.Word getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Word parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Word(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Word parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Word(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1790,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vision.v1p4beta1.Word getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java rename to proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java index 47ef3d774..cf7787881 100644 --- a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/text_annotation.proto package com.google.cloud.vision.v1p4beta1; -public interface WordOrBuilder extends +public interface WordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Word) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return Whether the property field is set. */ boolean hasProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
* * .google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1; + * * @return The property. */ com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty(); /** + * + * *
    * Additional information detected for the word.
    * 
@@ -35,6 +59,8 @@ public interface WordOrBuilder extends com.google.cloud.vision.v1p4beta1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -54,10 +80,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -77,10 +106,13 @@ public interface WordOrBuilder extends
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; + * * @return The boundingBox. */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox(); /** + * + * *
    * The bounding box for the word.
    * The vertices are in the order of top-left, top-right, bottom-right,
@@ -104,6 +136,8 @@ public interface WordOrBuilder extends
   com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -111,9 +145,10 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  java.util.List 
-      getSymbolsList();
+  java.util.List getSymbolsList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -123,6 +158,8 @@ public interface WordOrBuilder extends
    */
   com.google.cloud.vision.v1p4beta1.Symbol getSymbols(int index);
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -132,6 +169,8 @@ public interface WordOrBuilder extends
    */
   int getSymbolsCount();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -139,9 +178,11 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  java.util.List 
+  java.util.List
       getSymbolsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of symbols in the word.
    * The order of the symbols follows the natural reading order.
@@ -149,15 +190,17 @@ public interface WordOrBuilder extends
    *
    * repeated .google.cloud.vision.v1p4beta1.Symbol symbols = 3;
    */
-  com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(
-      int index);
+  com.google.cloud.vision.v1p4beta1.SymbolOrBuilder getSymbolsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Confidence of the OCR results for the word. Range [0, 1].
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto diff --git a/owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto similarity index 100% rename from owl-bot-staging/v1p4beta1/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto rename to proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p2beta1/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p3beta1/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java diff --git a/owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java similarity index 100% rename from owl-bot-staging/v1p4beta1/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java rename to samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java